From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/36883 Path: news.gmane.org!not-for-mail From: "Wolfgang Schuster" Newsgroups: gmane.comp.tex.context Subject: Re: Problem with XML entities in titles [2] Date: Thu, 4 Oct 2007 13:47:27 +0200 Message-ID: <115224fb0710040447h6e23e9e6h4b79b3dd0e1df14f@mail.gmail.com> References: <20071004093210.6799bc71@mx1.kerio.com> 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: sea.gmane.org 1191498518 28298 80.91.229.12 (4 Oct 2007 11:48:38 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 4 Oct 2007 11:48:38 +0000 (UTC) To: "mailing list for ConTeXt users" Original-X-From: ntg-context-bounces@ntg.nl Thu Oct 04 13:48:35 2007 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 1IdPBx-0001oe-5W for gctc-ntg-context-518@m.gmane.org; Thu, 04 Oct 2007 13:48:33 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 485C91FB0A; Thu, 4 Oct 2007 13:48: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 31829-02-3; Thu, 4 Oct 2007 13:47:50 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 053BB1FB0B; Thu, 4 Oct 2007 13:47:50 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 1ACE51FB0B for ; Thu, 4 Oct 2007 13:47:43 +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 31829-02-2 for ; Thu, 4 Oct 2007 13:47:32 +0200 (CEST) Original-Received: from el-out-1112.google.com (el-out-1112.google.com [209.85.162.176]) by ronja.ntg.nl (Postfix) with ESMTP id 810F61FB0A for ; Thu, 4 Oct 2007 13:47:29 +0200 (CEST) Original-Received: by el-out-1112.google.com with SMTP id o28so26694ele for ; Thu, 04 Oct 2007 04:47:28 -0700 (PDT) Original-Received: by 10.150.191.10 with SMTP id o10mr2729ybf.1191498447988; Thu, 04 Oct 2007 04:47:27 -0700 (PDT) Original-Received: by 10.90.70.1 with HTTP; Thu, 4 Oct 2007 04:47:27 -0700 (PDT) In-Reply-To: <20071004093210.6799bc71@mx1.kerio.com> Content-Disposition: inline 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:36883 Archived-At: 2007/10/4, Richard Gabriel : > Hello Hans, > > some time ago I've reported this problem with character entities. I've just > upgraded to ConTeXt 2007-09-28, and the problem still persists! > Could you please look into it? A simple test file is attached. > > Many thanks, > Richard Hello Richard, I'm not Hans but I can also give you a solution to your problem. This is related to your own definition for the chapter header and ConTeXt's mechanism to save the two pass information of the headers, you should save the header text and expand the header command with the header text, you can use my example for your problem. BTW: Your xml file is valied because you forgot to include the chapter end tag. \defineXMLenvironment [chapter] {\defineXMLsave[title]} {\expanded{\chapter{\XMLflush{title}}}} \defineXMLenvironment[para] \dontleavehmode \par \defineXMLentities [tex] {tex} {\TeX} \starttext \completecontent \startXMLdata This is a testing &tex; chapter Some meaningless text... \stopXMLdata \stoptext 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 ___________________________________________________________________________________