From: luigi scarso <luigi.scarso@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: question for the xml-experts
Date: Tue, 17 Feb 2009 23:07:50 +0100 [thread overview]
Message-ID: <fe8d59da0902171407r764e51f1l98de2cdc35b25035@mail.gmail.com> (raw)
In-Reply-To: <B9B2431E-BC4B-4633-9CDA-7DBD87E1D9C4@uni-bonn.de>
On Sun, Feb 15, 2009 at 6:17 PM, Thomas A. Schmitz
<thomas.schmitz@uni-bonn.de> wrote:
> Luigi and Khaled,
>
> thanks a lot for your replies! Luigi: I had a look at python lxml; it looks
> very powerful and interesting, and I will try and see if can make use of it.
> Why do you translate your xml sources into tex instead of using the mkiv
> mechanism for processing xml, is it because of speed?
(sorry x my laziness)
If I have a good xml , then mkiv is a good choice. As far I know, mkiv
~ xslt by lpeg, so
"traditional"
xml--( xslt )-->tex--( mkiv )-->pdf
is like
xml-->( mkiv )-->pdf
Note that in the last chain one mixes xml+tex: if xml become complex,
this can end in a messy situation.
But some documents need heavy preprocessing:
for example, I have one that come from java classes serialization,
and I need the power of python (lxml) to do a clean work .
Also, if xml changes , I 've found that lxml is more flexible than xslt.
In this case I have
xml--( lxml )-->tex--( mkiv )-->pdf
The fact is that python and lua are not so differents,
so I've to manage two languages
(python+lua) and tex;
with 'traditional' workflow you have to manage 3 languages
xslt,lua and tex
and subdivide responsability is not so easy as the former .
BTW, I have no test that say "this one is quickly than that one" .
--
luigi
___________________________________________________________________________________
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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
next prev parent reply other threads:[~2009-02-17 22:07 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-14 17:40 Thomas A. Schmitz
2009-02-14 18:25 ` Wolfgang Schuster
2009-02-14 18:37 ` Thomas A. Schmitz
2009-02-15 9:39 ` luigi scarso
2009-02-15 17:17 ` Thomas A. Schmitz
2009-02-17 22:07 ` luigi scarso [this message]
2009-02-19 8:54 ` Thomas A. Schmitz
2009-02-19 9:24 ` luigi scarso
2009-02-19 10:39 ` luigi scarso
2009-02-19 11:53 ` Thomas A. Schmitz
2009-02-19 14:10 ` luigi scarso
2009-02-20 15:09 ` Thomas A. Schmitz
2009-02-20 15:35 ` luigi scarso
2009-02-19 17:02 ` luigi scarso
2009-02-14 18:31 ` Patrick Gundlach
2009-02-14 19:06 ` Thomas A. Schmitz
2009-02-15 10:14 ` Khaled Hosny
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=fe8d59da0902171407r764e51f1l98de2cdc35b25035@mail.gmail.com \
--to=luigi.scarso@gmail.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).