From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/47485 Path: news.gmane.org!not-for-mail From: luigi scarso Newsgroups: gmane.comp.tex.context Subject: Re: question for the xml-experts Date: Tue, 17 Feb 2009 23:07:50 +0100 Message-ID: References: <4C416126-1F10-4206-BD3F-9377AC7C81CC@uni-bonn.de> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1234908534 3455 80.91.229.12 (17 Feb 2009 22:08:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 17 Feb 2009 22:08:54 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Feb 17 23:10:09 2009 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1LZY8Z-00010i-BD for gctc-ntg-context-518@m.gmane.org; Tue, 17 Feb 2009 23:09:55 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id B09531FB1F; Tue, 17 Feb 2009 23:08:32 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 31317-01; Tue, 17 Feb 2009 23:08:08 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 50A021FADF; Tue, 17 Feb 2009 23:08:08 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 535161FADF for ; Tue, 17 Feb 2009 23:08:06 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 13552-01 for ; Tue, 17 Feb 2009 23:07:52 +0100 (CET) Original-Received: from filter3-ams.mf.surf.net (filter3-ams.mf.surf.net [192.87.102.71]) by ronja.ntg.nl (Postfix) with ESMTP id 5531C1FADC for ; Tue, 17 Feb 2009 23:07:52 +0100 (CET) Original-Received: from mail-bw0-f213.google.com (mail-bw0-f213.google.com [209.85.218.213]) by filter3-ams.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n1HM7p4q007113 for ; Tue, 17 Feb 2009 23:07:51 +0100 Original-Received: by bwz9 with SMTP id 9so4869223bwz.2 for ; Tue, 17 Feb 2009 14:07:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=8h4KRnFmOoNw1TSKIfiaNpj7my5VSKxBsXDFOzrs7Tw=; b=UkMrUa2kU4XJVFMcMdNkMDuLIVQ+JJEFAqzNMRg1IopayoL2566Ec8tQN/2EXpCFQW QAYjJ19/MQVtG9wjYYczvaEIdRmM0OE2eSgrWu8TM/xLoidwVevXXPIXnYru6LgHhrG/ Uc/Sbj5OXoKgUQcTa927QaXJnkvBn0jm/UsPE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=lThTfnq1a1z83qy5oN7nExLIs4LlVU80lS8BAnxSPy9i4yvzuJQNqPpXOjBUgBEU8M LG2HAJwX5ank2dd6kGZJH6qCRmuI4VruvCn3Jx7JyUbkNGtwaYhW8dI5K/nLoEuWofOK OiynAbT/vlEGp6gdYTKqSPwI1PD998xacQ7ww= Original-Received: by 10.180.208.5 with SMTP id f5mr386032bkg.211.1234908470164; Tue, 17 Feb 2009 14:07:50 -0800 (PST) In-Reply-To: X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.218.213; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 181434351 - 02736db52d1f X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.71 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.11 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:47485 Archived-At: On Sun, Feb 15, 2009 at 6:17 PM, Thomas A. Schmitz 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 ___________________________________________________________________________________