ShoX reference documentation. Index
Default keyword for choose is switch.
switch [other attributes] {case+ default?}
switch {
case(count(rabbit)>10) {
call rabbitcatcher{}
}
case(count(rabbit)>1) {
apply(rabbit)
}
}
// use as if-then-else:
switch {
case(count(rabbit)>10) {
call rabbitcatcher{}
}
default {
apply(rabbit)
}
}
XSL documentation of element xsl:choose.