Skip to content

Tag Definition: loop_b

Generated by rlextra version 3.6.13

Attributes

Name

Required?

Default_Value

Values

in

required

None

var

required

None

Can contain
(para | blockTable | title | h1 | h2 | h3 | h4 | h5 | h6 | spacer | ul | ol | dl | illustration | graphicsMode | storyPlace | pre | xpre | codesnippet | plugInFlowable | drawing | outlineAdd | namedString | bookmarkPage | bookmark | name | hr | indent | frameBackground | fixedSize | keepInFrame | imageAndFlowables | imageFigure | figure | barCodeFlowable | keepTogether | docWhile | docIf | docAssign | docExec | docAssert | docPara | showIndex | topPadder | pto | placeString | placeRightString | placeCentredString | placeCenteredString | placePara | placeXPre | setTopFlowables | setPageTopFlowables | balancedColumns | loop_b | switch_b | assign_b | if_b | script_b | doclet)*

Purpose

This lets you create a python-like loop to dynamically use data. This uses the dynamic rml dtd. See the relevant rml sample here.

Example usage

<!DOCTYPE document SYSTEM "../dynamic_rml.dtd">
<document filename='test_020_dynamic.pdf'>
    ...
    <story>
        <loop_b var="i" in="range(5)">
            <para>pass <expr>i</expr>: this adds dynamic capabilities</para>
        </loop_b>
    </story>
</document>

Note: Only relevant sections are used in this snippet. Some tags were not included. See some of our samples for further insight of how you may go about setting up a full document using rml.

Example of nesting path from the parent tags to the current tag

<document> ➔ <story> ➔ <loop_b>