Altova Mailing List Archives>Archive Index >xmlschema-dev Archive Home >Recent entries >Thread Prev - how to guarantee elements order >Thread Next - Call for Submissions: ICIMP 2007 & ICDT 2007 & ICGD&BC 2007, Silicon Valley, July 1-6, 2007 how to define a recursive type depth?To: xmlschema-dev@--.--- Date: 2/10/2007 6:05:00 PM Hi. In an element "interpret" I want to allow normal text and the "b" (bold) "u" (underline) and the "br" tag. Example: <interpret> this is a normal text. this is a <b>bold</b> text <br/> this is a <b><u>bold + underline</u></b> text </interpret> I have defined the following schema: .... <xs:complexType name="interpretationsTyp" mixed="true"> <xs:choice> <xs:element name="b" type="interpretationsTyp" minOccurs="0" maxOccurs="unbounded"/> <xs:element name="u" type="interpretationsTyp" minOccurs="0" maxOccurs="unbounded"/> <xs:element name="br" minOccurs="0" maxOccurs="unbounded"> <xs:complexType/> </xs:element> </xs:choice> </xs:complexType> .... How can I define the cursion depth? Because the following shouldn't be allowed (which is now available): <b><u><b><u>text</u></b></u></b> Thanks Markus -- "Feel free" - 10 GB Mailbox, 100 FreeSMS/Monat ... Jetzt GMX TopMail testen: www.gmx.net/de/go/mailfooter/topmail-out From mike@s... Mon Feb 12 08:18:09 2007 Received: from lisa.w3.org | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
