Skip to content

Tag Definition: expr

Generated by rlextra version 3.6.13

Attributes

Name

Required?

Default_Value

Values

encoding

implied

None

escape

implied

None

Can contain
(#PCDATA)

Purpose

This lets you evaluate/display the expressions handled in other locations in the code. 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'>
    <!-- this needs to be driven by the preprocessor...-->
    <acquire>
        <xmlData name="data" fileName="../test_020_sampledata.xml"/>
    </acquire>
    ...
    <story>
        <para><expr>data.invoice.customerDetails.customerName</expr></para>
        <assign_b name="author" value="Andy Robinson"/>
        <para>test <expr>author</expr></para>
    </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> ➔ <para> ➔ <expr>