<xsl:variable name="lowerdirective">
<xsl:choose>
<xsl:when test="@name">
- <xsl:value-of select="normalize-space(translate(@name,
- $uppercase, $lowercase))" />
+ <xsl:value-of select="normalize-space(concat(translate(@name,
+ $uppercase, $lowercase),@type))" />
</xsl:when>
<xsl:otherwise>
- <xsl:value-of select="normalize-space(translate(.,
- $uppercase, $lowercase))" />
+ <xsl:value-of select="normalize-space(concat(translate(.,
+ $uppercase, $lowercase),@type))" />
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
/modulesynopsis/directivesynopsis">
<xsl:sort select="name" />
<xsl:variable name="lowername"
- select="translate(name, $uppercase,
- $lowercase)" />
+ select="concat(translate(name, $uppercase,
+ $lowercase),@type)" />
<xsl:choose>
<xsl:when test="not(@location)">
<xsl:call-template name="toplink" />&lf;
<div class="directive-section">
+ <!-- Concatenate the Directive name with its type to allow
+ a directive to be referenced multiple times
+ with different types -->
<xsl:variable name="lowername"
- select="translate(name, $uppercase, $lowercase)" />
-
+ select="concat(translate(name, $uppercase, $lowercase),@type)" />
+ <xsl:variable name="directivename" select="concat(name,@type)" />
<!-- Directive heading gets both mixed case and lowercase -->
<!-- anchors, and includes lt/gt only for "section" directives -->
<h2>
</xsl:otherwise>
</xsl:choose>
- <a id="{name}" name="{name}">
+ <a id="{$directivename}" name="{$directivename}">
<xsl:if test="@type='section'"><</xsl:if>
<xsl:value-of select="name" />
<xsl:if test="@type='section'">></xsl:if>
</xsl:when>
<xsl:otherwise>
- <a id="{name}" name="{name}">
+ <a id="{$directivename}" name="{$directivename}">
<xsl:if test="@type='section'"><</xsl:if>
<xsl:value-of select="name" />
<xsl:if test="@type='section'">></xsl:if>