author | Hartmut Goebel <h.goebel@crazy-compilers.com> |
Tue, 17 Mar 2020 11:29:04 +0100 | |
changeset 48 | 9e69f3056f4b |
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 |
} |