Re: [xml] libxml2 and PI <?xml-model?>
- From: Daniel Veillard <veillard redhat com>
- To: Thomas Schraitle <tom_schr web de>
- Cc: xml gnome org
- Subject: Re: [xml] libxml2 and PI <?xml-model?>
- Date: Sun, 5 Jun 2011 11:30:59 +0800
On Sat, Jun 04, 2011 at 01:18:55PM +0200, Thomas Schraitle wrote:
Hi
for version 12.x, the oXygen XML editor implemented a new W3C's processing
instruction (PI) named xml-model[1]. An example file could look like this:
------------------8<------------------
<?xml version="1.0" encoding="UTF-8"?>
<?xml-model href="docbook.rnc" type="application/relax-ng-compact-syntax"?>
<section xmlns="http://docbook.org/ns/docbook" version="5.0">
<title>Test</title>
<para>Test</para>
</section>
------------------8<------------------
However, using xmllint gives me the following error:
not an error, it's a warning !
$ rpm -q libxml2
libxml2-2.7.7-4.5.1.x86_64
$ xmllint --noout test-xml-model.xml
xml/structure/test-xml-model.xml:2: parser warning : xmlParsePITarget: invalid
name prefix 'xml'
<?xml-model href="docbook.rnc" type="application/relax-ng-compact-syntax"?>
^
It seems the above PI isn't known in the libxml2 documentation. Also no
bugzilla entry exists related to the above PI.
yeah I just added it in the code, it's trivial:
http://git.gnome.org/browse/libxml2/commit/?id=4c4653e587838a2cc78ddc03cb77749198f12c6b
This is unfortunate as such files can not processed by xmllint or xsltproc
anymore. Before I open a bug, I thought I just ask for some feedback.
of course they can still be processed, a warning never stops
processing, if they are not processed it's that something else
is blocking, but certainly not the warning from libxml2 parser.
Daniel
--
Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/
daniel veillard com | Rpmfind RPM search engine http://rpmfind.net/
http://veillard.com/ | virtualization library http://libvirt.org/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]