Schema 1.1 validation and Xerces cta-full-xpath-checking?
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: https://www.mail-archive.com/basex-talk at mailman.uni-konstanz.de/msg08446.html
Or have I missed something in the documentation?
Regards, Daniel
Hi Daniel,
I’ve added a little issue for your feature request [1].
Best, Christian
Quoted text · Daniel · 12 lines
On Mon, Nov 19, 2018 at 5:07 PM Zimmel, Daniel <D.Zimmel at 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: > https://www.mail-archive.com/basex-talk at mailman.uni-konstanz.de/msg08446.html > > Or have I missed something in the documentation? > > Regards, Daniel
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/
Quoted text · Daniel · 15 lines
On Mon, Nov 19, 2018 at 5:07 PM Zimmel, Daniel <D.Zimmel at 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: > https://www.mail-archive.com/basex-talk at mailman.uni-konstanz.de/msg08446.html > > Or have I missed something in the documentation? > > Regards, Daniel > > >
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
Quoted text · Christian Grün · 46 lines
> -----Ursprüngliche Nachricht----- > Von: Christian Grün [mailto:christian.gruen at gmail.com] > Gesendet: Donnerstag, 14. Februar 2019 14:38 > An: Zimmel, Daniel; George Sofianos > Cc: basex-talk at 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 at 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: > > https://www.mail-archive.com/basex-talk at mailman.uni- > konstanz.de/msg08446.html > > > > Or have I missed something in the documentation? > > > > Regards, Daniel > > > > > >
Quoted text · Zimmel, Daniel · 1 line
> you may consider adding it explicitly to the Wiki example:
Contributions to our Wiki are welcome ;)
Time and again I am amazed by the immediacy with which the BaseX team seizes opportunities for instantaneous improvement. The obsessive idea of agility, bugging ten-thousands of developing and managing heads, is dwarfed by the practice of BaseX.
Am Donnerstag, 14. Februar 2019, 14:38:07 MEZ hat Christian Grün <christian.gruen at gmail.com> Folgendes geschrieben:
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/
Quoted text · Daniel · 15 lines
On Mon, Nov 19, 2018 at 5:07 PM Zimmel, Daniel <D.Zimmel at 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: > https://www.mail-archive.com/basex-talk at mailman.uni-konstanz.de/msg08446.html > > Or have I missed something in the documentation? > > Regards, Daniel > > >
Written for BaseX 9.1. BaseX may have changed since: please check the current documentation.