Hello,
What is the default value of the “cache” option for the validate:xsd() function? The default doesn’t seem to be indicated in the documentation for that function.
Also, the following code raises an error message saying “Item expected, empty sequence found” but that seems odd since the second argument to validate:xsd() is supposed to be optional, thereby telling the validation process to fall back to using the schema indicated in the document itself.
let $options := map {'cache' : true()}
for $doc in collection()
return validate:xsd($doc, (), $options)
Is this a bug or have I misunderstood something?
Thanks,
Greg
Gregory Murray
Director of Digital Initiatives
Wright Library
Princeton Theological Seminary