Conditionals 1.0

The Mallard Conditionals extension provides a standard mechanism for run-time conditional processing. Conditional processing is handled with simple but flexible expressions in the test attribute that control whether or not content is shown. Test expressions are logical expressions built from test tokens.

In addition to single conditional tests, the Conditionals extension provides the if:choose element to support branching and fallback content for different conditions.

This is a candidate specification. Changes are unlikely, but may still be made before the final specification.

Schema

The formal definition of the Mallard Conditionals extension is maintained in RELAX NG Compact Syntax in code blocks within this specification. This is the namespace declaration for the schema.

# This schema cannot be used on its own. It is designed to be combined
# with the core Mallard schema using the version attribute.
namespace if = "http://projectmallard.org/if/1.0/"