author | Volker Birk <vb@pep-project.org> |
Mon, 04 Nov 2019 11:38:34 +0100 | |
changeset 40 | 432ab62b2537 |
parent 0 | 76005e62091d |
permissions | -rw-r--r-- |
0 | 1 |
include yslt.yml2 |
2 |
||
3 |
estylesheet { |
|
4 |
template "/list" cities |
|
5 |
apply "address[name='Meier']" with "me", "."; |
|
6 |
||
7 |
template "address" { |
|
8 |
param "me"; |
|
9 |
||
10 |
call "f" with "addresses", "$me/address[name='Schmid'] | ."; |
|
11 |
} |
|
12 |
||
13 |
function "f" { |
|
14 |
param "addresses"; |
|
15 |
||
16 |
foreach "$addresses" |
|
17 |
city value "city"; |
|
18 |
} |
|
19 |
} |