Documentation: schema-aware XQuery
The documentation section
contains the paragraph
The Enterprise Edition of Saxon also allows you to validate result documents (both final result documents and intermediate results). By default, elements constructed by the query are validated in lax mode, which means that they are validated if a schema declaration is available, and are not validated otherwise. You can set a different initial validation mode either using the declare validation declaration in the Query Prolog, or by issuing a call such as staticQueryContext.pushValidationMode(Validation.SKIP) in the calling API.
This is riddled with errors. XQuery does not have a concept of "result documents". Elements constructed by a query are not validated by default. There is no "declare validation" declaration in the Query Prolog, and the Saxon class
StaticQueryContext does not have a
Please register to edit this issue