[tei-council] Constraints on anyURI

Sebastian Rahtz sebastian.rahtz at it.ox.ac.uk
Mon Nov 19 16:30:33 EST 2012


jing seems to fail to check anyURI. but rnv checks the xsd:anyURI better:

Sebastians-MacBook-Pro:Exemplars rahtz$ rnv tei_all.rnc /tmp/foo.xmk 
/tmp/foo.xmk
/tmp/foo.xmk:7:0: error: attribute ^sameAs with invalid value "n-CTL t-TR Ø-OBJ, n-SUBJ"
required:
	data http://www.w3.org/2001/XMLSchema-datatypes^anyURI
error: some documents are invalid

But then again, jing may silently URL-encodiing the spaces and commas for us.

I think you could maybe use http://www.w3.org/TR/xpath-functions/#func-resolve-uri in
a Schematron check to check the URI. But surprisingly Saxon seems to accept
almost anything as a valid URI.
--
Sebastian Rahtz      
Director (Research Support) of Academic IT Services 
University of Oxford IT Services
13 Banbury Road, Oxford OX2 6NN. Phone +44 1865 283431



More information about the tei-council mailing list