[oXygen-user] Invoking Schematron on XML document hat has attached XML schema
Jirka Kosek
jirka at kosek.cz
Mon Apr 15 11:04:14 CDT 2019
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.
--
------------------------------------------------------------------
Jirka Kosek e-mail: jirka at kosek.cz http://xmlguru.cz
------------------------------------------------------------------
Professional XML and Web consulting and training services
DocBook/DITA customization, custom XSLT/XSL-FO document processing
------------------------------------------------------------------
Bringing you XML Prague conference http://xmlprague.cz
------------------------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: OpenPGP digital signature
URL: <http://www.oxygenxml.com/pipermail/oxygen-user/attachments/20190415/88a7d5a2/attachment.sig>
More information about the oXygen-user
mailing list