1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
| <xsl:variable name="id" select="concat('toc.', @id)" />
<xsl:variable name="class" select="concat('tocLevel',@level)" />
<xsl:variable name="displayTextId" select="concat($id, '.displayText')" />
<xsl:variable name="toggleTextId" select="concat($id, '.toggleText')" />
<div>
<xsl:attribute name="class"><xsl:value-of select="$class" /></xsl:attribute>
<a class="toggleLink">
<xsl:attribute name="id"><xsl:value-of select="$displayTextId" /></xsl:attribute>
<xsl:attribute name="href">javascript:toggle('<xsl:value-of
select="$id" />');</xsl:attribute>
<xsl:text>+</xsl:text>
</a>
</div>
</div> |
Partager