|  | 
 | ||||
|        | |||||
| Related Syntax | ||
| operator | preparent is | |
Return type: Switch
Returns:       Returns true if the given preparent is an ancestor of the element, false otherwise. Replacing is with isnt will reverse the results. 
Syntax
preparent element-qualifier* (is | isnt) namespace-modifier? (element-name | element-name-list)
A test that checks to see whether a specified element has a preparent (ancestor of a parent) with a given element-name. In other words, it answers the question: Is the given preparent an ancestor of the specified element?
In OmniMark 8, you can specify the name dynamically by using the identity operator (~) followed by a string expression.
| Related Syntax | 
Copyright © Stilo International plc, 1988-2010.