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
We have a routine that validates instances against self-generated xsds. It's a rare thing but every once in a while, the xsd itself is in question, so instead of marking every instance as invalid I would like to notify that the schema itself is invalid.
The way to do that seems to be: validation:jaxp(xs:anyURI('my.xsd'), true()) validation:jaxp(xs:anyURI('my.xsd'), false())
(both always return false() regardless of schema validity)
or
validation:pre-parse-grammar(xs:anyURI('my.xsd'))
(returns “Cannot invoke “Object.toString()” because “value” is null”)
validation:pre-parse-grammar(doc('my.xsd'))
(returns “Only XMLSchemas can be preparsed.“)
Environment
eXist-db 6.2 - Any hints? Obviously “my.xsd” is something that resolves when I run it
The text was updated successfully, but these errors were encountered:
We have a routine that validates instances against self-generated xsds. It's a rare thing but every once in a while, the xsd itself is in question, so instead of marking every instance as invalid I would like to notify that the schema itself is invalid.
The way to do that seems to be:
validation:jaxp(xs:anyURI('my.xsd'), true())
validation:jaxp(xs:anyURI('my.xsd'), false())
(both always return false() regardless of schema validity)
or
validation:pre-parse-grammar(xs:anyURI('my.xsd'))
(returns “Cannot invoke “Object.toString()” because “value” is null”)
validation:pre-parse-grammar(doc('my.xsd'))
(returns “Only XMLSchemas can be preparsed.“)
Environment
eXist-db 6.2 - Any hints? Obviously “my.xsd” is something that resolves when I run it
The text was updated successfully, but these errors were encountered: