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

RE: last attribute ?

Subject: RE: last attribute ?
From: Brian Young <Brian.Young@xxxxxxx>
Date: Wed, 27 Sep 2000 09:53:06 -0400
for each xsl last attribute
Hello,

Ok, I made a logical leap (and a bad one at that...).

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.

My code depends (as I'm sure others do...) on xsl:for-each returning document order of elements by default.  Knowing Mike Kay to be a very reliable font of XML/XSL information and with my logical leap in hand, I felt enough concern that I had to ask the question.  :)

As for attribute order, no, I don't care about it.  But I figured whatever mechanism there would be to force it (like an attribute on xsl:for-each) would work on forcing element order, were that to be an issue.  Which it isn't.

Confused yet?  I am.  And the day is still young!

Thanks,
   Brian Young


-----Original Message-----
From: DuCharme, Robert [mailto:Robert.DuCharme@xxxxxxxxxx]
Sent: Tuesday, September 26, 2000 5:34 PM
To: 'xsl-list@xxxxxxxxxxxxxxxx'
Subject: RE: last attribute ?


>Why would the attributes not be processed in document order?  If they are 
>not, how can this be forced?

The term "document order" doesn't apply to a particular element's
attributes. Order doesn't matter with attributes; <test color="red"
age="2"/> and <test age="2" color="red"/> are the same to an XML parser. 

What kind of app are you creating output for that cares about attribute
order? It's not a conformant XML parser, and I've never heard of an HTML
application (browser or otherwise) that cared about attribute order.

Bob DuCharme          www.snee.com/bob           <bob@  
snee.com>  "The elements be kind to thee, and make thy
spirits all of comfort!" Anthony and Cleopatra, III ii


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


 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.