Stylesheet for converting UMDM.xml to MODS.xml
Still working out kinks, but most basic fields transform properly. Need to add some more efficiency to it, but for testing things in Fedora4, it should work.
The getsamplerdf script has several prerequisites.
Easiest way is to manage it with pyenv. If you don't already have it, follow the installation instructions. Once you have it installed, you are ready to install Python 3, and set the local Python for this directory.
$ pyenv install 3.4.2
$ pyenv local 3.4.2
$ pip install lxml
Download the ZIP file from
here. Unzip and copy
the saxon9he.jar to a safe location (e.g., ~/jar
). Make sure it is on your
$CLASSPATH
; add the following to your ~/.bash_profile
:
CLASSPATH=$HOME/jar/saxon9he.jar
This provides both the xsltproc
and xmllint
programs.
$ brew install libxml2
This provides the rapper
program.
$ brew install raptor