Oxygen XML Editor
 
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

RE: [xsl] ATTRIBUTE ORDER


Subject: RE: [xsl] ATTRIBUTE ORDER
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Sat, 27 May 2006 15:53:45 +0100

> 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/


Current Thread
 
© 2002-2008 SyncRO Soft Ltd. All rights reserved. | Sitemap | Privacy Policy
This website was created & generated with <oXygen/> XML Editor
Keywords