swirl
Guide to OmniMark 9   OmniMark home
docs home 
IndexConceptsTasksSyntaxLibrariesLegacy LibrariesErrors
 
  Related Syntax   Related Concepts  
built-in variable  

data-attributes

 
 

Purpose

Allows all declared attributes of entities named in an entity or entities attribute of an element to be treated as a shelf (to a certain extent), as follows:

The key value used to index data-attributes should always be uppercased when SGML parsing is involved and when the SGML declaration specifies NAMECASE GENERAL YES for the SGML document being processed. Unlike names in OmniMark programs, string values used as keys are not automatically uppercased - - doing so is the OmniMark programmer's responsibility. Uppercasing can be done by directly entering the appropriately uppercased values or by using the u format modifier.

The data-attributes shelf differs from other shelves in not having a current item. In addition, even though some of the items on the data-attributes shelf may be list-valued, "double-indexing" is not allowed. The using prefix can be used to accomplish double-indexing.

To reference the attributes of a specific entity named in an entity or entities attribute, the data-attributes shelf can be qualified in the same ways as data-attribute references.

The data-attributes shelf is indexed as follows:

The following illustrations how a repeat over can be used to iterate over the data-attributes shelf:

  repeat over specified data-attributes of (attribute ref) as this-one
     output key of data-attribute this-one
     output "='%v(this-one)'%n"
  again

  Related Syntax
 
Related Concepts
 
 

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.