<
xsl:
stylesheet xmlns:tei="
http://www.tei-c.org/ns/1.0"
xmlns:estr="
http://exslt.org/strings"
xmlns:xsl="
http://www.w3.org/1999/XSL/Transform"
xmlns:edate="
http://exslt.org/dates-and-times"
xmlns:a="
http://relaxng.org/ns/compatibility/annotations/1.0"
xmlns:xd="
http://www.pnp-software.com/XSLTdoc"
xmlns:rng="
http://relaxng.org/ns/structure/1.0"
xmlns:exsl="
http://exslt.org/common"
xmlns:teix="
http://www.tei-c.org/ns/Examples"
extension-element-prefixes="
exsl estr edate"
exclude-result-prefixes="
xd exsl estr edate a rng tei teix"
version="
1.0">
<
xd:
doc type="
stylesheet">
<
xd:
short>
TEI stylesheet
dealing with elements from the
drama module, making LaTeX output.
</
xd:
short>
<
xd:
detail>
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
</
xd:
detail>
<
xd:
author>
Sebastian Rahtz sebastian.rahtz@oucs.ox.ac.uk</
xd:
author>
<
xd:
cvsId>
$Id: drama.xsl,v 1.1 2005/05/22 04:45:25 rahtz Exp $</
xd:
cvsId>
<
xd:
copyright>
2005, TEI Consortium</
xd:
copyright>
</
xd:
doc>
<
xd:
doc>
<
xd:
short>
Process elements tei:actor</
xd:
short>
<
xd:
detail>
</
xd:
detail>
</
xd:
doc>
<
xsl:
template match="
tei:actor">
<
xsl:
text>
\textit{</
xsl:
text>
<
xsl:
apply-templates />
<
xsl:
text>
}</
xsl:
text>
</
xsl:
template>
<
xd:
doc>
<
xd:
short>
Process elements tei:camera</
xd:
short>
<
xd:
detail>
</
xd:
detail>
</
xd:
doc>
<
xsl:
template match="
tei:camera">
<
xsl:
text>
\textit{</
xsl:
text>
<
xsl:
apply-templates />
<
xsl:
text>
}</
xsl:
text>
</
xsl:
template>
<
xd:
doc>
<
xd:
short>
Process elements tei:caption</
xd:
short>
<
xd:
detail>
</
xd:
detail>
</
xd:
doc>
<
xsl:
template match="
tei:caption">
<
xsl:
text>
\textit{</
xsl:
text>
<
xsl:
apply-templates />
<
xsl:
text>
}</
xsl:
text>
</
xsl:
template>
<
xd:
doc>
<
xd:
short>
Process elements tei:castGroup</
xd:
short>
<
xd:
detail>
</
xd:
detail>
</
xd:
doc>
<
xsl:
template match="
tei:castGroup">
\begin{itemize}
<
xsl:
apply-templates />
\end{itemize}
</
xsl:
template>
<
xd:
doc>
<
xd:
short>
Process elements tei:castItem</
xd:
short>
<
xd:
detail>
</
xd:
detail>
</
xd:
doc>
<
xsl:
template match="
tei:castItem">
\item <
xsl:
apply-templates />
</
xsl:
template>
<
xd:
doc>
<
xd:
short>
Process elements tei:castList</
xd:
short>
<
xd:
detail>
</
xd:
detail>
</
xd:
doc>
<
xsl:
template match="
tei:castList">
<
xsl:
if test="
tei:head">
<
xsl:
text>
\par\textit{</
xsl:
text>
<
xsl:
for-each select="
tei:head">
<
xsl:
apply-templates />
</
xsl:
for-each>
<
xsl:
text>
}
</
xsl:
text>
</
xsl:
if>
\begin{itemize}
<
xsl:
apply-templates />
\end{itemize}
</
xsl:
template>
<
xd:
doc>
<
xd:
short>
Process elements tei:p/tei:stage</
xd:
short>
<
xd:
detail>
</
xd:
detail>
</
xd:
doc>
<
xsl:
template match="
tei:p/tei:stage">
<
xsl:
text>
\textit{</
xsl:
text>
<
xsl:
apply-templates />
<
xsl:
text>
}</
xsl:
text>
</
xsl:
template>
<
xd:
doc>
<
xd:
short>
Process elements tei:role</
xd:
short>
<
xd:
detail>
</
xd:
detail>
</
xd:
doc>
<
xsl:
template match="
tei:role">
<
xsl:
text>
\textbf{</
xsl:
text>
<
xsl:
apply-templates />
<
xsl:
text>
}</
xsl:
text>
</
xsl:
template>
<
xd:
doc>
<
xd:
short>
Process elements tei:roleDesc</
xd:
short>
<
xd:
detail>
</
xd:
detail>
</
xd:
doc>
<
xsl:
template match="
tei:roleDesc">
<
blockquote>
<
xsl:
apply-templates />
</
blockquote>
</
xsl:
template>
<
xd:
doc>
<
xd:
short>
Process elements tei:set</
xd:
short>
<
xd:
detail>
</
xd:
detail>
</
xd:
doc>
<
xsl:
template match="
tei:set">
<
xsl:
text>
\textit{</
xsl:
text>
<
xsl:
apply-templates />
<
xsl:
text>
}</
xsl:
text>
</
xsl:
template>
<
xd:
doc>
<
xd:
short>
Process elements tei:sound</
xd:
short>
<
xd:
detail>
</
xd:
detail>
</
xd:
doc>
<
xsl:
template match="
tei:sound">
<
xsl:
text>
\textit{</
xsl:
text>
<
xsl:
apply-templates />
<
xsl:
text>
}</
xsl:
text>
</
xsl:
template>
<
xd:
doc>
<
xd:
short>
Process elements tei:sp</
xd:
short>
<
xd:
detail>
<
xsl:
text>
\par
</
xsl:
text>
elaborated by Nick Nicholas <nicholas@uci.edu>, March 2001
</
xd:
detail>
</
xd:
doc>
<
xsl:
template match="
tei:sp">
\begin{description}
\item[<
xsl:
apply-templates select="
tei:speaker" />
]
<
xsl:
apply-templates select="
tei:p | tei:l | tei:lg | tei:seg | tei:ab | tei:stage" />
<
xsl:
text>
\end{description}
</
xsl:
text>
</
xsl:
template>
<
xd:
doc>
<
xd:
short>
Process elements tei:sp/tei:p</
xd:
short>
<
xd:
detail>
</
xd:
detail>
</
xd:
doc>
<
xsl:
template match="
tei:sp/tei:p">
<
xsl:
apply-templates />
</
xsl:
template>
<
xd:
doc>
<
xd:
short>
Process elements tei:stage</
xd:
short>
<
xd:
detail>
</
xd:
detail>
</
xd:
doc>
<
xsl:
template match="
tei:stage">
<
xsl:
text>
\par
</
xsl:
text>
<
xsl:
text>
\textit{</
xsl:
text>
<
xsl:
apply-templates />
<
xsl:
text>
}\par </
xsl:
text>
</
xsl:
template>
<
xd:
doc>
<
xd:
short>
Process elements tei:sp/tei:stage</
xd:
short>
<
xd:
detail>
</
xd:
detail>
</
xd:
doc>
<
xsl:
template match="
tei:sp/tei:stage">
<
xsl:
text />
<
xsl:
text>
\textit{</
xsl:
text>
<
xsl:
apply-templates />
<
xsl:
text>
} </
xsl:
text>
</
xsl:
template>
<
xd:
doc>
<
xd:
short>
Process elements tei:tech</
xd:
short>
<
xd:
detail>
</
xd:
detail>
</
xd:
doc>
<
xsl:
template match="
tei:tech">
<
xsl:
text>
\textit{</
xsl:
text>
<
xsl:
apply-templates />
<
xsl:
text>
}</
xsl:
text>
</
xsl:
template>
<
xd:
doc>
<
xd:
short>
Process elements tei:view</
xd:
short>
<
xd:
detail>
</
xd:
detail>
</
xd:
doc>
<
xsl:
template match="
tei:view">
<
xsl:
text>
\textit{</
xsl:
text>
<
xsl:
apply-templates />
<
xsl:
text>
}</
xsl:
text>
</
xsl:
template>
</
xsl:
stylesheet>
v