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

of open element

 
 

Syntax

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


Purpose

An element qualifier that specifies either the current element or an ancestor with a particular element name. It can refer to any element currently open.

The of open element element qualifier must refer to the element by name, and will apply to the innermost element whose name matches.

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 open element can refer to elements title, section, chapter or manual.


  do when
   previous of open element "section" is "p"; when open "section" element occurs after a "p" element
  ...
  done

    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.