How can I loop through a Comma separated string which I am passing as a parameter in XSLT 1.0?
Ex-
<xsl:param name="UID">1,4,7,9</xsl:param>
I need to loop the above UID parameter and collectd nodes from within each of the UID in my XML File
Here is an XSLT 1.0 solution using the
str-split-to-wordstemplate of FXSL.Note that this template allows to split on multiple delimiters (passed as a separate parameter string), so even
1,4 7;9will be split without any problems using this solution.When this transformation is applied on the following XML document:
the wanted, correct result is produced: