Re: [xml] setting URL for xmlRelaxNGParserCtxt?

2005-01-26 Thread Martijn Faassen
Daniel Veillard wrote: On Wed, Jan 26, 2005 at 05:39:56PM +0100, Martijn Faassen wrote: [snip] Both approaches have a problem I can't seem to figure my way out of: So don't do it. I'm not going to do it any time soon, just running it by you to see whether I comprehend it now or whether there was

Re: [xml] setting URL for xmlRelaxNGParserCtxt?

2005-01-26 Thread Daniel Veillard
On Wed, Jan 26, 2005 at 05:39:56PM +0100, Martijn Faassen wrote: > Daniel Veillard wrote: > >On Wed, Jan 26, 2005 at 03:12:52PM +0100, Martijn Faassen wrote: > > > >>So what *is* stored in these dictionaries? I still don't know. Tagnames? > >>Namespace strings? Text node content? IDs? All of them?

Re: [xml] setting URL for xmlRelaxNGParserCtxt?

2005-01-26 Thread Martijn Faassen
Daniel Veillard wrote: On Wed, Jan 26, 2005 at 03:12:52PM +0100, Martijn Faassen wrote: So what *is* stored in these dictionaries? I still don't know. Tagnames? Namespace strings? Text node content? IDs? All of them? I guess I'll have to study the source to get the answer. :) markup tag name,

Re: [xml] setting URL for xmlRelaxNGParserCtxt?

2005-01-26 Thread Daniel Veillard
On Wed, Jan 26, 2005 at 03:12:52PM +0100, Martijn Faassen wrote: > So what *is* stored in these dictionaries? I still don't know. Tagnames? > Namespace strings? Text node content? IDs? All of them? I guess I'll > have to study the source to get the answer. :) markup tag name, very small text n

Re: [xml] setting URL for xmlRelaxNGParserCtxt?

2005-01-26 Thread Martijn Faassen
Kasimier Buchcik wrote: Hi, Martijn Faassen wrote: Dictionaries won't grow indefinitely if I throw away nodes once every while, right? The refcount will go down of dictionary values, to 0 if it's a unique string, and the thing (tag name? text node value?) will go away. As far as I can see in t

Re: [xml] setting URL for xmlRelaxNGParserCtxt?

2005-01-26 Thread Kasimier Buchcik
Hi, Martijn Faassen wrote: Hey Daniel, I hope you'll still answer the other part of my mail (the Relax NG include processing errors).. that's a bit more urgent right now. :) [...] Dictionaries won't grow indefinitely if I throw away nodes once every while, right? The refcount will go down of dict

Re: [xml] setting URL for xmlRelaxNGParserCtxt?

2005-01-26 Thread Martijn Faassen
Daniel Veillard wrote: On Wed, Jan 26, 2005 at 12:42:57PM +0100, Martijn Faassen wrote: Hey Daniel, I hope you'll still answer the other part of my mail (the Relax NG include processing errors).. that's a bit more urgent right now. :) Well that mean going in a debug session (gdb etc...) and 1/

Re: [xml] setting URL for xmlRelaxNGParserCtxt?

2005-01-26 Thread Daniel Veillard
On Wed, Jan 26, 2005 at 12:42:57PM +0100, Martijn Faassen wrote: > Hey Daniel, > > I hope you'll still answer the other part of my mail (the Relax NG > include processing errors).. that's a bit more urgent right now. :) Well that mean going in a debug session (gdb etc...) and 1/ it takes more

Re: [xml] setting URL for xmlRelaxNGParserCtxt?

2005-01-26 Thread Martijn Faassen
Hey Daniel, I hope you'll still answer the other part of my mail (the Relax NG include processing errors).. that's a bit more urgent right now. :) Daniel Veillard wrote: On Wed, Jan 26, 2005 at 11:35:52AM +0100, Martijn Faassen wrote: One note though, I'm using dictionnaries more and more intensi

Re: [xml] setting URL for xmlRelaxNGParserCtxt?

2005-01-26 Thread Daniel Veillard
On Wed, Jan 26, 2005 at 11:35:52AM +0100, Martijn Faassen wrote: > >One note though, I'm using dictionnaries more and more intensively those > >days, so keeping a single dictionnary for everything, while it clearly > >speed-up processing may grow quite a bit for example as you process random > >doc

Re: [xml] setting URL for xmlRelaxNGParserCtxt?

2005-01-26 Thread Martijn Faassen
Daniel Veillard wrote: On Wed, Jan 26, 2005 at 12:07:50AM +0100, Martijn Faassen wrote: Daniel Veillard wrote: no the base has to be set in the document. Since that part is just described by '...' in your mail there is little more indications I can provide. Interesting. This is how a doc typically

Re: [xml] setting URL for xmlRelaxNGParserCtxt?

2005-01-25 Thread Daniel Veillard
On Wed, Jan 26, 2005 at 12:07:50AM +0100, Martijn Faassen wrote: > Daniel Veillard wrote: > > no the base has to be set in the document. Since that part is just > >described by '...' in your mail there is little more indications I can > >provide. > > Interesting. This is how a doc typically get p

Re: [xml] setting URL for xmlRelaxNGParserCtxt?

2005-01-25 Thread Martijn Faassen
Daniel Veillard wrote: On Tue, Jan 25, 2005 at 08:14:22PM +0100, Martijn Faassen wrote: Hi there, In my lxml Python binding for libxml2, I was using the following approach to construct a Relax NG schemas: xmlDocPtr* doc = ... parser_ctxt = xmlRelaxNGNewDocParserCtxt(doc) unfortunately, this got m

Re: [xml] setting URL for xmlRelaxNGParserCtxt?

2005-01-25 Thread Daniel Veillard
On Tue, Jan 25, 2005 at 08:14:22PM +0100, Martijn Faassen wrote: > Hi there, > > In my lxml Python binding for libxml2, I was using the following > approach to construct a Relax NG schemas: > > xmlDocPtr* doc = ... > parser_ctxt = xmlRelaxNGNewDocParserCtxt(doc) > > unfortunately, this got me i

[xml] setting URL for xmlRelaxNGParserCtxt?

2005-01-25 Thread Martijn Faassen
Hi there, In my lxml Python binding for libxml2, I was using the following approach to construct a Relax NG schemas: xmlDocPtr* doc = ... parser_ctxt = xmlRelaxNGNewDocParserCtxt(doc) unfortunately, this got me into trouble with Relax NG schemas that use the 'include' statement. They try to load