pc:if (attribute)

Previous Next

The <pc:if> attribute makes the execution of a directive subject to a condition.

Syntax

<pc:directive pc:if="xpath >> boolean" ... />

The directive represented by pc:directive executes only if pc:if evaluates to Boolean true().

Example 1

<pc:copy pc:if="$application='MY_APP'" select="$mylist" />

Example 2

<pc:text pc:if="xslutil:test($doaction)">The action will be done.</pc:text>

 

See also

pc:if (directive)

 

pc:if-then

pc:if-not-then

pc:switch