File: utf8.xsl

package info (click to toggle)
texlive-lang 2022.20230122-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,447,264 kB
  • sloc: perl: 61,377; xml: 53,781; makefile: 4,525; sh: 4,338; ansic: 2,892; python: 2,861; ruby: 1,031; lisp: 750; awk: 649; java: 159; sed: 142; csh: 25
file content (39 lines) | stat: -rw-r--r-- 1,042 bytes parent folder | download | duplicates (7)
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
<?xml version='1.0'?>
<xsl:stylesheet
 xmlns:xsl="http://www.w3.org/XSL/Transform/1.0"
 xmlns="http://www.w3.org/TR/REC-html40"
 result-ns="">
<xsl:template match="/">
  <html  xmlns="http://www.w3.org/Profiles/xhtml1-transitional.dtd">
  <head>
  <title>UTF8 files</title>
  <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
  </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>