SAA-SDT / EAS-TagLibraries

Tag Libraries for Encoded Archival Description Version 3 and Encoded Archival Context: Corporate Bodies, Persons, and Families
7 stars 5 forks source link

first pass at build script; added fop/saxon libraries #75

Closed alexduryee closed 3 years ago

alexduryee commented 3 years ago

This PR adds a build script (OSX/Linux), which will generate PDF and HTML without needing external FOP/Saxon or any config swaps. I'll need to add a Windows batch script to duplicate this behavior, but this is tested on Linux and works fine, although I'd like verification that it runs on OSX as well. This currently doesn't support swapping the EAD namespace from 2002->3, although hopefully that won't be a continuing issue. I haven't tested out passing standard-specific variables to Saxon yet, which in theory should allow for standard-specific settings without editing the XSLT, but it should work as per https://www.oxygenxml.com/archives/xsl-list/200501/msg00226.html

Note that this has to be run from the build/ directory - elsewhere and the directory paths won't align properly.

Cheers to @fordmadox for his work on scripting the EAC-CPF schema generation, which this was copied from :)

alexduryee commented 3 years ago

Added Windows batch script to generate TLs - it's not perfect (leaves the FOXML file behind) but does its job.