xsl-list
[Top] [All Lists]

RE: Relative XPATH between 2 nodes

2005-01-28 09:31:48

If you are only needing it to work on the given document then 
I think in
general for two element nodes, the shortest relative Xpath 
can always be
expressed in the form

xxx::*[n]


Do you want the shortest XPath expression, or the XPath expression whose
evaluation touches fewest nodes?

   following-sibling::*[5]/child::*[2]

or

   following::*[29]

?

Michael Kay
http://www.saxonica.com/


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>