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

relaxng, xml, xsd

Solution

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).

Problem

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.

Original source