Hi Yitzhak,

A self-contained example would be helpful.

Thanks in advance,
Christian


On Thu, Dec 26, 2024 at 4:07 PM <ykhabins@bellsouth.net> wrote:
Hello,

My environment has BaseX 11.6 installed.

The XQuery is called in c# via REST HTTP call:
string REQUESTURL =
$"http://{HOST}:{PORT}/rest?run={XQUERY}&$xml={xmlFile}&$xsd={xsdFile}";

XQuery is using XSD validation with caching, along the following:
let $result := validate:xsd-report($xml, $xsd, map {
'http://apache.org/xml/features/validation/cta-full-xpath-checking': true(),
'cache': true() })

It seems that the cache invalidation call stopped working ?!
It is not picking up the latest XSD.

I launch it from the BaseX GUI as follows:
validate:xsd-init()

Just restart of the HTTP listener picks up the latest/modified XSD.

Please advise.

Regards,
Yitzhak Khabinsky