Skip to content

The Reference Stylesheets developed and released by EpiDoc for use with XML documents following the EpiDoc schema.

License

Notifications You must be signed in to change notification settings

EpiDoc/Stylesheets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

06e4dd2 · Mar 6, 2025
Oct 7, 2022
Feb 18, 2025
Oct 7, 2022
Oct 5, 2022
Nov 8, 2024
Nov 9, 2021
Jun 18, 2019
Jun 18, 2019
Jun 18, 2019
Jun 18, 2019
Jun 18, 2019
Jun 18, 2019
Jun 18, 2019
Jun 18, 2019
Jun 18, 2019
May 30, 2023
Jun 18, 2019
Jun 18, 2019
Dec 17, 2022
Jul 21, 2021
Jun 18, 2019
Jun 18, 2019
Jun 18, 2019
Jun 18, 2019
Jun 18, 2019
Jun 18, 2019
Jun 18, 2019
Jun 18, 2019
Jun 18, 2019
Jun 18, 2019
Jun 18, 2019
Jun 18, 2019
Jun 18, 2019
Jun 18, 2019
Jun 18, 2019
Feb 21, 2022
Jun 18, 2019
Mar 20, 2024
Sep 8, 2009
Mar 12, 2024
Feb 5, 2020
Jun 19, 2023
Mar 2, 2021
Aug 30, 2017
Jun 19, 2023
Jul 16, 2024
Aug 5, 2014
Dec 6, 2023
Apr 23, 2024
Mar 20, 2024
Aug 5, 2017
Feb 21, 2022
Mar 20, 2024
Dec 10, 2021
Feb 20, 2019
Jun 19, 2023
Jun 25, 2024
Feb 26, 2022
Jan 10, 2012
Jan 28, 2013
Mar 27, 2024
Aug 27, 2014
Aug 5, 2017
Jan 10, 2012
Dec 17, 2022
Aug 15, 2014
Dec 13, 2022
Jun 19, 2023
Aug 5, 2017
Jun 25, 2024
Oct 24, 2013
Mar 5, 2019
Jan 10, 2012
Jan 10, 2012
May 3, 2022
Feb 21, 2022
Jun 26, 2017
Dec 6, 2016
Mar 16, 2021
Jun 26, 2017
Jul 13, 2017
Aug 5, 2017
Feb 21, 2022
Jun 10, 2022
Nov 28, 2017
Feb 23, 2025
Dec 6, 2016
Jun 23, 2022
Jun 19, 2023
Jun 26, 2017
Feb 20, 2019
May 31, 2011
Jan 10, 2012
Feb 18, 2025
Apr 5, 2021
Apr 5, 2021
Apr 5, 2021
Apr 5, 2021
Dec 17, 2022
Dec 17, 2022
Mar 2, 2021
Feb 20, 2019
Dec 6, 2023
Mar 6, 2024
Aug 5, 2017
Mar 20, 2024
Dec 17, 2022
Feb 20, 2019
Jun 3, 2015
Mar 27, 2024
Jan 10, 2012
Feb 26, 2022
Oct 25, 2024
Jun 19, 2023
Aug 5, 2017
Apr 10, 2014
Dec 13, 2022
Apr 23, 2024
May 3, 2023
Jun 19, 2023
Dec 17, 2022
Oct 25, 2024
Oct 5, 2022
Dec 13, 2022
Sep 28, 2012
Jun 19, 2023
Nov 19, 2014
Feb 20, 2019
Aug 31, 2011
Oct 28, 2014
Feb 21, 2022
Mar 6, 2025
Dec 10, 2021
Oct 24, 2013
Jul 21, 2021
Jun 3, 2015
Aug 31, 2011
Aug 31, 2011
Aug 5, 2017
Aug 31, 2011
Aug 31, 2011
Aug 31, 2011
Dec 13, 2022
Jun 19, 2023
Apr 10, 2014
Aug 31, 2011
Jan 11, 2012

Repository files navigation

EpiDoc Reference Stylesheets

README.txt for EpiDoc/Stylesheets

What it is:

XSLT for transformation of EpiDoc XML files into HTML or text versions in Leiden. Includes various XML files containing parameters and other options.

To cite these stylesheets in a conventional bibliography, please include the following information:

Tom Elliott, Zaneta Au, Gabriel Bodard, Hugh Cayless, Carmen Lanz, Faith Lawrence, Scott Vandebilt, Raffaele Viglianti, et al. (2008-2021), EpiDoc Example Stylesheets (version 9). Available: https://github.com/EpiDoc/Stylesheets

Where to report bugs or request features:

Please use the unified EpiDoc bug tracker and EpiDoc feature request tracker at SourceForge.

License:

These scripts are copyright Zaneta Au, Gabriel Bodard and all other contributors. See LICENSE.txt for license details.

Technical requirements:

These scripts are written in XSLT 2.0 and may be transformed using any conformant XSLT processor. (Tested with Saxon-HE 9.6.0.5.)

How to obtain the stylesheets:

