View Single Post
  #5 (permalink)  
Old July 6th, 2005, 01:08 AM
joefawcett's Avatar
joefawcett joefawcett is offline
Wrox Author
Points: 9,763, Level: 42
Points: 9,763, Level: 42 Points: 9,763, Level: 42 Points: 9,763, Level: 42
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Exeter, , United Kingdom.
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

It depends on the data, you could calculate how many lines are going to be output using XPath functions.

You could also use the xsl:number element to number the lines as they are output but you might not want them numbered.

If neither of those is possible then you'll have to resort to a non XSLT method, e.g. open the file using standard file io methods.

--

Joe (Microsoft MVP - XML)
Reply With Quote