-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
77 lines (73 loc) · 1.31 KB
/
index.html
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<!DOCTYPE html>
<html>
<head>
<script>
function load(name) {
var request = new XMLHttpRequest();
request.open('GET', code + '.xsl');
request.onload = function() {
if (request.status === 200) {
message = this.responseText;
} else {
message = 'http error: ' + request.status;
}
element = document.getElementById(name);
text = document.createTextNode(message);
element.appendChild(text);
}
request.send(null);
}
function init() {
var codes = ['basics'];
for (var i in codes) {
code = codes[i];
load(code);
}
}
</script>
<title>xsltea.github.io - the xsl tutorial infusion</title>
<style>
body {
background-color: #ffd;
font-family: sans-serif;
}
h1 {
color: #520;
text-align: center;
font-size: 3em;
}
pre {
background-color: #fff;
border: thin solid #888;
padding: 0.4em;
}
pre.console {
background-color: #000;
color: #aaa;
}
</style>
</head>
<body onload="init();">
<h1>
xsl<br />
🍵<br />
.github.io
</h1>
<h2>Basics</h2>
<p>
You can do some basiscs as follows.
</p>
<p><a href="basics.xsl">basics.xsl</a></p>
<pre class="code" id="basics"></pre>
<p>
You can execute the program with xsltproc as follows.
</p>
<pre class="console">
$ echo '<o/>'|xsltproc basics.xsl -
13
5
5
5
</pre>
</body>
</html>