I have a xml like this:
<root>
<row>
<col name="col1"><root><row><col name="COL_NAME_1">col_value_1</col>;</row></root></col>
<col name="col2"><root><row><col name="COL_NAME_2">col_value_2</col>;</row></root></col>
</row></root>
I need to get escaped collection from col1 and iterate through its rows. I'm using exsl:node-set function. Here is my simplified xsl:
<xsl:template match="/">
<xsl:variable name="collection" select="exsl:node-set(./root/row/col[@name='col1'])" disable-output-escaping="yes" />
<xsl:for-each select="($collection)/root/row">
<!-- ... -->
</xsl:for-each></xsl:template>
I can correctly read value from variable $collection using xsl:value-of function but i can't iterate over it as if there were no rows. Any ideas what am I doing wrong?