Hi all

I am getting a validation error when using DocBook v5.0CR1 with xmllint 
v2.6.27.
Given the following document, for example:

==================================================================
test.dbk
--------
<?xml version="1.0" encoding="utf-8"?>
<article xmlns="http://docbook.org/ns/docbook"; version="5.0">
 <info><title>Internals</title></info>

 <section xml:id="Standards">
   <info><title>Standards</title></info>

   <para>
     <link xmlns:xlink="http://www.w3.org/1999/xlink";
           xmlns="http://docbook.org/ns/docbook";
           xlink:href="http://www.w3.org/TR/xml/";>
       <inlinemediaobject>
         <imageobject>
           <imagedata fileref="foo.png" format="PNG"/>
         </imageobject>
       </inlinemediaobject>
     </link>
   </para>
 </section>
</article>
==================================================================
$ xmllint --noout --relaxng [snip]/docbook/rng/docbook.rng test.dbk

produces the following output:

==================================================================
$ xmllint --noout --relaxng 
/home/ruscoekm/my_tree/links/my_project/links/docbook/rng/docbook.rng 
test.dbk
test.dbk:5: element section: Relax-NG validity error : Did not expect 
element section there
test.dbk:5: element section: Relax-NG validity error : Expecting element 
example, got section
test.dbk:5: element section: Relax-NG validity error : Expecting element 
bridgehead, got section
test.dbk:8: element para: Relax-NG validity error : Did not expect 
element para there
test.dbk:8: element para: Relax-NG validity error : Expecting element 
example, got para
test.dbk:5: element section: Relax-NG validity error : Element article 
failed to validate content
test.dbk fails to validate
==================================================================

If I remove the inlinemedia object, the document validates successfully.

The same document validates successfully using the following tools:
* Jing (docbook.rng and docbook.rnc)
* Emacs nXML mode (docbook.rnc)

If people agree that this is a bug, I will raise a new ticket in Bugzilla.

Regards
Kevin
_______________________________________________
xml mailing list, project page  http://xmlsoft.org/
[email protected]
http://mail.gnome.org/mailman/listinfo/xml

Reply via email to