swirl
Guide to OmniMark 9   OmniMark home
docs home 
IndexConceptsTasksSyntaxLibrariesLegacy LibrariesErrors
 
  Related Syntax    
modifier  

of ancestor

 
 

Syntax

of ancestor (element-name | element-name-list)


Purpose

An element qualifier that specifies an element's ancestor with a particular element name. The of ancestor qualifier can refer to any element currently open, except the current element; however it will always refer to the innermost element with the specified name.

Example

In the following XML fragment, when parsing the title element

  <manual>
    <chapter>
      <title>First Chapter</title>
      <p>Introduction paragraph</p>
      <section>
        <title>First Section</title>
        ...
      </section>
    </chapter>
  </manual>

of ancestor can refer to elements section, chapter or manual.

    Related Syntax
 
 
 

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

OmniMark 9.1.0 Documentation Generated: September 2, 2010 at 1:51:21 pm
If you have any comments about this section of the documentation, please use this form.

Copyright © Stilo International plc, 1988-2010.