1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76
|
<?xml version='1.0'?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version='1.0'
xmlns="http://www.w3.org/TR/xhtml1/transitional"
exclude-result-prefixes="#default">
<!-- ************************Glossary***************************-->
<!-- Importing the Norman Walsh's stylesheet as the basis. -->
<!--
<xsl:import href="/usr/share/sgml/docbook/stylesheet/xsl/nwalsh-1.45/html/chunk.xsl"/>
-->
<xsl:template match="glossentry/glossterm">
<dt>
<b>
<xsl:apply-templates/>
</b>
</dt>
</xsl:template>
<xsl:template match="glossentry/glossterm[1]" priority="2">
<dt>
<b>
<xsl:call-template name="anchor">
<xsl:with-param name="node" select=".."/>
</xsl:call-template>
<xsl:apply-templates/>
</b>
</dt>
</xsl:template>
<xsl:template match="glossentry/glossdef[@subject]">
<xsl:if test="position()=2">
<xsl:text disable-output-escaping="yes"><dd></xsl:text>
<xsl:text disable-output-escaping="yes"><div class="informaltable"></xsl:text>
<xsl:text disable-output-escaping="yes"><table border="0"></xsl:text>
<xsl:text disable-output-escaping="yes"><tbody></xsl:text>
</xsl:if>
<tr>
<td valign="top">
<p>
<xsl:value-of select="@subject"/>
</p>
</td>
<td>
<xsl:apply-templates select="*[local-name(.) != 'glossseealso']"/>
</td>
</tr>
<xsl:if test="glossseealso">
<p>
<xsl:call-template name="gentext.template">
<xsl:with-param name="context" select="'glossary'"/>
<xsl:with-param name="name" select="'seealso'"/>
</xsl:call-template>
<xsl:apply-templates select="glossseealso"/>
</p>
</xsl:if>
<xsl:if test="position()=last()">
<xsl:text disable-output-escaping="yes"></tbody></xsl:text>
<xsl:text disable-output-escaping="yes"></table></xsl:text>
<xsl:text disable-output-escaping="yes"></div></xsl:text>
<xsl:text disable-output-escaping="yes"></dd></xsl:text>
</xsl:if>
</xsl:template>
</xsl:stylesheet>
|