NVDL validation
Friday, 8 July 2016 · 3 messages · last reply 9 Jul 2016
AB
Andy Bunce8 Jul 2016 17:57 #
Hi,
Just an observation..
It seems like the RelaxNG Validation functions [1] can be overloaded/abused to provide NVDL validation [2]
As in:
validate:rng-report("data.xml","test.nvdl")
This support comes from the underlying Trang library. It looks like any schema format Trang accepts can be used. [3]
/Andy
[1] http://docs.basex.org/wiki/Validation_Module#RelaxNG_Validation [2] http://www.nvdl.org/
[3]
https://github.com/BaseXdb/basex/blob/master/basex-core/src/main/java/org/basex/query/func/validate/ValidateRng.javaCG
Christian Grün9 Jul 2016 09:10 #
That’s a helpful hint. I’ve added a note to our documentation [1].
Cheers
Christian
[1] http://docs.basex.org/wiki/Validation_Module#RelaxNG_Validation
Quoted text · Andy Bunce · 19 lines
On Fri, Jul 8, 2016 at 5:57 PM, Andy Bunce <bunce.andy at gmail.com> wrote: > Hi, > > Just an observation.. > > It seems like the RelaxNG Validation functions [1] can be overloaded/abused > to provide NVDL validation [2] > As in: > validate:rng-report("data.xml","test.nvdl") > > This support comes from the underlying Trang library. It looks like any > schema format Trang accepts can be used. [3] > > /Andy > > [1] http://docs.basex.org/wiki/Validation_Module#RelaxNG_Validation > [2] http://www.nvdl.org/ > [3] > https://github.com/BaseXdb/basex/blob/master/basex-core/src/main/java/org/basex/query/func/validate/ValidateRng.java
AB
Andy Bunce9 Jul 2016 11:41 #
Great, of course I meant to write Jing not Trang. /Andy
Quoted text · Christian Grün · 31 lines
On 9 July 2016 at 08:10, Christian Grün <christian.gruen at gmail.com> wrote: > That’s a helpful hint. I’ve added a note to our documentation [1]. > > Cheers > Christian > > [1] http://docs.basex.org/wiki/Validation_Module#RelaxNG_Validation > > > On Fri, Jul 8, 2016 at 5:57 PM, Andy Bunce <bunce.andy at gmail.com> wrote: > > Hi, > > > > Just an observation.. > > > > It seems like the RelaxNG Validation functions [1] can be > overloaded/abused > > to provide NVDL validation [2] > > As in: > > validate:rng-report("data.xml","test.nvdl") > > > > This support comes from the underlying Trang library. It looks like any > > schema format Trang accepts can be used. [3] > > > > /Andy > > > > [1] http://docs.basex.org/wiki/Validation_Module#RelaxNG_Validation > > [2] http://www.nvdl.org/ > > [3] > > > https://github.com/BaseXdb/basex/blob/master/basex-core/src/main/java/org/basex/query/func/validate/ValidateRng.java >
Written for BaseX 8.5. BaseX may have changed since: please check the current documentation.
⚡Generated with XQuery