ShoX reference documentation. Index
Default keyword for when is case.
case [other attributes] (@test) {template}
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:when.