|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Problem with obtaining distinct values from a var
> 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 :-)
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








