aboutsummaryrefslogtreecommitdiffstats
path: root/stylesheets/lfs-xsl/docbook-xsl-snapshot/xhtml/synop.xsl
diff options
context:
space:
mode:
authorManuel Canales Esparcia <manuel@linuxfromscratch.org>2007-09-09 08:55:14 +0000
committerManuel Canales Esparcia <manuel@linuxfromscratch.org>2007-09-09 08:55:14 +0000
commitc1fe047a4d7b6890809ba4ce2e25f290c5d11962 (patch)
treedf8ae9fb1adbe06584916a01634ed4148f07c913 /stylesheets/lfs-xsl/docbook-xsl-snapshot/xhtml/synop.xsl
parente7477591dd2a1302aadec48724cb070850caebee (diff)
Merged r8368 from new-xsl branch.
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@8369 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'stylesheets/lfs-xsl/docbook-xsl-snapshot/xhtml/synop.xsl')
-rw-r--r--stylesheets/lfs-xsl/docbook-xsl-snapshot/xhtml/synop.xsl25
1 files changed, 22 insertions, 3 deletions
diff --git a/stylesheets/lfs-xsl/docbook-xsl-snapshot/xhtml/synop.xsl b/stylesheets/lfs-xsl/docbook-xsl-snapshot/xhtml/synop.xsl
index 4aa2c2c06..3e115ecf6 100644
--- a/stylesheets/lfs-xsl/docbook-xsl-snapshot/xhtml/synop.xsl
+++ b/stylesheets/lfs-xsl/docbook-xsl-snapshot/xhtml/synop.xsl
@@ -23,9 +23,17 @@
<div>
<xsl:apply-templates select="." mode="class.attribute"/>
<p>
- <xsl:call-template name="anchor">
- <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:apply-templates/>
</p>
</div>
@@ -155,6 +163,17 @@
</xsl:template>
<xsl:template match="funcsynopsis">
+ <xsl:if test="..//processing-instruction('dbfunclist')">
+ <!-- * Placing a dbfunclist PI as a child of a particular element -->
+ <!-- * creates a hyperlinked list of all funcsynopsis instances that -->
+ <!-- * are descendants of that element; so for any funcsynopsis that is -->
+ <!-- * a descendant of an element containing a dbfunclist 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:call-template name="informal.object"/>
</xsl:template>