Text only | Skip links
Skip links||IT Services, University of Oxford

This page documents the development of components for managing the conversion of XML documents using the Text Encoding Initiative guidelines to ePub format. Considerably more work is always waiting to be undertaken on coverage of rich TEI markup and on design.

One of the fruits of this work is the collection of ePub editions of plays by Shakespeare and his contemporaries published in Oxford iTunesU collection (see also http://podcasts.ox.ac.uk/).

The main part of the process is an XSLT 2.0 transformation of the TEI XML file, based on the existing TEI to HTML stylesheets (see http://www.tei-c.org/release/doc/tei-xsl-common/), adding in the necessary extra metadata files. The wrapper XSLT is documented in http://www.tei-c.org/release/doc/tei-xsl-common/profiles/default/epub/to.html.

Making a complete ePub is a little more complicated than just the transform, however. The files (and any images) have to be carefully wrapped up in a ZIP archive with the right compression. The setup can work with just a shell script to manage the process (http://www.tei-c.org/release/xml/tei/stylesheet/teitoepub), but is more easily managed using the OxGarage RESTful web servlet (based on the ENRICH Garage; see http://dl.psnc.pl/software/EGE/) at http://oxgarage.oucs.ox.ac.uk:8080/ege-webclient. Others have demonstrated a similar technique by extracting XML texts from an eXist database and zipping up the output from within XQuery.

1. Sample files (testing features)

Table 1. Assorted test files
ID Title Author Date Subject
comenius_labyrinth_czech.epub Labyrint sveta a raj srdce J. A. Komenský 2010-07-25 Czech literature
comenius_labyrinth_english.epub The Labyrinth of the World and the Paradise of the Heart J. A. Komenský 2010-07-25 Czech literature
enrich.epub The ENRICH Schema edited by Lou Burnard 2009-07-01 Techdoc (OUCS)
holinshed1577.epub Holinshed's Chronicles, 1577 2010-07-24 EEBO Text (OUCS)
Punch_1914-07-01.epub Punch, or the London Charivari, Vol. 147, July 1, 1914 2010-07-24 TEI Text
queen.epub The Queen's Christmas Broadcasts 1955-2009 2010-07-24 TEI Text
scripts.epub; scripts.mobi Testing non-Latin scripts in TEI 2010-07-24 Assorted texts (OUCS)
Test2009-1.epub Assorted texts (OUCS)

2. Oxford Text Archive

Here are some sample OTA texts upgraded to TEI P5, and thence to ePub. These are not necessarily well checked yet, and should not be regarded as final. They will be available from the OTA (http://www.ota.ox.ac.uk/) in the near future.

ID Title Author Date Subject
3001: epub; mobi; source Arden of Feversham Unknown 1592 2010-08-31 OTA text Plays -- England -- 16th century Tragedies -- England -- 16th century
3002: epub; mobi; source The raigne of King Edvvard the Third 1596 2010-08-31 OTA text Edward -- III, -- King of England, -- 1312-1377 -- Drama Plays -- England -- 16th century
3003: epub; mobi; source The revenger’s tragedy Thomas Middleton 1606 2010-08-31 OTA text English drama -- 17th century
3004: epub; mobi; source The Spanish tragedie Thomas Kyd 1592 2010-08-31 OTA text English drama -- Early modern and Elizabethan, 1500-1600
3005: epub; mobi; source The Duchess of Malfi John Webster 1623 2010-08-31 OTA text English drama -- Early modern and Elizabethan, 1500-1600
3006: epub; mobi; source The Roaring Girl or Moll Cutpurse Thomas Dekker and Thomas Middleton 1610 2010-08-31 OTA text English drama -- Early modern and Elizabethan, 1500-1600
3007: epub; mobi; source The shoemakers' holiday Thomas Dekker 1599 2010-08-31 OTA text Plays -- England -- 16th century Comedies -- England -- 16th century
3008: epub; mobi; source Gammer Gvrtons nedle anonymous 1575 2010-08-31 OTA text Comedies -- England -- 16th century Plays -- England -- 16th century
3009: epub; mobi; source Anglo-Saxon poetic records 1100 2010-08-31 OTA text Poems
3010: epub; mobi; source Osudy dobrého vojáka Svejka za svetové války Jaroslav Hašek 1923 2010-08-31 OTA text Czech fiction -- 20th century
3011: epub; mobi; source Stalky & Co Rudyard Kipling 1899 2010-08-31 OTA text Unclassified
3012: epub; mobi; source Actions and Reactions Rudyard Kipling 1909 2010-08-31 OTA text Unclassified
3013: epub; mobi; source The Tale of Samuel Whiskers Beatrix Potter 1906 2010-08-31 OTA text Fiction -- England -- 20th century
3014: epub; mobi; source The Plays of William Shakespeare as published in the first folio of 1623 William Shakespeare 2010-08-31 OTA text
3015: epub; mobi; source The Tragedy Of Hoffman Chettle, Henry,(ca. 1560-1607) 1599 2010-08-31 OTA text Plays -- England -- 17th century Tragedies -- England -- 17th century
3017: epub; mobi; source The history and misfortunes of the famous Moll Flanders, etc. Daniel Defoe 1721 2010-09-21 OTA text Fiction -- England -- 18th century Picaresque fiction -- England -- 18th century
3018: epub; mobi; source Memoirs of a woman of pleasure (Fanny Hill) John Cleland 1748 2010-09-21 OTA text Fiction -- England -- 18th century
3019: epub; mobi; source The Collected Poems W.B. (William Butler) Yeats 1939 2010-09-21 OTA text Unclassified
3020: epub; mobi; source Collected Poems Wilfred Owen 1920 2010-09-21 OTA text Poems -- Great Britain -- 20th century
3214: epub; mobi; source A Connecticut yankee in King Arthur's court Mark Twain 2010-09-30 OTA text Fiction -- United States -- 19th century Fantasy literature -- United States -- 19th century Novels -- United States -- 19th century Satires -- United States -- 19th century
3215: epub; mobi; source Little women Louisa May Alcott 2010-09-30 OTA text Novels -- United States -- 19th century
3216: epub; mobi; source The Scarlet Pimpernel / by Baroness Orczy Emmuska Orczy 2010-09-30 OTA text Fiction -- Great Britain -- 20th century Novels -- Great Britain -- 20th century
3219: epub; mobi; source The adventures of Tom Sawyer Mark Twain 2010-09-30 OTA text Fiction -- United States -- 19th century Novels -- United States -- 19th century
3220: epub; mobi; source Utopia Thomas More 2010-09-30 OTA text Fiction -- England -- 16th century Fantasy literature -- England -- 16th century Utopian literature -- England -- 16th century Essays -- England -- 16th century
3225: epub; mobi; source Adventures of Huckleberry Finn Mark Twain 2010-10-03 OTA text Fiction -- United States -- 19th century Novels -- United States -- 19th century
3226: epub; mobi; source Der arme Heinrich Hartmann von Aue 2010-10-03 OTA text Poems -- Germany -- 12th century Epics -- Germany -- 12th century Devotional literature -- Germany -- 12th century
3227: epub; mobi; source Lieder Wolfram von Eschenbach 1220 2010-10-03 OTA text Songs, German (Middle High German) -- 12th century
3236: epub; mobi; source The Innocents abroad, or, The new Pilgrim's progress : being some account of the steamship Quaker City's pleasure excursion to Europe and the Holy Land : with descriptions of countries, nations, incidents and adventures, as they appeared to the author / by Mark Twain Mark Twain 2010-10-03 OTA text Travel literature -- United States -- 19th century
3247: epub; mobi; source Roughing it Mark Twain 2010-10-03 OTA text Travel literature -- United States -- 19th century
3256: epub; mobi; source A Christmas carol in prose: being a ghost story of Christmas Charles Dickens 2010-10-03 OTA text Fiction -- Great Britain -- 19th century Ghost stories -- Great Britain -- 19th century
3260: epub; mobi; source The tragedy of Pudd'nhead Wilson Mark Twain 2010-10-03 OTA text Fiction — United States — 19th century Novels — United States — 19th century
3261: epub; mobi; source The vision of Piers Plowman: a critical edition of the B-text William Langland 1387 2010-10-03 OTA text English literature -- 14th century
3262: epub; mobi; source The Years Between Rudyard Kipling 1919 2010-10-12 OTA text
3263: epub; mobi; source American Notes Rudyard Kipling 1891 2010-10-12 OTA text
3264: epub; mobi; source Barrack-Room Ballads Rudyard Kipling 1892 2010-10-12 OTA text
3265: epub; mobi; source Captains Courageous : a story of the Grand Banks Rudyard Kipling 1896 2010-10-12 OTA text
3266: epub; mobi; source City of Dreadful Night Rudyard Kipling 1900 2010-10-12 OTA text
3267: epub; mobi; source The Day's Work Rudyard Kipling 1898 2010-10-12 OTA text
3268: epub; mobi; source Debits and Credits Rudyard Kipling 1926 2010-10-12 OTA text
3269: epub; mobi; source Departmental Ditties and other verses Rudyard Kipling 1886 2010-10-12 OTA text
3270: epub; mobi; source A Diversity of Creatures Rudyard Kipling 1917 2010-10-12 OTA text
3271: epub; mobi; source The Eyes of Asia Rudyard Kipling 1919 2010-10-12 OTA text
3272: epub; mobi; source The Five Nations Rudyard Kipling 1903 2010-10-12 OTA text
3273: epub; mobi; source France at War Rudyard Kipling 1915 2010-10-12 OTA text
3274: epub; mobi; source The Fringes of the Fleet Rudyard Kipling 1915 2010-10-12 OTA text
3275: epub; mobi; source The Giridih Coal-Fields Rudyard Kipling 1888 2010-10-12 OTA text
3276: epub; mobi; source The Jungle Book Rudyard Kipling 1894 2010-10-12 OTA text
3277: epub; mobi; source The Second Jungle Book Rudyard Kipling 1895 2010-10-12 OTA text
3278: epub; mobi; source Just So Stories for Little Children Rudyard Kipling 1902 2010-10-12 OTA text
3279: epub; mobi; source Destroyers at Jutland Rudyard Kipling 1916 2010-10-12 OTA text
3280: epub; mobi; source A Book of Words Rudyard Kipling 1928 2010-10-12 OTA text
3281: epub; mobi; source Under the Deodars Rudyard Kipling 1888 2010-10-12 OTA text
3282: epub; mobi; source Life's Handicap Rudyard Kipling 1891 2010-10-12 OTA text
3283: epub; mobi; source The Light That Failed Rudyard Kipling 1891 2010-10-12 OTA text
3284: epub; mobi; source Limits and Renewals Rudyard Kipling 1932 2010-10-12 OTA text
3285: epub; mobi; source Many Inventions Rudyard Kipling 1893 2010-10-12 OTA text
3286: epub; mobi; source Letters of Marque Rudyard Kipling 1888 2010-10-12 OTA text
3287: epub; mobi; source The Muse Among the Motors Rudyard Kipling 1936 2010-10-12 OTA text
3288: epub; mobi; source The Naulahka: A Story of West and East Rudyard Kipling 1892 2010-10-12 OTA text
3289: epub; mobi; source In an Opium Factory Rudyard Kipling 1888 2010-10-12 OTA text
3290: epub; mobi; source The Phantom Rickshaw; and other tales Rudyard Kipling 1888 2010-10-12 OTA text
3291: epub; mobi; source Plain Tales from the Hills Rudyard Kipling 1888 2010-10-12 OTA text
3292: epub; mobi; source Puck of Pook's Hill Rudyard Kipling 1906 2010-10-12 OTA text
3293: epub; mobi; source Among the Railway Folk Rudyard Kipling 1888 2010-10-12 OTA text
3294: epub; mobi; source Rewards and Fairies Rudyard Kipling 1910 2010-10-12 OTA text
3295: epub; mobi; source Traffics and Discoveries Rudyard Kipling 1904 2010-10-12 OTA text
3296: epub; mobi; source From Sea to Sea Rudyard Kipling 1899 2010-10-12 OTA text
3297: epub; mobi; source The Seven Seas Rudyard Kipling 1896 2010-10-12 OTA text
3298: epub; mobi; source The Smith Administration Rudyard Kipling 1881 2010-10-12 OTA text
3299: epub; mobi; source Soldiers Three Rudyard Kipling 1888 2010-10-12 OTA text
3300: epub; mobi; source Something of Myself, For My Friends Known and Unknown Rudyard Kipling 1937 2010-10-12 OTA text
3301: epub; mobi; source Souvenirs of France Rudyard Kipling 1933 2010-10-12 OTA text
3302: epub; mobi; source Wee Willie Winkie ; and other child stories Rudyard Kipling 1888 2010-10-12 OTA text
3303: epub; mobi; source Thy Servant, A Dog Rudyard Kipling 1930 2010-10-12 OTA text
3304: epub; mobi; source Tales of the Trade Rudyard Kipling 1888 2010-10-12 OTA text

3. Useful ePub links



Sebastian Rahtz and the TEI @ Oxford team. Date: 2010
Copyright University of Oxford