From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/39648 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 13:17:12 +0100 Message-ID: <60260297-8E33-4EED-B1C8-6A14B6BD6DD2@uni-bonn.de> References: <47E82C58.4020802@wxs.nl> 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 1206447665 13385 80.91.229.12 (25 Mar 2008 12:21:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 25 Mar 2008 12:21:05 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Mar 25 13:21:33 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 1Je89Y-0007hz-MM for gctc-ntg-context-518@m.gmane.org; Tue, 25 Mar 2008 13:21:20 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 01CD21FB82; Tue, 25 Mar 2008 13:20:44 +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 16722-01-8; Tue, 25 Mar 2008 13:20:09 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 378B21FCA2; Tue, 25 Mar 2008 13:19:02 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id F30651FCA2 for ; Tue, 25 Mar 2008 13:19:00 +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 16714-01-7 for ; Tue, 25 Mar 2008 13:18:20 +0100 (CET) Original-Received: from mailout05.sul.t-online.de (mailout05.sul.t-online.de [194.25.134.82]) by ronja.ntg.nl (Postfix) with ESMTP id 213C11FB98 for ; Tue, 25 Mar 2008 13:17:35 +0100 (CET) Original-Received: from fwd26.aul.t-online.de by mailout05.sul.t-online.de with smtp id 1Je85u-00009w-02; Tue, 25 Mar 2008 13:17:34 +0100 Original-Received: from [192.168.0.2] (rIa8aaZr8hotAAeFT6RlDzt9hvzR42GjB-9hGNoPCZil2o3W1lwLJsaVlCib3cigdJ@[87.178.115.71]) by fwd26.aul.t-online.de with esmtp id 1Je85Z-1MRfCC0; Tue, 25 Mar 2008 13:17:13 +0100 In-Reply-To: <47E82C58.4020802@wxs.nl> X-Mailer: Apple Mail (2.919.2) X-ID: rIa8aaZr8hotAAeFT6RlDzt9hvzR42GjB-9hGNoPCZil2o3W1lwLJsaVlCib3cigdJ@t-dialin.net X-TOI-MSGID: 2aee4e95-0101-4944-8e05-ec14ccab26bf 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:39648 Archived-At: 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 \xmlregistersetup{xml:mysetups} \startxmlsetups xml:document \xmlflush{#1} \stopxmlsetups \startxmlsetups xml:section \section{\xmlfirst{#1}{label}} \xmlfirst{#1}{content} \stopxmlsetups \startxmlsetups xml:itemize \startitemize \xmlflush{#1} \stopitemize \stopxmlsetups \startxmlsetups xml:item \item \xmlflush{#1} \par \stopxmlsetups \starttext \xmlprocess{main}{\inputfilename}{} \stoptext Thanks! 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 ___________________________________________________________________________________