From: Hans Hagen <pragma@wxs.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: new current
Date: Tue, 11 Mar 2008 23:58:54 +0100 [thread overview]
Message-ID: <47D70EAE.6030200@wxs.nl> (raw)
In-Reply-To: <20080311193303.469f6cf7.schuster.wolfgang@googlemail.com>
Wolfgang Schuster wrote:
> On Tue, 11 Mar 2008 18:37:29 +0100
> Hans Hagen <pragma@wxs.nl> 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
___________________________________________________________________________________
next prev parent reply other threads:[~2008-03-11 22:58 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-11 17:37 Hans Hagen
2008-03-11 17:52 ` Peter Münster
2008-03-11 18:33 ` Wolfgang Schuster
2008-03-11 22:58 ` Hans Hagen [this message]
2008-03-11 23:16 ` Hans Hagen
2010-07-30 8:45 Hans Hagen
2010-07-30 9:53 ` Henning Hraban Ramm
2010-07-30 10:02 ` Wolfgang Schuster
2010-07-30 10:19 ` Vnpenguin
2010-07-30 10:51 ` Hans Hagen
2010-07-30 13:56 ` Vnpenguin
2010-07-30 14:01 ` Hans Hagen
2010-07-30 14:19 ` Vnpenguin
2010-07-30 14:39 ` Hans Hagen
2010-07-30 14:50 ` Vnpenguin
2010-07-30 15:09 ` Mojca Miklavec
2010-07-30 15:30 ` Vnpenguin
2010-07-30 15:35 ` Mojca Miklavec
2010-07-30 15:36 ` Taco Hoekwater
2010-07-30 15:43 ` Vnpenguin
2010-08-01 16:08 ` Taco Hoekwater
2010-08-01 16:47 ` Patrick Gundlach
2010-08-01 18:04 ` taco
2010-08-02 7:51 ` Hans Hagen
2010-08-02 8:00 ` Patrick Gundlach
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=47D70EAE.6030200@wxs.nl \
--to=pragma@wxs.nl \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).