File: invlat1.xsl

package info (click to toggle)
texlive-lang 2016.20170123-5
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 1,093,148 kB
  • ctags: 15,901
  • sloc: perl: 46,074; xml: 29,603; makefile: 5,248; sh: 3,179; python: 2,949; ansic: 2,846; ruby: 945; lisp: 726; awk: 636; java: 159; sed: 142; cpp: 12
file content (63 lines) | stat: -rw-r--r-- 1,284 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<?xml version='1.0'?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/XSL/Transform/1.0"
                default-space="strip"
                result-ns="">

<xsl:template match="invitation">
<xsl:text>\documentclass[]{article}
\usepackage{invitation}
\begin{document}
</xsl:text>
<xsl:apply-templates/>
<xsl:text>\end{document}
</xsl:text>
</xsl:template>

<xsl:template match="invitation/front">
<xsl:text>\begin{Front}
\To{</xsl:text>
<xsl:value-of select="to"/>
<xsl:text>}
\Date{</xsl:text>
<xsl:value-of select="date"/>
<xsl:text>}
\Where{</xsl:text>
<xsl:value-of select="where"/>
<xsl:text>}
\Why{</xsl:text>
<xsl:value-of select="why"/>
<xsl:text>}
\end{Front}
</xsl:text>
</xsl:template>

<xsl:template match="invitation/body">
<xsl:text>\begin{Body}
</xsl:text>
  <xsl:apply-templates/>
<xsl:text>\end{Body}
</xsl:text>
</xsl:template>

<xsl:template match="invitation/body/par">
<xsl:text>\par</xsl:text>
<xsl:apply-templates/>
</xsl:template>

<xsl:template match="invitation/body/par/emph">
<xsl:text>\emph{</xsl:text>
<xsl:apply-templates/>
<xsl:text>}</xsl:text>
</xsl:template>

<xsl:template match="invitation/back">
<xsl:text>\begin{Back}
\Signature{</xsl:text>
<xsl:value-of select="signature"/>
<xsl:text>}
\end{Back}
</xsl:text>
</xsl:template>

</xsl:stylesheet>