diff options
author | Manuel Canales Esparcia <manuel@linuxfromscratch.org> | 2007-07-21 15:00:15 +0000 |
---|---|---|
committer | Manuel Canales Esparcia <manuel@linuxfromscratch.org> | 2007-07-21 15:00:15 +0000 |
commit | 60a5a938e6657250d228742b8367f8dbe7dd28d4 (patch) | |
tree | 6d7c4dffd49992a47185e53deacabe1d41036b28 /stylesheets/lfs-xsl/docbook-xsl-snapshot/xhtml/sections.xsl | |
parent | 85117fe2b9fa404a21083ba975e06b57a6866d1b (diff) |
Merged r8226 from new-xsl branch.
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@8228 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'stylesheets/lfs-xsl/docbook-xsl-snapshot/xhtml/sections.xsl')
-rw-r--r-- | stylesheets/lfs-xsl/docbook-xsl-snapshot/xhtml/sections.xsl | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/stylesheets/lfs-xsl/docbook-xsl-snapshot/xhtml/sections.xsl b/stylesheets/lfs-xsl/docbook-xsl-snapshot/xhtml/sections.xsl index f5b87e16e..42e6917c3 100644 --- a/stylesheets/lfs-xsl/docbook-xsl-snapshot/xhtml/sections.xsl +++ b/stylesheets/lfs-xsl/docbook-xsl-snapshot/xhtml/sections.xsl @@ -435,12 +435,15 @@ <xsl:attribute name="style">clear: both</xsl:attribute> </xsl:if> </xsl:if> - <xsl:if test="$allow-anchors != 0"> + <xsl:if test="$allow-anchors != 0 and $generate.id.attributes = 0"> <xsl:call-template name="anchor"> <xsl:with-param name="node" select="$section"/> <xsl:with-param name="conditional" select="0"/> </xsl:call-template> </xsl:if> + <xsl:if test="$generate.id.attributes != 0 and not(local-name(.) = 'appendix')"> + <xsl:attribute name="id"><xsl:value-of select="$id"/></xsl:attribute> + </xsl:if> <xsl:copy-of select="$title"/> </xsl:element> </xsl:template> |