8.0
Table Of Contents
- Overview
- New and enhanced features
- Getting started
- Functions
- Function overview
- Render types
- Content modifiers
- Render modifiers
- XML modify
- XML deconstruct and construct
- About XML deconstruct/construct
- xml
- construct
- Deconstructing a project
- Constructing a project
- Working with pages and spreads
- Working with layers
- Working with boxes
- Working with pictures
- Working with text
- Working with tables
- Working with Composition Zones
- Using server XSLT
- Working with lists
- Working with anchored boxes
- Working with placeholders
- Working with metadata
- Working with hidden text
- Administrative Request handlers
- The Modifier DTD
- Sample applications
- Contact Quark
- Legal notice
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.
Finally, a text <BOX> element in a deconstructed project can contain <PLACEHOLDER> elements,
which allow XML Import XTensions software to insert text from a different XML source. Note that
<PLACEHOLDER> elements are ignored by the construct namespace and the
modify parameter; placeholders must be inserted in QuarkXPress using XML Import XTensions
software.
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, you could 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,
you could use XML like the following:
<PARAGRAPH PARASTYLE="BodyText">
<RICHTEXT>The </RICHTEXT>
<RICHTEXT CHARSTYLE="Emphasis">sun</RICHTEXT>
<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, like so:
<PARAGRAPH>
<FORMAT SPACEBEFORE="6" SPACEAFTER="2" LEADING="24"
ALIGNMENT="LEFT” KEEPWITHNEXT="true">
Page 164