Skip to content

mokko/zml2lido

Repository files navigation

zml2lido - Xslt that rewrites ZML to Lido

"zml" refers to Zetcom's "generic" xml format that comes out of MpRia's API.

Requires

  • Saxon to run xslt newer than version 1: //http://saxon.sourceforge.net/ We used to use a java subprocess to run saxon, now we're using saxonche from pypi.org.

The mapping is partly specific to the RIA installation of the SPK, but might inspire others.

Includes the following scripts

  • lido
  • lvalidate
  • saxon

#lido

lido -j smb -i path/to/generic_xml # writes output to script_dir/sdata/20221023/label

use -f to force overwrite existing files

Common Jobs

job 'smb' does the following steps (1) convert to LIDO (2) filter out lido records that are not published (3) filter out relatedWorks tht are not pubished (except Literature) (4) validate LIDO (5) split

job 'dd' does the following (1) convert to LIDO (2) validate LIDO

##Common Errors todo

About

xslt that transforms Zetcom's xml to LIDO plus some Python glue to make things easy

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published