<!-- Process a documentation subsection -->
<xsl:template match="subsection">
<xsl:variable name="name">
+ <xsl:if test="
+ count(//*[(local-name()='section' or local-name()='subsection') and @name=current()/@name]) > 1
+ ">
+ <xsl:value-of select="concat(ancestor::section/@name, '/')"/>
+ </xsl:if>
<xsl:value-of select="@name"/>
</xsl:variable>
<table border="0" cellspacing="0" cellpadding="2">
<xsl:template mode="toc" match="section|subsection">
<xsl:variable name="name">
+ <xsl:if test="local-name()='subsection' and
+ count(//*[(local-name()='section' or local-name()='subsection') and @name=current()/@name]) > 1
+ ">
+ <xsl:value-of select="concat(ancestor::section/@name, '/')"/>
+ </xsl:if>
<xsl:value-of select="@name"/>
</xsl:variable>
<li><a href="#{$name}"><xsl:value-of select="@name"/></a>