contentsconceptssyntaxlibrariessampleserrorsindex
Full text search
action   set referent    
Sample Code   Related Syntax   Related Concepts  

Syntax

  set referent string-expression to string-expression


Purpose

Sets the value of a specified referent.

The first string-expression contains the name of the referent, and the second is the value to store in that referent.

This is an example of using set referent to open a stream, attach that stream to a referent, write text to that stream, and close the stream.

In this example, the values of cross-references are mapped to particular "sec1" and "sub-sec1" titles. The referents are called "sec-1" and "sec-2", etc., in order of their appearance. Referring to a referent named "sec-n" ("n" here represents a numeric value) produces its associated title.

  element title when parent is chapter
     local stream content

     set content to "Chapter %d(chapter-number): %c%n"
     output content
     set referent (attribute id of parent) to content

Sample Code  
   Cross-references: creating
 
Related Syntax
   referents
 
Related Concepts
   Referent set nesting depth
   Referents
   Referents: allowing referents in main output
   Referents: attaching to streams
   Referents: hypertext linking and cross-referencing
   Referents: writing referents to a stream
 
----

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

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

Copyright © OmniMark Technologies Corporation, 1988-1999.