aboutsummaryrefslogtreecommitdiffstats
path: root/stylesheets
diff options
context:
space:
mode:
authorManuel Canales Esparcia <manuel@linuxfromscratch.org>2006-04-20 23:03:45 +0000
committerManuel Canales Esparcia <manuel@linuxfromscratch.org>2006-04-20 23:03:45 +0000
commitb79ee96cdb6c23a00a946218765e71da115ef3f5 (patch)
treedf3c94d16ce0e81e7e23f84fee03c61093a1ef03 /stylesheets
parentc26f26477f3c05589bf528b7116cd2bfa1b165f9 (diff)
No labels for sect2 in preface.
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@7553 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'stylesheets')
-rw-r--r--stylesheets/xhtml/lfs-titles.xsl6
1 files changed, 4 insertions, 2 deletions
diff --git a/stylesheets/xhtml/lfs-titles.xsl b/stylesheets/xhtml/lfs-titles.xsl
index be65a93ce..e44108e59 100644
--- a/stylesheets/xhtml/lfs-titles.xsl
+++ b/stylesheets/xhtml/lfs-titles.xsl
@@ -78,8 +78,10 @@
<a id="{@id}" name="{@id}"/>
</xsl:if>
<h2 class="{name(.)}">
- <xsl:apply-templates select="." mode="label.markup"/>
- <xsl:text>. </xsl:text>
+ <xsl:if test="not(ancestor::preface)">
+ <xsl:apply-templates select="." mode="label.markup"/>
+ <xsl:text>. </xsl:text>
+ </xsl:if>
<xsl:value-of select="title"/>
</h2>
</div>