10.2.1

Table Of Contents
Construct and modify
The modify parameter lets you modify existing projects. For example:
http://QXPServer8:8080/project1.qxp?
modify=file:path to XML file on server
or:
http://QXPServer8:8080/project1.qxp?modify=XML string
It's important to understand that although the construct namespace uses the same
DTD that you use when you modify an existing project, the construct namespace
uses it differently. When you use the construct namespace, the XML you pass simply
contains a description of everything in the document you want to create much as
an HTML file describes a page you want to display in a browser. There is no need to
use a command and create elements such as ADDCELLS, OPERATION, and MOVERIGHT;
you simply describe each item in the layout with elements such as <BOX> and <TABLE>,
and specify each item's position with the <POSITION> element type. When you use
the modify attribute without the construct namespace, however, the XML you pass
must contain commands that show how you want QuarkXPress Server to modify the
project.
For more information, see "Modifier schema (annotated)."
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.
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).
A GUIDE TO QUARKXPRESS SERVER 10.2.1 | 113
USING QUARKXPRESS SERVER