aboutsummaryrefslogtreecommitdiffstats
path: root/stylesheets/lfs-xsl/docbook-xsl-snapshot/xhtml/component.xsl
diff options
context:
space:
mode:
authorManuel Canales Esparcia <manuel@linuxfromscratch.org>2007-07-21 15:00:15 +0000
committerManuel Canales Esparcia <manuel@linuxfromscratch.org>2007-07-21 15:00:15 +0000
commit60a5a938e6657250d228742b8367f8dbe7dd28d4 (patch)
tree6d7c4dffd49992a47185e53deacabe1d41036b28 /stylesheets/lfs-xsl/docbook-xsl-snapshot/xhtml/component.xsl
parent85117fe2b9fa404a21083ba975e06b57a6866d1b (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/component.xsl')
-rw-r--r--stylesheets/lfs-xsl/docbook-xsl-snapshot/xhtml/component.xsl14
1 files changed, 8 insertions, 6 deletions
diff --git a/stylesheets/lfs-xsl/docbook-xsl-snapshot/xhtml/component.xsl b/stylesheets/lfs-xsl/docbook-xsl-snapshot/xhtml/component.xsl
index 66ce157e0..007f27f9c 100644
--- a/stylesheets/lfs-xsl/docbook-xsl-snapshot/xhtml/component.xsl
+++ b/stylesheets/lfs-xsl/docbook-xsl-snapshot/xhtml/component.xsl
@@ -37,11 +37,13 @@
<xsl:element name="h{$level+1}" namespace="http://www.w3.org/1999/xhtml">
<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>
</xsl:element>
@@ -350,7 +352,7 @@
</div>
</xsl:template>
-<xsl:template match="article/title" mode="titlepage.mode" priority="2">
+<xsl:template match="article/title|article/articleinfo/title" mode="titlepage.mode" priority="2">
<xsl:call-template name="component.title">
<xsl:with-param name="node" select="ancestor::article[1]"/>
</xsl:call-template>