\ / This software is distributed as is, NO WARRANTY.
V_______________________________________________________________ -->
-<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns="http://www.w3.org/1999/xhtml"
+>
<xsl:strip-space elements="ABST ABBR"/>
+<xsl:template name="ENTITY">
+ <xsl:param name="kind"/>
+ <div class="head2">
+ <span class="global">
+ <xsl:value-of select="$kind"/>
+ <xsl:call-template name="cn"/>
+ <xsl:call-template name="sp"/>
+ <span class="gref">
+ <xsl:call-template name="global"/>
+ </span>
+ <xsl:call-template name="sp"/>
+ <xsl:call-template name="op"/>
+ <span class="gref">
+ <xsl:call-template name="mk_path"/>
+ </span>
+ <xsl:call-template name="cp"/>
+ </span>
+ </div>
+ <div class="text">
+ <xsl:call-template name="idescr"/>
+ <xsl:call-template name="qt"/>
+ <xsl:value-of select="@meta"/>
+ <xsl:call-template name="qt"/>
+ </div>
+ <div class="text">
+ <xsl:apply-templates/>
+ </div>
+</xsl:template>
+
<xsl:template match="ABST">
- <h2>
- <xsl:text>Declaration:</xsl:text>
- <xsl:call-template name="entity"/>
- </h2>
- <div><xsl:apply-templates/></div>
+ <xsl:call-template name="ENTITY">
+ <xsl:with-param name="kind">Declaration</xsl:with-param>
+ </xsl:call-template>
</xsl:template>
<xsl:template match="ABBR">
- <h2>
- <xsl:text>Definition:</xsl:text>
- <xsl:call-template name="entity"/>
- </h2>
- <div><xsl:apply-templates/></div>
+ <xsl:call-template name="ENTITY">
+ <xsl:with-param name="kind">Definition</xsl:with-param>
+ </xsl:call-template>
</xsl:template>
</xsl:stylesheet>