The layout of the XML is also preserved by the stylesheet as everything in the source is copied to the output. Xalan only removes whitespaces outside of the root element.
I would be suprised if Xalan keeps the order of attributes, let alone the whitespace between them.
That's true of course as they make no difference in XML.
But no XML parsing solution I know of keeps that information, so the users will just have to live with it. Either they choose for the automated conversion with the annoyance that some things might be rearranged, or they do the conversion manually.
I will change the target appropriately.
Joerg
