The EpiDoc Example XSLT
Pietro Liuzzo
What is it?
A series of parameterized XSLT scripts to transform your EpiDoc XML edition in several output formats.
+
Example 1 : print the text
<div type="edition" xml:lang="la">
<ab>
<lb n="1"/>Allia <expan><abbr>M</abbr><ex>arci</ex></expan> <expan><abbr>l</abbr><ex>iberta</ex></expan>
<lb n="2"/>Europa.
</ab>
</div>
EDR108958
Transform the text only with no parameter set (start-txt.xsl)
Example from a customized version of the scripts used in EAGLE
Example 2 : Diplomatic
<div type="edition" xml:lang="la">
<ab>
<lb n="1"/>Allia <expan><abbr>M</abbr><ex>arci</ex></expan> <expan><abbr>l</abbr><ex>iberta</ex></expan>
<lb n="2"/>Europa.
</ab>
</div>
Transform the text only with the parameter edition-type set to diplomatic
ALLIAML EUROPA
Example 3 : a HTML page
Transform a HTML page (start-edition.xsl) with parameter edn-structure set to iospe (among others)
Example from IOSPE http://iospe.cch.kcl.ac.uk/3.243.html
Example 3 : a HTML page
Transform a HTML page (start-edition.xsl) with parameter edition-type set to diplomatic and no setting for edn-structure (default)
Example from IOSPE output from EpiDoc Converter
Example 4 : the edition style
Transform a HTML with parameter leiden-style set to:
Example from IGCyr https://igcyr.unibo.it/igcyr004000
panciera | [---]ΤΡ̣[c. 1 - 2]ΑΝ δεκσιὰν Τ[---] |
dbddp | [ -ca.?- ]ΤΡ̣[ -1-2- ]ΑΝ δεκσιὰν Τ[ -ca.?- ] |
SEG | [---]ΤΡ̣[. 1-2.]ΑΝ δεκσιὰν Τ[---] |
london | [·· ? ··]ΤΡ̣[·· 1-2··]ΑΝ δεκσιὰν Τ[·· ? ··] |
edh-itx | [3]ΤΡ[6]ΑΝ δεκσιὰν Τ[3] |
<lb n="1"/>
<gap reason="lost" extent="unknown"
unit="character"/>
<orig>τ<unclear>ρ</unclear></orig>
<gap reason="lost" atLeast="1" atMost="2" unit="character"/>
<orig>αν</orig>
<w lemma="δεξιά">δεκσιὰν</w>
<orig>τ</orig>
<gap reason="lost" extent="unknown"
unit="character"/>
Example 4 : generate a PDF
Transform the EpiDoc to XSL-FO and include in workflow to print PDF using the branch with start-pdf.xsl
Example kindly provided by Irene Vagionakis
PDF produced in using a XQuery workflow in exist-db
Combine the parameters!
https://github.com/EpiDoc/Stylesheets/blob/master/global-parameters.xml#L75
Want to play around?