You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Instead of the expected error message I always get:
Invalid content was found starting with element 'svrl:diagnostic-reference'. No child element is expected at this point.
The problem seems to come from this SVRL-schema. There is already a note, which points to this issues:
<!-- Note: XSLT based version may emit the diagnostic-reference here :( -->
After a bit researching this seems to be a known gap between the ISO Schematron implementation and the ISO Schematron SVRL Schema. As I just found out you can avoid this error by setting the Skeleton parameter $diagnose=false. This turns off the diagnostic support but it doesn't work anyway.
I think the ph-schematron engine should force the $diagnose parameter value to false until the Skeleton is fixed, shouldn't it?
The text was updated successfully, but these errors were encountered:
It was quite tedious to find a matching XSD for this mess.
But basically
<xs:choiceminOccurs="0"maxOccurs="unbounded">
<xs:elementref="svrl:diagnostic-reference"/>
<xs:elementref="svrl:property-reference"/>
<xs:elementref="svrl:text"/>
<!-- Note: XSLT based version may emit the diagnostic-reference here :( -->
</xs:choice>
does the trick.
There is more broken with the diagnostic references.
Instead of using the <text> element, the ISO Schematron throws the text directly into the <diagnostic-reference> element. sigh
This will be part of the 6.0.2 release. In the meantime adding the custom XSLT parameter $diagnose=false should do the trick.
Hi,
I tried to validate with this Schematron:
using this Ant script (using ph-Schematron 5.2.0):
Instead of the expected error message I always get:
The problem seems to come from this SVRL-schema. There is already a note, which points to this issues:
After a bit researching this seems to be a known gap between the ISO Schematron implementation and the ISO Schematron SVRL Schema. As I just found out you can avoid this error by setting the Skeleton parameter
$diagnose=false
. This turns off the diagnostic support but it doesn't work anyway.I think the ph-schematron engine should force the
$diagnose
parameter value tofalse
until the Skeleton is fixed, shouldn't it?The text was updated successfully, but these errors were encountered: