From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/19627 Path: news.gmane.org!not-for-mail From: Paul Tremblay Newsgroups: gmane.comp.tex.context Subject: Re: Re: page on context and XML has moved Date: Tue, 5 Apr 2005 11:45:43 -0400 Message-ID: <20050405154543.GA23300@localhost.localdomain> References: <20050403022405.GA8505@localhost.localdomain> <20050403094126.GA23924@localhost.localdomain> <20050403220540.GA27853@localhost.localdomain> <20050404123104.GB4780@mnw.art.pl> <20050404170907.GA7186@localhost.localdomain> <20050405085144.GG9871@mnw.art.pl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1112717125 7471 80.91.229.2 (5 Apr 2005 16:05:25 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 5 Apr 2005 16:05:25 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Tue Apr 05 18:05:21 2005 Return-path: Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1DIqWa-00051B-P6 for gctc-ntg-context-518@m.gmane.org; Tue, 05 Apr 2005 18:03:32 +0200 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 33F07127C4; Tue, 5 Apr 2005 18:05:32 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 09767-03; Tue, 5 Apr 2005 18:05:32 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 36378127BD; Tue, 5 Apr 2005 18:03:48 +0200 (CEST) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 89BEE127BD for ; Tue, 5 Apr 2005 18:03:46 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 09767-02 for ; Tue, 5 Apr 2005 18:03:45 +0200 (CEST) Original-Received: from rdsmtp.iglou.com (rdsmtp.iglou.com [192.107.41.63]) by ronja.ntg.nl (Postfix) with ESMTP id 99BEE127B7 for ; Tue, 5 Apr 2005 18:03:45 +0200 (CEST) Original-Received: from [192.107.41.6] (helo=iglou3.iglou.com) by rdsmtp.iglou.com with esmtp (8.12.5/8.12.5) id 1DIqWn-00069P-4f for ntg-context@ntg.nl; Tue, 05 Apr 2005 12:03:45 -0400 Original-Received: from [64.253.97.143] (helo=localhost.localdomain) by iglou3.iglou.com with esmtp (8.12.5/8.12.5) id 1DIqWm-0006OR-V9 for ntg-context@ntg.nl; Tue, 05 Apr 2005 12:03:45 -0400 Original-Received: by localhost.localdomain (Postfix, from userid 501) id 8FBCA1BB96; Tue, 5 Apr 2005 11:45:43 -0400 (EDT) Original-To: mailing list for ConTeXt users Mail-Followup-To: mailing list for ConTeXt users Content-Disposition: inline In-Reply-To: <20050405085144.GG9871@mnw.art.pl> User-Agent: Mutt/1.4i X-Virus-Scanned: by amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.5 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: by amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:19627 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:19627 On Tue, Apr 05, 2005 at 10:51:44AM +0200, Piotr Kopszak wrote: > > That's very promising indeed. Right now I'm transforming my original > xml using xslt to a simpler xml file which can be processed in > document order to make the ConTeXt file containing xml formatting > commands as simple as possible. It would be nice to end up with an xml > file which would contain all the formatting information and make the > ConTeXt file unnecessary. But I'm afraid of two things: > > 1. XSLT transformations will get so complex I will get lost in the > stylesheet at some point. > > 2. How the final finetuning of the appearence of the typeset version > should be done? Surely not by fiddling in the xml file which should > be generated by xslt (or whatever) and I'm not sure making changes > in the xslt stylesheet to make some pages one line shorter or > longer is the way to go. > Hi Piotr, First, if you use TeXML, make sure you download the latest version, 1.25-devel. This version is very stable and robust, and has the texml_con script, which converts directly from XML to PDF or whatever format you require: texml_con infile It will create a ConTeX file along the way, as its first step. So if your file is modern_photo.xml, a file called modern_photo.tex will be created. You could open the modern_photo.tex file and make small changes on that file. However, if you need to do this, you should instead type: texml.py -e -c modern_photo.xml modern_photo.tex That will create a ConTeXt file, which you can then alter. Of course, having to alter the ConTeXt file defeats the purpose of XML. You should be able to convert directly from XML to PDF. What alterations do you think you will have to make? I know XSLT stylesheets can get very complicated. This is often the case, including when I convert XML to HTML. You could try converting in steps, making a small manageble change on one document, and then making a small manageable change and so on. Let me know your results. Good luck! Paul -- ************************ *Paul Tremblay * *phthenry@iglou.com * ************************