[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Getting all the attribute values
At 09:12 AM 4/7/2000 -0700, Selva, Francis wrote:
why my output looks like this if I run this xsl? For starters, I believe that according the the XML 1.0 Rec, attributes (unlike elements) can't be depended on to be in any particular order once the document's been parsed. As to why your results are in *that* order in particular, as opposed to all the others, I'm guessing, but it may be that whatever parser is running is storing the attribute names in an array sorted on the attribute name, so the attribute/value pairs are (in order) Day Thursday century 20th month April title year (Note that Day, unlike the other attribs, begins with an uppercase letter. For the above theory to be true, uppercase would have to sort before lowercase. Anyone know if that's true?) If this is the case, you're seeing the result not of XSLT behavior, but of parser behavior. ================================================================ John E. Simpson | "After they make styrofoam, what do http://www.flixml.org | they ship it in?" (Steven Wright) simpson@xxxxxxxxxxx | XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|