if-xpath

Performs a test on the results of evaluating an XPath 1.0 expression. The type of test performed depends on the operator specified by the op attribute. The following table shows the type of test performed by each operator.

Remarks

Operator

Returns true when...

true

The XPath expression evaluates to true.

not-true

True returns false.

Example

<if-xpath op="true">add-attr[@attr-name='OU]/value[string(.) ="Sales"]</if-xpath>

Allowed Content

#PCDATA

Attributes

Attribute

Possible Values

Default Value

disabled

true | false

True if this element is disabled.

false

notrace

true | false

True if this element should not be traced during execution of the policy.

false

op

true | not-true

Test operator.

#REQUIRED

Content Rule

( #PCDATA )

Parent Elements

Element

Description

and

Logical conjunction.

or

Logical disjunction.