Currently the validator is restricted to a single input file. It throws a "Got unexpected extra argument(s)" error when either multiple input files or wildcards are used when calling it.
This is inconvenient when thousands of files needs to be validated.
Besides inconvenience this has serious performance implications: for each input file the Python interpreter is started and initialized, modules are loaded, schema is loaded and parsed, XSLT transforms are loaded and compiled. As a result, the validation of many files can require a lot of time.
Proposals are:
- Allow multiple input files and wildcards.
- Reorganize the code to load schemas and compile XSLTs only once, regardless of the number of input files.
- Add a new mode that will read a list of files to be validated from
stdin.
Currently the validator is restricted to a single input file. It throws a "Got unexpected extra argument(s)" error when either multiple input files or wildcards are used when calling it.
This is inconvenient when thousands of files needs to be validated.
Besides inconvenience this has serious performance implications: for each input file the Python interpreter is started and initialized, modules are loaded, schema is loaded and parsed, XSLT transforms are loaded and compiled. As a result, the validation of many files can require a lot of time.
Proposals are:
stdin.