From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/23907 Path: news.gmane.org!not-for-mail From: Johannes Graumann Newsgroups: gmane.comp.tex.context Subject: ConTeXt, XML, multiple attributes evaluation Date: Mon, 28 Nov 2005 20:30:25 -0800 Organization: California Institute of Technology Message-ID: Reply-To: graumann@its.caltech.edu, mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Trace: sea.gmane.org 1133238901 31283 80.91.229.2 (29 Nov 2005 04:35:01 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 29 Nov 2005 04:35:01 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Tue Nov 29 05:34:58 2005 Return-path: 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 1EgxBT-0008L7-7T for gctc-ntg-context-518@m.gmane.org; Tue, 29 Nov 2005 05:33:39 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id C2A1D12804; Tue, 29 Nov 2005 05:33:37 +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 18150-02; Tue, 29 Nov 2005 05:33:33 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 72F35127D8; Tue, 29 Nov 2005 05:33:33 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id A9596127D8 for ; Tue, 29 Nov 2005 05:33: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 17951-05 for ; Tue, 29 Nov 2005 05:33:30 +0100 (CET) Original-Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by ronja.ntg.nl (Postfix) with ESMTP id B1808127CE for ; Tue, 29 Nov 2005 05:33:28 +0100 (CET) Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1Egx9o-0007Q8-NJ for ntg-context@ntg.nl; Tue, 29 Nov 2005 05:31:56 +0100 Original-Received: from iluvatar.caltech.edu ([131.215.35.27]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 29 Nov 2005 05:31:56 +0100 Original-Received: from graumann by iluvatar.caltech.edu with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 29 Nov 2005 05:31:56 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-To: ntg-context@ntg.nl Original-Lines: 61 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: iluvatar.caltech.edu User-Agent: KNode/0.9.2 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:23907 Archived-At: Hello again, Another one: I'm trying to expand >\defineXMLenvironment [list]% > {% > \expanded{% > \startitemize% > [% > \XMLifequalelse{list}{packed}{yes}{packed}{unpacked}% > ]% > }% > }% > {\stopitemize} which can deal with things like > > > > To something able to deal with multiple attributes (a "setup" statement for now): > > > > I have tryed multiple incarnations of >\defineXMLenvironment [list]% > {% > \expanded{% > \startitemize% > [% > \XMLifequalelse{list}{setup}{n}{n}{},% > \XMLifequalelse{list}{packed}{yes}{packed}{unpacked}% > ]% > }% > }% > {\stopitemize} but this doesn't work ... Can anybody give me any pointers here? Thanks for time and help, Joh -- +----------------------------------------------------------------------+ | Johannes Graumann, Dipl. Biol. | | | | Graduate Student Tel.: ++1 (626) 395 6602 | | Deshaies Lab Fax.: ++1 (626) 395 5739 | | Department of Biology | | CALTECH, M/C 156-29 | | 1200 E. California Blvd. | | Pasadena, CA 91125 | | USA | +----------------------------------------------------------------------+