From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/39466 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: new current Date: Tue, 11 Mar 2008 23:58:54 +0100 Message-ID: <47D70EAE.6030200@wxs.nl> References: <47D6C359.1050805@wxs.nl> <20080311193303.469f6cf7.schuster.wolfgang@googlemail.com> 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 1205276511 12899 80.91.229.12 (11 Mar 2008 23:01:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 11 Mar 2008 23:01:51 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Mar 12 00:02:17 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 1JZDU0-0003Rr-A8 for gctc-ntg-context-518@m.gmane.org; Wed, 12 Mar 2008 00:02:08 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 1B84C1FC90; Wed, 12 Mar 2008 00:00:42 +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 27539-02-2; Tue, 11 Mar 2008 23:59:57 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id E240B1FC67; Tue, 11 Mar 2008 23:59:56 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 3197B1FC67 for ; Tue, 11 Mar 2008 23:59: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 27219-05-4 for ; Tue, 11 Mar 2008 23:59:15 +0100 (CET) Original-Received: from mail.pragma-ade.net (dsl-083-247-100-017.solcon.nl [83.247.100.17]) by ronja.ntg.nl (Postfix) with ESMTP id 436DD1FB14 for ; Tue, 11 Mar 2008 23:59:11 +0100 (CET) Original-Received: from [10.100.1.100] (unverified [10.100.1.100]) by controller-1 (SurgeMail 3.7b8) with ESMTP id 5062 for ; Tue, 11 Mar 2008 23:59:05 +0100 User-Agent: Thunderbird 2.0.0.12 (Windows/20080213) In-Reply-To: <20080311193303.469f6cf7.schuster.wolfgang@googlemail.com> X-Server: High Performance Mail Server - http://surgemail.com r=-274017400 X-Authenticated-User: hagen@controller-1 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:39466 Wolfgang Schuster wrote: > On Tue, 11 Mar 2008 18:37:29 +0100 > Hans Hagen wrote: > >> Hi, >> >> Taco and I spent some time tracing the 'file not found problem' and >> eventually we zoomed in to the extent that Taco located a dislectic >> typo. We are still puzzled why it worked in some cases, and mostly >> influenced the minimals >> >> Anyhow, I made new zips ... >> >> Hans > > Hi Hans, > > is there any chance to fix the problem with nested elements of the same > type with the new mkiv xml handling. > > The following example give me 2 sections but it should give a section, > a subsection and another section. The fix for this problem is in > l-xml.lua since a few weeks but it is still commented since you wrote > the patch. that's because it breaks things here so i need more time > % engine=luatex > > \startxmlsetups xml:mysetups > \xmlsetsetup{\xmldocument}{section}{xml:section} > \xmlsetsetup{\xmldocument}{title}{xml:title} > \xmlsetsetup{\xmldocument}{p}{xml:paragraph} > \stopxmlsetups > > \xmlregistersetup{xml:mysetups} > > \newcounter\sectionlevel > > \startxmlsetups xml:paragraph > \xmlflush{#1}\endgraf > \stopxmlsetups > > \startxmlsetups xml:title > \ifcase\sectionlevel > \or\chapter {\xmlflush{#1}} > \or\section {\xmlflush{#1}} > \or\subsection {\xmlflush{#1}} > \or\subsubsection{\xmlflush{#1}} > \fi > \stopxmlsetups > > \startxmlsetups xml:section > \increment\sectionlevel > \xmlflush{#1} > \decrement\sectionlevel > \stopxmlsetups > > \setupwhitespace[line] > > \startbuffer[section] >
> Section 1 >

text text text text text text text text

>

text text text text text text text text

>

text text text text text text text text

>

text text text text text text text text

>
> Subsection 1 >

text text text text text text text text

>

text text text text text text text text

>

text text text text text text text text

>

text text text text text text text text

>
> Section 2 >

text text text text text text text text

>

text text text text text text text text

>

text text text text text text text text

>

text text text text text text text text

>
> \stopbuffer > > \starttext > \xmlprocessbuffer{main}{section}{} > \stoptext > > Greetings > 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 > ___________________________________________________________________________________ -- ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl ----------------------------------------------------------------- ___________________________________________________________________________________ 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 ___________________________________________________________________________________