[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: position last and attributes
At 2012-09-20 13:08 -0400, John P. McCaskey wrote:
Though not required to by spec, in practice do the major XSL processors treat attributes in document order, alphabetical order, or any other repeated order? I think they are all different (as they are allowed to be). I doubt they consult each other to come up with common practices. One might decide to put defaulted attributes before specified attributes, or specified attributes before defaulted attributes. When writing XSL, I sometimes need to jump through hoops that could be avoided if I knew the processor would treat the attributes in the same order every time. If I knew what that order is, all the better. In the classroom I tell my students that if they think they need to know the order of attributes to think again ... they probably don't. My code might not work on a different XSLT processor or be guaranteed to work with different revs, but often that's OK. Could you characterize where in your algorithms you find the order of nodes along the attribute axis important or useful? How would you describe the hoops you need to jump through? . . . . . . . . . Ken
|
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
|