xsl-list
[Top] [All Lists]

RE: [xsl] ATTRIBUTE ORDER

2006-05-27 07:54:09
You can, however, always sort your attributes: if they're 
always in alphabetical order they'll always be in the same order.

<xsl:for-each select="@*">
   <xsl:sort select="name()"/>
   ...
</xsl:for-each>

Since collating sequences for xsl:sort aren't defined in the spec, you've no
guarantee that this will give the same attribute order in different
implementations; for example the handling of hyphens within sort keys is
known to vary from one XSLT processor to another.

Michael Kay
http://www.saxonica.com/


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>