HEAD: StyleSheets - unified the identation to use spaces.

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@3663 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
This commit is contained in:
Manuel Canales Esparcia 2004-05-19 20:16:58 +00:00
parent 28501c7129
commit a9e89d0c26
14 changed files with 203 additions and 187 deletions

View File

@ -3,7 +3,6 @@
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:fo="http://www.w3.org/1999/XSL/Format"
version="1.0"> version="1.0">
<!-- We use FO and FOP as the processor --> <!-- We use FO and FOP as the processor -->
<xsl:import href="http://docbook.sourceforge.net/release/xsl/1.65.1/fo/docbook.xsl"/> <xsl:import href="http://docbook.sourceforge.net/release/xsl/1.65.1/fo/docbook.xsl"/>
<xsl:param name="fop.extensions" select="1"/> <xsl:param name="fop.extensions" select="1"/>
@ -38,8 +37,7 @@
<xsl:param name="toc.indent.width" select="18"></xsl:param> <xsl:param name="toc.indent.width" select="18"></xsl:param>
<!-- Page number in Xref--> <!-- Page number in Xref-->
<xsl:param name="insert.xref.page.number">yes</xsl:param> <xsl:param name="insert.xref.page.number">yes</xsl:param> <xsl:template match="*" mode="page.citation">
<xsl:template match="*" mode="page.citation">
<xsl:param name="id" select="'???'"/> <xsl:param name="id" select="'???'"/>
<fo:inline keep-together.within-line="always"> <fo:inline keep-together.within-line="always">
<xsl:text>[p</xsl:text> <xsl:text>[p</xsl:text>

View File

@ -1,7 +1,5 @@
<?xml version='1.0' encoding='ISO-8859-1'?> <?xml version='1.0' encoding='ISO-8859-1'?>
<!-- Version 0.9 - Manuel Canales Esparcia <macana@lfs-es.org> -->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns="http://www.w3.org/1999/xhtml" xmlns="http://www.w3.org/1999/xhtml"
version="1.0"> version="1.0">

View File

@ -24,12 +24,21 @@
</xsl:template> </xsl:template>
<!-- variablelist --> <!-- variablelist -->
<xsl:template match="variablelist"> <xsl:template match="variablelist">
<div class="{name(.)}"> <div class="{name(.)}">
<xsl:if test="title"> <xsl:if test="title">
<xsl:choose>
<xsl:when test="@role = 'materials'">
<h3> <h3>
<xsl:value-of select="title"/> <xsl:value-of select="title"/>
</h3> </h3>
</xsl:when>
<xsl:otherwise>
<h4>
<xsl:value-of select="title"/>
</h4>
</xsl:otherwise>
</xsl:choose>
</xsl:if> </xsl:if>
<dl> <dl>
<xsl:if test="@role"> <xsl:if test="@role">
@ -40,5 +49,6 @@
<xsl:apply-templates select="varlistentry"/> <xsl:apply-templates select="varlistentry"/>
</dl> </dl>
</div> </div>
</xsl:template> </xsl:template>
</xsl:stylesheet> </xsl:stylesheet>

View File

@ -1,7 +1,5 @@
<?xml version='1.0' encoding='ISO-8859-1'?> <?xml version='1.0' encoding='ISO-8859-1'?>
<!-- Version 0.9 - Manuel Canales Esparcia <macana@lfs-es.org> -->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns="http://www.w3.org/1999/xhtml" xmlns="http://www.w3.org/1999/xhtml"
version="1.0"> version="1.0">
@ -64,6 +62,19 @@
<xsl:text>Next</xsl:text> <xsl:text>Next</xsl:text>
</a> </a>
</li> </li>
</xsl:if>
<xsl:if test="count($up)&gt;0 and $up != $home">
<li class="up">
<a accesskey="u">
<xsl:attribute name="href">
<xsl:call-template name="href.target">
<xsl:with-param name="object" select="$up"/>
</xsl:call-template>
</xsl:attribute>
<xsl:text>Up</xsl:text>
</a>
</li>
</xsl:if>
<li class="home"> <li class="home">
<a accesskey="h"> <a accesskey="h">
<xsl:attribute name="href"> <xsl:attribute name="href">
@ -74,7 +85,6 @@
<xsl:text>Home</xsl:text> <xsl:text>Home</xsl:text>
</a> </a>
</li> </li>
</xsl:if>
</ul> </ul>
</div> </div>
</xsl:if> </xsl:if>