Wolfgang Schuster wrote:
> On Tue, 11 Mar 2008 18:37:29 +0100
> Hans Hagen <[EMAIL PROTECTED]> 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>
> <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
> ___________________________________________________________________________________
> 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
___________________________________________________________________________________

Reply via email to