Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

<xsl:if> Element

Allows simple conditional template fragments.

  test = boolean-expression

Required. The condition in the source data to test. If the expression in this attribute evaluates to True when cast to a Boolean, the content of <xsl:if> is instantiated and placed in the output. Node-sets are cast to a Boolean True if they contain at least one node.

The content is a template. The expression is evaluated, and the resulting object is converted to a Boolean. If the result is True, the content template is instantiated; otherwise, nothing is created.

Build Date:

© 2015 Microsoft