Re: [xml] libxml2 Relax NG include bug?
- From: Martijn Faassen <faassen infrae com>
- To: Martijn Faassen <faassen infrae com>
- Cc: xml gnome org
- Subject: Re: [xml] libxml2 Relax NG include bug?
- Date: Thu, 27 Jan 2005 18:18:13 +0100
Hey,
Following up again:
I think I tracked down the bug. The relaxng.c checks for the URL on the
doc object to determine the base. This URL exists on the original
xmlDoc* I pass in, but xmlRelaxNGNewDocParserCtxt makes a *copy* of this
document using xmlCopyDoc(). This doesn't copy the URL, so the URL will
be NULL.
I don't know whether the bug is in xmlCopyDoc not copying the URL, or
whether the Relax NG engine should be doing this itself. If the latter,
then you could add this to xmlRelaxNGNewDocParserCtxt:
copy->URL = xmlStrdup(doc->URL);
the Relax NG include behavior will then be as expected.
Regards,
Martijn
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]