1 of 10

The EpiDoc Example XSLT

Pietro Liuzzo

2 of 10

What is it?

A series of parameterized XSLT scripts to transform your EpiDoc XML edition in several output formats.

  • HTML
  • ODF
  • TEXT
  • PDF (XSL-FO)

+

3 of 10

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

4 of 10

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

5 of 10

Example 3 : a HTML page

Transform a HTML page (start-edition.xsl) with parameter edn-structure set to iospe (among others)

6 of 10

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

7 of 10

Example 4 : the edition style

Transform a HTML with parameter leiden-style set to:

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"/>

8 of 10

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

9 of 10

Combine the parameters!

  • Verse lines (verse-lines)
  • Line numbers (every 1, 2, n lines) (line-inc)
  • Set of Zotero parameters

https://github.com/EpiDoc/Stylesheets/blob/master/global-parameters.xml#L75

10 of 10

Want to play around?