W3C home > Mailing lists > Public > xmlschema-dev@w3.org > November 2002

Cross-schema derivation and qualifications

From: Robin Berjon <robin.berjon@expway.fr>
Date: Thu, 21 Nov 2002 19:03:35 +0100
Message-ID: <3DDD1FF7.8070508@expway.fr>
To: xmlschema-dev@w3.org


it may be because it's starting to be a bit late at the end of a long day, but 
I'm having trouble figuring out issues to do with cross-schema derivation. It'll 
probably be easier to explain with an example:

Schema A

   <attribute name='attrA' form='qualified' type='string'/>
   <element   name='eltA'  form='qualified' type='string'/>

   <complexType name='ctA'>
       <element ref='A:eltA'/>
       <element name='locEltA' type='string'/>
     <attribute ref='A:attrA'/>
     <attribute name='locAttrA' type='string'/>

Schema B
   <import namespace='AAA'/>

   <element name='eltB' type='A:ctA'/>

How does locality and qualification come into play here? Is it straightforward 
or do some rules come into play? I tried the spec but I may be a bit thick today :)

Would the following be a valid instance (provided already declared namespaces):

   <B:eltB A:attrA='' locAttrA=''>

As you can see, I'm concerned with how the locality/qualification kludge 
propagates against schema boundaries.


Robin Berjon <robin.berjon@expway.fr>
Research Engineer, Expway
7FC0 6F5F D864 EFB8 08CE  8E74 58E6 D5DB 4889 2488
Received on Thursday, 21 November 2002 13:04:05 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:55:58 UTC