Skip to content
TEI XSL Stylesheets
XSLT HTML CSS TeX Makefile Shell Other
Branch: dev
Clone or download

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Documentation Fixes #129. Nov 11, 2015
Test Re-generate tests: Apr 7, 2020
Test2 Slightly cleaner way to avoid making names.xml multiple times. Issue #… May 22, 2020
bibtex change from use of common2 to common in ant tasks Jul 23, 2013
bin add TEISOURCE_DEFAULT Mar 7, 2019
cocoa Forgot to commit the stylesheet changes that create the modified resu… Apr 24, 2017
common @sydb used XSLT 3 concatenation operator in XSLT 2 file. Switching to… Mar 20, 2020
css Changed to use CSS rather than HTML element Oct 27, 2018
csv Fixing merge problems. Mar 29, 2016
debian-tei-xsl Re-generate tests: Apr 7, 2020
docbook fix #308 cleaning up remaining hardcoded and superfluous references t… Sep 8, 2018
docx Added a step to remove empty tei:hi before final clean up step. Sep 16, 2019
dtd change from use of common2 to common in ant tasks Jul 23, 2013
epub Commenting out bad CSS in epub output for issue #115, this time in ep… Sep 8, 2018
epub3 switch scheme to https Sep 20, 2019
fo Fix #334: Nov 19, 2018
html nearly resolving #326 we hope Apr 7, 2020
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 add switch case for Korean to `tei:bibl` #202 Apr 8, 2020
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 Fix for #349. Mar 24, 2020
odt defer the injection of tei:pb for sections Jan 24, 2019
p4 Revert a362f5d..591ae12 Sep 8, 2014
pdf Fixing merge problems. Mar 29, 2016
profiles Merge pull request #434 from rvdb/jTEI-openeditionfixes May 12, 2020
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 fix #308 cleaning up remaining hardcoded and superfluous references t… Sep 8, 2018
tbx remove phrase "all rights reserved" as its meaningless Oct 11, 2014
tcp fix #308 cleaning up remaining hardcoded and superfluous references t… Sep 8, 2018
tite misunderstood change Dec 7, 2014
tools update default p5subset scheme Mar 5, 2019
txt Fixing merge problems. Mar 29, 2016
verbatimxml Fixing merge problems. Mar 29, 2016
wordpress Revert a362f5d..591ae12 Sep 8, 2014
xlsx fix #308 cleaning up remaining hardcoded and superfluous references t… Sep 8, 2018
xsd Resolving #255. Jul 4, 2017
.gitignore Added .DS_Store to gitignore. Nov 2, 2017
.project started the big refactoring process Oct 11, 2009
.travis.yml add Travis build icon to Readme Sep 12, 2018
AUTHORS Updated AUTHORS: Nov 20, 2018
ChangeLog added changelog Feb 13, 2020
LICENCE clean up Nov 7, 2011
Makefile fix creation of Debian packages Jul 2, 2019
README.md remove header style from paragraph Feb 11, 2020
VERSION Increased version number Feb 13, 2020
catalog.xml sciencejournal cleanup May 28, 2014
i18n.xml Work on TEI ticket #1657: translatable headings for deprecation appen… Sep 13, 2018

README.md

Stylesheets

Build Status

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.

For more information, see https://tei-c.org/tools/stylesheets/

Prerequisites

The package assumes that you have several additional tools installed. Their availability on your system can be verified by issuing the command make check.

In particular, Stylesheets assume that you use ant version 1.9.x+. If for some reason, you need to use ant 1.8.x, you should remove all occurences of the attribute @zip64Mode from the file common/teianttasks.xml.

It is helpful to have the TEI environment installed locally. Please refer to http://www.tei-c.org/Guidelines/P5/get.xml for hints on how to do that.

It is also possible to avoid manual installation of additional tools, by resorting to the pre-built test environment in Docker described in http://teic.github.io/TCW/testing_and_building.html .

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.

Documentation

To build the documentation, run:

make doc

It will then be available at release/xslcommon/doc/tei-xsl/index.html.

About the Text Encoding Initiative (TEI)

The Text Encoding Initiative (TEI) is a community of practice in the area now known as textual digital humanities. Since 1994 the primary output of the TEI has been the TEI/XML guidelines, a standard for the interchange of textual data. A main focii of the TEI is the TEI-L mailing list; the TEI is also on github and docker, a repository called TAPAS and an academic journal, the jTEI.

TEI/XML can be thought of as a sibling of HTML (they're approximately the same age, depending on how you measure it) which evolved with a focus on defined textual semantics rather than defined display semantics. TEI by example is a good introduction to TEI/XML. The Text Encoding Initiative Wikipedia article contains some short examples. The TEI/XML standard is used by content-based projects such as the British National Corpus, the Perseus Project, the Women Writers Project, the Oxford Text Archive, the Digital Tripitaka and SARIT, and tool-based projects such as CorrespSearch,
EpiDoc, Anthologize, Versioning Machine, and many more diverse projects.

You can’t perform that action at this time.