From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/39463 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: new current Date: Tue, 11 Mar 2008 19:33:03 +0100 Message-ID: <20080311193303.469f6cf7.schuster.wolfgang@googlemail.com> References: <47D6C359.1050805@wxs.nl> 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 1205260493 19821 80.91.229.12 (11 Mar 2008 18:34:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 11 Mar 2008 18:34:53 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Tue Mar 11 19:35:20 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 1JZ9Jg-0004Gx-2T for gctc-ntg-context-518@m.gmane.org; Tue, 11 Mar 2008 19:35:12 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 5FAB01FD7B; Tue, 11 Mar 2008 19:34:33 +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 11466-01-6; Tue, 11 Mar 2008 19:33:48 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id C818E1FBEB; Tue, 11 Mar 2008 19:33:48 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id DC1511FB1F for ; Tue, 11 Mar 2008 19:33:47 +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 11466-01-5 for ; Tue, 11 Mar 2008 19:33:15 +0100 (CET) Original-Received: from mu-out-0910.google.com (mu-out-0910.google.com [209.85.134.185]) by ronja.ntg.nl (Postfix) with ESMTP id 8AB641FBEB for ; Tue, 11 Mar 2008 19:33:13 +0100 (CET) Original-Received: by mu-out-0910.google.com with SMTP id g7so3043228muf.0 for ; Tue, 11 Mar 2008 11:33:12 -0700 (PDT) Original-Received: by 10.78.186.9 with SMTP id j9mr19025280huf.14.1205260392262; Tue, 11 Mar 2008 11:33:12 -0700 (PDT) Original-Received: from rover ( [91.41.87.160]) by mx.google.com with ESMTPS id 12sm17183131fks.12.2008.03.11.11.33.10 (version=SSLv3 cipher=OTHER); Tue, 11 Mar 2008 11:33:10 -0700 (PDT) In-Reply-To: <47D6C359.1050805@wxs.nl> X-Mailer: Sylpheed 2.5.0beta1 (GTK+ 2.10.14; i686-pc-mingw32) 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:39463 Archived-At: 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. % 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 ___________________________________________________________________________________