aboutsummaryrefslogtreecommitdiffstats
path: root/stylesheets/lfs-xsl/docbook-xsl-snapshot/xhtml/sections.xsl
diff options
context:
space:
mode:
Diffstat (limited to 'stylesheets/lfs-xsl/docbook-xsl-snapshot/xhtml/sections.xsl')
-rw-r--r--stylesheets/lfs-xsl/docbook-xsl-snapshot/xhtml/sections.xsl5
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>