From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/39651 Path: news.gmane.org!not-for-mail From: "Thomas A. Schmitz" Newsgroups: gmane.comp.tex.context Subject: Re: more xml in mkiv Date: Tue, 25 Mar 2008 14:39:40 +0100 Message-ID: References: <47E82C58.4020802@wxs.nl> <60260297-8E33-4EED-B1C8-6A14B6BD6DD2@uni-bonn.de> <115224fb0803250542p36f66333s13762506b27aae7e@mail.gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v919.2) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1206454499 8094 80.91.229.12 (25 Mar 2008 14:14:59 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 25 Mar 2008 14:14:59 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Mar 25 15:15:28 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 1Je9vz-0007t4-Vb for gctc-ntg-context-518@m.gmane.org; Tue, 25 Mar 2008 15:15:28 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 324D11FCE5; Tue, 25 Mar 2008 15:14:49 +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 27034-04-5; Tue, 25 Mar 2008 15:13:57 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 77A001FBA8; Tue, 25 Mar 2008 15:13:57 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id B2E691FBA8 for ; Tue, 25 Mar 2008 15:13: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 27034-04-4 for ; Tue, 25 Mar 2008 15:13:14 +0100 (CET) Original-Received: from mailout10.sul.t-online.de (mailout10.sul.t-online.de [194.25.134.21]) by ronja.ntg.nl (Postfix) with ESMTP id 195031FB6B for ; Tue, 25 Mar 2008 14:40:21 +0100 (CET) Original-Received: from fwd28.aul.t-online.de by mailout10.sul.t-online.de with smtp id 1Je9O0-0000WQ-00; Tue, 25 Mar 2008 14:40:20 +0100 Original-Received: from [192.168.0.2] (SmDLqGZLwhAgS2117NMc8dA6HYI+wSGbsiwViunTbbIqsH7llj0vIJnn+mDaQvbw+S@[87.178.115.71]) by fwd28.aul.t-online.de with esmtp id 1Je9NN-0sO6ka0; Tue, 25 Mar 2008 14:39:41 +0100 In-Reply-To: <115224fb0803250542p36f66333s13762506b27aae7e@mail.gmail.com> X-Mailer: Apple Mail (2.919.2) X-ID: SmDLqGZLwhAgS2117NMc8dA6HYI+wSGbsiwViunTbbIqsH7llj0vIJnn+mDaQvbw+S@t-dialin.net X-TOI-MSGID: 768e7e6b-3a58-41fc-aee9-dd0d9171c3b5 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:39651 Archived-At: On Mar 25, 2008, at 1:42 PM, Wolfgang Schuster wrote: > 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 Thanks, Wolfgang, but I still get the same output: items one and two are empty. Maybe a bug? Thomas ___________________________________________________________________________________ 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 ___________________________________________________________________________________