Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I specify the schema location in a RELAX NG compact schema?

Tags:

xml

xsd

relaxng

I want to use a Relax NG compact schema. Do I specify the .rnc file in the xsi:schemaLocation the way I would for an XSD? I don't want to convert the Relax NG to an XSD because the limitations of XSD that would be a problem in my case.

like image 852
user994165 Avatar asked Jun 07 '12 17:06

user994165


1 Answers

xsi:schemaLocation is specific to XML Schema.

If you need to specify the location of a RNG schema in a document (the usefulness of this practice is not always obvious ;), you can use an XML Model Processing Instruction (assuming of course that you use a tool that supports it, the recommendation being still young).

like image 161
Eric van der Vlist Avatar answered Oct 13 '22 11:10

Eric van der Vlist