Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries [Thread Prev] >Thread Next - Re: XSD: How to nest elements and text XSD: How to nest elements and textTo: NULL Date: 9/3/2008 1:27:00 PM
I'd like to define a paragraph element p in XSD which contains text
(xs:string) and formatting elements i and b (italic and bold). A valid p
element could look like this:
<p>This is <b>bold</b> and this <i>italic</i>.</p>
I'd use something like this:
<xs:complexType name="p">
<xs:sequence minOccurs="0" maxOccurs="unbounded">
<xs:choice>
<xs:element name="i" type="xs:string" />
<xs:element name="b" type="xs:string" />
</xs:choice>
</xs:sequence>
</xs:complexType>
But what do I use for the third option, "raw text", to cover "This is "
and similar sections in the example above?
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
