3. Content Rule
( #PCDATA )
<if-local-variable> performs a test on a local variable. 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. If local variable holds a node set then the string value of each node in the nodeset is used for comparison purposes. If the same local variable exists in both the policy scope and the driver scope, the variable in the policy scope takes precedence.
operator Returns true when... available
there is a local variable with the specified name that has been defined by an action of a earlier <rule> within the <policy>.
equal
there is a local variable with the specified name and its value equals the content of the condition when compared using the specified comparison mode.
Supports variable expansion.
lt
there is a local variable with the specified name and its value is less than the content of the condition when compared using the specified comparison mode.
Supports variable expansion.
gt
there is a local variable with the specified name and its value is greater than the content of the condition when compared using the specified comparison mode.
Supports variable expansion.
not-available
available would return false.
not-equal
equal would return false.
not-lt
lt would return false.
not-gt
gt would return false.
<if-local-variable name="myLocalVariable" op="available"/> <if-local-variable mode="nocase" name="myLocalVariable" op="equal">enabled</if-local-variable>
- #PCDATA
Attribute Value(s) Default Value disabled true | false
true if this element is disabledfalse mode case | nocase | regex | src-dn | dest-dn | numeric | octet
comparison mode if op implies a comparisonnocase name CDATA
#REQUIRED notrace true | false
false op available | equal | lt | gt | not-available | not-equal | not-lt | not-gt
test operator#REQUIRED
( #PCDATA )
- and
- logical conjunction
- or
- logical disjunction
Top Elements || All Elements || Tree