2020

Table Of Contents
USING QUARKXPRESS SERVER
opened in a copy of QuarkXPress that does not have the corresponding XTensions
module. You can use hidden text in Modifier XML to interpret information added
by a custom QuarkXPress XTension or to send instructions to a QuarkXPress Server
XTensions during a modify or construct request.
Each piece of hidden text is identified by an opcode. An opcode is a four-digit
hexadecimal number which specifies:
The developer ID of the developer who created the XTensions module.
The unique identifier of the hidden text type, as defined by the XTensions
developer.
The type of hidden text entry (OPENPAREN, CLOSEPAREN, NONPAREN, or
IGNORED)
An opcode is constructed as follows:
The structure of a hidden text marker
In Modifier XML, hidden text is represented by the HIDDEN element. By default,
hidden text is not output from the xml namespace. To output hidden text, specify
the opcode= parameter in your request, like so:
http://server:port/xml/projectname.qxp?opcode=51434450
This example URL outputs all of the hidden text inserted by the XTensions software
with this ID. To avoid byte order issues when cross-platform rendering is enabled,
the XTID is represented decimally, rather than with the usual char[4]
representation.
If you specify opcode=*, QuarkXPress Server returns all hidden text in the XML
output. If you want only specific opcodes for a particular developer ID, you must
pass the developer ID + the unique ID (more often than not, 1) + the sum of types
of paren you wish to see (for example, to see OPENPAREN and CLOSEPAREN, you
would calculate 0x20 + 0x40 = 0x60). For example, if you wanted to get only
hidden text from the Custom Underline XTensions module, you would pass the
request with the additional request parameter opcode=51526B61. The data you
receive in the deconstructed hidden text is a base64 encoded version of the binary
data which is stored in the hidden text. To interpret this, you must know the data
structure which the XTension uses. Similarly, when you pass data back to an
XTensions module through a modify or construct request, the data passed in the
<HIDDEN> element must be base-64 encoded, and must be a valid structure in the
format which the XTensions module is expecting.
A GUIDE TO QUARKXPRESS SERVER 2020 | 151