/
root.pxsl
67 lines (58 loc) · 1.68 KB
/
root.pxsl
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
<<<?xml version="1.0" encoding="UTF-8"?>>>
xsl:stylesheet -version=1.0 -xmlns:xsl=http://www.w3.org/1999/XSL/Transform -xmlns:xhtml=http://www.w3.org/1999/xhtml -xmlns=http://www.w3.org/1999/xhtml
output -method=xml -omit-xml-declaration=yes -doctype-public=<<-//W3C//DTD XHTML 1.1//EN>> -doctype-system=http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd -media-type=text/html -indent=yes
template /
html
head
title <<MusicPath: >>
value-of */@title
link -rel=alternate -type=application/x-wiki -title=<<Edit this page>> -href={concat('/',name(*),'/',*/@ref,'/edit')}
body
apply-templates
template people
ul
apply-templates person
template person
li
h4
a -href={concat('/people/',@ref)}
value-of name
<<Plays:>>
apply-templates plays/stint
a -href={concat('/people/',@ref,'/edit')} <<edit>>
template stint
value-of instrument
<< in >>
apply-templates in
template bands
form -action=/bands/new
<<New Band >>
br
label <<URL>>
input -type=text -name=ref
input -type=submit -method=get
ul
apply-templates band
template band
li
h4
a -href={concat('/bands/',@ref)}
value-of name
text <<: >>
apply-templates members/member
span
<< >>
a -href={concat('/bands/',@ref,'/edit')}
<<edit>>
template member
a -href={concat('/people/',@ref)}
value-of name
if instr
<<(>>
apply-templates instr
<<)>>
if position()!=last()
<<, >>
template @*|xhtml:* -- Copy XHTML through unscathed
copy
apply-templates @*|node()