2017

Table Of Contents
USING QUARKXPRESS SERVER
A Guide to QuarkXPress Server 2017 | 137
W
orking with text
E
very
<
BOX>
e
lement for text contains a
<
TEXT>
e
lement, and every
<
TEXT>
element contains a <STORY> element. A <STORY> element can contain
<PARAGRAPH> elements, each of which contains <RICHTEXT> elements. A <STORY>
element can also simply contain <RICHTEXT> elements.
A text
<BOX> element can also contain a <CONTENT> element that indicates the
o
rigin of the text in that box.
A
text
<
BOX>
e
lement in a deconstructed project can also contain
<
PLACEHOLDER>
elements, which allow XML Import XTensions software to insert text from a
different XML source.
<PLACEHOLDER> elements are ignored by the construct namespace and the
modify parameter; placeholders must be inserted in QuarkXPress using XML
Import XTensions software.
If you know the
UID attribute of a box or story, you can insert text into that box or
story without having to specify where the
<BOX> or <STORY> element is. For
example:
<PROJECT>
<BOX>
<ID UID=”4”/>
<STORY>
<RICHTEXT MERGE=”false” FONT=”20”>New text</RICHTEXT>
</STORY>
</BOX>
</PROJECT>
<PROJECT>
<STORY UID=”0”>
<RICHTEXT MERGE=”false” FONT=”20”>New text</RICHTEXT>
</STORY>
</PROJECT>
Story IDs are unique across layouts.
Applying style sheets
Like other resources, style sheets are defined in a deconstructed project’s Job Jackets
file. To apply a paragraph style sheet to text, use the PARASTYLE attribute of the
<PARAGRAPH> element. For example, to apply the paragraph style sheet named
“BodyText” to a paragraph, use XML like the following:
<PARAGRAPH PARASTYLE=”BodyText”>
<RICHTEXT MERGE=”true”>The sun has risen.</RICHTEXT>
</PARAGRAPH>
To apply a character style sheet to text, use the CHARSTYLE attribute of the
<
RICHTEXT> element. For example, to apply the character style sheet named
“Emphasis” to a word, use XML like the following:
<PARAGRAPH PARASTYLE=”BodyText”>
<RICHTEXT>The </RICHTEXT>
<RICHTEXT CHARSTYLE=”Emphasis”>sun</RIC HTEXT>
<RICHTEXT> has risen.</RICHTEXT>
</PARAGRAPH>