2015

Table Of Contents
<RICHTEXT>This is the text</RICHTEXT>
</PARAGRAPH>
</INLINEBOX>
<!-- 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 projects <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
DTD, 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" />
<!-- TEXT BOX -->
<BOX BOXTYPE="CT_TEXT" COLOR="White">
<ID NAME="Headline Box" />
<GEOMETRY LAYER="Default" PAGE="1" SHAPE="SH_RECT">
<POSITION>
<TOP>200</TOP>
<LEFT>80</LEFT>
<BOTTOM>450</BOTTOM>
116 | A GUIDE TO QUARKXPRESS SERVER 2015
USING QUARKXPRESS SERVER