|
Subject: Re: Simple XPath question From: David Carlisle <davidc@xxxxxxxxx> Date: Mon, 22 Nov 1999 11:24:40 GMT |
> Then a solution is : It doesn't work as > following-sibling::PERSON/@lastname = ./@lastname and > following-sibling::PERSON/@firstname = ./@firstname does not force that it is the same following-sibling. ie it selects a PERSON if some later person has the same firstname, and a third person has the same lastname. You can make the selection in various ways in xslt but I suspect Paul is right that you can't do it in a single xpath expression unless you give yourself an extension function that (say) returns a string uniquely generated from the firstname and lastname attributes of an element node, then you could do dpc:bothnames(following-sibling::PERSON)=dpc:bothnames(PERSON) David XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| RE: Simple XPath question, Sebastien Sahuc | Thread | Re: Simple XPath question, Nikita Ogievetsky |
| XSLT and non-closing HTML tags, Frederic Schwebel | Date | Re: Simple XPath question, Nikita Ogievetsky |
| Month |