Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - xslt for ordering attribute with in a node >Thread Next - Re: xslt for ordering attribute with in a node Re: xslt for ordering attribute with in a nodeTo: NULL Date: 8/1/2005 4:16:00 PM Hi,
Tempore 18:01:45, die Monday 01 August 2005 AD, hinc in foro {comp.text.xml} scripsit <gdevah@g...>:
> I was looking for xslt to rearrang the order of attibutes within a
> node.
You're out of luck today: that is not possible.
> xml to xml translation...
>
> <obj d="xslt" a="me" c="to" b="new"/>
> <prop c="it" b="does" a="how" d="matter"/>
>
> to
>
> <obj a="me" b="new" c="to" d="xslt"/>
> <prop a="how" b="does" c="it" d="matter"/>
XML parsers don't distinguish between these 2 element pairs. Document order does not apply to attributes. Also, the attributes' order after serialization (that happens when the XSLT magic is done) is not predictable.
regards,
--
Joris Gillis (http://users.telenet.be/root-jg/me.html)
Deserta faciunt et innovationem appelant
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
