Skip to content

Tag Definition: default_b

Generated by rlextra version 4.3.0a1

Attributes

Name

Required?

Default_Value

Values

Can contain
(para | p | title | h1 | h2 | h3 | h4 | h5 | h6 | pre | xpre | blockTable | spacer | ul | ol | dl | illustration | graphicsMode | storyPlace | 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 | markedContent | loop_b | switch_b | assign_b | if_b | script_b | doclet)*

Purpose

This lets you create a default for a switch statement. This uses the dynamic rml dtd. See the relevant rml sample here.

Example usage

<!DOCTYPE document SYSTEM "../dynamic_rml.dtd">
<document filename="main.pdf">
    ...
    <story>
        <assign_b name="test" value="2"/>
        <switch_b expr="test">
            <case_b condition="1"><para>ex 1</para></case_b>
            <case_b condition="2"><para>ex 2</para></case_b>
            <case_b condition="3"><para>ex 3</para></case_b>
            <default_b><para>Example</para></default_b>
        </switch_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> ➔ <switch_b> ➔ <default_b>