From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/39541 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: processing xml in mkiv Date: Sun, 16 Mar 2008 12:04:25 +0100 Message-ID: <20080316120425.bcb38147.schuster.wolfgang@googlemail.com> References: <332CF356-5BD2-469A-969E-7F2B3A61B7F4@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 1205665558 23907 80.91.229.12 (16 Mar 2008 11:05:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 16 Mar 2008 11:05:58 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Sun Mar 16 12:06:27 2008 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 1Jaqh4-0008M5-PC for gctc-ntg-context-518@m.gmane.org; Sun, 16 Mar 2008 12:06:22 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 7F6551FCA3; Sun, 16 Mar 2008 12:05:46 +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 12866-05-4; Sun, 16 Mar 2008 12:05:05 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 90BB21FC45; Sun, 16 Mar 2008 12:05:05 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id EAFAE1FC44 for ; Sun, 16 Mar 2008 12:05:03 +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 12866-05-3 for ; Sun, 16 Mar 2008 12:04:30 +0100 (CET) Original-Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.159]) by ronja.ntg.nl (Postfix) with ESMTP id B3C251FC7A for ; Sun, 16 Mar 2008 12:04:30 +0100 (CET) Original-Received: by fg-out-1718.google.com with SMTP id e12so4217369fga.8 for ; Sun, 16 Mar 2008 04:04:30 -0700 (PDT) Original-Received: by 10.86.62.3 with SMTP id k3mr4291197fga.24.1205665470370; Sun, 16 Mar 2008 04:04:30 -0700 (PDT) Original-Received: from rover ( [91.41.121.182]) by mx.google.com with ESMTPS id 3sm19549082fge.7.2008.03.16.04.04.29 (version=SSLv3 cipher=OTHER); Sun, 16 Mar 2008 04:04:29 -0700 (PDT) In-Reply-To: <332CF356-5BD2-469A-969E-7F2B3A61B7F4@uni-bonn.de> X-Mailer: Sylpheed 2.5.0beta1 (GTK+ 2.10.14; i686-pc-mingw32) 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:39541 Archived-At: On Sun, 16 Mar 2008 11:29:49 +0100 "Thomas A. Schmitz" wrote: > Hi all, > > xml processing is about the last part of my ConTeXt stuff where I > haven't been able to switch to mkiv; I just can't get my head around > it... 2 questions: > > 1. When I try to process a xml-file with my old (mkii) environments, > the output looks OK, but I always get a first page with the xml > version declaration > > > > Is this a bug or a feature? Is there anything I can do to prevent it? Can you post a example, I never saw such a effect in my test files. > 2. I'm really lost with the new xml mechanism. My first problem: In a > message from September last year, Hans explained that the command to > process xml files is: > > > The regular definitions still work but processing a file is done > > differently: > > > > \xmlprocess{id}{filename}{optional initialization setup} > > I used to have environments with which to typeset a bunch of files. > How can this be ported to the new mechanism, which appears to expect > a filename? \xmlprocess{main}{filename.xml}{} works for me. > Sorry if these are very basic problems, but I'm probably a bit obtuse > here. You don't have to use new xml mechanism form MkIV, the old code could be used without problems. The advantage of the new code is direct access to elements in the tree (you could use xml files as database) and the option to read from zip files. Wolfgang ___________________________________________________________________________________ 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 ___________________________________________________________________________________