TEI XSL Stylesheets
XSLT HTML CSS TeX Makefile Shell Other
martindholmes Slight file re-organization per suggestion from SB; parameterizing fi…
…le list so a single file can be tested more easily.
Latest commit d15201c Aug 11, 2018
Permalink
Failed to load latest commit information.
Documentation Fixes #129. Nov 11, 2015
Test Update for 3.4.0: Jul 23, 2018
Test2 Slight file re-organization per suggestion from SB; parameterizing fi… Aug 11, 2018
bibtex change from use of common2 to common in ant tasks Jul 23, 2013
bin change hard-coded default path (addressing #242) Mar 12, 2017
cocoa Forgot to commit the stylesheet changes that create the modified resu… Apr 24, 2017
common trimming whitespace from VERSION file Jul 23, 2018
css span.address selector with default properties of html:address added May 4, 2017
csv Fixing merge problems. Mar 29, 2016
debian-tei-xsl Update for 3.4.0: Jul 23, 2018
docbook added declaration for missing namespace prefix Jan 23, 2018
docx docx2tei hyperlink fix (#300) Apr 5, 2018
dtd change from use of common2 to common in ant tasks Jul 23, 2013
epub fixed some path issues that surfaced during OxGarage tests Jan 23, 2018
epub3 fixed some path issues that surfaced during OxGarage tests Jan 23, 2018
fo Adding a conditional to check whether there's any useful value Jan 30, 2018
html Stage one for issue #296: new parameter added to tei:makeDescription,… Jan 21, 2018
html5 Fixing merge problems. Mar 29, 2016
icml smallest of starts on TEI to InDesign, start with code from John Maxwell Jan 3, 2014
json some json library stuff Mar 12, 2015
latex Update from deprecated name of attribute to current name Nov 11, 2017
lib Upgraded to Saxon 9.8.0.5. Oct 12, 2017
lite Fixing merge problems. Mar 29, 2016
markdown Fixing merge problems. Mar 29, 2016
mediawiki Revert a362f5d..591ae12 Sep 8, 2014
nlm Fixing merge problems. Mar 29, 2016
odd change from use of common2 to common in ant tasks Jul 23, 2013
odds Bug fix: May 6, 2018
odt Ticket #260: fixing remaining warnings. Output is now conformant and … Apr 17, 2017
p4 Revert a362f5d..591ae12 Sep 8, 2014
pdf Fixing merge problems. Mar 29, 2016
profiles -display abstract at the beginning of an article in PDF Feb 12, 2018
rdf Stage one for issue #296: new parameter added to tei:makeDescription,… Jan 21, 2018
relaxng change from use of common2 to common in ant tasks Jul 23, 2013
rnc include trang jar file on distro, and change scripts accordingly Dec 1, 2013
schematron add teitoschematron script Oct 13, 2014
simple change mind about margin again May 25, 2015
slides Fixing merge problems. Mar 29, 2016
tbx remove phrase "all rights reserved" as its meaningless Oct 11, 2014
tcp put in better fix to self-eating <p> Feb 7, 2015
tite misunderstood change Dec 7, 2014
tools Minor changes for easier use with tei-publisher (#320) Apr 30, 2018
txt Fixing merge problems. Mar 29, 2016
verbatimxml Fixing merge problems. Mar 29, 2016
wordpress Revert a362f5d..591ae12 Sep 8, 2014
xlsx Found that some cells in an Excel spreadsheet were losing some or all… Jan 4, 2015
xsd Resolving #255. Jul 4, 2017
.gitignore Added .DS_Store to gitignore. Nov 2, 2017
.project started the big refactoring process Oct 11, 2009
AUTHORS Revert a362f5d..591ae12 Sep 8, 2014
ChangeLog Generated new chabgelog Jul 23, 2018
LICENCE clean up Nov 7, 2011
Makefile fixed typos Apr 5, 2018
README.md Minor changes for easier use with tei-publisher (#320) Apr 30, 2018
VERSION Updated version after release Jul 23, 2018
catalog.xml sciencejournal cleanup May 28, 2014
i18n.xml Changed caption as part of work on ticket #158. Aug 26, 2016

README.md

Stylesheets

TEI XSL Stylesheets

This is a family of XSLT 2.0 stylesheets to transform TEI XML documents to various formats, including XHTML, LaTeX, XSL Formatting Objects, ePub, plain text, RDF, JSON; and to/from Word OOXML (docx) and OpenOfice (odt). They concentrate on the core TEI modules which are used for simple transcription and "born digital" writing. It is important to understand that they do not:

  • cover all TEI elements and possible attribute values
  • attempt to define a standard TEI processing or rendering model

and should not be treated as the definitive view of the TEI Consortium.

Usage

The bin/ directory contains several executable files, which can be run on Linux, OS X, or other Unix operating systems. These perform a variety of transformations and are very useful for, e.g., generating a schema from a TEI ODD. Some examples:

bin/teitorelaxng --odd ../TEI/P5/Exemplars/tei_all.odd tei_all.rng

Assuming you have a copy of the TEI Guidelines repository alongside your copy of the Stylesheets, this will take the tei_all ODD and generate a RelaxNG XML schema for you. Similarly,

bin/teitornc --odd ../TEI/P5/Exemplars/tei_lite.odd tei_lite.rnc

will produce a RelaxNG Compact Syntax schema for TEI Lite.