10.1

Table Of Contents
Working with groups
To add boxes to a group, create a <GROUP> element and then insert <BOXREF> elements
that refer to the boxes you want in the group. For example, the group described below
includes the two boxes described above it:
<BOX BOXTYPE="CT_TEXT" COLOR="White">
<ID NAME="MainStoryText" UID="217"/>
</BOX>
<BOX BOXTYPE="CT_PICT">
<ID NAME="MainStoryPhoto" UID="218"/>
</BOX>
<GROUP>
<ID NAME="MainStoryGroup" UID="300"/>
<BOXREF NAME="MainStoryText" UID="217"/>
<BOXREF NAME="MainStoryPhoto" UID="218"/>
</GROUP>
You can nest one group within another by adding a <BOXREF> that refers to the child
group, like so:
<GROUP>
<ID NAME="MainStoryGroup" UID="300"/>
<BOXREF NAME="MainStoryText" UID="217"/>
<BOXREF NAME="MainStoryPhoto" UID="218"/>
</GROUP>
<BOX BOXTYPE="CT_PICT">
<ID NAME="Masthead" UID="001"/>
</BOX>
<GROUP>
<ID NAME="MainStoryPage" UID="218"/>
<BOXREF NAME="Masthead" UID="001"/>
<BOXREF NAME="MainStoryGroup" UID="300"/>
</GROUP>
To anchor a group in a text box, use XML like the following. Note that you must set
BOX@ANCHOREDGROUPMEMBER="true" for all boxes in the group, and set
GROUP@ANCHOREDIN for the anchored group.
<BOX BOXTYPE="CT_TEXT" COLOR="White" ANCHOREDGROUPMEMBER="true" >
<ID NAME="MainStoryText" UID="217"/>
</BOX>
<BOX BOXTYPE="CT_PICT" ANCHOREDGROUPMEMBER="true" >
<ID NAME="MainStoryPhoto" UID="218"/>
</BOX>
<GROUP ANCHOREDIN="MainStoryText">
<ID NAME="MainStoryGroup" UID="300"/>
<BOXREF NAME="MainStoryText" UID="217"/>
<BOXREF NAME="MainStoryPhoto" UID="218"/>
</GROUP>
<BOX BOXTYPE="CT_TEXT" COLOR="White">
<ID NAME="MainStoryText" UID="217"/>
<TEXT>
<STORY>
<PARAGRAPH>
<ANCHOREDBOXREF OFFSET="0">MainStoryGroup
</ANCHOREDBOXREF>
</PARAGRAPH>
</STORY>
</TEXT>
</BOX>
The order of the <BOXREF> elements in a <GROUP> indicates the order in which the
boxes were selected prior to grouping. The z-order of boxes in the layout is determined
by the order of the <BOX> elements in the XML, from rearmost to frontmost.
A GUIDE TO QUARKXPRESS SERVER 10.1 | 119
USING QUARKXPRESS SERVER