This is FUN indeed. Thanks Christian! Since I consider it a central feature when using Xerces 1.1 validation (it is one out of four controlled Xerces validation features in Oxygen options, too), you may consider adding it explicitly to the Wiki example:
validate:xsd($doc,$schema,map { 'http://apache.org/xml/features/validation/cta-full-xpath-checking': true() })
Without the feature, you are limited to XPath 1.0 in your assertions.
Daniel
-----Ursprüngliche Nachricht----- Von: Christian Grün [mailto:christian.gruen@gmail.com] Gesendet: Donnerstag, 14. Februar 2019 14:38 An: Zimmel, Daniel; George Sofianos Cc: basex-talk@mailman.uni-konstanz.de Betreff: Re: [basex-talk] Schema 1.1 validation and Xerces cta-full-xpath- checking?
Hi Daniel, hi George,
With the latest snapshot of BaseX, XSD validation features can now be specified [1,2]. In addition to that,
• I have removed the version argument. The most recent supported version XML Schema will now be used by default. • Two additional functions can be used to retrieve the applied processor and the supported version.
Have fun, Christian
[1] http://docs.basex.org/wiki/Validation_Module#XML_Schema_Validation [2] http://files.basex.org/releases/latest/
On Mon, Nov 19, 2018 at 5:07 PM Zimmel, Daniel D.Zimmel@esvmedien.de wrote:
Hi,
is there any chance BaseX will support the cta-full-xpath-checking option (see
https://xerces.apache.org/xerces2-j/features.html)? Without it, schema 1.1 validation is limited.
I could not find any switches to configure Xerces features, but did find someone
mentioning it from two years ago:
konstanz.de/msg08446.html
Or have I missed something in the documentation?
Regards, Daniel