author | Claudio Luck <claudio.luck@pep.foundation> |
Thu, 19 Mar 2020 17:17:22 +0100 | |
changeset 66 | 701c5e980f33 |
parent 0 | 76005e62091d |
permissions | -rw-r--r-- |
0 | 1 |
include yslt.yml2 |
2 |
||
3 |
decl ip(%value, name="ip", select="'%value'") alias xsl:variable; |
|
4 |
decl rechner(%name, *ip, test="@name = '%name'") alias xsl:when { |
|
5 |
ip *ip; |
|
6 |
| ip ist «$ip» |
|
7 |
}; |
|
8 |
||
9 |
tstylesheet template "/rechner" { |
|
10 |
choose { |
|
11 |
rechner "R1", "192.168.1.10"; |
|
12 |
rechner "R2", "192.168.1.11"; |
|
13 |
} |
|
14 |
} |