contentsconceptssyntaxlibrariessampleserrorsindex
Full text search
Shelves: using the attributes shelf for normalization  
 

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:



Sample

  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)

   
----  

Top [CONTENTS] [CONCEPTS] [SYNTAX] [LIBRARIES] [SAMPLES] [ERRORS] [INDEX]

Generated: April 21, 1999 at 2:01:46 pm
If you have any comments about this section of the documentation, send email to [email protected]

Copyright © OmniMark Technologies Corporation, 1988-1999.