styleDefinition()

Produces a CSS style definition with a selection and list of attributes.

Syntax

styleDefinition(
   selector STRING,
   attrs om.SaxAttributes )
 RETURNS STRING
  1. selector is the style selector.
  2. attrs is the om.SaxAttributes object defining the attributes.

Usage

This function creates a CSS style definition line, from the attribute set defined by an om.SaxAttributes object.

The attribute set must be an om.SaxAttributes object.

The resulting string can be used in a style list created by the styleList() function.

Steps to define and use an attribute set with styleDefinition():
  1. Create and fill an om.SaxAttributes object,
  2. Use the styleDefinition() function using the SAX attributes.