Guest bern Posted January 15, 2007 Share Posted January 15, 2007 Hi I have to loop through a number of lines and also insert the line count into the transformed XML.Is there anyway I can do this through XSL function?Thanks Link to comment Share on other sites More sharing options...
kvnmck18 Posted January 25, 2007 Share Posted January 25, 2007 Yes.<xsl:count select="NODE or ATTRIBUTE"/> Link to comment Share on other sites More sharing options...
boen_robot Posted January 26, 2007 Share Posted January 26, 2007 WTF? I've never heared of this <xsl:count/> element...I know the count() function, but that's not exactly useful here.If each line is in it's own element, you can simply use the position() function for-each such element. If not... I have to know how you plan to display the content of each line. Link to comment Share on other sites More sharing options...
kvnmck18 Posted February 5, 2007 Share Posted February 5, 2007 <xsl:number/> or count()MY MISTAKE I wasn't thinking> Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now