Hi Jirka,
Yes, you are right if you are using Saxon EE (schema-aware) for
Schematron validation, and you cave a schema associated, then when
comparing two values it compares by taking into account the type of the
values.
I didn't knew either, thanks for your suggestion.
Best Regards,
Octavian
--
Octavian Nadolu
<oXygen/> XML Editor
http://www.oxygenxml.com
On 15.04.2019 19:04, Jirka Kosek wrote:
Hi,
today I have been debugging some Schematron validation weirdnes. I have
observed that if XML document has XSD schema attached using
xs:schemaLocation then Schematron validation is invoked on PSVI -- ie.
document model that has assigned types from the schema. So even if
Schematron is for example comparing dates without explicit type cast:
<assert test="StartDate < EndDate">
then this operates on xs:date types as they have been assigned from the
schema automatically. Is that right observation?
Jirka
BTW, I don't think this is a bug, I have been just surprised as I was
getting different validation results then I've expected on untyped
document. Perhaps this happens automatically if you invoke compiled
validation XSLT using Saxon-EE.
_______________________________________________
oXygen-user mailing list
[email protected]
https://www.oxygenxml.com/mailman/listinfo/oxygen-user
_______________________________________________
oXygen-user mailing list
[email protected]
https://www.oxygenxml.com/mailman/listinfo/oxygen-user