This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

filtering by ancestor


I'm writing a breadth-first parser but I want to restrict the parse to
/resultset/result[1]
So at any given node I need the subset of following::* that has
/resultset/result[1] as an ancestor.

I was trying to do something like this:
following::*[ancestor::resultset/result-item[1]]
but that's always true since it only tests if result-item[1] exists.

I also tried another approach:
following::*[/result/result-item[1]//node() = current()]
but that just doesnt work..

Any ideas?
Thanks,
Konrad


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]