swirl
Guide to OmniMark 7   OmniMark home
docs home 
IndexConceptsTasksSyntaxLibrariesLegacy LibrariesErrors
 
     
rule type  

data-content

 
 

Syntax

  data-content condition?
     action+


Purpose

These are the rules that process the strings of data characters within an XML or SGML document. When the condition (if any) is met, the rule is invoked once for every unbroken string of data content (consisting of data characters and entity references).

A string of data content will be broken up by any one of the following: a start tag, an end tag, a processing instruction, or an external data entity reference.

A data-content rule processes a contiguous sequence of text characters. A contiguous sequence of text characters could be bounded by, for example:

The following is an example of a data-content rule:

  data-content when element is title
     set title-has-content to true
     output "%c"

       
 

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

OmniMark 7.1.2 Documentation Generated: June 28, 2005 at 5:45:02 pm
If you have any comments about this section of the documentation, send email to [email protected]

Copyright © Stilo Corporation, 1988-2005.