I know, attribute order doesn't matter, and if order matters, something is
wrong. But I generate HTML from XML and there are old tools. So I have to
keep the attribute order. I guess Xalan sorts the attributs alphabetically.
Is there a way, to change the behaviour of Xalan?
An XSLT processor is allowed to emit attributes in any order, regardless of
the order in which they are added to the result tree. The act of adding an
attribute node to the result tree doesn't emit the attribute at that point
in time ... attributes need to be kept around in memory until the first of
the content is added to the tree, at which point the processor can flush
the attributes to the result file in any order it wishes.