[Xpath-ng] FIXPath (XPath NG core) straw man draft posted
Berend de Boer
berend at xsol.com
Sun Jan 5 17:12:32 MST 2003
Uche Ogbuji wrote:
>I've been working on this here and there as time has allowed, but I thought it
>was better to just get out something respectable and make the refinements
>among the group, so I finished up a first draft of the XPath NG core this
>weekend.
>
Section "Overview"/*
Issue: */ The merge operation is defined with location paths in mind.
But what about reverse axes? Des this mean that a merge cannot always
resolve to document order?
As you can walk nodes of a document in document order (whatever that
means...), give the first node the number 1 and the next node the
previous number + 1, it follows that every node in a document has a
unique number (the node id) and that sorting nodes by that number gives
you the nodes in document order.
Merging two lists, sorting them by the node id will produce the asked
for result, so it's not an issue IMO.
--
Regards,
Berend. (-:
More information about the Xpath-ng
mailing list