diff options
Diffstat (limited to 'stylesheets/lfs-xsl/docbook-xsl-snapshot/xhtml/division.xsl')
-rw-r--r-- | stylesheets/lfs-xsl/docbook-xsl-snapshot/xhtml/division.xsl | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/stylesheets/lfs-xsl/docbook-xsl-snapshot/xhtml/division.xsl b/stylesheets/lfs-xsl/docbook-xsl-snapshot/xhtml/division.xsl index c7dca21ca..b5af13ea2 100644 --- a/stylesheets/lfs-xsl/docbook-xsl-snapshot/xhtml/division.xsl +++ b/stylesheets/lfs-xsl/docbook-xsl-snapshot/xhtml/division.xsl @@ -213,11 +213,13 @@ <h1> <xsl:attribute name="class">title</xsl:attribute> - <xsl:call-template name="anchor"> - <xsl:with-param name="node" select="$node"/> - <xsl:with-param name="conditional" select="0"/> - </xsl:call-template> - <xsl:apply-templates select="$node" mode="object.title.markup"> + <xsl:if test="$generate.id.attributes = 0"> + <xsl:call-template name="anchor"> + <xsl:with-param name="node" select="$node"/> + <xsl:with-param name="conditional" select="0"/> + </xsl:call-template> + </xsl:if> + <xsl:apply-templates select="$node" mode="object.title.markup"> <xsl:with-param name="allow-anchors" select="1"/> </xsl:apply-templates> </h1> |