Is it possible to use a variable to build a comma delimited list of attribute values? I am using a for loop to iterate through a xml doc. While I am doing this I would like to build a comma-delimited list of values obtained from the same element/attribute as I for-loop. I will then use this list in a href.
Here is sample xml:
<rs:data>
<z:row Position=1 LedgerID="619568"/>
<z:row Position=2 LedgerID="649185"/>
<z:row Position=3 LedgerID="619642"/>
</rs:data>
I would like to create a variable such as:
<xsl:variable name="LedgerIDString"/>
and after the last loop have the variable value be
="619568,649185,619642"
Can this be done?
Here is sample xml:
<rs:data>
<z:row Position=1 LedgerID="619568"/>
<z:row Position=2 LedgerID="649185"/>
<z:row Position=3 LedgerID="619642"/>
</rs:data>
I would like to create a variable such as:
<xsl:variable name="LedgerIDString"/>
and after the last loop have the variable value be
="619568,649185,619642"
Can this be done?