Re: [xml] libxml2 and PI <?xml-model?>

On Sat, Jun 04, 2011 at 01:18:55PM +0200, Thomas Schraitle wrote:

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:

<?xml version="1.0" encoding="UTF-8"?>
<?xml-model href="docbook.rnc" type="application/relax-ng-compact-syntax"?>
<section xmlns=""; version="5.0">

However, using xmllint gives me the following error:

  not an error, it's a warning !

$ rpm -q libxml2
$ 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:

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 Veillard      | libxml Gnome XML XSLT toolkit
daniel veillard com  | Rpmfind RPM search engine | virtualization library

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]