Question

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.

Was it helpful?

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top