Skip to content

Tag Definition: evalString

Generated by rlextra version 4.3.0a1

Attributes

Name

Required?

Default_Value

Values

default

implied

None

imports

implied

None

Can contain
(#PCDATA | name | getName | pageNumber | evalString | loop_i | switch_i | assign_i | if_i | expr)*

Purpose

This lets you provide information like relative page numbers by evaluating a string as an expression.

Check out our docs page on this.

Example usage

<story>
    <namedString id="LASTPAGENO"><pageNumber/></namedString>
    <para>
        The last page is <getName id="LASTPAGENO" default="-999"/>
        One less than that is
        <evalString default="XXXX"><getName id="LASTPAGENO" default="-999"/> - 1</evalString>
    </para>
</story>

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> ➔ <evalString>