Altova Mailing List Archives>Archive Index >xmlschema-dev Archive Home >Recent entries >Thread Prev - Is it possible (simpleType or complexType)? [Thread Next] RE: Is it possible (simpleType or complexType)?To: <prze_moc@------.----.-->, <xmlschema-dev@--.---> Date: 2/21/2005 12:45:00 PM > > Is it possible to define a schema for this? You can define a schema that permits both these options, but not a schema that permits *only* these two options. > > I have element <arg>. I want that <arg> has simpletype > (xs:integer) or only one child <var> and any other elements or text. > I don't want to create a new element e.g <number> for simpletype > > <arg> > 12345 > </arg> > > or > > <arg> > <var/> > </arg/> > Why use the same element name to mean two different things? Define a choice between <int-arg> and <var-arg> with different content models. Michael Kay http://www.saxonica.com/ From brs@i... Mon Feb 21 14:18:03 2005 Received: from lis | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
