mirror of
https://github.com/Zeckmathederg/glfs.git
synced 2025-01-27 18:02:12 +08:00
3fe8b511a8
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@3217 af4574ff-66df-0310-9fd7-8a98e5e911e0
52 lines
1.5 KiB
XML
52 lines
1.5 KiB
XML
<?xml version='1.0' encoding='ISO-8859-1'?>
|
|
|
|
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
|
xmlns="http://www.w3.org/1999/xhtml"
|
|
version="1.0">
|
|
|
|
|
|
<!-- 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> |