ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Peter Davis <pfd@pfdstudio.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: XSL-FO to PDF?
Date: Sun, 14 Nov 2010 18:17:26 -0500	[thread overview]
Message-ID: <4CE06E06.2080304@pfdstudio.com> (raw)
In-Reply-To: <4CE0674C.6030509@nibua-r.org>


[-- Attachment #1.1: Type: text/plain, Size: 4884 bytes --]


Hi, Renaud,

In a nutshell, my use is a form of database publishing from two XML 
files.  The first file is *like* XSL-FO, but also contains some 
namespaced constructs.  This XML file is the page template ... it 
represents the layout, the static portions of the page, and the 
locations where various "live" data should get plugged in.

The second XML contains the live data, extracted from a database.  There 
might be thousands or tens of thousands of records of information to 
publish.

So for each main element in the live data file, we use the template 
file, but plug in the live data and generate a beautiful, formatted 
document.  The data may contain plain text, text with some formatting, 
and references to graphics and images in various formats.

It definitely needs to support "advanced" typesetting (beautiful 
paragraphs, tracking and kerning, ligatures, multiple languages, etc.).  
It needs to support full color (mostly CMYK), most widely used fonts 
(T1, TT/OT, CID, etc.)  It also needs to produce finished pages at a 
rate of thousands or tens of thousands of pages per minute.

TeX has the features I want, but I'm still trying to determine the best 
way to use it.  ConTeXt is particularly attractive for its built-in XML 
support, simplefonts support, pdfTeX support and minimals packaging, 
among other things.

-pd


On 11/14/2010 5:48 PM, Renaud AUBIN wrote:
> XSLT is fully adapted to XML/XML(fo or other target schema) since it 
> was the design basis…
>
> My experience is:
> − good xslt is (relatively) easy to design as soon as you master the 
> underlying data model
> − xsltproc is REALLY REALLY fast for xslt 1 processing
> − if you want something smarter, go for java with saxon/xerces, which 
> is performant too…
>
> I'm the devil's advocate but what's your need to use ConTeXt. I have 
> not read all your threads but if you just need:
> − to produce pdfs from xml data
> − without advanced typesettings
> you could use xslt to produce DocBook 5 xml file, include them using 
> <xi:include href="./data/stuff.xml"/>, configure your layout with an 
> intermediate xslt + Fo xml config…
>
> Once more, it depends on your original ecosystem and constraints…
>
> If you provide a use case, I should provide a sample if you don't need 
> it within a couple of hours (but a couple of days)…
>
> Best regards,
>
> Renaud
>
>
> Le 14/11/2010 22:36, Peter Davis a écrit :
>> On Sun, Nov 14, 2010 at 4:31 PM, Hans Hagen<pragma@wxs.nl>  wrote:
>>
>>    
>>> On 13-11-2010 4:14, Peter Davis wrote:
>>>
>>>      
>>>> On 11/13/10 6:03 AM, Renaud AUBIN wrote:
>>>>
>>>>        
>>>>> Uh ? Give FOP a try…http://xmlgraphics.apache.org/fop/1.0/index.html
>>>>> Could you describe your target chain ? XML → FO → PDF ?
>>>>>
>>>>>          
>>>> Actually, I could write some XSLT to convert the XSL-FO into TeX or
>>>> ConTeXt. But I was thinking it might be beneficial to use ConTeXt to
>>>> process the XML (XSL-FO) directly ... get it all under one roof, so to
>>>> speak.
>>>>
>>>>        
>>> faster too
>>>      
>> Interesting point.  I initially assumed it would be faster to do all my XML
>> processing in ConTeXt, but it occurred to me that perhaps using XSLT to or
>> even home-grown XML processing, I could generate a stream of TeX that could
>> be processed while I'm still producing it.  So one process might be looking
>> at successive data records and generating TeX for the various pages, and
>> another process could be simultaneously running TeX to typeset those pages.
>>
>>
>> Plausible?
>>
>> Thank you.
>>
>> -pd
>>
>>    
>>
>>
>> ___________________________________________________________________________________
>> If your question is of interest to others as well, please add an entry to the Wiki!
>>
>> maillist :ntg-context@ntg.nl  /http://www.ntg.nl/mailman/listinfo/ntg-context
>> webpage  :http://www.pragma-ade.nl  /http://tex.aanhet.net
>> archive  :http://foundry.supelec.fr/projects/contextrev/
>> wiki     :http://contextgarden.net
>> ___________________________________________________________________________________
>>    
>
>
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to the Wiki!
>
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________

-- 
--------
Peter Davis
  The Tech Curmudgeon - http://www.techcurmudgeon.com
Ideas Great and Dumb - http://www.ideasgreatanddumb.com


[-- Attachment #1.2: Type: text/html, Size: 7742 bytes --]

[-- Attachment #2: Type: text/plain, Size: 486 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

      reply	other threads:[~2010-11-14 23:17 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-09 23:22 Peter Davis
2010-11-09 23:56 ` luigi scarso
2010-11-10 11:28   ` Peter Davis
2010-11-10  0:16 ` Hans Hagen
2010-11-10 11:32   ` Peter Davis
2010-11-13 11:03 ` Renaud AUBIN
2010-11-13 15:14   ` Peter Davis
2010-11-14 21:31     ` Hans Hagen
2010-11-14 21:36       ` Peter Davis
2010-11-14 22:48         ` Renaud AUBIN
2010-11-14 23:17           ` Peter Davis [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4CE06E06.2080304@pfdstudio.com \
    --to=pfd@pfdstudio.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).