author | Volker Birk <vb@pep.foundation> |
Thu, 26 Apr 2018 19:26:10 +0200 | |
changeset 18 | e14c2324eb0e |
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 |
} |