This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: attribute order
- From: Meltem Kogelbauer <meltem dot kogelbauer at netdecisions dot co dot uk>
- To: xsl-list at lists dot mulberrytech dot com
- Date: Fri, 22 Feb 2002 10:43:01 -0000
- Subject: RE: [xsl] attribute order
- Reply-to: xsl-list at lists dot mulberrytech dot com
I am using Xalan/Xerces. I have tested this with saxon as well and it works
fine. So the order of the attributes can be controlled, if desired, with the
attribute-sets.
Funny, I am using all the time attribute-sets but I have not noticed that
the order could be changed. We are following our standards to have
consistant output everywhere, if it was not the meta tag issue we would not
have noticed this perhaps at all.
cheers all
meltem
-----Original Message-----
From: Andy Joslin [mailto:andy.joslin@ri3k.com]
Sent: Friday, February 22, 2002 10:04 AM
To: xsl-list@lists.mulberrytech.com
Subject: RE: [xsl] attribute order
Hi Peter
I've just tried rearranging the attributes and the processor (in my case,
Xalan/Xerces) does seem to respect the order..
e.g.
<xsl:attribute name="width">580</xsl:attribute>
<xsl:attribute name="cellpadding">0</xsl:attribute>
<xsl:attribute name="cellspacing">0</xsl:attribute>
<xsl:attribute name="border">0</xsl:attribute>
becomes...
<table width="580" cellspacing="0" cellpadding="0" border="0">
I can't speak for other processors, but this works for me. I don't know what
setup Meltem is using, but it would be interesting to see if this behaviour
is consistent across implementations.
cheers
Andy
-----Original Message-----
From: Peter Davis [mailto:pdavis152@attbi.com]
Sent: 21 February 2002 19:34
To: xsl-list@lists.mulberrytech.com
Subject: Re: [xsl] attribute order
It was my experience that processors that change the order tend to
alphabetize the attributes, or, if the processor happens to store the
attributes in a hash-map of some kind, seemingly random order. Have you
tried if rearranging the attribute-set has the same effect in the output?
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list