Added functions to move memory to and from user space.
[cascardo/kernel/old_slides/.git] / beamer.xsl
1 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
2
3 <xsl:output method="text"/>
4
5 <xsl:template match="slides">
6 \documentclass[11pt]{beamer}
7 \usepackage{amsfonts,graphicx,url}
8 \usepackage[utf-8]{inputenc}
9 <xsl:apply-templates select="slidesinfo"/>
10 \begin{document}
11 \frame{\maketitle}
12 <xsl:apply-templates select="foil"/>
13 \end{document}
14 </xsl:template>
15
16 <xsl:template match="slidesinfo" xml:space="preserve">
17 \title{<xsl:value-of select="title"/>}
18 \author{<xsl:value-of select="author/firstname"/> <xsl:value-of select="author/surname"/>}
19 </xsl:template>
20
21 <xsl:template match="foil">
22 \begin{frame}[fragile]
23 \frametitle{<xsl:value-of select="title"/>}
24 <xsl:apply-templates/>
25 \end{frame}
26 </xsl:template>
27
28 <xsl:template match="foil/title"/>
29
30 <xsl:template match="para">
31 \par
32 <xsl:apply-templates/>
33 </xsl:template>
34
35 <xsl:template match="itemizedlist">
36 \begin{itemize}
37 <xsl:apply-templates/>
38 \end{itemize}
39 </xsl:template>
40
41 <xsl:template match="listitem">
42 \item{<xsl:apply-templates/>}
43 </xsl:template>
44
45 <xsl:template match="emphasis">\emph{<xsl:apply-templates/>}</xsl:template>
46
47 <xsl:template match="important">
48 \center{<xsl:apply-templates/>}
49 </xsl:template>
50
51 <xsl:template match="figure/title"/>
52
53 <xsl:template match="imagedata">
54 \includegraphics[width=\linewidth,height=7cm]{<xsl:value-of select="@fileref"/>}
55 </xsl:template>
56
57 <xsl:template match="screen">
58 \begin{verbatim}
59 <xsl:apply-templates/>
60 \end{verbatim}
61 </xsl:template>
62
63 </xsl:stylesheet>