[NTG-context] Separate layout and content XML files?

Peter Davis pfd at pfdstudio.com
Fri Nov 12 13:51:49 CET 2010

On Thu, Nov 11, 2010 at 11:34 PM, Aditya Mahajan <adityam at umich.edu> wrote:

> On Thu, 11 Nov 2010, Peter Davis wrote:
>  I want to process documents from two separate XML files.  One XML file
>> defines the layout of the page ... placement of text boxes, fonts to use
>> ...
>> even placeholder text.  The other XML contains the actual content that
>> gets
>> placed into that layout.
> You can generate the \setup commands (i.e. the preable) from the first XML
> file, and the main body of the document from the second XML file.


The layout XML would actually define a kind of boilerplate page, and then
various contents from the other XML would be inserted.  The final document
might have a thousand pages, all based on the same boilerplate, but with
different contents inserted.  So I'd need a mechanism for storing the
boilerplate so that for each element in the content XML, I could generate a
new page using the boilerplate plus the text from that element.

Is that clear?  It's kind of like mail merge in a word processor.  You might
get a few hundred or thousand copies of a letter, each for a different
recipient.  So in essence, one XML contains the letter, and the other
contains the list of recipients, their addresses, etc.

Thank you.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.ntg.nl/pipermail/ntg-context/attachments/20101112/dffe9574/attachment.html>

More information about the ntg-context mailing list