xsl-list
[Top] [All Lists]

Re: Problem with obtaining distinct values from a variable containg a nodeset

2005-11-29 10:42:49

I get the required list output, but still containing the duplicates.

Are the MDBServiceDesc elements siblings (In the original document?)
if not, they presumavly are not siblings in $services either (depending
on whether  System.Xml.XPath.XPathNodeIterator is making copies of teh
selected nodes, or just indexing into the existing tree.

try adding  xsl:value-of select="generate-id(..)" somewhere in that
for-each loop (just as a debugging tool, if you get different ids they
elements have differnt parents so are not siblings

David

________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--