W3C home > Mailing lists > Public > public-xsd-databinding@w3.org > August 2006

ISSUE-68: import patterns

From: <paul.downey@bt.com>
Date: Thu, 24 Aug 2006 16:41:21 +0100
Message-ID: <2A7793353757DB4392DF4DFBBC95225504BFED4B@I2KM11-UKBR.domain1.systemhost.net>
To: <public-xsd-databinding@w3.org>


ACTION-58 required me to propose patterns for xs:import:

   <pattern xml:id="Import" status="basic" origin="ISSUE-39">
      <xpath>xs:import[@namespace and not(@schemaLocation)]</xpath>
   </pattern>

   <pattern xml:id="ImportNamespace" status="basic" origin="ISSUE-39">
      <xpath>xs:import[@namespace @and schemaLocation]</xpath>
   </pattern>

and now we have:

   <pattern xml:id="ImportSchemaNamespace" status="@@@@" origin="ISSUE-68">
      <xpath>xs:import[@namespace = 'http://www.w3.org/2001/XMLSchema']</xpath>
   </pattern>

tools don't seem to barf on this construct, so maybe it's OK as "basic"
however it's not someting we should encourage - I suggest adding some 
design consideration text:

"Importing the namespace for XML Schema itself is unnecessary and may 
cause problems with strict XML Schema processors."

My preference is to make this an advanced pattern.

Paul
Received on Thursday, 24 August 2006 15:41:50 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 18 December 2010 18:20:37 GMT