[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: having problems using the all compositor
Thank you for the reply. I had a 80% idea of that I could not achieve my goals without XML structure changes, but needed to here the opinion of others just in-case there was a workaround that I was un-familiar with. Bill Riegel LandMark Graphics 713-839-3388 -----Original Message----- From: ht@c... [mailto:ht@c...] Sent: Monday, June 16, 2003 11:06 AM To: Bill Riegel Cc: 'xml-dev@l...' Subject: Re: having problems using the all compositor Bill Riegel <BRiegel@l...> writes: > Structure > > <Table> > <attribute1>name</attribute1> > <attribute2>5</attribute2> > <out_of_hierarchy_table1> > <attribute1>red</attribute1> > </out_of_hierarchy_table1> > <out_of_hierarchy_table2> > <attribute1>green</attribute1> > </out_of_hierarchy_table2> > <child_table1> > <attribute1>cow</attribute1> > </child_table1> > <child_table2> > <attribute1>horse</attribute1> > </child_table2> > </Table> > > Desire: > What to have an order that dictates: > Table's attributes occurs first > Out_of_hiearchy_tables occur second > Child_tables occur last. > > But with each group allow an un-order list. > i.e. allow attribute2 before attribute1 > allow out_of_hiearchy_table2 before out_of_hierarchy_table1 > allow child_table2 before child_table1 W3C XML Schema cannot achieve this if the elements involved are restricted to appear exactly once. You are only allowed one all group which must be the entire content model. So either you have to wrap the three groups in their own elements, e.g. <attributes>, <ooh_tables> and <child_tables>, which are strictly ordered in a sequence, and which each have an <xs:all> model, or just fix an order and stick with it. ht -- Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh Half-time member of W3C Team 2 Buccleuch Place, Edinburgh EH8 9LW, SCOTLAND -- (44) 131 650-4440 Fax: (44) 131 650-4587, e-mail: ht@c... URL: http://www.ltg.ed.ac.uk/~ht/ [mail really from me _always_ has this .sig -- mail without it is forged spam]
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|