Skip to content

Tag Definition: li

Generated by rlextra version 4.3.0a1

Attributes

Name

Required?

Default_Value

Values

altText

implied

None

bulletAlign

implied

None

bulletColor

implied

None

bulletDedent

implied

None

bulletDir

implied

None

bulletFontName

implied

None

bulletFontSize

implied

None

bulletFormat

implied

None

bulletOffsetY

implied

None

bulletType

implied

None

leftIndent

implied

None

rightIndent

implied

None

spaceAfter

implied

None

spaceBefore

implied

None

style

implied

None

tagType

implied

None

value

implied

None

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 declare a list item. Use alongside an ordered list or unordered list. Style elements you can apply to the parent elements can also be applied to these list items. You may wish to use a listStyle for consistency.

Check out our docs page on this.

Example usage

Simple example:

<story>
    <ul>
        <li><para>Item 1</para></li>
        <li><para>Item 2</para></li>
    </ul>
</story>

Detailed example:

<story>
    <ul bulletOffsetY="-4" bulletColor="red" bulletFontName="Times-Roman" bulletFontSize="5" rightIndent="10">
        <li bulletColor="blue" bulletFontName="Helvetica">
            <para>unordered 1</para>
        </li>
        <li>
            <para>unordered 2</para>
        </li>
    </ul>
</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> ➔ <ol> or <ul> ➔ <li>