OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help



   RE: [xml-dev] having problems using the all compositor

[ Lists Home | Date Index | Thread Index ]

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

-----Original Message-----
From: ht@cogsci.ed.ac.uk [mailto:ht@cogsci.ed.ac.uk] 
Sent: Monday, June 16, 2003 11:06 AM
To: Bill Riegel
Cc: 'xml-dev@lists.xml.org'
Subject: Re: [xml-dev] having problems using the all compositor

Bill Riegel <BRiegel@lgc.com> 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.

  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@cogsci.ed.ac.uk
		     URL: http://www.ltg.ed.ac.uk/~ht/
 [mail really from me _always_ has this .sig -- mail without it is forged


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS