if-xpath


<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.

Example

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

1. Allowed Content

#PCDATA

2. Attributes

AttributeValue(s)Default Value
disabled true   |  false
true if this element is disabled
false
notrace true   |  false
false
op true   |  not-true
test operator
#REQUIRED

3. Content Rule

( #PCDATA )

4. Parent Elements

and
  logical conjunction
or
  logical disjunction

Top Elements || All Elements || Tree


DirXMLScript DTD