The Text Encoding Initiative

TEI Consortium XSLT stylesheets

Home | Guidelines | Projects | Tutorials | Software | History | FAQs | P5 | Consortium | Activities | SIGs | Join in/Contact | Members area

core.xsl

TEI stylesheet dealing with elements from the core module, making LaTeX output.
This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Author:
Sebastian Rahtz sebastian.rahtz@oucs.ox.ac.uk
CVS Id:
core.xsl,v 1.6 2006/01/17 20:37:19 rahtz Exp
Copyright:
2005, TEI Consortium

Match Templates Summary

tei:bibl (mode: cite) - source
Process elements tei:bibl
text() (mode: eg) - source
Process elements text()
tei:item (mode: gloss) - source
Process elements tei:item
Process elements tei:ab
Process elements tei:bibl/tei:title
Process elements tei:code
Process elements tei:eg|tei:q[@rend='eg']
Process elements tei:emph
Process elements tei:foreign
Process elements tei:gi
Process elements tei:head
Process elements tei:hi
Process elements tei:hr
Process elements tei:ident
Process elements tei:item
Process elements tei:label
Process elements tei:lb
Process elements tei:list
Process elements tei:listBibl
Process elements tei:listBibl/tei:bibl
Process elements tei:mentioned
Process elements tei:note
Process elements tei:p
Process elements p[@rend='display']
Process element tei:pb
Process elements tei:q
Process elements q[@rend='display']
Process elements tei:soCalled
Process elements tei:title[@level='a']
Process elements tei:title[@level='m']
Process elements tei:title[@level='s']
Process elements tei:titlePart
Process elements tei:xref[@type='cite']
Process text(), escaping the LaTeX command characters.

Named Templates Summary

Rendering rules, turning @rend into LaTeX commands

Match Templates Detail

tei:bibl (mode: cite) - source
Process elements tei:bibl
 
text() (mode: eg) - source
Process elements text()
 
tei:item (mode: gloss) - source
Process elements tei:item
 
Process elements tei:ab
 
Process elements tei:bibl/tei:title
 
Process elements tei:code
 
Process elements tei:eg|tei:q[@rend='eg']
 
Process elements tei:emph
 
Process elements tei:foreign
 
Process elements tei:gi
 
Process elements tei:head
 
Process elements tei:hi
 
Process elements tei:hr
 
Process elements tei:ident
 
Process elements tei:item
 
Process elements tei:label
 
Process elements tei:lb
 
Process elements tei:list
 
Process elements tei:listBibl
 
Process elements tei:listBibl/tei:bibl
 
Process elements tei:mentioned
 
Process elements tei:note
 
Process elements tei:p
 
Process elements p[@rend='display']
 
Process element tei:pb
Indication of a page break. We make it an anchor if it has an ID.
Process elements tei:q
 
Process elements q[@rend='display']
 
Process elements tei:soCalled
 
Process elements tei:title[@level='a']
 
Process elements tei:title[@level='m']
 
Process elements tei:title[@level='s']
 
Process elements tei:titlePart
 
Process elements tei:xref[@type='cite']
 
Process text(), escaping the LaTeX command characters.
We need the backslash and two curly braces to insert LaTeX commands into the output, so these characters need to replaced when they are found in running text. They are translated to Unicode COMBINING REVERSE SOLIDUS OVERLAY, MEDIUM LEFT CURLY BRACKET ORNAMENT and MEDIUM RIGHT CURLY BRACKET ORNAMENT; if these are used in real text, the escape will have to be changed. They are translated back to the correct characters by appropriate definitions in the preamble (see the template for TEI in textstructure.xsl).

Named Templates Detail

[latex]
 
Rendering rules, turning @rend into LaTeX commands