ShoX reference documentation. Index


XSL element otherwise

Default keyword for otherwise is default.

ShoX syntax:

default [other attributes] {template}

Example

        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)
            }
        }
	

See also when otherwise if.

XSL documentation of element xsl:otherwise.