|
next
|
 Subject: Separator -only- between fields Author: Pete Danes Date: 05 Nov 2009 06:10 AM
|
My apologies if this is a silly question, but I'm rather new at this, and searching the forums did not shed any light.
I have a working transform that extracts a set of names from an XML file, each with their own tag:
<name>Fred</name>
<name>Bill</name>
<name>Andy</name>
<name>Mike</name>
I need to output them with the names separated by a semicolon, but NOT after the last one, i.e.:
Fred; Bill; Andy; Mike
In normal programming languages, this is trivial, but I haven't been able to figure out how to do this in XSL. I do have another field available, which contains the number of names, if that would be of any use, something like:
<count-of-names>4</count-of-names>
Pete
|
|
|