-<xsl:template match="Definition">
- <xsl:choose>
- <xsl:when test="$type=0">
- <Definition name="{@name}" helm:xref="{@id}">
- <xsl:if test="string(@params) != """>
- <Params>
- <xsl:value-of select="@params"/>
- </Params>
- </xsl:if>
- <body>
- <xsl:apply-templates select="body/*[1]"/>
- </body>
+<xsl:template match="ConstantType">
+ <xsl:choose>
+ <xsl:when test="$type='typeonly'">
+ <type>
+ <xsl:apply-templates select="./*[1]" mode="noannot"/>
+ </type>
+ </xsl:when>
+ <xsl:otherwise>
+ <Definition name="{@name}" helm:xref="{@id}">
+ <xsl:if test="string(@params) != """>
+ <Params>
+ <xsl:call-template name="var_name">
+ <xsl:with-param name="uri" select="concat(@params, ' ')"/>
+ </xsl:call-template>
+ </Params>
+ </xsl:if>
+ <body/>