Bugzilla – Bug 673
Support for Compact Schema validation on arbitrary XML
Last modified: 2009-11-04 16:27:57 CET
I noticed your validator.nu is linked from http://relaxng.org/#validators However I could not figure out how to validate this XML: http://static.webvm.net/relaxng/policy.xml with this Compact schema: http://static.webvm.net/relaxng/bondixml.rnc http://validator.nu/?doc=http%3A%2F%2Fstatic.webvm.net%2Frelaxng%2Fpolicy.xml&schema=http%3A%2F%2Fstatic.webvm.net%2Frelaxng%2Fbondixml.rnc The error message is 1. IO Error: Non-XML Content-Type: text/plain. so I assume it didn't like the Compact RelaxNG schema content type.
You can check the "Be lax about HTTP Content-Type" checkbox. However then I get a message saying "IO Error: HTTP resource not retrievable. The HTTP status from the remote server was: 404." but I get 200 OK with http://www.rexswain.com/httpview.html
Does it work if you configure your server per http://www.iana.org/assignments/media-types/application/relax-ng-compact-syntax
(In reply to comment #2) > Does it work if you configure your server per > http://www.iana.org/assignments/media-types/application/relax-ng-compact-syntax Ok, I added: AddType relax-ng-compact-syntax .rnc Now I get: IO Error: Non-XML Content-Type: relax-ng-compact-syntax.
You should have AddType application/relax-ng-compact-syntax .rnc
Ok, now I'm trying: AddType application/relax-ng-compact-syntax .rnc And I get Simon's IO Error: HTTP resource not retrievable. The HTTP status from the remote server was: 404. Hmm, I don't get a 404 whilst testing it from my various shells & w3m.
Sorry it only just occurred to me I could look at my server logs and lo and behold: File does not exist: /srv/www/static.webvm.net/relaxng/xmldsig-core-schema.rnc There was an include in the schema. I've since copied it in and it works! I guess validator.nu's error message could be a little more helpful.