Schematron and include problem.
Posted: Fri Jun 22, 2007 3:31 pm
Hi all,
in ISO Schematron there is an include element.
The problem occurs when I define a Schematron schema separately (e.g. StronA.sch) which contains an abstract pattern. Like:
When I include StronA.sch in StronZ.sch and reference the ID of that abstract pattern it gives an error in the editor when opened at StronZ.sch.
The error is: E [Xerces] cvc-id.1: There is no ID/IDREF binding for IDREF 'check_Value_Present'.
I think this should not be the case. Using StronZ.sch to validate an XML document works without problems despite this error.
I hope I have been clear.
Regards,
Stijn.
in ISO Schematron there is an include element.
The problem occurs when I define a Schematron schema separately (e.g. StronA.sch) which contains an abstract pattern. Like:
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<pattern abstract="true" id="check_Value_Present" xmlns="http://purl.oclc.org/dsdl/schematron">
<rule context="$possiblyEmptyElement">
<assert test="text()[normalize-space(.)]">
A value should be present, because the "<name/>" element cannot be empty.</assert>
</rule>
</pattern>
The error is: E [Xerces] cvc-id.1: There is no ID/IDREF binding for IDREF 'check_Value_Present'.
I think this should not be the case. Using StronZ.sch to validate an XML document works without problems despite this error.
I hope I have been clear.
Regards,
Stijn.