Project

Profile

Help

Newbie's questions on validating from command line

Added by Lionel Barth about 10 years ago

Hi,

Is it possible to get the line number of errors when validating a document (which is some 25000 lines long) ?

Here is what I do :

java com.saxonica.Validate -xsd:noe.xsd -s:Berlin.xml --linenumbering:true Validation error There is one IDREF value with no corresponding ID: Berlin (See http://www.w3.org/TR/xmlschema11-1/#cvc-id clause 1) Validation of file Berlin.xml unsuccessful

Is it possible to dump the configuration to check it ?

Regards, Lionel


Replies (3)

Please register to reply

RE: Newbie's questions on validating from command line - Added by Michael Kay about 10 years ago

On this occasion Saxon is optimizing performance at the expense of usability. Retaining the line numbers of all IDREFs could add significant memory usage. Recently, in response to a problem submitted by another user, I've made a considerable effort to reduce the memory used for validating key/keyref constraints, which was making validation of a 10Gb document infeasible.

In most cases I don't think it should be too difficult to do an XPath search to find the offending IDREF value.

Is it possible to dump the configuration to check it ?

Sorry, I don't understand this question.

RE: Newbie's questions on validating from command line - Added by Lionel Barth about 10 years ago

Hi,

I realized I have the names of the offending idrefs (Berlin in my case) and it is enought to find it easily.

The second question is I was wondering the default value of linenumbering so I was looking for a way to know (dump??) the actual default of saxon.

Thanks for your answer. Lionel

RE: Newbie's questions on validating from command line - Added by Michael Kay about 10 years ago

We've got an open request on the enhancements list which suggests that it should be possible to generate a configuration file that captures the current configuration:

https://saxonica.plan.io/issues/2061

    (1-3/3)

    Please register to reply