Re: [xml] Catalog & Schema
- From: Kasimier Buchcik <kbuchcik 4commerce de>
- To: veillard redhat com
- Cc: xml gnome org
- Subject: Re: [xml] Catalog & Schema
- Date: Fri, 26 Nov 2004 13:41:03 +0100
hi,
Daniel Veillard wrote:
On Fri, Nov 26, 2004 at 11:14:45AM +0100, Kasimier Buchcik wrote:
[...]
For <import>s and xsi driven document loading, _xmlCtxtReadFile_ is used
- in xmlSchemaAcquireSchemaDoc. So there might be a difference in
loading the main schema and <include>s, compared to loading an <import>.
Anyway, I think using xmlCtxtReadFile could be avoided, if this is the
one which makes trouble.
[...]
Kasimier, BTW while you're at allocating the parser context yourself
in that routine, you should as well share the same dictionnary ctxt->dict.
Check xmlXIncludeParseFile() in xinclude.c to see how to reuse
dictionnaries for multiple documents (via the parser context).
Maybe I should provide a new routine to setup the dictionnary of a
parser context...
Ah, OK, adapted the include and import machanism to share the
dictionary. Commited in CVS.
Regards,
Kasimier
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]