July 2001
Intermediate to advanced
592 pages
11h 16m
English
The <xsl:if> element performs a simple Boolean test, evaluating an expression in the required test attribute and returning either true or false. The content of <xsl:if>, which is a template, is instantiated if the result of evaluating the expression returns true; otherwise, it is ignored. The special kind of expression (boolean-expression) designated as the value of the test attribute can only produce a Boolean result. In other words, the expression will be evaluated and converted to a Boolean by the XSLT processor. The <xsl:if> element is an instruction element, as shown in the following element model definition:
<!-- Category: instruction --> <xsl:if test = boolean-expression> <!-- Content: template --> ...
Read now
Unlock full access