|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: the nearest ancestor with the attribute
At 01/01/18 13:07 +0000, Jeni Tennison wrote:
Since I started this confusion in the first place, can I summarise and check that I've got it right now? I find it is more succinct to say: "Nodes from the attribute and namespace axes are always in an arbitrary implementation-defined order, while nodes from all other axes are in proximity order within location step expressions and in document order in location path expressions." Note that attribute and namespace axes are *not* unordered (you can index into them), just that the order cannot be relied upon. There is an important nuance. Since a predicate can be applied to a location path expression, as in the union of two other path expressions, that predicate is always evaluated in document order. xsl:value-of and xsl:for-each deal with location path expressions (not location step expressions), therefore their evaluation is done in document order. This has proven to be a simple rule-of-thumb for students. .................... Ken
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








