xsl-list
[Top] [All Lists]

Re: [xsl] General rule for designing XPath expressions to return items in document order?

2014-01-08 05:41:48
David Carlisle wrote:

        Path expressions constructed with  / always 
        returns nodes in document order.

Section 19.1 of the XSLT 3.0 specification says:

... evaluation of the path expression //section/head will not always deliver 
nodes in document order; this can be seen by examining the source document 
below, where a child of the first section appears in document order after a 
child of the second section:

<section>
  <section>
     <head/>
  </section>
  <head/>
</section>

I'm confused. David says one thing, the spec says the opposite. Who's right?

/Roger

--~------------------------------------------------------------------
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>