On 29/09/2010 12:35 PM, Burkert, Michael wrote:

<xslt:for-each select="set:distinct(//namespace::*)"><xslt:text>result</xslt:text>

</xslt:for-each>

Which version of Saxon are you using? I don't think Saxon has supported the exslt set:distinct() function for a long time, because it was superseded by features such as distinct-values() in XSLT 2.0.

I tried your code snippet with Saxon 6.5.5, and it gave me the correct result.

So I think you need to provide more information: what version of Saxon are you running, what is your source document, and what is your stylesheet?

Michael Kay
Saxonica