PRAGMA POD - Pragma ADE
PRAGMA POD - Pragma ADE
PRAGMA POD - Pragma ADE
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
1<br />
1 Technology<br />
This document describes a simple subset of the eXaMpLe typesetting framework called eXiMpLe.<br />
This framework provides ConT E Xt users an automated typesetting environment, a user interface,<br />
and a couple of xml related styles. It started as an example of how you can use ConT E Xt in<br />
combination with xml, but when it became more serious, we decided to combine it with our in--<br />
house T E X scripting environment.<br />
The eXaMpLe framework consists of several components:<br />
exampler This is a server application that listens to a specified TCP port and handles requests<br />
for typesetting or processing data or documents.<br />
exampleq<br />
replies.<br />
This application watches a hot folder, sends requests to the server and handles the<br />
examplex This is one of the applications that handles the requests sent to the server. It is<br />
controlled by scripts defining sequences, processes and commands.<br />
examplet This program combines exampleq and exampler in a more sophisticated client--<br />
server technology. It can handle multiple requests in parallel and transfer files over networks.<br />
In this document we only describe the watchdog features. The eXaMpLe manual provides more<br />
details about how to set up clients and servers, and how to define scripts that control the process.<br />
Here we assume that ConT E Xt is used for simply processing xml using predefined scripts.<br />
world<br />
watched<br />
results<br />
scripts jobs resources<br />
exampleq<br />
exampler<br />
examplex<br />
applications<br />
Figure 1<br />
A rough scheme of the eXiMpLe workflow.<br />
In figure 1 you can see how the three applications trigger each other. As soon as a request is<br />
placed in the watched folder, it is picked up by exampleq. When it is found valid, this request is<br />
send to exampler via a tcp/ip connection. 1<br />
1<br />
The exampler application is listening to a dedicated port. This mechanism permits other components of the eXaMpLe<br />
framework to communicate via an http protocol.