From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/47447 Path: news.gmane.org!not-for-mail From: "Thomas A. Schmitz" Newsgroups: gmane.comp.tex.context Subject: Re: question for the xml-experts Date: Sun, 15 Feb 2009 18:17:54 +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 (Apple Message framework v930.3) Content-Type: text/plain; charset="us-ascii"; Format="flowed"; DelSp="yes" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1234718431 9266 80.91.229.12 (15 Feb 2009 17:20:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 15 Feb 2009 17:20:31 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Feb 15 18:21:45 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 1LYkgU-0006My-Mq for gctc-ntg-context-518@m.gmane.org; Sun, 15 Feb 2009 18:21:38 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id CEEA11FB8C; Sun, 15 Feb 2009 18:20:13 +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 22013-01-2; Sun, 15 Feb 2009 18:18:48 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 0525C1FB39; Sun, 15 Feb 2009 18:18:48 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 65D071FB38 for ; Sun, 15 Feb 2009 18:18:45 +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 22013-01 for ; Sun, 15 Feb 2009 18:18:01 +0100 (CET) Original-Received: from filter1-ams.mf.surf.net (filter1-ams.mf.surf.net [192.87.102.69]) by ronja.ntg.nl (Postfix) with ESMTP id 350791FB3C for ; Sun, 15 Feb 2009 18:18:01 +0100 (CET) Original-Received: from uni-bonn.de (mail.uni-bonn.de [131.220.15.113]) by filter1-ams.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n1FHI02p026993 for ; Sun, 15 Feb 2009 18:18:00 +0100 Original-Received: from [87.178.105.177] (account tschmit1@uni-bonn.de HELO [192.168.0.2]) by fe2.uni-bonn.de (CommuniGate Pro SMTP 5.2.12) with ESMTPA id 11905505 for ntg-context@ntg.nl; Sun, 15 Feb 2009 18:17:59 +0100 In-Reply-To: X-Mailer: Apple Mail (2.930.3) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=131.220.15.113; country=DE; region=07; city=Bonn; latitude=50.7333; longitude=7.1000; http://maps.google.com/maps?q=50.7333,7.1000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 180214584 - 947e9d3cca17 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.69 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:47447 Archived-At: 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? Khaled: I have to see if I can tweak the OpenOffice docbook converter to keep more of the formatting; in its default state, it drops too much important stuff... Right now, I have followed Patrick's advice. I've installed saxon9 and am writing a xslt stylesheet to translate the openoffice xml into a cleaner and easier to handle format. I'm making progress... Maybe we should put something like this on the wiki and make it a collaborative effort - I can only write rules for stuff that occurs in my documents, and that is of course only a subset of what OpenOffice has, so it would be good to add rules as people find interesting features. All best Thomas On Feb 15, 2009, at 10:39 AM, luigi scarso wrote: > If you know python > http://wiki.services.openoffice.org/wiki/PyUNO_bridge > http://opendocumentfellowship.com/projects/odfpy > For xml the choice is > http://codespeak.net/lxml/ > > A native xml db, with XQuery and python binding > http://www.oracle.com/technology/products/berkeley-db/xml/index.html > > > > And this is my experience : > I'm programming in TeX (with context) , lua / python (they are > similar) and xslt . > For every project if I can I use lxml to manage xml sources, because > it includes xslt but not viceversa. > The goal is to translate xml in tex in the quickest way, and let mkiv > to do the hard word. > I have not a good feeling with xslt, because is not so powerful as > lxml, and clearly is not a competitor of TeX . > > If I need storage, dbxml is good, and XQuery+lxml is powerful > enought . > > OO has also docbook exporter > http://www.docbook.org/ > docbook > is rich and with a good collection of xsl stylesheets to translate > xml to html > but maybe is ...too much . > > -- > 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 > ___________________________________________________________________________________ ___________________________________________________________________________________ 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 ___________________________________________________________________________________