9.2

Table Of Contents
<RICHTEXT> has risen.</RICHTEXT>
</PARAGRAPH>
Applying local formatting
To apply local formatting to text, use the attributes of the <RICHTEXT> element. For
example:
<PARAGRAPH>
<RICHTEXT
SIZE="10" COLOR="Magenta" BOLD="true" OPACITY="50%"
>The sun has risen.</RICHTEXT>
</PARAGRAPH>
To apply paragraph formatting, use a <FORMAT> element. For example:
<PARAGRAPH>
<FORMAT SPACEBEFORE="6" SPACEAFTER="2" LEADING="24"
ALIGNMENT="LEFT KEEPWITHNEXT="true">
<RICHTEXT>The sun has risen.<RICHTEXT>
</FORMAT>
</PARAGRAPH>
The MERGE attribute lets you control whether formatting from one <RICHTEXT> or
<PARAGRAPH> element is carried forward to the next. For example, the following XML
would result in "has risen" being italicized:
<PARAGRAPH PARASTYLE="BodyText">
<RICHTEXT SIZE="10">The </RICHTEXT>
<RICHTEXT SIZE="12"ITALIC="TRUE">sun</RICHTEXT>
<RICHTEXT MERGE="true" SIZE="10"> has risen.</RICHTEXT>
</PARAGRAPH>
However, this XML would result in "has risen" being plain:
<PARAGRAPH PARASTYLE="BodyText">
<RICHTEXT SIZE="10">The </RICHTEXT>
<RICHTEXT SIZE="12" ITALIC="TRUE">sun</RICHTEXT>
<RICHTEXT MERGE="false" SIZE="10"> has risen.</RICHTEXT>
</PARAGRAPH>
The default value for <MERGE> is "false."
To combine local formatting with style sheets, simply add attributes to the <RICHTEXT>
elements within a <PARAGRAPH> element. For example:
<PARAGRAPH PARASTYLE="BodyText">
<RICHTEXT COLOR="Red">The </RICHTEXT>
<RICHTEXT COLOR="Yellow" CHARSTYLE="Emphasis">sun</RICHTEXT>
<RICHTEXT COLOR="Red"> has risen.</RICHTEXT>
</PARAGRAPH>
Formatting across paragraph boundaries
You can use two methods to describe a run of formatting that crosses a paragraph boundary.
The first is to simply close the first <PARAGRAPH> element and then open a new one. For
example:
<PARAGRAPH>
<RICHTEXT SIZE="10">The sun has risen.</RICHTEXT>
</PARAGRAPH>
<PARAGRAPH>
<RICHTEXT SIZE="10">The sun has set.</RICHTEXT>
</PARAGRAPH>
The second is to use a &hardReturn; entity to create the paragraph break. For example:
<PARAGRAPH>
<RICHTEXT SIZE="10"
QXP SERVER 9.2 WEB INTEGRATION GUIDE | 101
USING THE WEB INTERFACE