[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: the nearest ancestor with the attribute

Subject: Re: the nearest ancestor with the attribute
From: David Carlisle <davidc@xxxxxxxxx>
Date: Fri, 19 Jan 2001 09:33:51 GMT
xslt nearest ancestor attribute
>(b) between two runs of a stylesheet?
>(c) between two XSLT processors?

either of those

>I'm pretty sure that it's only the latter; on a quick scan I can't
>find anything that says that the attributes must be in the same order
>even within a run,

Within a run the order is fixed. 
The input to XSL is a tree in which there is a complete order applied to
the set of nodes. This ordered input tree does not change during a run.

The "implementation defined" variability is in the way the ordered tree
is built from a linear XML syntax. As Mike commented Saxon will give
different results with different parsers, as the XSL engine will have
effectively been handed different ordered trees. (In fact its probably
the XSL code building the tree from sax events rather than really being
passed an XPath tree model, but that is an implementation detail)
Of course there need never have been any linear input at all. MSXML
for example gets its input from a DOM object, that may have been
manipulated in memory with attributes added/changed/deleted etc.
Again the end result has to be ordered somehow before XSL starts work
but it isn't specified how that ordering is done. Once MSXSL gets that
tree though, it is fixed for the duration of the stylesheet.

David

_____________________________________________________________________
This message has been checked for all known viruses by Star Internet delivered
through the MessageLabs Virus Control Centre. For further information visit
http://www.star.net.uk/stats.asp

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.