From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/39659 Path: news.gmane.org!not-for-mail From: "Wolfgang Schuster" Newsgroups: gmane.comp.tex.context Subject: Re: more xml in mkiv Date: Tue, 25 Mar 2008 16:29:25 +0100 Message-ID: <115224fb0803250829h586fd5d3m780c81844bfb7aaf@mail.gmail.com> References: 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 1206459082 26990 80.91.229.12 (25 Mar 2008 15:31:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 25 Mar 2008 15:31:22 +0000 (UTC) To: "mailing list for ConTeXt users" Original-X-From: ntg-context-bounces@ntg.nl Tue Mar 25 16:31:52 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 1JeB7c-0003sJ-OR for gctc-ntg-context-518@m.gmane.org; Tue, 25 Mar 2008 16:31:32 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id D5B0B1FD81; Tue, 25 Mar 2008 16:30:55 +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 03054-04-2; Tue, 25 Mar 2008 16:30:08 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 18A621FB72; Tue, 25 Mar 2008 16:30:08 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 4E0FC1FB39 for ; Tue, 25 Mar 2008 16:30: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 03052-09 for ; Tue, 25 Mar 2008 16:29:30 +0100 (CET) Original-Received: from ti-out-0910.google.com (ti-out-0910.google.com [209.85.142.190]) by ronja.ntg.nl (Postfix) with ESMTP id 89CAC1FD1B for ; Tue, 25 Mar 2008 16:29:29 +0100 (CET) Original-Received: by ti-out-0910.google.com with SMTP id y8so1101253tia.14 for ; Tue, 25 Mar 2008 08:29:27 -0700 (PDT) Original-Received: by 10.151.42.18 with SMTP id u18mr4098551ybj.81.1206458965532; Tue, 25 Mar 2008 08:29:25 -0700 (PDT) Original-Received: by 10.150.49.21 with HTTP; Tue, 25 Mar 2008 08:29:25 -0700 (PDT) In-Reply-To: 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:39659 Archived-At: On Mon, Mar 24, 2008 at 10:28 PM, Thomas A. Schmitz wrote: > Hi all, > > I played some more with the new mkiv xml mechanism and am beginning to > see the light: some things that turned out to be very difficult (at > least for me) with the "old" mechanism are easy now. However, I still > have a couple of questions: > > 1. I have this minimal file test.xml: > > > > > one > > > two > > > three > > > > > and this minimal environment test-style.tex: > \startxmlsetups xml:mysetups > \xmlsetsetup{\xmldocument}{document|itemize|item}{xml:*} > \stopxmlsetups > > \xmlregistersetup{xml:mysetups} > > \startxmlsetups xml:document > \xmlflush{#1} > \stopxmlsetups > > \startxmlsetups xml:itemize > \startitemize > \xmlflush{#1} > \stopitemize > \stopxmlsetups > > \startxmlsetups xml:item > \item \xmlflush{#1} > \stopxmlsetups > > \starttext > \xmlprocess{main}{\inputfilename}{} > \stoptext > > When I run texexec --lua --env=test-style test.xml, I get output only > for item "three," not for one and two. What am I doing wrong? > > 2. In every run, I get this warning: > > TeXUtil | check loading of file 'test-style', begin/end problem > > I don't see anything wrong with my files, though. Is this harmless? > > > 3. I have a structure like this to get numbered labels: > > > > > blahblah > > you could try something like \startxmlsetups xml:lemma \startlemma{\xmlfirst{#1}{label}} \ignorespaces\xmlfirst{#1}{content}\removeunwatedspaces \stoplemma \stopxmlsetups 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 ___________________________________________________________________________________