archer2002
Programmer
Hello, I have the XSLT question.
I have the XML like
<nodes>
<node id = "1"/>
<node id = "1"/>
<node id = "1"/>
<node id = "2"/>
<node id = "2"/>
<node id = "2"/>
<node id = "3"/>
<node id = "3"/>
<node id = "3"/>
</nodes>
I have XSLT for-each loop like:
<xsl:for-each select="/nodes/node">
<xsl:value-of select="@id"/>
...
</xsl:for-each>
I have output:
1
1
1
2
2
2
3
3
3
But I want each node with unique @id to be passed ONLY ONCE!
I other words I wanna have th output like
1
2
3
Please, help....
Sincerely,
Arsen
I have the XML like
<nodes>
<node id = "1"/>
<node id = "1"/>
<node id = "1"/>
<node id = "2"/>
<node id = "2"/>
<node id = "2"/>
<node id = "3"/>
<node id = "3"/>
<node id = "3"/>
</nodes>
I have XSLT for-each loop like:
<xsl:for-each select="/nodes/node">
<xsl:value-of select="@id"/>
...
</xsl:for-each>
I have output:
1
1
1
2
2
2
3
3
3
But I want each node with unique @id to be passed ONLY ONCE!
I other words I wanna have th output like
1
2
3
Please, help....
Sincerely,
Arsen