Check Relax NG Grammar with Schematron?
Posted: Mon Jan 05, 2015 10:45 am
Hi,
i have a Relax NG Schema, that is, a grammr Element in the http://relaxng.org/ns/structure/1.0 namespace. I would like to check wheter al elements defined in this grammar are properly documented. So i wrote a schematron Schema which reports all elements without a a:documentation child.
However, i was unable to assign the schematron schema to the Relax NG Document. The Menu Item for "Assign Schema" is grayed out. So i wrote a xml-model instruction like this (it was copy-pasted from a normal XML Document, where the schematron file was assigned to without any problems):
But this does not work either. It seems to me that this PI is completely ignored when validating the Relax NG Document.
To conclude: my question is, is there a way to check semantic constraints on RELAX NG grammars with self-defined Schematron rules?
Sincerely,
Frank
i have a Relax NG Schema, that is, a grammr Element in the http://relaxng.org/ns/structure/1.0 namespace. I would like to check wheter al elements defined in this grammar are properly documented. So i wrote a schematron Schema which reports all elements without a a:documentation child.
However, i was unable to assign the schematron schema to the Relax NG Document. The Menu Item for "Assign Schema" is grayed out. So i wrote a xml-model instruction like this (it was copy-pasted from a normal XML Document, where the schematron file was assigned to without any problems):
Code: Select all
<?xml-model href="constraint.sch" type="application/xml" schematypens="http://purl.oclc.org/dsdl/schematron"?>
To conclude: my question is, is there a way to check semantic constraints on RELAX NG grammars with self-defined Schematron rules?
Sincerely,
Frank