Re: Getting all the attribute values
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)
(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