[xml/sgml-pkgs] Bug#509967: libxml2 should accept any character in anyURI data (with Relax NG)
Vincent Lefevre
vincent at vinc17.org
Mon Mar 2 16:28:51 UTC 2009
found 509967 2.7.3.dfsg-1
thanks
Version 2.7.3.dfsg-1 is even worse: the apostrophe is no longer
accepted. I get the following errors:
$ xmllint --relaxng anyuri.rng anyuri.xml
<?xml version="1.0" encoding="utf-8"?>
<root>
<uri>http://localhost/foobar</uri>
<uri>http://localhost/fooébar</uri>
<uri>http://localhost/foo'bar</uri>
<uri>http://localhost/foo bar</uri>
</root>
anyuri.xml:4: element uri: Relax-NG validity error : Type anyURI doesn't allow value 'http://localhost/fooébar'
anyuri.xml:4: element uri: Relax-NG validity error : Error validating datatype anyURI
anyuri.xml:4: element uri: Relax-NG validity error : Element uri failed to validate content
anyuri.xml:5: element uri: Relax-NG validity error : Type anyURI doesn't allow value 'http://localhost/foo'bar'
anyuri.xml:5: element uri: Relax-NG validity error : Error validating datatype anyURI
anyuri.xml:5: element uri: Relax-NG validity error : Element uri failed to validate content
anyuri.xml:6: element uri: Relax-NG validity error : Type anyURI doesn't allow value 'http://localhost/foo bar'
anyuri.xml:6: element uri: Relax-NG validity error : Error validating datatype anyURI
anyuri.xml:6: element uri: Relax-NG validity error : Element uri failed to validate content
anyuri.xml fails to validate
zsh: exit 3 xmllint --relaxng anyuri.rng anyuri.xml
--
Vincent Lefèvre <vincent at vinc17.org> - Web: <http://www.vinc17.org/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/>
Work: CR INRIA - computer arithmetic / Arenaire project (LIP, ENS-Lyon)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: anyuri.xml
Type: text/xml
Size: 206 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/debian-xml-sgml-pkgs/attachments/20090302/3c385c24/attachment.bin
-------------- next part --------------
default namespace = ""
start =
element root {
element uri { xsd:anyURI }*
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: anyuri.rng
Type: text/xml
Size: 361 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/debian-xml-sgml-pkgs/attachments/20090302/3c385c24/attachment-0001.bin
More information about the debian-xml-sgml-pkgs
mailing list