From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/25392 Path: news.gmane.org!not-for-mail From: Junod Antoine Newsgroups: gmane.comp.tex.context Subject: xml and buffers Date: Thu, 19 Jan 2006 19:23:29 +0100 Message-ID: <20060119182329.GB25283@zapata.cryptyx.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1137687860 2513 80.91.229.2 (19 Jan 2006 16:24:20 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 19 Jan 2006 16:24:20 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Thu Jan 19 17:24:15 2006 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 ciao.gmane.org with esmtp (Exim 4.43) id 1EzcZV-0000d4-0i for gctc-ntg-context-518@m.gmane.org; Thu, 19 Jan 2006 17:23:37 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id BD3ED12885; Thu, 19 Jan 2006 17:23:36 +0100 (CET) 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 02150-05-5; Thu, 19 Jan 2006 17:23:32 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 43691127B0; Thu, 19 Jan 2006 17:23:32 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 463F0127B0 for ; Thu, 19 Jan 2006 17:23:31 +0100 (CET) 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 02150-05-4 for ; Thu, 19 Jan 2006 17:23:30 +0100 (CET) Original-Received: from zapata.tots-ns.net (zapata.tots-ns.net [213.239.193.37]) by ronja.ntg.nl (Postfix) with SMTP id 6F45F12784 for ; Thu, 19 Jan 2006 17:23:29 +0100 (CET) Original-Received: (qmail 25316 invoked by uid 1000); 19 Jan 2006 19:23:29 +0100 Original-To: ntg-context@ntg.nl Content-Disposition: inline User-Agent: Mutt/1.5.11 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.5 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:25392 Archived-At: Hello gurus,=20 I'm a bit into trouble wih buffers and xml parsing. Here is my problem: I've got a .xhtml with the following lines: [...] [...] Auction: document d'analyse [...] I'm trying to store the content of the meta tag in a buffer, one per meta tag, (ie "G=E9nie Logiciel" in buffer course_name, "23 d=E9cembre 2005" in buffer date) to use these buffers when I meet the title tag: \XMLifequalelse{meta}{name}{course_name} {\startbuffer[course_name]\XMLpar{meta}{content}{}\stopbuffer}{= } \XMLifequalelse{meta}{name}{date} {\startbuffer[date]\XMLpar{meta}{content}{}\stopbuffer}{} \defineXMLenvironment [title] {\startstandardmakeup \getbuffer[course_name] \getbuffer[date]}{\stopstandardmakeup= } But it does not print anything else than the title. Any idea? Thanks a lot for you help! -AJ=20