|        | |||||||||||
| 
 | 
Introduction
This code fragment illustrates the utility of the attributes shelf. When used, it will output "normalized" start tags and end tags around the content of the current element, with all specified attribute values included.
This example can be used as a simple but complete OmniMark program that "normalizes" an SGML document. In practice, such a program will also need to:
  element #implied
     output "<%q"
     repeat over specified attributes as this-attribute
        output " "
            || key of attribute this-attribute
            || "=%"%v(this-attribute)%""
     again
     output ">" _
            "%c"
     output "</%q>" when content isnt (empty | conref)
| ---- |