This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: last attribute ?
- To: "'xsl-list at mulberrytech dot com'" <xsl-list at mulberrytech dot com>
- Subject: RE: last attribute ?
- From: Kay Michael <Michael dot Kay at icl dot com>
- Date: Wed, 27 Sep 2000 16:18:58 +0100
- Reply-To: xsl-list at mulberrytech dot com
> The original statement by Mike Kay indicated that the order
> of attributes returned by xsl:for-each was not reliable
> (which makes sense). I then made my leap (uh-oh) and assumed
> that this would also apply to the order of elements that are
> returned by xsl:for-each.
No, elements are processed in document order, which is well-defined.
Actually the XML spec itself doesn't say that element order is significant
and attribute order isn't, but it's part of the folklore, subsequently
enshrined in things like the XML Infoset and the XPath tree model.
Mike Kay
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list