Re: [xml] Catalog & Schema
- From: Daniel Veillard <veillard redhat com>
- To: Frans Englich <frans englich telia com>
- Cc: libxml2 <xml gnome org>
- Subject: Re: [xml] Catalog & Schema
- Date: Fri, 26 Nov 2004 04:47:40 -0500
On Thu, Nov 25, 2004 at 06:32:04PM -0500, Daniel Veillard wrote:
On Thu, Nov 25, 2004 at 10:40:27PM +0000, Frans Englich wrote:
I see no reason why schemas or relaxng would be any different.
You need to debug your catalog but there are ways to do this !
http://xmlsoft.org/catalog.html#validate
Perhaps you can tell something from the bash sequence below. That there is no
debug output from validating the Schema pussles me.
[...]
It looks like the catalog isn't activated when xmllint is run. What have I
done wrong?
Well all I can tell is that:
xmllint --schema uses xmlSchemaParse()
xmlSchemaParse uses xmlReadFile()
xmlReadFile() uses xmlCreateURLParserCtxt()
xmlCreateURLParserCtxt() uses xmlLoadExternalEntity()
if the file exists as is then it will be fectched directly
otherwise there is a catalog lookup done from
xmlDefaultExternalEntityLoader()
I really can't debug your specific problem, but I see no reason
why the catalog would not work. Maybe it's the --nonet option ...
try to check xmllint --load-trace flag output too.
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]