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

Re: xml element order

Subject: Re: xml element order
From: "W. Eliot Kimber" <eliot@xxxxxxxxxx>
Date: Mon, 28 Oct 2002 09:08:23 -0600
xml element order
Laura Jenkins wrote:
Hello people,
I have an xml whose DTD is as follows..
<?xml version="1.0" encoding="UTF-8"?>

<!ELEMENT University (name?, area?)>

[...]


file is not valid.. Is there any way of making the order of the elements FLEXIBLE..

<!ELEMENT University ((name, area?) | (area, name?))? >

Note that the first token in each subgroup has to be required in order to avoid an "ambiguous content model" but it is OK for the whole thing to be optional, as it is in the original (all tokens optional is the equivalent of having the entire model group be optional).

Cheers,

Eliot
--
W. Eliot Kimber, eliot@xxxxxxxxxx
Consultant, ISOGEN International

1016 La Posada Dr., Suite 240
Austin, TX  78752 Phone: 512.656.4139


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.