TEI XSL Stylesheets
XSLT HTML CSS TeX Makefile Shell Other
Latest commit 4340959 Jan 15, 2017 @martindholmes martindholmes Made FOP processing default; tested the possibility of downloading P5…
… Exemplars to use in processing, but it's too complicated because of linked resources.
Permalink
Failed to load latest commit information.
Documentation Fixes #129. Nov 11, 2015
Test Fixing Test target 'oddtree' so that it actually works. It's neat. Jan 9, 2017
Test2 Made FOP processing default; tested the possibility of downloading P5… Jan 15, 2017
bibtex change from use of common2 to common in ant tasks Jul 23, 2013
bin Undoing accidental resolution of bin/ symlinks Nov 10, 2016
cocoa amusing ourselves fixing Cocoa converter a bit Sep 20, 2014
common More tweaks for link creation as part of work on TEIC/Stylesheets#203. Dec 30, 2016
css kill line-height Apr 18, 2015
csv Fixing merge problems. Mar 29, 2016
debian-tei-xsl Saxon requirement should actually be libsaxonhe-java, not libsaxon-java. Dec 13, 2016
docbook A couple of tweaks to handle text/front in the context of docbook. Do… Jan 13, 2017
docx Fixing merge problems. Mar 29, 2016
dtd change from use of common2 to common in ant tasks Jul 23, 2013
epub Fixing merge problems. Mar 29, 2016
epub3 Fixing merge problems. Mar 29, 2016
fo Fix for #223, currently invoked only when foEngine='fop', but should … Jan 12, 2017
html Adding support for display of processing model directives. Aug 9, 2016
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 Fix for typo mentioned in #196. Dec 20, 2016
lib Upgrading to Saxon 9.7.14. Dec 5, 2016
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 Better validation for anyElement/@require. Jan 8, 2017
odt Fixing merge problems. Mar 29, 2016
p4 Revert a362f5d..591ae12 Sep 8, 2014
pdf Fixing merge problems. Mar 29, 2016
profiles fix conversion for spirales transcriptions Jan 10, 2017
rdf rename bitOut to schemaOut, and clear up constraintSpec processinh in… Oct 13, 2014
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 Fixing minor bug in odd-to-tree.xsl, where attDef without @usage was … Jan 9, 2017
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 Bugfixes. Dec 8, 2016
.gitignore catch one more situation of ambiguous content Sep 30, 2014
.project started the big refactoring process Oct 11, 2009
AUTHORS Revert a362f5d..591ae12 Sep 8, 2014
ChangeLog RELEASE 7.39 fixing bug which lost a front when the rest of the text … Jun 7, 2015
LICENCE clean up Nov 7, 2011
Makefile making trivial change to check i kno wot i am doing Oct 9, 2015
README.md Fixing merge problems. Mar 29, 2016
VERSION Version file was not updated after the last release. Dec 30, 2016
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:

a) cover all TEI elements and possible attribute values b) 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.