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

RE: including a schema document multiple times

From: Michael Kay <mike@saxonica.com>
Date: Mon, 18 Sep 2006 20:40:23 +0100
To: "'Sandy Gao'" <sandygao@ca.ibm.com>, "'Wolfgang Jeltsch'" <wolfgang@jeltsch.net>
Cc: <xmlschema-dev@w3.org>
Message-ID: <001501c6db5a$492fd950$6601a8c0@turtle>
RE: including a schema document multiple times
It claims to be carefully worded, but many readers would disagree! In
particular, it relies on the concept of two schema components being
"identical", which is nowhere defined. In fact it is explicitly undefined:
in 3.4.6 we read "conforming implementations may disagree as to whether
components are identical".
 
Michael Kay
http://www.saxonica.com/


  _____  

From: xmlschema-dev-request@w3.org [mailto:xmlschema-dev-request@w3.org] On
Behalf Of Sandy Gao
Sent: 18 September 2006 18:47
To: Wolfgang Jeltsch
Cc: xmlschema-dev@w3.org
Subject: Re: including a schema document multiple times



The spec is clear about multiple inclusion of the same document is OK. See
sections 4.2.1. 

"Note: The above is carefully worded so that multiple <include>ing of the
same schema document will not constitute a violation of clause 2 of Schema
Properties Correct (ยง3.16.6), but applications are allowed, indeed
encouraged, to avoid <include>ing the same schema document more than once to
forestall the necessity of establishing identity component by component." 

It's less clear about circular inclusion, but it's generally believed that
it's also allowed. 

Thanks,
Sandy Gao
XML Parser Development, IBM Canada
(1-905) 413-3255
sandygao@ca.ibm.com




Wolfgang Jeltsch <wolfgang@jeltsch.net> 
Sent by: xmlschema-dev-request@w3.org 


18/09/2006 12:36 PM 


To
xmlschema-dev@w3.org 

cc

Subject
including a schema document multiple times

	





Hello,

is it problematic to include a schema document multiple times via different 
paths?  For example, I might have a schema document which includes schema 
documents A, B, and C which in turn include a schema document providing
basic 
definitions.

What about circular inclusion?

Best wishes,
Wolfgang
Received on Monday, 18 September 2006 19:40:43 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.