On Wed, January 8, 2014 10:33 am, Costello, Roger L. wrote:
...
I am seeking a general rule for designing XPath expressions to return the
selected items in document order. Can you provide a general rule?
Put '/.' at the end:
If E is any expression that returns a sequence of nodes,
then the expression E/. returns the same nodes in document
order, with duplicates eliminated based on node identity. [1]
Regards,
Tony Graham tgraham(_at_)mentea(_dot_)net
Consultant http://www.mentea.net
Mentea 13 Kelly's Bay Beach, Skerries, Co. Dublin, Ireland
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
XML, XSL-FO and XSLT consulting, training and programming
Chair, Print and Page Layout Community Group @ W3C
[1] http://www.w3.org/TR/xpath20/#abbrev, last list item
--~------------------------------------------------------------------
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>
--~--