9.5

Table Of Contents
QuarkXPress templates.
Picture files used in the template.
Modifier XML.
Picture and text files used in the Modifier XML.
Assets used by digital publishing enrichments.
The Streaming Document Provider feature also supports keepdocopen requests.
QuarkXPress Server searches for assets used in a call in the following order:
1
In the HTTP request.
2
At the supplied file path (if specified).
3
In the document pool.
If QuarkXPress Server does not find the required assets at any of these locations:
If the image is being changed by the request, a "File not found" error occurs.
If the image is not being changed by the request, it renders at preview resolution.
To use this feature, include a part in the HTTP request that has the same name as the asset
to be streamed. For example:
<html>
<body>
<form enctype="multipart/form-data"
action="http://localhost:8082/pdf/pic.qxp" method="post">
<input type="file" name="picture.jpg"/><br/>
<input type="file" name="pic.qxp"/><br/>
<input type="hidden" name="modify" value="<PROJECT><LAYOUT>
<ID UID=111/><BOX><ID NAME='picbox'/><CONTENT>picture.jpg
</CONTENT></BOX></LAYOUT></ PROJECT>"/>
<input type="submit"/>
</form>
</body>
</html>
Using administrative request handlers
Administrative request handlers let you change the behavior of QuarkXPress Server. The
built-in administrative request handlers are described in the topics below
You can add your own request handlers. During the DDSSETUPCBCODE callback,
QuarkXPress Server XTensions software registers itself as a request handler via
AddCustomRequestHandler, using the QuarkXPress Server XTensions API. The first
parameter of this API is a pointer to a request handler function implemented in
QuarkXPress Server XTensions software. The second parameter is a namespace string that
identifies the request. When a user submits a request that has the same namespace string
as a suffix to the request URL, QuarkXPress Server calls the request handler function with
all the user-specified parameters in the ServerRequest structure. The request handler
function then processes the request and submits the reply in a ServerReply structure,
which QuarkXPress Server communicates back to the user agent.
148 | A GUIDE TO QUARKXPRESS SERVER 9.5
USING QUARKXPRESS SERVER