stylesheet

The function stylesheet specifies a style sheet that will be applied to any result documents created after the function has been called. This style sheet overrides the styles in the result document when the document is produced.

TEXT ignore := stylesheet ( label; stylesheet )

The result of the function stylesheet is of type TEXT. This function has two parameters:

  1. label, type TEXT; the label the stylesheet belongs to. You can use labels to group associated styles to implement multi-labeling.
  2. stylesheet, type TEXT; the name of the stylesheet. If this parameter is empty the previous override is canceled.

The result of the function stylesheet is of type TEXT. It is currently undefined and should be ignored.

Remarks

The function stylesheet has the following effects on ITP result documents:

Restrictions

The functionality of the function stylesheet is only available for the ITP Microsoft Word Binary support and will be ignored for other document formats.

Example

# BEGIN

TEXT ignore := stylesheet ("Insurance For Life"; "Invoice")
TEXT path := put_in_document ("invoice.doc"; path; "Y"; "N"; "N")
ASSIGN ignore := stylesheet ("Insurance For Life"; "Policy")

END #

Configuration

The style sheets must be stored on the file system using the following convention; <base directory>\<lbl>\Style-<stl>.doc

According this convention;

All styles from this document are copied into the result document, overriding the styles that might already be defined in the document.

The example above uses the following 2 documents to apply the styles: