From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/23911 Path: news.gmane.org!not-for-mail From: Taco Hoekwater Newsgroups: gmane.comp.tex.context Subject: Re: ConTeXt, XML, multiple attributes evaluation Date: Tue, 29 Nov 2005 08:37:17 +0100 Message-ID: <438C052D.3080308@elvenkind.com> References: 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; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1133252574 27748 80.91.229.2 (29 Nov 2005 08:22:54 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 29 Nov 2005 08:22:54 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Tue Nov 29 09:22:41 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 1Eh04I-0004ok-5L for gctc-ntg-context-518@m.gmane.org; Tue, 29 Nov 2005 08:38:27 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id E2473128BF; Tue, 29 Nov 2005 08:38:25 +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 19649-01-3; Tue, 29 Nov 2005 08:38:21 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id C675D128C4; Tue, 29 Nov 2005 08:38:21 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 2E290128C4 for ; Tue, 29 Nov 2005 08:38:21 +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 19649-01-2 for ; Tue, 29 Nov 2005 08:38:20 +0100 (CET) Original-Received: from post-25.mail.nl.demon.net (post-25.mail.nl.demon.net [194.159.73.195]) by ronja.ntg.nl (Postfix) with ESMTP id 4BBE4128BF for ; Tue, 29 Nov 2005 08:38:20 +0100 (CET) Original-Received: from boo.demon.nl ([82.161.175.147]:51652 helo=[192.168.1.3]) by post-25.mail.nl.demon.net with esmtp (Exim 4.51) id 1Eh04B-00098h-Nr; Tue, 29 Nov 2005 07:38:19 +0000 User-Agent: Mozilla Thunderbird 1.0 (X11/20050215) X-Accept-Language: en-us, en Original-To: graumann@its.caltech.edu, mailing list for ConTeXt users In-Reply-To: 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:23911 Archived-At: Johannes Graumann wrote: > > but this doesn't work ... But it worked fine for me!? Anyway, it is probably a better idea to do it like this: \defineXMLenvironment [list]% {% \let\listoptions\empty \XMLifequalelse{list}{setup}{n} {\appendtocommalist{n}\listoptions} {}% \XMLifequalelse{list}{packed}{yes} {\appendtocommalist{packed}\listoptions} {\appendtocommalist{unpacked}\listoptions}% \expanded{% \startitemize[\listoptions]% }% }% {\stopitemize} Because that way, the xml attributes can be optional. If it still doesn't work, please explain what goes wrong. Greetings, Taco