On Tue, 11 Mar 2008 18:37:29 +0100
Hans Hagen
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> <title>Section 1</title> <p>text text text text text text text text</p> <p>text text text text text text text text</p> <p>text text text text text text text text</p> <p>text text text text text text text text</p> <section> <title>Subsection 1</title> <p>text text text text text text text text</p> <p>text text text text text text text text</p> <p>text text text text text text text text</p> <p>text text text text text text text text</p> </section> <title>Section 2</title> <p>text text text text text text text text</p> <p>text text text text text text text text</p> <p>text text text text text text text text</p> <p>text text text text text text text text</p> </section> \stopbuffer \starttext \xmlprocessbuffer{main}{section}{} \stoptext Greetings Wolfgang