XSLT 1.0 to process archivists' toolkit output to get it ready for preview and submission to oac.cdlib.org with voroEAD
To run this XSLT you can use libxml2/libxslt
xsltproc --output VORO_INPUT.xml at2oac.xsl AT_OUTPUT.xml
OR you can use saxon
java -jar saxonb-x.x.jar -o VORO_INPUT.xml AT_OUTPUT.xml at2oac.xsl
-
adds a type attribute to dsc (uses supplied XSLT parameter
dsc-type
or default value of'combined'
) -
copies repositorycode and countrycode from eadid to archdesc/did/unitid (or uses supplied XSLT paramters
repositorycode
/countrycode
) -
converts the country code to uppercase as per the schema
-
defaults to removing did/container/@label or copies to did/physdesc if the stylesheet parameter
label-to-physdesc
is set to anything -
defaults to stripping out xsi:schemaLocation and putting the ead into xmlns=""; to preserve xsi:schemaLocation and xmlns="urn:isbn:1-931666-22-9" use stylesheet parameter
strip-namespace
of something other than 'yes' -
changes AT style dao (many dao per c0x outside did) to MOAC style (one dao per c0x inside did)
http://bitbucket.org/btingle/at2oac/src
Produced by the California Digital Library, Digital Special Collections
report problems http://bitbucket.org/btingle/at2oac/issues