2020

Table Of Contents
USING QUARKXPRESS SERVER
Working with text
Every <BOX> element for text contains a <TEXT> element, 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
origin of the text in that box.
A text <BOX> element 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</RICHTEXT>
<RICHTEXT> has risen.</RICHTEXT>
</PARAGRAPH>
134 | A GUIDE TO QUARKXPRESS SERVER 2020