Skip to content

Tag Definition: namedString

Generated by rlextra version 3.6.13

Attributes

Name

Required?

Default_Value

Values

default

implied

None

discard

implied

None

['yes', 'no', '0', '1', 'none']

id

required

None

indexName

implied

None

new

implied

None

['yes', 'no', '0', '1', 'none']

type

none

string

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

Purpose

This lets you associates a name to a string of text.

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