- <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:when test="$type='typeonly'">
+ <type>
+ <xsl:apply-templates select="type/*[1]"/>
+ </type>
+ </xsl:when>
+ <xsl:otherwise>
+ <Definition name="{@name}" helm:xref="{@id}">
+ <xsl:if test="string(@params) != """>
+ <Params>
+ <xsl:value-of select="@params"/>
+ </Params>
+ </xsl:if>
+ <body>