3. Content Rule
( #PCDATA )
<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.
operator Returns true when... true
the XPATH expression evaluates to true.
not-true
true would return false.
<if-xpath op="true">add-attr[@attr-name='OU]/value[string(.) = "Sales"]</if-xpath>
- #PCDATA
Attribute Value(s) Default Value disabled true | false
true if this element is disabledfalse notrace true | false
false op true | not-true
test operator#REQUIRED
( #PCDATA )
- and
- logical conjunction
- or
- logical disjunction
Top Elements || All Elements || Tree