Thomas Bayer wrote:
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?
Well, if you are copying from input to output and want to keep the attributes
in alphabetic order, you could so something like
<xsl:template match = "*">
<xsl:for-each select = "@*">
<xsl:sort select = "name()"/>
Anthony B. Coates, Data Architect
MDDL Editor (Market Data Definition Language)
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list