swirl
Guide to OmniMark 8   OmniMark home
docs home 
IndexConceptsTasksSyntaxLibrariesLegacy LibrariesErrors
 
  Related Syntax    
operator  

parent is

 
 

Return type: Switch
Returns:       Returns true if the element has the specified parent and false otherwise. Replacing is with isnt reverses the result.

Syntax

parent element-qualifier* (is | isnt) namespace-modifier? (element-name | element-name-list)


Purpose

A test that checks whether the parent of the qualified element has the specified element-name. Replacing is with isnt will reverse these results.

If no element qualifiers are present, the test always applies to the current element.

The test allows the programmer to specify a parenthesized list of element-names separated by or or |, instead of a single element name. The test succeeds if the reference element is identified by any of the names in this element-name-list.

In OmniMark 8, you can specify the name dynamically by using the identity operator (~) followed by a string expression.

    Related Syntax
   element
   | (or)
   preparent is
 
 
 

Top [ INDEX ] [ CONCEPTS ] [ TASKS ] [ SYNTAX ] [ LIBRARIES ] [ LEGACY LIBRARIES ] [ ERRORS ]

OmniMark 8.2.0 Documentation Generated: March 13, 2008 at 3:33:48 pm
If you have any comments about this section of the documentation, please use this form.

Copyright © Stilo International plc, 1988-2008.