Source

at2oac /

The xlink-rewrite branch has multiple heads

Filename Size Date modified Message
1.5 KB
1.6 KB
10.1 KB
<!-- -*- markdown -*- -->

at2oac
======

XSLT 1.0 to process archivists' toolkit output to get it ready for
preview and submission to oac.cdlib.org with voroEAD

running
-------

To run this XSLT you can use [libxml2/libxslt](http://xmlsoft.org/XSLT/)

	xsltproc --output VORO_INPUT.xml at2oac.xsl AT_OUTPUT.xml

OR you can use [saxon](http://saxon.sourceforge.net/)

	java -jar saxonb-x.x.jar -o VORO_INPUT.xml AT_OUTPUT.xml at2oac.xsl

Changes it makes
----------------

- 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)

Download
--------
[http://bitbucket.org/btingle/at2oac/src](http://bitbucket.org/btingle/at2oac/src)

Credits
-------
Produced by the [California Digital Library, Digital Special Collections](http://www.cdlib.org/services/dsc/)

Issue tracker
-------------
report problems [http://bitbucket.org/btingle/at2oac/issues](http://bitbucket.org/btingle/at2oac/issues)
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.