|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Handling Duplicate Lines in XSL
Pietschmann,
Sorry for not being clear on what it was doing. I was getting output as
Cust1 443 West
Cust1 443 East
Cust1 443 East
Cust1 443 West
that means it is returning all the values without suppressing the duplicate values
I tried with your suggestion, but still getting the same result.
thanks for your help.
~Mur
-----Original Message-----
From: J.Pietschmann [mailto:j3322ptm@xxxxxxxx]
Sent: Friday, October 31, 2003 3:06 PM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re: Handling Duplicate Lines in XSL
Murali Korrapati wrote:
> But I have a slightly different problem though.
>
> <xsl:for-each select="root[not(foo/bar = preceding-sibling::foo/bar)]">
> <xsl:value-of select="."/><br/>
> </xsl:for-each>
You probably want to select the foo instead of the root element:
<xsl:for-each select="root/foo[not(bar = ../preceding-sibling::foo/bar)]">
> but, it doesn't seem like working.
Well, there are many ways to "not work". You should be
more specific, for example "no output" or "I got this
output ..."
J.Pietschmann
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
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








