Author: manuel
Date: 2007-04-17 11:22:00 -0600 (Tue, 17 Apr 2007)
New Revision: 8077
Modified:
branches/new-xsl/xhtml/lfs-sections.xsl
branches/new-xsl/xhtml/lfs-titles.xsl
Log:
Small changes.
Modified: branches/new-xsl/xhtml/lfs-sections.xsl
===================================================================
--- branches/new-xsl/xhtml/lfs-sections.xsl 2007-04-16 21:55:31 UTC (rev
8076)
+++ branches/new-xsl/xhtml/lfs-sections.xsl 2007-04-17 17:22:00 UTC (rev
8077)
@@ -7,9 +7,8 @@
<!-- This stylesheet controls how sections are handled -->
<!-- Chunk the first top-level section? 1 = yes, 0 = no
- If chapters TOC are generated, this must be 1.
- See also sect1.titlepage template in lfs-titles.xsl -->
- <xsl:param name="chunk.first.sections" select="1"></xsl:param>
+ If chapters TOC are generated, this must be 1. -->
+ <xsl:param name="chunk.first.sections" select="1"/>
<!-- sect1:
When there is a role attibute, use it as the class value.
Modified: branches/new-xsl/xhtml/lfs-titles.xsl
===================================================================
--- branches/new-xsl/xhtml/lfs-titles.xsl 2007-04-16 21:55:31 UTC (rev
8076)
+++ branches/new-xsl/xhtml/lfs-titles.xsl 2007-04-17 17:22:00 UTC (rev
8077)
@@ -137,7 +137,8 @@
<!-- bridgehead:
When use always renderas attributes and want the output h* level
- matching the defined sect* level. -->
+ matching the defined sect* level.
+ Create the anchor only if there is an @id. -->
<!-- The original template is in {docbook-xsl}/xhtml/sections.xsl -->
<xsl:template match="bridgehead">
<xsl:variable name="hlevel">
@@ -150,9 +151,9 @@
</xsl:choose>
</xsl:variable>
<xsl:element name="h{$hlevel}" namespace="http://www.w3.org/1999/xhtml">
- <xsl:call-template name="anchor">
- <xsl:with-param name="conditional" select="0"/>
- </xsl:call-template>
+ <xsl:if test="@id">
+ <a id="[EMAIL PROTECTED]" name="[EMAIL PROTECTED]"/>
+ </xsl:if>
<xsl:apply-templates/>
</xsl:element>
</xsl:template>
--
http://linuxfromscratch.org/mailman/listinfo/lfs-book
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page