>(the order of attributes gets changed).
In XML, the order of attributes is officially Not Meaningful, and most XML tools will feel free to reorder them if that makes them easier to process. Simply putting the file through one of the Xerces testcases may be enough to do that, without Xalan ever getting near it. So that isn't surprising. But the question of whether a META tag is _generated_ by stylesheet processing when output mode is set to HTML is definitely up to Xalan's logic.
