[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xerces-j-dev
Subject:    [Fwd: Re: 'universe' for element substitutions in XML Schema]
From:       Gareth Reakes <gareth () parthenoncomputing ! com>
Date:       2005-04-18 10:15:34
Message-ID: 426388C6.8060306 () parthenoncomputing ! com
[Download RAW message or body]

Sorry if this turns out to be a duplicate, I seem to be having an issue 
with new mailing lists.

-- 
Gareth Reakes, Managing Director      Parthenon Computing
+44-1865-811184          http://blog.parthcomp.com/xerces

["Re: 'universe' for element substitutions in XML Schema" (message/rfc822)]

Message-ID: <4263828A.3010805@parthcomp.com>
Date: Mon, 18 Apr 2005 10:48:58 +0100
From: gareth <gareth@parthcomp.com>
User-Agent: Mozilla Thunderbird 1.0.2-1.3.2 (X11/20050324)
X-Accept-Language: en-us, en
MIME-Version: 1.0
To:  xerces-j-user@xml.apache.org
Subject: Re: 'universe' for element substitutions in XML Schema
References: <42611E8C.4030603@alumni.princeton.edu>
In-Reply-To: <42611E8C.4030603@alumni.princeton.edu>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Hi,

	The caching feature is an optimization. As such, it should have no real 
impact on how things are validated. Try your examples with caching 
turned off. If there is a difference after caching is turned on then 
mail us.

Jeff Greif wrote:
> This question might alternately be phrased as 'What determines the set 
> of schemas available for a validation episode?'

The schema that your instance document refers to explicitly or 
implicitly (via namespace) defines the top level schema. That schema may 
include and import other schemas and if it does then they will be in the 
set of schemas.


> 
> This parser is used to validate a document d1 with a root element in 
> namespace B.  Somewhere in the content there is a reference to element 
> a.  When the allowed substitutions are determined for a, are b, c and c' 
> in the set, or just b, or some other combination?

The point to focus on here is that the document d1 is associated with 
the schema that defines namespace B. Any includes or imports will be 
resolved and that will be the set of things that are used.


> Does the XML Schema spec specify what namespaces are involved in a 
> particular validation episode?  If so, a pointer to the relevant section 
> (which I've obviously missed) would be helpful.  If not, is this a 
> matter left up to the implementation?

There is a section on importing that may be helpful:

http://www.w3.org/TR/xmlschema-1/#composition-schemaImport


Gareth

-- 
Gareth Reakes, Managing Director      Parthenon Computing
+44-1865-811184          http://blog.parthcomp.com/xerces




---------------------------------------------------------------------
To unsubscribe, e-mail: j-users-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-users-help@xerces.apache.org

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic