template-out-header

An output fill anchor: Zen locates this column's header text inside the template worksheet and starts filling the column's values adjacent to that anchor, in the column's direction. Multiple columns may share the same anchor header — they all start filling next to the same located header cell, each in its own direction.

pebblestream:template-out-header

Syntax

pebblestream:template-out-header
  • No arguments.
  • Placed on the header cell of the output column to fill.
  • Requires template-name on the same (output) worksheet; the
    template worksheet named there is the one that gets filled.

How the anchor resolves

  1. The output column's header text is normalized (trimmed, lower-cased,
    whitespace collapsed).
  2. Zen searches the template worksheet for a cell whose text normalizes to the
    same value.
  3. Filling starts at the cell next to that header, in the column's direction
    (down by default, or right with template-out-right).

Example

Output worksheet Results (template Template):

columnheadercomment
ATotalpebblestream:template-name:Template
ATotalpebblestream:template-out-header
BVATpebblestream:template-out-header

If the template contains a header cell Total, the Total values are written
just below it (one per record), and VAT values next to the template's VAT
header.

Errors

ErrorCause
dir-too-many-argsArguments were supplied.
template-out-conflictThe same column also has template-out-cell, a styling directive, or template-out-group.
template-out-clean-conflictThe sheet also has template-out-generate-clean — a clean sheet has no headers to locate.
template-out-has-dependentsThe output worksheet is used as input by another worksheet.
missing-the-template-name-directiveThe sheet has no template-name.

Related


Did this page help you?