File: invhtml2.xsl

package info (click to toggle)
texlive-doc 2009-2
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 192,004 kB
  • ctags: 4,774
  • sloc: perl: 12,760; xml: 11,870; makefile: 1,033; lisp: 394; sh: 229; awk: 205; java: 159; sed: 4
file content (42 lines) | stat: -rw-r--r-- 1,023 bytes parent folder | download | duplicates (4)
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
<?xml version='1.0'?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:output method="html"/>
<xsl:preserve-space elements="*"/>

<xsl:template match="invitation">
<html>
<head>
<title> Invitation (XSL/CSS formatting) </title>
<link href="invit.css" rel="stylesheet" type="text/css"/>
<!-- 12 November 1998 mg -->
</head>
<body>
<h1>INVITATION</h1>
<table>
<tbody>
<tr><td class="front">To: </td>
<td><xsl:value-of select="@to"/></td></tr>
<tr><td class="front">When: </td>
<td><xsl:value-of select="@date"/></td></tr>
<tr><td class="front">Venue: </td>
<td><xsl:value-of select="@where"/></td></tr>
<tr><td class="front">Occasion: </td>
<td><xsl:value-of select="@why"/></td></tr>
</tbody>
</table>
<xsl:apply-templates/>
<p class="signature"><xsl:value-of select="@signature"/></p>
</body>
</html>
</xsl:template>

<xsl:template match="par">
<p><xsl:apply-templates/></p>
</xsl:template>

<xsl:template match="emph">
<em><xsl:apply-templates/></em>
</xsl:template>

</xsl:stylesheet>