phax / ph-schematron

Java Schematron library that supports XSLT and native application
Apache License 2.0
116 stars 36 forks source link

Pure Schematron - how to support castable? #136

Closed phax closed 2 years ago

phax commented 2 years ago

Failed to compile XPath expression

<assert>. castable as xs:decimal</assert>

"castable as" is supposed to be XPath 2.0

Element/context: PSAssertReport
Error message: Failed to compile XPath expression in <assert>: '. castable as xs:decimal' with the following variables: {}
Technical details: net.sf.saxon.trans.XPathException: Unknown simple type xs:decimal
phax commented 2 years ago

The key is, that the Schematron needs to constain the following line:

<ns uri="http://www.w3.org/2001/XMLSchema" prefix="xs"/>