[Contents] [Prev] [Next] [Index] [Report an Error]

match Statement

You specify basic match templates using the match statement, followed by an expression specifying when the template should be allowed and a block of statements enclosed in a set of braces.

match configuration {
<xnm:error> {
<message> "..";
}
}

The XSLT equivalent:

<xsl:template match="configuration">
    <xnm:error>
        <message> ...</message>
    </xnm:error>
</xsl:template>

[Contents] [Prev] [Next] [Index] [Report an Error]