Verified Commit 35f2c41a authored by Philipp Zschumme's avatar Philipp Zschumme
Browse files

Fixes toc generation for struct-ref tags

parent 25ef5409
Pipeline #3040 passed with stages
in 12 minutes and 32 seconds
......@@ -67,16 +67,16 @@
</xsl:template>
<!-- templates with mode=toc create the content menu -->
<xsl:template match="section[program|section|struct-ref]" mode="toc">
<xsl:template match="section[program|section|struct-ref[@name]]" mode="toc">
<ul class="tc-floatleft">
<xsl:variable name="anzahl" select="count(program|section|struct-ref)" />
<xsl:if test="$anzahl &lt;= 1">
<xsl:variable name="anzahl" select="count(program|section|struct-ref[@name])" />
<xsl:if test="$anzahl = 0">
<li><a onclick="tcOpenSection(&quot;{@name}&quot;)" href="#{@name}"><xsl:value-of select="@name"/></a></li>
</xsl:if>
<xsl:if test="$anzahl &gt; 1">
<xsl:if test="$anzahl &gt;= 1">
<li class="tc-submenu"><a onclick="tcOpenSection(&quot;{@name}&quot;)" href="#{@name}"><xsl:value-of select="@name"/></a>
<ul>
<xsl:for-each select="program|section">
<xsl:for-each select="program|section|struct-ref[@name]">
<li><a onclick="tcOpenSection(&quot;{@name}&quot;)" href="#{@name}"><xsl:value-of select="@name"/></a></li>
</xsl:for-each>
</ul>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment