List Info

Thread: DocBook v5.0CR1 document does not validate using xmllint v2.6.27




DocBook v5.0CR1 document does not validate using xmllint v2.6.27
user name
2006-12-28 08:36:24
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.or
g/ns/docbook" version="5.0">
 <info><title>Internals</title></info&g
t;

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

   <para>
     <link xmlnslink=
"http://www.w3.org/
1999/xlink"
           xmlns="http://docbook.or
g/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/do
cbook.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/
xmlgnome.org
http://mai
l.gnome.org/mailman/listinfo/xml
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )