Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

XSL:Line Numbers in text output?

Status
Not open for further replies.

SMerrill

Programmer
Jan 19, 2002
145
US
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=&quot;$LineNum&quot;>

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=&quot;LineNumber&quot; select=&quot;$LineNumber+10&quot; />,

but that isn't exactly working well. Thoughts?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top