9.2

Table Of Contents
Working with Composition Zones
A Composition Zones item in a deconstructed project is represented in XML by a
<COMPOSITIONZONE> element. Like the <BOX> element type, this element type supports
the <GEOMETRY>, <SHADOW>, and <FRAME> elements.
The content of each Composition Zones item is provided by a layout called the composition
layout, which can be internal or external. Each <COMPOSITIONZONE> element includes a
TYPE attribute that indicates whether its composition layout is internal or external.
For internal Composition Zones items, each Composition Zones item is represented as an
additional <LAYOUT> element within the <PROJECT> element. The LAYOUTREF element
within the <COMPOSITIONZONE> element indicates the name of the <LAYOUT> that
corresponds to that particular Composition Zones item.
For external Composition Zones items, the PATH attribute indicates the location of the
project containing the associated composition layout. However, a copy of the layout is
also stored within the project as an additional <LAYOUT> element.
Composition Zones items must be created in QuarkXPress. <COMPOSITIONZONE> elements
are ignored by the construct namespace and the modify parameter.
<PROJECT>
<LAYOUT>
<ID UID="Layout 1"/>
<SPREAD>
<ID/>
<COMPOSITIONZONE BLENDSTYLE="SOLID" BOXTYPE="CT_USER" COLOR="none"
LAYOUTREF="Layout 2" PATH="/projects/ExternalZone1.qxp" TYPE="EXTERNAL">
<ID NAME="Box9" UID="9"/>
...
</COMPOSITIONZONE>
</SPREAD>
</LAYOUT>
<LAYOUT SHAREDSTATUS="ALLPROJECTS">
<ID NAME="Layout 2" UID="2"/>
<SPREAD>...</SPREAD>
</LAYOUT>
</PROJECT>
Using XSL transformation
You can use an XSLT file to transform the XML returned by the xml namespace into other
formats. You might find this feature useful if you want the xml namespace to return an
XML representation that uses a different schema or a subset of the returned data.
To use this feature, use the XSL parameter in the request URL. If the XSL parameter specifies
the absolute path to an XSLT file on the server, QuarkXPress Server uses that XSLT file to
transform the response to that call. For example:
http://QXPServer8:8080/xml/project1.qxp?XSL=
path to XSLT file on server
When you use this feature, "XSL" must be in all caps.
To make the returned XML use the Modifier DTD, uncheck Use default XSLT and do not
use the XSL parameter in your calls to the construct namespace.
QXP SERVER 9.2 WEB INTEGRATION GUIDE | 105
USING THE WEB INTERFACE