From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/37140 Path: news.gmane.org!not-for-mail From: "luigi scarso" Newsgroups: gmane.comp.tex.context Subject: Re: xml misc Date: Thu, 1 Nov 2007 05:47:31 +0100 Message-ID: References: <23E050F9-8C1D-4756-A158-0466A711CCC8@di.unito.it> 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 1193897715 25482 80.91.229.12 (1 Nov 2007 06:15:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 1 Nov 2007 06:15:15 +0000 (UTC) To: "mailing list for ConTeXt users" Original-X-From: ntg-context-bounces@ntg.nl Thu Nov 01 07:15:17 2007 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 1InTKh-0000Ca-Uj for gctc-ntg-context-518@m.gmane.org; Thu, 01 Nov 2007 07:15:12 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id DB24E1FA67; Thu, 1 Nov 2007 07:15:01 +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 18194-03; Thu, 1 Nov 2007 07:14:46 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id CF5191FA55; Thu, 1 Nov 2007 07:14:45 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id EA5841FA2D for ; Thu, 1 Nov 2007 07:14:36 +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 18193-03 for ; Thu, 1 Nov 2007 07:14:29 +0100 (CET) Original-Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.176]) by ronja.ntg.nl (Postfix) with ESMTP id B4B3A1FA55 for ; Thu, 1 Nov 2007 05:47:35 +0100 (CET) Original-Received: by py-out-1112.google.com with SMTP id u77so709356pyb for ; Wed, 31 Oct 2007 21:47:32 -0700 (PDT) Original-Received: by 10.65.220.8 with SMTP id x8mr2866048qbq.1193892451984; Wed, 31 Oct 2007 21:47:31 -0700 (PDT) Original-Received: by 10.65.98.17 with HTTP; Wed, 31 Oct 2007 21:47:31 -0700 (PDT) In-Reply-To: <23E050F9-8C1D-4756-A158-0466A711CCC8@di.unito.it> Content-Disposition: inline X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 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:37140 Archived-At: On 11/1/07, Andrea Valle wrote: > Hi to all, > > I' ve started playing with xml --> context. > I've read the docs but even if I am able to do some very basic operation I'm > in troubles doing my first real experiment. > > I've already generated a book from the collection of html help files of the > SuperCollider language using a cumbersome python script. > But I was guessing that probably using xml mapping would make my life > easier. Indeed, lxml under python is a cool module. See http://codespeak.net/lxml/ lxml_in_python implements also full xpath/xslt > An example file to be processed is here: Please ,if you can, consider luatex+context mkiv; in base folder see l-xml-edu.lua lxml-ini.lua lxml-ini.tex l-xml.lua (warning : lxml here has nothing to do with lxml in python, only the same names) I believe that actually lxml_in_luatex does not implements a full xpath/xslt, because not always these are useful in this context. (If I need a full xpath/xslthere here, then I have a too much complex xml document, and I preprocessing it with lxml_in_python) With lxml_in_python_ and lxml_in_luatex_ you can solve all ** reasonable ** problems. Sometimes only lxml_in_python is need, sometimes only lxm_in_luatex, it depends. -- 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 ___________________________________________________________________________________