[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] XPATH: get not repeated nodes


Subject: Re: [xsl] XPATH: get not repeated nodes
From: David Carlisle <davidc@xxxxxxxxx>
Date: Wed, 25 Feb 2004 15:16:19 GMT


> I know it, I saw it after sending the question, but it does not work either.

The xpath you posted (with or without the @) is legal xpath so if it
"doesn't work" then it means that either this xpath is not spcifying what
you think it is specifying, or that your input file is not of the form
that you expect.

But since you haven't said what the input file looks like, or what
output you expect, or what output you got, it's impossible to do
anything other than make blind guesses.

I'll note that in
//V14[cod='1CA8ADH7P5..A0']/V16/VEH[not(@tap=preceding::VEH/@tap)]

you are checking _all_ preceding VEH/@tap attributes, not just those
contained within the specified V14 elements. that may or may not be what
you want to do.

This sounds like a grouping problem (based on the subject line)  so you
may want to check the faq and jeni's site for grouping hints.

David


-- 
http://www.dcarlisle.demon.co.uk/matthew

________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. 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



Current Thread
Keywords