2 <xsl:stylesheet xmlns:
xsl=
"http://www.w3.org/1999/XSL/Transform"
5 <xsl:template match=
"glossary">
7 <xsl:apply-templates select=
"glossdiv"/>
11 <xsl:template match=
"glossdiv">
13 <xsl:attribute name=
"title"><xsl:value-of select=
"title"/></xsl:attribute>
14 <xsl:apply-templates select=
"glossentry"/>
18 <xsl:template match=
"glossentry">
20 <xsl:attribute name=
"id"><xsl:value-of select=
"@id"/></xsl:attribute>
21 <term><xsl:value-of select=
"glossterm"/></term>
22 <definition><xsl:value-of select=
"glossdef/*[not(name()='glossseealso')]"/></definition>
23 <references><xsl:apply-templates select=
"glossdef/glossseealso"/></references>
27 <xsl:template match=
"glossseealso">
29 <xsl:attribute name=
"term"><xsl:value-of select=
"."/></xsl:attribute>
30 <xsl:attribute name=
"id"><xsl:value-of select=
"@otherterm"/></xsl:attribute>