diff options
Diffstat (limited to 'xhtml-1_1/synop.xsl')
-rw-r--r-- | xhtml-1_1/synop.xsl | 31 |
1 files changed, 19 insertions, 12 deletions
diff --git a/xhtml-1_1/synop.xsl b/xhtml-1_1/synop.xsl index 8a5292d..987cf7c 100644 --- a/xhtml-1_1/synop.xsl +++ b/xhtml-1_1/synop.xsl @@ -4,7 +4,7 @@ <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml" version="1.0"> <!-- ******************************************************************** - $Id: synop.xsl 9357 2012-05-12 23:36:14Z bobstayton $ + $Id: synop.xsl 9829 2013-11-05 20:07:15Z bobstayton $ ******************************************************************** This file is part of the XSL DocBook Stylesheet distribution. @@ -26,17 +26,24 @@ <xsl:call-template name="id.attribute"> <xsl:with-param name="conditional" select="0"/> </xsl:call-template> - <xsl:if test="..//processing-instruction('dbcmdlist')"> - <!-- * Placing a dbcmdlist PI as a child of a particular element --> - <!-- * creates a hyperlinked list of all cmdsynopsis instances --> - <!-- * that are descendants of that element; so for any --> - <!-- * cmdsynopsis that is a descendant of an element containing --> - <!-- * a dbcmdlist PI, we need to output an a@id instance so that --> - <!-- * we will have something to link to --> - <xsl:call-template name="anchor"> - <xsl:with-param name="conditional" select="0"/> - </xsl:call-template> - </xsl:if> + <xsl:choose> + <xsl:when test="..//processing-instruction('dbcmdlist')"> + <!-- * Placing a dbcmdlist PI as a child of a particular element --> + <!-- * creates a hyperlinked list of all cmdsynopsis instances --> + <!-- * that are descendants of that element; so for any --> + <!-- * cmdsynopsis that is a descendant of an element containing --> + <!-- * a dbcmdlist PI, we need to output an a@id instance so that --> + <!-- * we will have something to link to --> + <xsl:call-template name="anchor"> + <xsl:with-param name="conditional" select="0"/> + </xsl:call-template> + </xsl:when> + <xsl:otherwise> + <xsl:call-template name="anchor"> + <xsl:with-param name="conditional" select="1"/> + </xsl:call-template> + </xsl:otherwise> + </xsl:choose> <xsl:apply-templates/> </p> </div> |