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 pages and
spreads
The root element of a deconstructed QuarkXPress project is <PROJECT>. Within each <PROJECT>
element are one or more <LAYOUT> elements. Each layout contains one or more <SPREAD>
elements, and each <SPREAD> contains one or more <PAGE> elements. Each layout, spread, and
page has a unique name, indicated by its
<ID> element.
Each layout can have a unique name, indicated by its <ID> element's NAME attribute. You can use a
layout's name when referring to that layout in a non-construct call that uses the MODIFY attribute. The
ID@NAME attribute is ignored for <SPREAD> and <PAGE> elements, but you can refer to them
numerically with their <ID> element's UID attribute, with "1" being the first,
"2" being the second, and so forth.
Note: With most element types, it is best to assign an ID@NAME value to an element and use that to
refer to the element, because ID@UID values are defined by QuarkXPress Server and thus ignored for
construct calls. <PAGE> and
<SPREAD> are exceptions to this rule.
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<PROJECT JOBJACKET=" MacintoshHD:brochures:BrochureJJ.xml"
JOBTICKET="Tall US Brochure Ticket"
PROJECTNAME="project1.qxp">
<LAYOUT>
<ID NAME="Layout 1" />
<SPREAD>
<ID UID="1" />
<PAGE POSITION="RIGHTOFSPINE" MASTER="3">
<ID UID="2" />
</PAGE>
...
Each page has a POSITION attribute that indicates which side of the spine it is on. (In single-sided
layouts, every page is given a POSITION of
RIGHTOFSPINE)
Assigning items to specific pages
You can assign items to a page using the GEOMETRY element, which is a child of the BOX and
TABLE elements. For example:
<BOX BOXTYPE="CT_TEXT" COLOR="White">
<ID NAME="Title Box" />
<GEOMETRY LAYER="Default" PAGE="1"
SHAPE="SH_RECT">
<POSITION>
<TOP>90</TOP>
<LEFT>95</LEFT>
Page 157