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

Re: Re: the nearest ancestor with the attribute

Subject: Re: Re: the nearest ancestor with the attribute
From: David Carlisle <davidc@xxxxxxxxx>
Date: Thu, 18 Jan 2001 15:41:13 GMT
Re:  Re: the nearest ancestor with the attribute

> 1. Some nodes will have attributes that were not explicitly expressed
> in the text of the xml document, but were defined/defaulted in a DTD.
> What will be the "document order" for @* in this case?

DTD implied attributes are no different from explicit ones.
The order is defined but implementation specific.

ie for a given element node . each time you do @*[2] in a run of the stylesheet
you get the same attribute node, as th eattributes (defaulted or not)
are placed in some order when the input tree is constructed.
But you can't guarantee you get the same result if you run the
stylesheet again. (Most likely you will if you use th esame input and
same XSL engine, but that is not guaranteed)


> 2. (//* | //@*)
> What is the "document order for the above node-set?

node sets don't have an order:-)

That set consists of all element and attribute nodes in the
source tree in no particular order.

That _source tree_ has a defined document order
(ie defined by the implementation, and fixed for a given run)

Note that document order _always_ refers to an input tree (either an
input document or a constructed tree from node-set) the order _never_
depends on which set of nodes is in the node set under consideration.


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.