Hi Jonathan, I had not noticed that the latest draft (July 2004) allows for multiple location hints in schema import statements. Thanks for clarifying this. Panagiotis > -----Original Message----- > From: Jonathan Robie [mailto:jonathan.robie@datadirect.com] > Sent: Saturday, August 14, 2004 9:50 AM > To: Panagiotis Reveliotis > Cc: public-qt-comments@w3.org > Subject: Re: Error Code XQ0058 > > > Panagiotis Reveliotis wrote: > > > In "XQuery 1.0: An XML Query Language" / F Summary of Error > Conditions (Non-Normative), > > it is stated that: > > > > err:XQ0058 > > > > It is a static error if multiple schema imports specify > the same target namespace. > > > > I am wondering why is this considered an error, given that > XML Schema allows for more than > > one schema files to have the same targetNamespace. In fact, > it allows for multiple schemas > > sharing the same targetNamespace to be combined using the > include mechanism. > > Hi Panagiotis, > > First, I'm going to treat this as a question unless you tell > me that you > want to raise an issue on this subject. > > Each XQuery implementation has its own way of locating schema > documents. > A schema import tells the implementation to import the schema for a > given target namespace - this schema may consist of any > number of schema > documents (which you refer to as 'schema file'). The schema that is > imported includes all the schema documents the implementation > finds for > that namespace - so there's nothing left to import. > > In this model, the schema location is only a hint, and schema > import for > a given schema happens all at once. Multiple locations may > be given as > hints in a single import. > > This is, of course, different from the approach taken in XML > Schema and > in several programming languages. > > Is this clear? Do you have concerns about this approach? > > Jonathan > >Received on Sunday, 15 August 2004 02:22:26 GMT
This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:14:08 GMT