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 <vinc...@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)
<?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>
default namespace = "" start = element root { element uri { xsd:anyURI }* }
<?xml version="1.0" encoding="UTF-8"?> <grammar ns="" xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"> <start> <element name="root"> <zeroOrMore> <element name="uri"> <data type="anyURI"/> </element> </zeroOrMore> </element> </start> </grammar>