Re: Still trying to validate an XML Schema
Florian Schmitt <[email protected]> Tue, 18 Jun 2024 07:53:52 +0200
| Newsgroups | gmane.text.xml.exist |
|---|---|
| Message-ID | <[email protected]> |
Hi Ted,
using validation:jaxp-report() will work, too. But in fact there are
two problems with your xquery:
1.) It seems you're trying to construct a sequence as return value,
but the syntax isn't correct (comma missing, superfluous round brackets).
2.) In current eXist-db versions, there's no function with signature
validation:jaxp-report($instance, $schema).
It should work after changing the last three lines of your xquery to:
return
(validation:clear-grammar-cache(),
validation:jaxp-report($instance, xs:boolean("false"), $schema))
Since you don't want to use grammar caching, you may even drop the
first part of the return clause and use:
return
validation:jaxp-report($instance, xs:boolean("false"), $schema)
Both version should work.
HTH
FLorian