Three methods:

  1. check out from the EpiDoc Git repository. On a Mac or Linux machine with Git installed, simply create a directory into which you want to check out the xslt, and then on the terminal/command-line enter:
git clone https://github.com/EpiDoc/Stylesheets.git your_directory
  1. Download the latest development version directly from: https://github.com/EpiDoc/Stylesheets/archive/master.zip

  2. download the latest packaged, stable release from the Sourceforge repository at https://sourceforge.net/projects/epidoc/files/epidoc-xsl/

How to use it:

XSLT may be run on an individual EpiDoc XML file, creating a single file output (e.g. via a command-line Saxon call or an Oxygen transformation scenario) or batch-run upon a large collection of files via some other process (e.g. an Oxygen project, set of batch files, etc.). Call the start-edition.xsl stylesheet to create a HTML version of the output (this XSL calls both generic and specialized files needed), or start-txt.xsl to create a text-only version of the text output, or start-fo.xsl to create a XSL-FO block for use in a XSL-FO based PDF production workflow.

Transformations are parameterised so that they may be used by different projects with only a change in local parameters, the scripts themselves being identical for all users. Change the parameters either by (a) changing the global-parameters.xml in your local copy (please do not commit these changes to SVN), or (b) setting local variables in your Saxon command-line, Oxygen scenario, etc.

The parameters currently defined include:

$internal-app-style:
	Generate a paragraph of apparatus immediately below
	the text unless value is "none" (default); via equivalent of
	TEI "Parallel Segmentation" apparatus encoding.
	Supported values include: 'ddbdp' (generate very rich
	apparatus from tei:app, tei:subst, tei:choice, tei:hi etc.
	elements in the text); 'iospe' (generate simple apparatus
	from tei:choice and children in text only).
$external-app-style:
	Variant ways to interpret the markup in `div[@type='apparatus']`,
	assumed to follow equivalent of TEI "Location-Referenced"
	apparatus encoding. The only value supported is 'iospe',
	which processes bibliography richly.
$css-loc
	Path of CSS file referenced in the resulting HTML file.
	Default value is '../xsl/global.css'.
$docroot
	Default value is '../output/data'
$edition-type:
	Values supported are 'interpretive' (default; i.e. editorial) and 'diplomatic' (prints
	edition in uppercase, no restored, corrected, expanded characters, etc.)
$edn-structure
	Selects a template for the whole epigraphic edition, based on the templates provided.
	Values supported are 'sample' (full page showing most common features), 'inslib', 'iospe', 'sigidoc'.
	Also available: 'default' (only prints epigraphic text)
$hgv-gloss
	Used by Papyrological Navigator only.
	Value is '../../../xml/idp.data/trunk/HGV_trans_EpiDoc/glossary.xml'.
	Location of HGV glossary file relative to the current file.
$leiden-style:
	Selects variations in local Leiden usage; brackets for corrected text,
	display of previously read text, illegible characters, etc.
	Values supported include 'panciera' (default), 'ddbdp', 'dohnicht',
	'edh-web' (and 'edh-itx', 'edh-names'), 'ila', 'london',
	'petrae', 'rib', 'seg', and 'sammelbuch'. 
$line-inc:
	Defines the intervals at which lines are numbered (usually every 5).
	Default value = 5, may be locally defined to any integer value
$topNav
	Used by Papyrological Navigator only.
	values are 'default' and 'ddbdp'
$verse-lines:
	values are 'off' (default), and 'on' (when a text of section of
	text is tagged using <lg> and <l> elements [instead of <ab>] then
	edition is formatted and numbered in verse lines rather than
	epigraphic lines)
$bibliography:
	the default value is 'none', but in this parameter you can set the Stylesheets
	to look either at a local TEI encoded bibliography file with the
	value 'localTEI' (the path to which should be defined in $localbibl) or
	look at a Zotero Library openly accessible online, setting the
	parameter to 'zotero' and taking care to set also the other
	parameters starting with $Zotero
	
	$localbibl:
		if you selected 'localTEI' as a value for $bibliography, than in this paramter
		you can set the relative path to this file. As an example it assumes that this will be
		in ../BIBLIOGRAPHY.xml, but it needs not to be there, simply set it to the correct relative path.
	$ZoteroUorG:
		values are 'groups' (default) or 'users'. If the
		Zotero bibliography is used, select whether it is a group library or a user's library
	$ZoteroKey:
		value is free for you to set based on the key identifying your library in Zotero,
		there is a default on 247748, which is the EAGLE group bibliography
	$ZoteroNS:
		default value is no namespace, although the htm-teibibl.xsl using this parameter takes this value only if selected. You can set it to any prefix you are using in your Zotero library.
	$ZoteroStyle:
		value is the name of the desired CSL registered style in the
		Citation Styles Repository, e.g. chicago-author-date, which is the default Zotero will use if you do not specify this parameter

About

The Reference Stylesheets developed and released by EpiDoc for use with XML documents following the EpiDoc schema.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages