diff options
author | Manuel Canales Esparcia <manuel@linuxfromscratch.org> | 2004-05-19 20:16:58 +0000 |
---|---|---|
committer | Manuel Canales Esparcia <manuel@linuxfromscratch.org> | 2004-05-19 20:16:58 +0000 |
commit | a9e89d0c26b67d4f4ad136be1f701665c7b04c72 (patch) | |
tree | dcb6fb3d304753460d6f275ac3e3d9b74a2896a2 /stylesheets/xhtml/lfs-mixed.xsl | |
parent | 28501c71298af5866445fa8c8dd6e71f61287271 (diff) |
HEAD: StyleSheets - unified the identation to use spaces.
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@3663 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'stylesheets/xhtml/lfs-mixed.xsl')
-rw-r--r-- | stylesheets/xhtml/lfs-mixed.xsl | 48 |
1 files changed, 29 insertions, 19 deletions
diff --git a/stylesheets/xhtml/lfs-mixed.xsl b/stylesheets/xhtml/lfs-mixed.xsl index e179769f4..d8f7cf64c 100644 --- a/stylesheets/xhtml/lfs-mixed.xsl +++ b/stylesheets/xhtml/lfs-mixed.xsl @@ -4,10 +4,10 @@ xmlns="http://www.w3.org/1999/xhtml" version="1.0"> - <!-- screen --> + <!-- screen --> <xsl:template match="screen"> <xsl:choose> - <!-- Temporally hack --> + <!-- Temporally hack --> <xsl:when test="child::* = userinput"> <pre class="{name(.)}"> <kbd class="command"> @@ -24,21 +24,31 @@ </xsl:template> <!-- variablelist --> -<xsl:template match="variablelist"> - <div class="{name(.)}"> - <xsl:if test="title"> - <h3> - <xsl:value-of select="title"/> - </h3> - </xsl:if> - <dl> - <xsl:if test="@role"> - <xsl:attribute name="class"> - <xsl:value-of select="@role"/> - </xsl:attribute> - </xsl:if> - <xsl:apply-templates select="varlistentry"/> - </dl> - </div> -</xsl:template> + <xsl:template match="variablelist"> + <div class="{name(.)}"> + <xsl:if test="title"> + <xsl:choose> + <xsl:when test="@role = 'materials'"> + <h3> + <xsl:value-of select="title"/> + </h3> + </xsl:when> + <xsl:otherwise> + <h4> + <xsl:value-of select="title"/> + </h4> + </xsl:otherwise> + </xsl:choose> + </xsl:if> + <dl> + <xsl:if test="@role"> + <xsl:attribute name="class"> + <xsl:value-of select="@role"/> + </xsl:attribute> + </xsl:if> + <xsl:apply-templates select="varlistentry"/> + </dl> + </div> + </xsl:template> + </xsl:stylesheet> |