[XMLSCHEMA-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: [XML Schema 1.1] The <restriction> element is not declared in the DTD for XML Schema 1.1

From: Costello, Roger L. <costello@mitre.org>
Date: Fri, 3 Jul 2009 18:10:52 -0400
To: "xmlschema-dev@w3.org" <xmlschema-dev@w3.org>
Message-ID: <9E51F88D5247B648908850C35A3BBB500400458C5A@IMCMBX3.MITRE.ORG>
RE: [XML Schema 1.1] The <restriction> element is not declared in    the  DTD for XML Schema 1.1

Perhaps I'm not understanding. Shouldn't the declaration for restriction be this:

     <!ELEMENT xsd:restriction
         ( xsd:annotation?,
           (
             xsd:openContent?, (xsd:all | xsd:choice | xsd:sequence | xsd:group)?
           |
             (xsd:simpleType?, xsd:facet*)
           ),
           (xsd:attribute | xsd:attributeGroup)*,
           xsd:anyAttribute?
         )> 

Note the addition of an optional xsd:openContent prior to (xsd:all ...)

Is this correct?

/Roger

> -----Original Message-----
> From: C. M. Sperberg-McQueen [mailto:cmsmcq@blackmesatech.com] 
> Sent: Friday, July 03, 2009 12:48 PM
> To: Costello, Roger L.
> Cc: C. M. Sperberg-McQueen; xmlschema-dev@w3.org
> Subject: Re: [XML Schema 1.1] The <restriction> element is 
> not declared in the DTD for XML Schema 1.1
> 
> 
> On 3 Jul 2009, at 10:09 , Costello, Roger L. wrote:
> 
> >
> >
> > Shouldn't openContent be in there?
> 
> 
> Er, Roger, we are talking about DTDs here, remember?
> 
> DTDs don't have wildcards, apart from the ANY keyword,
> which is not useful as a substitute for open content.
> 
> -- 
> ****************************************************************
> * C. M. Sperberg-McQueen, Black Mesa Technologies LLC
> * http://www.blackmesatech.com
> * http://cmsmcq.com/mib
> * http://balisage.net
> ****************************************************************
> 
> 
> 
> 
> 
Received on Friday, 3 July 2009 22:11:30 GMT

Subscribe to the Stylus Scoop newsletter for helpful XML tips and tutorials.
Email
First Name
Last Name
Company

Download Stylus Studio 6 XML Enterprise Edition

Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2007 All Rights Reserved.