This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: the nearest ancestor with the attribute
- To: Dimitre Novatchev <dnovatchev at yahoo dot com>
- Subject: [xsl] Re: the nearest ancestor with the attribute
- From: Jeni Tennison <mail at jenitennison dot com>
- Date: Thu, 18 Jan 2001 15:31:31 +0000
- CC: xsl-list at lists dot mulberrytech dot com
- Organization: Jeni Tennison Consulting Ltd
- References: <20010118151419.955.qmail@web6301.mail.yahoo.com>
- Reply-To: xsl-list at lists dot mulberrytech dot com
Hi Dimitre,
I think I've got it straight in my head now...
> 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?
I expect that they'll be sorted in the same implementation-specific
order as the rest of the attributes: probably alphabetically.
> 2. (//* | //@*)
> What is the "document order for the above node-set?
The document element, its attributes, its first child, its attributes,
its first child, its attributes and so on. Basically, the element
first, then the attributes defined on that element, then the element
children of that element. In:
<foo bar="bar">
<baz />
</foo>
The document order would be the foo element, the bar attribute and the
baz element.
Cheers,
Jeni
---
Jeni Tennison
http://www.jenitennison.com/
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list