From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/8606 Path: main.gmane.org!not-for-mail From: Simon Pepping Newsgroups: gmane.comp.tex.context Subject: Re: XML attributes Date: Tue, 9 Jul 2002 21:05:20 +0200 Sender: owner-ntg-context@let.uu.nl Message-ID: <20020709210520.A525@scaprea> References: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035398997 28933 80.91.224.250 (23 Oct 2002 18:49:57 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 18:49:57 +0000 (UTC) Original-To: ntg-context@ntg.nl In-Reply-To: ; from scarsoluigi@libero.it on Tue, Jul 09, 2002 at 11:47:01AM +0200 Xref: main.gmane.org gmane.comp.tex.context:8606 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:8606 On Tue, Jul 09, 2002 at 11:47:01AM +0200, scarsoluigi@libero.it wrote: > Hi, i'm just working on xml and context and i have the following > question: > give the following doc. fragm. > > > > LEAF > > FLAT > > > > How can i discriminate by attribute, and how to recognize > without attribute? \edef\tmp{\XMLpar{node}{type}{} \doifelse{\tmp}{type1}{case for type1} {\doifelse{\tmp}{type2}{case for type2} {case for other values}}} or \processaction[\XMLpar{node}{type}{default}] [ type1=>case for type1, type2=>case for type2, default=>default case] > Thanks > luigi -- Simon Pepping email: spepping@scaprea.hobby.nl