Performs a test on an XML attribute of the current operation. 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... |
---|---|
available |
There is an XML attribute with the specified name on the current operation. |
equal |
There is a an XML attribute with the specified name on the current operation and its value equals the content of the condition when compared using the specified comparison mode. Supports variable expansion. |
lt |
There is a an XML attribute with the specified name on the current operation 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 an XML attribute with the specified name on the current operation and its value is greater than the content of the condition when compared using the specified comparison mode. Supports variable expansion. |
not-available |
Available returns false. |
not-equal |
Equal returns false. |
not-lt |
Less than returns false. |
not-gt |
Greater than returns false. |
<if-xml-attr op="available" name="from-merge"/> <if-xml-attr op="equal" mode="nocase" name="level">error</if-xml-attr>
#PCDATA
Attribute |
Possible Values |
Default Value |
---|---|---|
disabled |
true | false True if this element is disabled. |
false |
mode |
case | nocase | regex | src-dn | dest-dn | numeric | octet Comparison mode if op implies a comparison. |
nocase |
name |
CDATA Tag name of the XML attribute. Supports variable expansion. After expansion, must be a legal XML QName. It can contain a namespace prefix if and only if that prefix has been defined on the <policy>. |
#REQUIRED |
notrace |
true | false True if this element should not be traced during execution of the policy. |
false |
op |
available | equal | lt | gt | not-available | not-equal | not-lt | not-gt Test operator. |
#REQUIRED |
( #PCDATA )