Added a glossary with an alphabethical list of elements
[xmldoc.git] / html.xsl
index 7e5191d..828bc8e 100644 (file)
--- a/html.xsl
+++ b/html.xsl
 </ol>
 </xsl:template>
 
-<xsl:template match="item">
+<xsl:template match="description">
+<dl>
+   <xsl:apply-templates/>
+</dl>
+</xsl:template>
+
+<xsl:template match="itemize/item">
+<li>
+   <xsl:apply-templates/>
+</li>
+</xsl:template>
+
+<xsl:template match="enumerate/item">
 <li>
    <xsl:apply-templates/>
 </li>
 </xsl:template>
 
+<xsl:template match="description/item">
+<dt><xsl:value-of select='@tag'/></dt>
+<dd>
+   <xsl:apply-templates/>
+</dd>
+</xsl:template>
+
 <xsl:template match="footnote">
 <sup><a>
   <xsl:attribute name='href'>#footnote<xsl:number level='any'/></xsl:attribute>
    </xsl:attribute></a>
 </xsl:template>
 
+<xsl:template match="index"></xsl:template>
+
 <xsl:template match="ref">
    <a><xsl:attribute name='href'>#<xsl:value-of select="@to"/></xsl:attribute>
      <xsl:apply-templates/>
-     <xsl:apply-templates select="id(@to)" mode="section-number"/>
+     <!--<xsl:apply-templates select="id(@to)" mode="section-number"/>-->
    </a>
 </xsl:template>