From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/5887 Path: main.gmane.org!not-for-mail From: Simon Pepping Newsgroups: gmane.comp.tex.context Subject: Re: XML attributes Date: Mon, 15 Oct 2001 20:50:18 +0200 Sender: owner-ntg-context@let.uu.nl Message-ID: <20011015205018.B11400@scaprea> References: <20011013230822.A897@scaprea> <5.1.0.14.1.20011015094816.03377ac8@server-1> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035396451 5453 80.91.224.250 (23 Oct 2002 18:07:31 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 18:07:31 +0000 (UTC) Original-To: ntg-context@ntg.nl In-Reply-To: <5.1.0.14.1.20011015094816.03377ac8@server-1>; from pragma@wxs.nl on Mon, Oct 15, 2001 at 09:56:32AM +0200 Xref: main.gmane.org gmane.comp.tex.context:5887 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:5887 On Mon, Oct 15, 2001 at 09:56:32AM +0200, Hans Hagen wrote: > At 11:08 PM 10/13/2001 +0200, Simon Pepping wrote: > >I have been experimenting a bit with attributes, e.g. in this phrase: > >And even worse, attributes will not > >be the > >same as in &context;. > > > >1. In the third ref element, the value \XMLpar{ref}{name}{\relax} is > > not relax. Because the element has no (rather an implicit) > > attribute name, the context value is left as it was set by the > > preceding ref element. I think it would be better if attribute > > values are local to the element, and there exists a command that > > lets the user store the value in a control sequence, much like > > \defXMLstring\command. > > locality is a bit of a problem since you don't want tex's grouping to > interfere; > > this is why the following method is to be used (eg): > > \defineXMLenvironment[whatever][bla=,junk=] > > now, each time the element is encountered, 'bla' and 'junk' are set to > nothing, so you start afresh. That is not yet described in example.pdf. I saw it in an example you gave me, but it has no effect. Perhaps in an updated version (mine is cont-tmf from 9 August)? Simon -- Simon Pepping email: spepping@scaprea.hobby.nl