XSLT-problem with sequence attributes

Development (ABAP Development WorkBench, ABAP/4 programming)

Moderators: Snowy, thx4allthefish, YuriT, Gothmog

Post Reply
hsenden
Posts: 167
Joined: Mon Oct 21, 2002 2:22 am
Location: Wijlre, Netherlands
Contact:

XSLT-problem with sequence attributes

Post by hsenden » Wed Oct 19, 2005 3:32 am

Hi,

in my XSLT-program (i'm a real newbie!) i'm adding dynamically attributes and their values to a tag, by using the following code :

Code: Select all

<SUPPLIER>  
<xsl:attribute name="FUNLOC">    <xsl:value-of select="SUPPLIER_FUNLOC" />  </xsl:attribute>  
<xsl:attribute name="NAME">    <xsl:value-of select="SUPPLIER_NAME" />  </xsl:attribute>  
<xsl:attribute name="LOCATION">    <xsl:value-of select="SUPPLIER_LOCATION" />  </xsl:attribute>  ...  </SUPPLIER>
The problem is that the attributes in the resulting xml-file are alphabetically ordered. For instance :
<SUPPLIER FUNLOC="9522222" LOCATION="NL" NAME="Test vendor VMOI">

How can i arrange that the result of the xml-file is a sequence of entrance is taken, so
<SUPPLIER FUNLOC="9522222" NAME="Test vendor VMOI" LOCATION="NL" >

regards,
Hans
hans.senden@philips.com

Post Reply