On 9 January 2014 10:51, Costello, Roger L. <costello(_at_)mitre(_dot_)org>
wrote:
Hello Martin,
I applied this XPath expression
//head
to this XML document
<Document>
<head>
<head>B</head>
A
</head>
</Document>
using oXygen (where SAXON is the XPath processor) and got these results:
A
B
That is, the results are in non-document order.
You are just seeing oXygen's xpath result presentation there... it's
showing you the first <head>'s immediate text node children, but not
its string value.
If you run that xpath as part of a transform, you'll see you get the
string value of the first <head> (so B A) followed be the string value
of the inner <head> (B).
--
Andrew Welch
http://andrewjwelch.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>
--~--