diff options
author | Manuel Canales Esparcia <manuel@linuxfromscratch.org> | 2004-05-20 21:48:55 +0000 |
---|---|---|
committer | Manuel Canales Esparcia <manuel@linuxfromscratch.org> | 2004-05-20 21:48:55 +0000 |
commit | a34ad80e86383ab1483b677acf54abeda916666e (patch) | |
tree | e9f0279c05fcaf7a4bab890ac72ae088307f30b9 /stylesheets/xhtml | |
parent | 678e79c2588bfe5cd93425ffadd4147bee3c3bcf (diff) |
HEAD: Stylesheets - reestructured the order of imports and includes.
Added the nonchuk stylesheet from b5_1.
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@3681 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'stylesheets/xhtml')
-rw-r--r-- | stylesheets/xhtml/lfs-mixed.xsl | 56 |
1 files changed, 55 insertions, 1 deletions
diff --git a/stylesheets/xhtml/lfs-mixed.xsl b/stylesheets/xhtml/lfs-mixed.xsl index 355938549..2d9a3cbfa 100644 --- a/stylesheets/xhtml/lfs-mixed.xsl +++ b/stylesheets/xhtml/lfs-mixed.xsl @@ -50,5 +50,59 @@ </dl> </div> </xsl:template> - + + <!-- Body attributes --> + <xsl:template name="body.attributes"> + <xsl:attribute name="id"> + <xsl:text>lfs</xsl:text> + </xsl:attribute> + <xsl:attribute name="class"> + <xsl:value-of select="substring-after(/book/bookinfo/subtitle, ' ')"/> + </xsl:attribute> + </xsl:template> + + <!-- Sect1 attributes --> + <xsl:template match="sect1"> + <div> + <xsl:choose> + <xsl:when test="@role"> + <xsl:attribute name="class"> + <xsl:value-of select="@role"/> + </xsl:attribute> + </xsl:when> + <xsl:otherwise> + <xsl:attribute name="class"> + <xsl:value-of select="name(.)"/> + </xsl:attribute> + </xsl:otherwise> + </xsl:choose> + <xsl:call-template name="language.attribute"/> + <xsl:call-template name="sect1.titlepage"/> + <xsl:apply-templates/> + <xsl:call-template name="process.chunk.footnotes"/> + </div> + </xsl:template> + + <!-- Sect2 attributes --> + <xsl:template match="sect2"> + <div> + <xsl:choose> + <xsl:when test="@role"> + <xsl:attribute name="class"> + <xsl:value-of select="@role"/> + </xsl:attribute> + </xsl:when> + <xsl:otherwise> + <xsl:attribute name="class"> + <xsl:value-of select="name(.)"/> + </xsl:attribute> + </xsl:otherwise> + </xsl:choose> + <xsl:call-template name="language.attribute"/> + <xsl:call-template name="sect2.titlepage"/> + <xsl:apply-templates/> + <xsl:call-template name="process.chunk.footnotes"/> + </div> + </xsl:template> + </xsl:stylesheet> |