Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


How to order attributes??

From: heshamelesawy@-----.---
To: NULL
Date: 6/3/2008 5:30:00 AM
I have input XML with this namespace:

<?xml version="1.0" encoding="UTF-8"?>
< xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >

And validate XSL:

<xsl:stylesheet xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"  version="2.0">
 <xsl:output method="xml" encoding="UTF-8" omit-xml-declaration="no"
indent="yes"/>

<eanucc:despatchAdvice xmlns:xsd="http://www.w3.org/2001/XMLSchema"
 xmlns:eanucc="http://www.????.org/schemas/1.3.1/???"
xmlns:C4BE="http://www.???.be/Schema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.????.org/schemas/1.3.1/eanucc
Des_ld_C4Be_1.xsd">

XSL give me output XML with this order

<eanucc:despatchAdvice contentVersion="1.3.1" xmlns:xsd="http://
www.w3.org/2001/XMLSchema" xsi:schemaLocation="http://www.???.org/
schemas/1.3.1/??? Desadv_ld_C4Be_1.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
creationDate="2002-07-01T05:10:10" documentStatus="ACCEPTANCE"
xmlns:C4BE="http://www.???.be/Schema"
xmlns:eanucc="http://www.????.org/schemas/1.3.1/eanucc"
lastUpdateDate="2002-07-01" documentStructureVersion="1.3.1">


Its important to get it in this order


<eanucc:despatchAdvice
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:eanucc="http://www.???.org/schemas/1.3.1/eanucc"
xmlns:C4BE="http://www.????.be/Schema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.???.org/schemas/1.3.1/???
Desadv_ld_C4Be_1.xsd"
contentVersion="1.3.1" documentStructureVersion="1.3.1"
lastUpdateDate="2002-07-01" creationDate="2002-07-01T05:10:10"
documentStatus="ACCEPTANCE">


How to order attributes?


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent