From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/42427 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: more xml in mkiv Date: Mon, 14 Jul 2008 17:21:36 +0200 Message-ID: <5BF92277-5B7F-4894-B46E-BB0A138D4C72@gmail.com> References: <115224fb0803250829h586fd5d3m780c81844bfb7aaf@mail.gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v926) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1216049024 8716 80.91.229.12 (14 Jul 2008 15:23:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 14 Jul 2008 15:23:44 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Jul 14 17:24:30 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 1KIPuZ-0005vt-BD for gctc-ntg-context-518@m.gmane.org; Mon, 14 Jul 2008 17:24:23 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id C13801FDDA; Mon, 14 Jul 2008 17:23:28 +0200 (CEST) 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 06295-01-2; Mon, 14 Jul 2008 17:22:33 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id C1AFB1FBC5; Mon, 14 Jul 2008 17:22:29 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 97F7F1FB89 for ; Mon, 14 Jul 2008 17:22:21 +0200 (CEST) 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 06187-03-2 for ; Mon, 14 Jul 2008 17:21:44 +0200 (CEST) Original-Received: from fk-out-0910.google.com (fk-out-0910.google.com [209.85.128.188]) by ronja.ntg.nl (Postfix) with ESMTP id 519121FBC5 for ; Mon, 14 Jul 2008 17:21:42 +0200 (CEST) Original-Received: by fk-out-0910.google.com with SMTP id 18so2790808fks.2 for ; Mon, 14 Jul 2008 08:21:42 -0700 (PDT) Original-Received: by 10.187.196.3 with SMTP id y3mr1780802fap.74.1216048902222; Mon, 14 Jul 2008 08:21:42 -0700 (PDT) Original-Received: from ?192.168.2.23? ( [91.41.101.192]) by mx.google.com with ESMTPS id g28sm11619704fkg.8.2008.07.14.08.21.39 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 14 Jul 2008 08:21:41 -0700 (PDT) In-Reply-To: X-Mailer: Apple Mail (2.926) 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:42427 Archived-At: Am 14.07.2008 um 16:45 schrieb Thomas A. Schmitz: > Hi all, > > I'm resurrecting an ooooold thread and top-posting... For details, see > the post below. The problem was that the content of itemizations > sometimes disappeared in xml processed by mkiv. I emphasize > "sometimes": now you see it, now you don't... I can't really post a > minimal example that will be certain to display the effect, but I > have, since May, discovered one thing: > > this code: > > > A > > > will sometimes make the A disappear. This code: > > A > > will always work correctly. So Hans, a shot in the dark: can it be > that your lpeg xml parser can, under certain circumstances, have > trouble with linebreaks within the xml-subtree it is trying to pick > up? That would explain the mystery which had me baffled back in May. > > All best > > Thomas Can you test the following definition for item a while: \startxmlsetups xml:item \startitem \xmlflush{#1} \stopitem \stopxmlsetups Regards, Wolfgang > On Mar 25, 2008, at 4:29 PM, Wolfgang Schuster wrote: > >> On Mon, Mar 24, 2008 at 10:28 PM, Thomas A. Schmitz >> wrote: >>> Hi all, >>> >>> I played some more with the new mkiv xml mechanism and am beginning >>> to >>> see the light: some things that turned out to be very difficult (at >>> least for me) with the "old" mechanism are easy now. However, I >>> still >>> have a couple of questions: >>> >>> 1. I have this minimal file test.xml: >>> >>> >>> >>> >>> one >>> >>> >>> two >>> >>> >>> three >>> >>> >>> >>> >>> and this minimal environment test-style.tex: >>> \startxmlsetups xml:mysetups >>> \xmlsetsetup{\xmldocument}{document|itemize|item}{xml:*} >>> \stopxmlsetups >>> >>> \xmlregistersetup{xml:mysetups} >>> >>> \startxmlsetups xml:document >>> \xmlflush{#1} >>> \stopxmlsetups >>> >>> \startxmlsetups xml:itemize >>> \startitemize >>> \xmlflush{#1} >>> \stopitemize >>> \stopxmlsetups >>> >>> \startxmlsetups xml:item >>> \item \xmlflush{#1} >>> \stopxmlsetups >>> >>> \starttext >>> \xmlprocess{main}{\inputfilename}{} >>> \stoptext >>> >>> When I run texexec --lua --env=test-style test.xml, I get output >>> only >>> for item "three," not for one and two. What am I doing wrong? >>> >>> 2. In every run, I get this warning: >>> >>> TeXUtil | check loading of file 'test-style', begin/end problem >>> >>> I don't see anything wrong with my files, though. Is this harmless? >>> >>> >>> 3. I have a structure like this to get numbered labels: >>> >>> >>> >>> >>> blahblah >>> >>> >> >> you could try something like >> >> \startxmlsetups xml:lemma >> \startlemma{\xmlfirst{#1}{label}} >> \ignorespaces\xmlfirst{#1}{content}\removeunwatedspaces >> \stoplemma >> \stopxmlsetups >> >> 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 > ___________________________________________________________________________________ ___________________________________________________________________________________ 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 ___________________________________________________________________________________