2020

Table Of Contents
USING QUARKXPRESS SERVER
<!-- Import a picture -->
<INLINEBOX>
<CONTENT>file:MyFile.jpg</CONTENT>
</INLINEBOX>
<!-- Add a table -->
<INLINETABLE>
<TBODY>
<TROW>
<ENTRY>Column1</ENTRY>
<ENTRY>Column2</ENTRY>
</TROW>
</TBODY>
</INLINETABLE>
</LAYOUT>
</PROJECT>
When QuarkXPress Server creates a new layout this way, it adds an automatic text
box. If you want to flow content into this automatic text box, address it by any
name you like, and QuarkXPress Server will assign that name to the automatic text
box on the first page.
Working with layers
To create a layer in XML, use the LAYER element. For example:
<LAYER KEEPRUNAROUND="true" LOCKED="false"
SUPPRESS="false" VISIBLE="true">
<ID NAME="Layer 1" />
</LAYER>
The RGBCOLOR element defines the layer’s color as displayed in the Layers palette.
You can assign items to a layer using the GEOMETRY element, which is a child of the
BOX and TABLE elements. For example:
BOX BOXTYPE="CT_TEXT" COLOR="White">
<ID NAME="Main Layer" />
<GEOMETRY
LAYER="Default"
PAGE="1" SHAPE="SH_RECT">
<POSITION>
<TOP>90</TOP>
<LEFT>95</LEFT>
<BOTTOM>190</BOTTOM>
<RIGHT>195</RIGHT>
</POSITION>
</GEOMETRY>
</BOX>
Working with boxes
To add text and pictures to a project, you must add text boxes and picture boxes to
the project’s <SPREAD> element. Both are represented by <BOX> elements, but text
boxes have a BOXTYPE attribute of CT_TEXT, and picture boxes have a BOXTYPE
attribute of CT_PICT. You can read about how <BOX> elements are put together in
the Modifier schema, but for purposes of illustration, the sample XML below
describes a spread that contains a text box and a picture box.
<SPREAD>
<ID UID="1" />
126 | A GUIDE TO QUARKXPRESS SERVER 2020