kesh...@us.ibm.com wrote on 15/05/2012 02:57:58 PM: > I sit corrected... though if you want the document to be > interoperable with other XML tools, you should hew close to the standard. > > BTW, I was just reminded that XML Namespaces 1.1 declared that > namespace names should be IRIs, not just URIs. Of course how many > tools tracked that chance is an open question.
Right. In XML Schema 1.0, xs:anyURI is supposed to approximate IRI. XML Schema 1.1 [1] makes it clearer that an xs:anyURI is an IRI, though the validation rules were relaxed to allow any string, so if you were using Xerces' XML Schema 1.1 processor you wouldn't get that particular error for the targetNamespace. Thanks. [1] http://www.w3.org/TR/xmlschema11-2/#anyURI Michael Glavassevich XML Technologies and WAS Development IBM Toronto Lab E-mail: mrgla...@ca.ibm.com E-mail: mrgla...@apache.org