Hi Kristian,
PSVI (Post Schema Validation Infoset) is the outcome of schema assessment
of an instance document (or part of it). It includes information like
whether an element/attribute is valid, which declaration/type was used to
validate such element/attribute, the normalized value of an
element/attribute, etc. [schema information] (XSModel) is one property of
PSVI, which models "the schema" that's used for the assessment. So XSModel
is not PSVI, instead it's a part of PSVI.
Interfaces in org.apache.xerces.xni.psvi package are used to return PSVI
properties.
Cheers,
Sandy Gao
Software Developer, IBM Canada
(1-905) 413-3255
[EMAIL PROTECTED]
Kristian Halm
<[EMAIL PROTECTED] To: [EMAIL PROTECTED]
mk.fhg.de> cc:
Subject: Re: Schema validation
internals
07/03/2002 07:41
AM
Please respond
to xerces-j-user
Hi
sorry for intervening in this thread but I got a question concerning the
PSVI you mentioned.
>They are stored in SchemaGrammar objects, like all other schema
components.
>If you have user-defined simple types in your schema document, and parse
>such document (either parse it directly using Xerces' grammar-preparsing
>functionality, or parse an instance that refers to such schema, then
access
>its PSVI), you'll get SchemaGrammar/XSModel object(s) that contain such
simple type definitions.
>
Is the PSVI of a Xerces parsed document an XSModel object or what
actually is the PSVI in Xerces?
I know that when I preparse a schema document I will get a SchemaGrammar
object.
With this grammar object I could know create a XSModel object, so I
would get the PSVI *without* any XML instance parsing !?
I'm a bit confused about that, so please give me enlightenment. :)
Thanks
Kristian
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]