File: utf8.xsl

package info (click to toggle)
texlive-doc 2007.dfsg.2-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 129,872 kB
  • ctags: 3,330
  • sloc: xml: 23,147; perl: 8,370; makefile: 843; sh: 352; lisp: 276; java: 159; python: 97; sed: 4
file content (36 lines) | stat: -rw-r--r-- 935 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
<?xml version='1.0' encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
     xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" encoding="utf-8"/>
<xsl:template match="/">
  <html>
  <head>
  <title>UTF8 file</title>
  </head>
  <body>
  <h1>Handling UTF-8 files</h1>
  <xsl:apply-templates/>
  </body>
  </html>
</xsl:template>
<xsl:template match="br">
  <br />
</xsl:template>
<xsl:template match="par">
  <p><xsl:apply-templates/></p>
</xsl:template>
<xsl:template match="head">
  <h2><xsl:apply-templates/></h2>
</xsl:template>
<!-- eliminate English keyboard input -->
<xsl:template match="eng">
</xsl:template>
<!-- transmit Russian keyboard input -->
<xsl:template match="&#x0440;&#x0443;&#x0441;">
<p>&#x25c6;&#x00a0;<xsl:apply-templates/></p>
</xsl:template>
<!-- transmit Greek keyboard input -->
<xsl:template match="ελλ">
<p>●&#x00a0;<xsl:apply-templates/></p>
</xsl:template>
</xsl:stylesheet>