i need to loop through all the nodes in the xml document
and append the values with comma ( , )
finally after the last element i should not have commma (,)
can any body help me.
thanking you,
Ramana kumar.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can do something like this:
The
position()function returns the index of the current element in thefor-eachcontext, andlast()returns the index of the last element.The Conditional Processing with
xsl:ifsection of the XSLT documentation provides more information about this example.