Altova Mailing List Archives>Archive Index >xmlschema-dev Archive Home >Recent entries >Thread Prev - XS expressivity problem >Thread Next - restricting minOccurs on a choice tag Re: XS expressivity problemTo: xmlschema-dev@--.--- Date: 8/5/2004 6:34:00 PM Should I also understand that DTDs are not fully convertible to XML schemas? Here's an excerpt of a DTD: <!ELEMENT ... ((KIT? , STOCKS) | (STOCKS+ , PRICE , ...)) and here is an excerpt of the XSD generated with oXygen (I found it in your signature) <xs:choice> <xs:sequence> <xs:element minOccurs="0" ref="KIT"/> <xs:element ref="STOCKS"/> </xs:sequence> <xs:sequence> <xs:element maxOccurs="unbounded" ref="STOCKS"/> .... </xs:sequence> </xs:choice> As you can see, it is almost the same situation as above. Or is it that the DTD is not valid? oXygen says it is valid, and I have no further knowledge on this issue. As a regular expression it is very valid (at least imo) Regards, Cipi "George Cristian Bina" <george@s...> wrote in message news:41121214.90003@s...... > > Hi Ciprian, > > > I planned to use the following in a schema: inside an <choice> group > having > > several elements with the same name but different types. Can I write > this in > > a schema? > [...] > > 1. Is this construction allowed by the W3C schema specifications? > > No, you cannot do this in a W3C XML Schema. > See http://www.w3.org/TR/xmlschema-1/#cos-element-consistent for details. > > Best Regards, > George > ----------------------------------------------- > George Cristian Bina > <oXygen/> XML Editor & XSLT Editor/Debugger > www.---.com > > From george@s... Thu Aug 5 10:34:48 2004 Return-Path: <george@s...> X-Original-To: | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
