bpi.make.table()

This subroutine is a front-end router routine that evaluates the format param and then redirects to a make table routine specific to that format.  For example, if the format param is set to ‘odt’, the this routine will redirect to bpi.make.table.odt().  The routine examines the content of the template (content.xml) and uses the targeted tag block (speciified in block) to repeat the table row for as many times as there are repeating tags (multiValues) for that tag.  This routine is generally not called directly by user programs but is used by the makedoc() routines to process repeating tag directives within a template file.

Subroutine Syntax

CALL bpi.make.table( tags, vals, format, content, block, newContent, verbose, status, message )

Parameters

Param

Direction

Description

tags

passed

Inbound @AM array of tagnames that will be used for replacement

vals

passed

A @AM/@VM array of values whereby each attribute parallels the tags array and repeating data is modeled as a multivalue.  The @VM count of the first @AM determine number of repeats

format

passed

Document type (odt is default)

content

passed

The file content from the expanded XML.  This is usually content.xml for OpenOffice but other data can be passed

block

passed

The name of the target block in the Oo document.  The syntax in the Oo doc is {repeat=tr;block=name} where repeat means that the container should be repeated for as many repeat lines as is necessary, tr is the container to repeat (in this case tr means table row.  Other containers may be modeled in the future.  tr is the default.

newContent

passed

The changed content block that can be written back to content.xml

verbose

passed

Level of verbosity

status

returned

@FALSE for normal operation, otherwise integer indicating error

message

returned

message associated with error