I am working on an XSLT which transforms a multi-level XML into some plain text code, similar GWBASIC. I need the output to have line numbers, such as
10 ...
20 ...
30 ...
etc.
I can use
<xsl:value-of select="$LineNum">
to display a variable, the only problem is that I cannot figure out how to add 10 to it each time.
I tried
<xsl:variable name="LineNumber" select="$LineNumber+10" />,
but that isn't exactly working well. Thoughts?
10 ...
20 ...
30 ...
etc.
I can use
<xsl:value-of select="$LineNum">
to display a variable, the only problem is that I cannot figure out how to add 10 to it each time.
I tried
<xsl:variable name="LineNumber" select="$LineNumber+10" />,
but that isn't exactly working well. Thoughts?