mirror of
https://github.com/Zeckmathederg/glfs.git
synced 2025-02-02 22:07:15 +08:00
d5a426bb56
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@5224 af4574ff-66df-0310-9fd7-8a98e5e911e0
55 lines
1.6 KiB
XML
55 lines
1.6 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">
|
|
|
|
|
|
<!-- Dummy sect1 files for TOC hacking -->
|
|
<xsl:template match="sect1[@role='dummy']"/>
|
|
|
|
<!-- 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> |