RE: [xsl] ATTRIBUTE ORDER

Subject: RE: [xsl] ATTRIBUTE ORDER
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Sat, 27 May 2006 15:59:06 +0100
> Each attribute will become a column in a table so I would 
> like to iterate over the attributes like:
> 
> 	<xsl:for-each select="@">...</xsl:for-each>
> 
> but, of course I need to rely on the attribute order.


If you know the names of the attributes, then the simplest solution is to
list them in the order you want to process them:

<xsl:for-each select="@qty_ship, @qty_order, @ship, @tray">
...</xsl:for-each>

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

Current Thread