2005-01-07 13:14:15 +08:00
|
|
|
<?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">
|
|
|
|
|
|
|
|
|
2005-10-19 12:13:12 +08:00
|
|
|
<!-- Dummy sect1 files for TOC hacking -->
|
|
|
|
<xsl:template match="sect1[@role='dummy']"/>
|
|
|
|
|
2005-01-07 13:14:15 +08:00
|
|
|
<!-- 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>
|