Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
IAM CMS
toolcompendium
Commits
35f2c41a
Verified
Commit
35f2c41a
authored
Nov 30, 2021
by
Philipp Zschumme
Browse files
Fixes toc generation for struct-ref tags
parent
25ef5409
Pipeline
#3040
passed with stages
in 12 minutes and 32 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/html/toolcompendiumHTML.xsl
View file @
35f2c41a
...
...
@@ -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
<
=
1
"
>
<xsl:variable
name=
"anzahl"
select=
"count(program|section|struct-ref
[@name]
)"
/>
<xsl:if
test=
"$anzahl =
0
"
>
<li><a
onclick=
"tcOpenSection("{@name}")"
href=
"#{@name}"
><xsl:value-of
select=
"@name"
/></a></li>
</xsl:if>
<xsl:if
test=
"$anzahl > 1"
>
<xsl:if
test=
"$anzahl >
=
1"
>
<li
class=
"tc-submenu"
><a
onclick=
"tcOpenSection("{@name}")"
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("{@name}")"
href=
"#{@name}"
><xsl:value-of
select=
"@name"
/></a></li>
</xsl:for-each>
</ul>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment