From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/39649 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 13:42:25 +0100 Message-ID: <115224fb0803250542p36f66333s13762506b27aae7e@mail.gmail.com> References: <47E82C58.4020802@wxs.nl> <60260297-8E33-4EED-B1C8-6A14B6BD6DD2@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 1206449285 19440 80.91.229.12 (25 Mar 2008 12:48:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 25 Mar 2008 12:48:05 +0000 (UTC) To: "mailing list for ConTeXt users" Original-X-From: ntg-context-bounces@ntg.nl Tue Mar 25 13:48:36 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 1Je8Zn-0000OW-OL for gctc-ntg-context-518@m.gmane.org; Tue, 25 Mar 2008 13:48:27 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id B595C1FBBE; Tue, 25 Mar 2008 13:47:50 +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 17765-03-12; Tue, 25 Mar 2008 13:47:06 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 284491FC1A; Tue, 25 Mar 2008 13:46:14 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 4855E1FC14 for ; Tue, 25 Mar 2008 13:46:12 +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 18285-04-8 for ; Tue, 25 Mar 2008 13:45:27 +0100 (CET) Original-Received: from ti-out-0910.google.com (ti-out-0910.google.com [209.85.142.191]) by ronja.ntg.nl (Postfix) with ESMTP id 3176B1FC77 for ; Tue, 25 Mar 2008 13:42:28 +0100 (CET) Original-Received: by ti-out-0910.google.com with SMTP id y8so1004407tia.14 for ; Tue, 25 Mar 2008 05:42:27 -0700 (PDT) Original-Received: by 10.150.136.6 with SMTP id j6mr3962867ybd.126.1206448945845; Tue, 25 Mar 2008 05:42:25 -0700 (PDT) Original-Received: by 10.150.49.21 with HTTP; Tue, 25 Mar 2008 05:42:25 -0700 (PDT) In-Reply-To: <60260297-8E33-4EED-B1C8-6A14B6BD6DD2@uni-bonn.de> 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:39649 Archived-At: On Tue, Mar 25, 2008 at 1:17 PM, Thomas A. Schmitz wrote: > > On Mar 24, 2008, at 11:34 PM, Hans Hagen wrote: > > works here, just to be sure i uploaded a new current > > > > Hans > > > > Thanks Hans! You're right; I worked on a minimal example for a long > time and got confused. I tried again; this example demonstrates the > behavior (I tested on two different computers to be really sure :-): > > test.xml: > > >
> > text > > > one > > > two > > > three > > > more text > >
>
> > test-style.tex: > > \startxmlsetups xml:mysetups > \xmlsetsetup{\xmldocument}{document|section|itemize|item}{xml:*} > \stopxmlsetups \startxmlsetups xml:mysetups \xmlsetsetup{\xmldocument}{document|section|content|itemize|item}{xml:*} \stopxmlsetups > \xmlregistersetup{xml:mysetups} > > \startxmlsetups xml:document > \xmlflush{#1} > \stopxmlsetups > > \startxmlsetups xml:section > \section{\xmlfirst{#1}{label}} \xmlfirst{#1}{content} > \stopxmlsetups \startxmlsetups xml:section \section{\xmlfirst{#1}{label}} \xmlflush{#1} \stopxmlsetups \startxmlsetups xml:content \xmlflush{#1} \stopxmlsetups > \startxmlsetups xml:itemize > \startitemize > \xmlflush{#1} > \stopitemize > \stopxmlsetups > > \startxmlsetups xml:item > \item \xmlflush{#1} \par > \stopxmlsetups also possible \startxmlsetups xml:item \startitem \xmlflush{#1} \stopitem \stopxmlsetups > \starttext > \xmlprocess{main}{\inputfilename}{} > \stoptext Not sure if this works, I can't test it at the moment. 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 ___________________________________________________________________________________