Package: libxml2 Version: 2.6.27.dfsg-1 Severity: normal Sometimes, when using xmllint to validate certain DocBook 5.0CR3 files against the corresponding Relax-NG schema, xmllint will falsely claim that the file is invalid. This is completely repeatable, and it only seems to happen for me on files which use mediaobject. Using Sun's MSV (multi-schema validator) works fine, and correctly claims that the file is valid.
A testcase is included. A sample run looks like: % xmllint --noout --relaxng http://www.docbook.org/xml/5.0CR3/rng/docbook.rng testcase.xml testcase.xml:6: element section: Relax-NG validity error : Did not expect element section there testcase.xml:6: element section: Relax-NG validity error : Expecting element example, got section testcase.xml:6: element section: Relax-NG validity error : Expecting element bridgehead, got section testcase.xml:13: element mediaobject: Relax-NG validity error : Did not expect element mediaobject there testcase.xml:13: element mediaobject: Relax-NG validity error : Element section has extra content: mediaobject testcase.xml:6: element section: Relax-NG validity error : Element article failed to validate content testcase.xml fails to validate % msv http://www.docbook.org/xml/5.0CR3/rng/docbook.rng testcase.xml start parsing a grammar. warnings are found. use -warning switch to see all warnings. validating testcase.xml the document is valid. % msv -warning http://www.docbook.org/xml/5.0CR3/rng/docbook.rng testcase.xml start parsing a grammar. The "IDREF" type has IDREF semantics but a competing attribute of another element doesnt have the same type. 192:[EMAIL PROTECTED]://www.docbook.org/xml/5.0CR3/rng/docbook.rng 14277:[EMAIL PROTECTED]://www.docbook.org/xml/5.0CR3/rng/docbook.rng The "IDREF" type has IDREF semantics but a competing attribute of another element doesnt have the same type. 11493:[EMAIL PROTECTED]://www.docbook.org/xml/5.0CR3/rng/docbook.rng 11430:[EMAIL PROTECTED]://www.docbook.org/xml/5.0CR3/rng/docbook.rng The "IDREF" type has IDREF semantics but a competing attribute of another element doesnt have the same type. 192:[EMAIL PROTECTED]://www.docbook.org/xml/5.0CR3/rng/docbook.rng 14277:[EMAIL PROTECTED]://www.docbook.org/xml/5.0CR3/rng/docbook.rng validating testcase.xml the document is valid. This is *very* annoying, since the overhead of running java (for msv) to validate 183 DocBook files every time I need to rebuild my website is insane. xmllint is at least an order of magnitude faster. If there is any more information you need, please let me know. -- System Information: Debian Release: lenny/sid APT prefers experimental APT policy: (500, 'experimental'), (500, 'unstable') Architecture: amd64 (x86_64) Kernel: Linux 2.6.20-1-amd64 (SMP w/2 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to en_US.UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages libxml2 depends on: ii libc6 2.5-1 GNU C Library: Shared libraries ii zlib1g 1:1.2.3-13 compression library - runtime Versions of packages libxml2 recommends: ii xml-core 0.09-0.1 XML infrastructure and XML catalog -- no debconf information -- brian m. carlson / brian with sandals: Houston, Texas, US There is no We: http://crustytoothpaste.ath.cx/~bmc/writings/tinw OpenPGP: RSA v3 2048 560553E7: FE82 7C9F EB21 5436 2F96 25BA 927B 0A51
testcase.xml
Description: application/xml
signature.asc
Description: Digital signature