|
[XML-DEV Mailing List Archive Home]
[By Thread]
[By Date]
[Recent Entries]
[Reply To This Message]
XML schema type question
- To: <xml-dev@l...>
- Subject: XML schema type question
- From: "Jeff Greif" <jgreif@a...>
- Date: Thu, 26 Sep 2002 14:51:57 -0700

|
I've seen the XML Schema Type Library's "text" type,
supporting arbitrary mixed content. I have been unable to figure out how
to define a complex type whose contents are any simple type value or any single
element, but not a mixture, where an element of this special type has a certain
set of attributes That is, I'm trying to define
<element name="foo">
<complexType >
??? some kind of restriction of anyType with
either simple or complex content
<restriction base="anyType">
???
<attribute name="a"
...>
<attribute name="b"
...>
</restriction>
???
</complexType>
</element>
so I can say in instance docs
<fooList>
<foo a="x" b="y"
xsi:type="xsd:boolean">true</foo>
<foo a="xx" b="yy"
xsi:type="SomeComplexType">
<someComplexType>...</someComplexType>
</foo>
...
</fooList>
I think I need a disjunction of simpleContent and
complexContent but am uncertain how to produce this.
Jeff
|
|
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
| RSS 2.0 |
 |
| Atom 0.3 |
 |
| |
Stylus Studio has published XML-DEV in RSS and ATOM formats,
enabling users to easily subcribe to the list from their preferred news reader application.
|
Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website.
they were not included by the author in the initial post. To view the content without the Sponsor Links please
click here.
|
|