xsltproc -o html_file.html xslt/ead_entry.xslt ead_file.xml
python/ead_test_xslt.py ead-test-col ead-test-col-html
This set of XSLT 1.0 + EXSLT stylesheets should turn any EAD into HTML
- same XSLT works with EAD 2002 Schema and EAD 2002 DTD finding aids.
- same XSLT works with nested __<c>__s and numbered __<c0x>__s
http://tingletech.github.com/ead-test-col/ ↢ https://github.com/tingletech/ead-test-col
in xslt
directory
ead_entry.xslt
pulls it all together; interfacesead.html.xslt
totemplate.xhtml
ead.html.xsl
has the main EAD to HTML logic mode="ead"template.xhtml
HTML template file for output; apply-templates runs on thisat2oac.xsl
converts EAD schema (such as from AT) to EAD DTD mode="at2oac"table.common.xsl
CALS table to HTML from Norm Walsh mode="ead"table.html.xsl
select options for table.common.xsl mode="ead"geocodes.xsl
provides function to expand geocodes to textlangcodes.xsl
provides function to expand langcodes to textsupplied-labels-headings.xsl
provides function to supply for missing headings and labels
xmlns:exsl="http://exslt.org/common" extension-element-prefixes="exsl"
exsl:node-set()
xmlns:func="http://exslt.org/functions" extension-element-prefixes="func"
<func:function>
<func:return>
Comes with a utility to generate HTML files from EAD files in batch by directory.
usage: ead_test_xslt.py [-h] indir outdir
run xsltproc on a directory
positional arguments:
indir input directory of EAD
outdir output directory of HTML
optional arguments:
-h, --help show this help message and exit
https://gist.github.com/1614098 ↢ https://github.com/tingletech/ead_tag_use.py