Re: [xml] xmllint: validation of XML files with XInclude-d documents maybe broken
On Mon, Feb 26, 2007 at 06:05:39PM +0100, Daniel Leidert wrote: Am Dienstag, den 20.02.2007, 17:43 +0100 schrieb Daniel Leidert: [..] xmllint --xinclude --noout --valid howto-mimedef.xml Matthew Burgess told me to use the --postvalid switch instead, which works. So I did not observe a bug, I just oversaw the right switch :). Thanks to Matthew and sorry for the noise. You're on the edge of the XML processing model. Basically DTD validation is defined as an extra operation at parsing time. Of course people need it applied in different context, usually on a tree or an event flow, hence the --postvalid switch, but it may occasionally work differently than --valid. Should work in most cases though, Daniel -- Red Hat Virtualization group http://redhat.com/virtualization/ Daniel Veillard | virtualization library http://libvirt.org/ [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/ xml@gnome.org http://mail.gnome.org/mailman/listinfo/xml
Re: [xml] xmllint: validation of XML files with XInclude-d documents maybe broken
Am Dienstag, den 20.02.2007, 17:43 +0100 schrieb Daniel Leidert: [..] xmllint --xinclude --noout --valid howto-mimedef.xml Matthew Burgess told me to use the --postvalid switch instead, which works. So I did not observe a bug, I just oversaw the right switch :). Thanks to Matthew and sorry for the noise. Regards, Daniel ___ xml mailing list, project page http://xmlsoft.org/ xml@gnome.org http://mail.gnome.org/mailman/listinfo/xml
[xml] xmllint: validation of XML files with XInclude-d documents maybe broken
Hello, See the file http://debian.wgdd.de/temp/howto-mimedef.xml as example. This file is a DocBook article, that xincludes several other XML files for appendices or other parts of the article. Now I want to validate the file. Therefor I ran: xmllint --xinclude --noout --valid howto-mimedef.xml and I get a lot of errors. It seems, that e.g. the XIncludes are not included. xmllint complains about the xi:include elements itself. And then it also seems to try to separately validate the xincluded files too, which of course fails for e.g. the included gfdl.xml file, because it does not contain a DTD. But if I do: xmllint --xinclude howto-mimedef.xml test.xml xmllint --valid --noout --valid test.xml everything is fine (the resulting XML file is valid). So I would expect, that a xmllint --xinclude --noout --valid howto-mimedef.xml Am I doing something should also work and not fail. Am I doing something wrong? Does xmllint work as expected here? Regards, Daniel ___ xml mailing list, project page http://xmlsoft.org/ xml@gnome.org http://mail.gnome.org/mailman/listinfo/xml