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/ [EMAIL PROTECTED] | libxml GNOME XML XSLT toolkit http://xmlsoft.org/ http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/ _______________________________________________ xml mailing list, project page http://xmlsoft.org/ [email protected] http://mail.gnome.org/mailman/listinfo/xml
