10.1

Table Of Contents
Deconstructing a project
The xml namespace returns an XML representation of the target project. To use this
namespace, use a URL like the following:
http://QXPServer8:8080/xml/project1.qxp
When you use the xml namespace, QuarkXPress Server returns an XML file that
represents the deconstructed project. This XML file adheres to the Modifier DTD (see
"Modifier schema (annotated)").
An XML file that represents a deconstructed project does not contain all of the
information necessary to reconstruct the project. The definitions of the project's
resources (such as style sheets, colors, and master page definitions) are stored in a
Job Jackets file. For example, you can apply a style sheet to a paragraph by indicating
the style sheets name, like so:
<PARAGRAPH PARASTYLE="BodyText">
<RICHTEXT>The sun has risen.</RICHTEXT>
</PARAGRAPH>
The above information is included in the deconstructed projects XML file. The definition
of the BodyText style sheet, however, is stored in the Job Jackets file.
The URL of a deconstructed Job Jackets file is indicated by the PROJECT@JOBJACKET
attribute. If you need access to new colors, style sheets, master pages, or other resources,
add them to the Job Jackets file indicated by this URL.
Projects can also refer to resources defined with the QuarkXPress Server Document
Controls submenu (Server/QuarkXPress Server menu). QuarkXPress Server looks for
resources first in the Job Jackets file and then in the server-defined resources.
XML
Creates an XML file from a QuarkXPress project. The XML is returned in a fixed format
that adheres to the Modifier DTD. You can use the returned XML to create or modify
a QuarkXPress document using the construct namespace or modify parameter.
xml
Namespace
Modifier DTDDTD
Returns XML only for the box with the given ID or name.
box
Parameters
Returns XML only for the boxes with the IDs or names supplied as a
comma -separated list.
boxes
Specifies the path of an XSL file for transforming the returned XML.
Use the file: indicator to specify the path.
XSL
Specifies the name or number of the layout containing the box to
render. The first layout is layout 1. Note that this parameter works
only with the box parameter.
layout
Tells the xml namespace to describe <GEOMETRY> elements using
<RELPOSITION> rather than <POSITION>. This allows an item's
relativegeometry
position to be defined either in relation to the page or in relation to
the entire spread.
Use only with the relativegeometry parameter. Tells the xml
namespace to describe <GEOMETRY> elements using <RELPOSITION>
relativetopage
A GUIDE TO QUARKXPRESS SERVER 10.1 | 107
USING QUARKXPRESS SERVER