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: [email protected]      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
------------------------------------------------------------------

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
oXygen-user mailing list
[email protected]
https://www.oxygenxml.com/mailman/listinfo/oxygen-user

Reply via email to