From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/12411 Path: main.gmane.org!not-for-mail From: Simon Pepping Newsgroups: gmane.comp.tex.context Subject: Re: XML attributes Date: Fri, 6 Jun 2003 21:37:09 +0200 Sender: ntg-context-admin@ntg.nl Message-ID: <20030606193709.GA2327@scaprea> References: <87znkw6uxc.fsf@granit.home.astercity.net> Reply-To: ntg-context@ntg.nl NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1054928381 30986 80.91.224.249 (6 Jun 2003 19:39:41 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 6 Jun 2003 19:39:41 +0000 (UTC) Original-X-From: ntg-context-admin@ntg.nl Fri Jun 06 21:39:37 2003 Return-path: Original-Received: from ref.vet.uu.nl ([131.211.172.13] helo=ref.ntg.nl) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19ON3Q-00082W-00 for ; Fri, 06 Jun 2003 21:39:12 +0200 Original-Received: from ref.ntg.nl (localhost.localdomain [127.0.0.1]) by ref.ntg.nl (Postfix) with ESMTP id 26D8410B38; Fri, 6 Jun 2003 21:41:35 +0200 (MEST) Original-Received: from hgatenl.hobby.nl (ns.hobby.nl [212.72.224.8]) by ref.ntg.nl (Postfix) with ESMTP id 3788D10AFC for ; Fri, 6 Jun 2003 21:37:07 +0200 (MEST) Original-Received: from hgatenl.hobby.nl (localhost [127.0.0.1]) by hgatenl.hobby.nl (8.12.9/8.12.2) with ESMTP id h56Jb6Nj024977 for ; Fri, 6 Jun 2003 21:37:06 +0200 (CEST) (envelope-from spepping@scaprea.hobby.nl) Original-Received: (from uucp@localhost) by hgatenl.hobby.nl (8.12.9/8.12.2/Submit) with UUCP id h56Jb6hJ024976 for ntg-context@ntg.nl; Fri, 6 Jun 2003 21:37:06 +0200 (CEST) Original-Received: from simon by scaprea.salix.nl with local (Exim 3.35 #1 (Debian)) id 19ON1R-0000eq-00; Fri, 06 Jun 2003 21:37:09 +0200 Original-To: ntg-context@ntg.nl Mail-Followup-To: ntg-context@ntg.nl Content-Disposition: inline In-Reply-To: <87znkw6uxc.fsf@granit.home.astercity.net> User-Agent: Mutt/1.3.28i Errors-To: ntg-context-admin@ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.0.13 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.comp.tex.context:12411 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:12411 Tables make a lot of groups. When your tag is read, your parameter is defined in a group. When you use it in the next cell, you are in another group, and your parameter value has disappeared. Try this: \defineXMLenvironment [var] {\xdef\varname{\XMLpar{var}{name}{blah}} \NC \varname \NC } {\NC\NR } On Fri, Jun 06, 2003 at 12:06:39AM +0200, Jedrzej Nasiadek wrote: > > Hi, > > So I've got to use this modern XML thingy.. ;-) > I tried to set up ConTeXt to typeset processed XML data. > What goes wrong is the \XMLpar which sometimes gives default value > instead of the real one. See the code below: > > \starttext > \defineXMLpickup [log] > {\starttabulate[|p(7cm)|p|] \HL\NC ObjectID \NC Value \NC\NR\HL} > {\stoptabulate} > > \defineXMLenvironment [var] > {\NC \XMLpar{var}{name}{blah} \NC } > {\NC\NR } > > \startXMLdata > > > 28674524 > > > 28674677 > > > 28674824 > > > 28674963 > > > \stopXMLdata > > \stoptext > > > If I remove the \NC before \XMLpar -- it gives the real value of the > name attribute. > > Jedrzej > _______________________________________________ > ntg-context mailing list > ntg-context@ntg.nl > http://www.ntg.nl/mailman/listinfo/ntg-context -- Simon Pepping email: spepping@scaprea.hobby.nl