Re: [xml] xmlSchemaSAXPlug and xsi:schemaLocation
- From: Daniel Veillard <veillard redhat com>
- To: Kasimier Buchcik <K Buchcik 4commerce de>, ML-libxml2 <xml gnome org>
- Cc:
- Subject: Re: [xml] xmlSchemaSAXPlug and xsi:schemaLocation
- Date: Tue, 11 Oct 2005 17:12:32 -0400
On Tue, Oct 11, 2005 at 10:02:38PM +0100, Graham Bennett wrote:
On Mon, Oct 10, 2005 at 10:30:06AM +0200, Kasimier Buchcik wrote:
Create the schema validation context with a NULL for the @schema
argument if you want to switch on xsi-driven schema acquisition.
Internally a new schema will be created during the validation and
all the schemata, specified via xsi, will be constructed.
However, this is a bit limited, since Libxml2's schema processors
wants references to schema components to be resolved after each
schema construction episode; thus it will work only on a subset
of all the possible scenarios. E.g. if you have a schema at the
document element, which references a component which would be
acquired deeper in the tree (via a second xsi acquisition) then
you would get a reference resolution error with Libxml2, while the
spec allows such "late binding".
Thanks Kasimier, I'll try this. Just to check, is the 'late binding'
problem an issue with libxml2 schema in general or just when using the
SAX plug interface?
I would tentatively say this is general to libxml2 as even tree validation
uses the same internal callback interfaces, but Kasimier may correct me if I'm
wrong :-)
Daniel
--
Daniel Veillard | Red Hat Desktop team http://redhat.com/
veillard redhat com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]