[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

xml element order

Subject: xml element order
From: "Laura Jenkins" <xsl_list@xxxxxxxxxxx>
Date: Mon, 28 Oct 2002 14:16:00 +0000
xml element order
Hello people,
I have an xml whose DTD is as follows..
<?xml version="1.0" encoding="UTF-8"?>

<!ELEMENT University (name?, area?)>
<!ELEMENT name (#PCDATA)>
<!ELEMENT area(#PCDATA)>
The University Element has a sequence of name, and area elements.Which would mean that these elements have to appear in the XML in the same order that it is in the DTD.
This is causing a problem for us because we are aware of the elements which we want but have no control over the order of the elements in the xml file.Since it is an automated process that ends in a transformed output file using xslt,every time we end up with an error saying the xml file is not valid.. Is there any way of making the order of the elements FLEXIBLE..
so that for the same DTD, the elements may appear as..
<University>
<name>my name</name>
<area>My area </area>
</University>


or

<University>
<area>My area </area>
<name>my name</name>
</University>


Thanks very much ---


_________________________________________________________________
Get a speedy connection with MSN Broadband.? Join now! http://resourcecenter.msn.com/access/plans/freeactivation.asp



XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list



Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.