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:
> ><item>And even worse<ref/>, <ref name="att"/> attributes <ref/> will not
> >be the
> >same as in &context;.</item>
> >
> >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: [EMAIL PROTECTED]