|
@@ -22,4 +22,26 @@
|
|
<xsl:include href="xhtml/lfs-legalnotice.xsl"/>
|
|
<xsl:include href="xhtml/lfs-legalnotice.xsl"/>
|
|
<xsl:include href="xhtml/lfs-navigational.xsl"/>
|
|
<xsl:include href="xhtml/lfs-navigational.xsl"/>
|
|
|
|
|
|
|
|
+ <!-- sect1:
|
|
|
|
+ Prevent creation of dummy sect1 files used to emulate sub-chapters. -->
|
|
|
|
+ <!-- The original template is in {docbook-xsl}/xhtml/profile-chunk-code.xsl
|
|
|
|
+ It match also others sect* tags. The code for that tags is unchanged. -->
|
|
|
|
+ <xsl:template match="sect1">
|
|
|
|
+ <xsl:variable name="ischunk">
|
|
|
|
+ <xsl:call-template name="chunk"/>
|
|
|
|
+ </xsl:variable>
|
|
|
|
+ <xsl:choose>
|
|
|
|
+ <xsl:when test="@role = 'dummy'"/>
|
|
|
|
+ <xsl:when test="not(parent::*)">
|
|
|
|
+ <xsl:call-template name="process-chunk-element"/>
|
|
|
|
+ </xsl:when>
|
|
|
|
+ <xsl:when test="$ischunk = 0">
|
|
|
|
+ <xsl:apply-imports/>
|
|
|
|
+ </xsl:when>
|
|
|
|
+ <xsl:otherwise>
|
|
|
|
+ <xsl:call-template name="process-chunk-element"/>
|
|
|
|
+ </xsl:otherwise>
|
|
|
|
+ </xsl:choose>
|
|
|
|
+ </xsl:template>
|
|
|
|
+
|
|
</xsl:stylesheet>
|
|
</xsl:stylesheet>
|