| 
      
      
      From: William F. D. <wil...@th...> - 2007-03-20 16:28:18
      
     | 
| Very interesting Mike.  Thanks for the very clear example.  I am almost
positive that any code I had added to support attribute access from
end-tags did *not* keep a stack of attribute values, thus accounting
exactly for the behaviour you are seeing.
So this is a definite bug.
Until this bug gets fixed, I think you'll have to keep your own stack of
attribute values that you are interested in, pushed at start-tag time
and popped at end-tag time.  That's not ideal, but at least your code
could work that way.
Thanks again for the bug report,
Will
On Tue, 2007-03-20 at 16:12 +0000, Mike Aubury wrote:
> Long time - i know - but I've tracked the bug down to a minimal example (I 
> hope !), its down to 'recursive' tags : 
> 
> 
> 
> <expr_str e_expr_type='ET_EXPR_FCALL' nm='fcall' >
>  <s_expr_function_call>
>   <expr_str nm='list' />
>  </s_expr_function_call>
> </expr_str>
> 
> 
> In this example - when we get to the second expr_str end tag - '{nm}' will be 
> set to 'list' in the end tag - not 'fcall'...
> 
> 
> On Monday 08 January 2007 15:56, William F. Dowling wrote:
> > On Mon, 2007-01-08 at 15:20 +0000, Mike Aubury wrote:
> > > What version did this go in ?
> > >
> > > flexml --version reports I'm using
> > > 	FleXML version Id: flexml.pl,v 1.61 2006/09/13 16:34:33 wdowling Exp
> >
> > As of flexml.pl 1.58 you are supposed to have access to attributes from
> > inside the end-tag processing code.
> >
> > Please enter a bug in the sourceforge bug tracker for flexml if you can
> > confirm that attribute access inside end-tag processing is not working.
> > Ideally, could you submit an absolutely minimal example that shows the
> > failure?
> >
> > Thanks,
> >
> > Will
> >
> > > On Monday 08 January 2007 15:12, William F. Dowling wrote:
> > > > On Mon, 2007-01-08 at 08:54 +0000, Mike Aubury wrote:
> > > > > Follow up to this - am i right in assuming that we should not be
> > > > > accessing the attributes in an 'end' block ?
> > > > > If so - should doing this cause an error ?
> > > > >
> > > > >
> > > > > (My code wasn't working until I moved some of the checking to the
> > > > > 'start' block instead..)
> > > >
> > > > There was some discussion about this on on the flexml-users mailing
> > > > list a few months ago:
> > > >
> > > > http://sourceforge.net/mailarchive/forum.php?thread_id=30370096&forum_i
> > > >d=59 3
> > > >
> > > > I forget what the upshot was -- it looks like I investigated and at
> > > > least thought the change (to make attributes accessible from the
> > > > end-tag processing code) would be easy. Martin Quinson had asked for
> > > > that.
> > > >
> > > > Martin: as far as you know, was that change made?
> > > >
> > > > Will
> 
-- 
William F Dowling
wil...@th...
www.scientific.thomson.com
 |