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

Subject: Re: [xsl] General rule for designing XPath expressions to return items in document order?
From: Martin Honnen <Martin.Honnen@xxxxxx>
Date: Thu, 09 Jan 2014 11:44:40 +0100
Costello, Roger L. wrote:

Consider this XML:

<Document>
     <head>
         <head>B</head>
         A
     </head>
</Document>

Clearly "A" comes after "B" in the document. But this XPath:

//head

results in outputting the latter value ("A") first and the earlier value ("B") second.

I don't think so,
//head
selects the two head elements and if you access the string value of the first one you get the concatenation of all its contents that is


"
       B
   A
   "

Current Thread