contentsconceptssyntaxlibrariessampleserrorsindex
Full text search
Cross-references: creating  
Related Concepts  

Introduction

This example illustrates cross-referencing within a procedure that lists steps to perform a given task. Cross-referencing is needed because a step will often have to refer to other steps in the same procedure. Cross-referencing can be accomplished through the use of referents.

Assigning each list in the document a unique number allows the referents to have unique names, even if steps in different lists have the same name. This will ensure that cross-references always refer to steps in the current list.



Sample

  global counter list-number
  global counter step-number
  ...
  element list
    set step-number to 1
    output "%c"
    increment list-number

  element step
    set referent "%d(list-number)/%v(id)" to "%d(step-number)"
                  when attribute id is specified
    output "%c"
    increment step-number

  element step-ref
    output referent "%d(list-number)/%v(id)"
    suppress

Related Concepts  
   Referents: hypertext linking and cross-referencing
 
----  

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

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

Copyright © OmniMark Technologies Corporation, 1988-1999.