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

Re: XML Schemas patterns (was: Re: Defining recursive elements?)

From: Pete Cordell <petexmldev@tech-know-ware.com>
Date: Fri, 18 May 2007 10:42:52 +0100
Message-ID: <004c01c79930$ed42b3c0$4200a8c0@Codalogic>
To: "Michael Kay" <mike@saxonica.com>, <noah_mendelsohn@us.ibm.com>
Cc: <xmlschema-dev@w3.org>
Re: XML Schemas patterns (was: Re: Defining recursive elements?)

----- Original Message From: "Michael Kay" <...>

> Also of course there is the terrible danger of writing
>
> <xs:element name="z">
>  <xs:complexType>
>   <xs:sequence>
>     <xs:element name="e"/>
>   </xs:sequence>
>  </xs:complexType>
> </xs:element>
>
> ...
>
> an error whose only effect is that invalid documents are not detected as
> such.

I think you're saying that if a local element was only allowed to use the 
ref attribute (rather than name and type), things would be better.

Personally, I think a better fix to this problem would be to not allow 
default types.  So if a name was present, then either a type attribute 
must be present or (less preferably) a local type definition.

Pete.
--
=============================================
Pete Cordell
Tech-Know-Ware Ltd
for XML Schema to C++ data binding visit
 http://www.tech-know-ware.com/lmx/
 http://www.codalogic.com/lmx/
=============================================
Received on Friday, 18 May 2007 09:43:16 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.