xsl-list
[Top] [All Lists]

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

2005-11-29 10:39:52
I am currently using "not", as I believe using "!=" as suggested earlier
would always return true ?
You are probably right. I am not quite sure about the string
convertion here. If they are strings, not(a=b) is equal to a!=b, but
this is not generally the case.

<xsl:for-each
select="$services[not(preceding-sibling::MDBServiceDesc=.)]">
 Do something
</xsl:for-each>

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

What about:
<xsl:for-each 
select="$services[not(preceding-sibling::MDBServiceDesc/text()=text())]">
 ?
You should perhaps do a normalize-space as well.

Regards,
Ragulf Pickaxe :-)

--~------------------------------------------------------------------
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>
--~--