﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
82	infinite loop matching on axis 'self'	robinbryce@…	cmlenz	"Using Genshi 0.3.5 (http://svn.edgewall.org/repos/genshi/tags/0.3.5). I have a small template that triggers an infinite loop in genshi.path.Path.test. I'm attempting to selectively match & modify tags based on both element paths and element attribute values.

This works as expected (it selects the ul tag and its kids)
{{{
<document xmlns:py=""http://genshi.edgewall.org/"">

<div id='matching_eg3'>
    <py:match path='ul'>
        <ul foo='bar' bar='foo' py:attrs='select(""@*"")'>
            ${select('.[@flag=""1""]/*')}</ul>
    </py:match>
    <ul flag=""1""><li>a</li><li>b</li></ul>
</div>
</document>
}}}

The following gets stuck for ever in genshi.path.Path.test, in the {{{while 1:}}} loop starting at line 184. The node test is successful and the path predicate is not.

{{{
<document xmlns:py=""http://genshi.edgewall.org/"">
<div id='matching_eg3'>
    <py:match path='ul'>
        <ul foo='bar' bar='foo' py:attrs='select(""@*"")'>
            ${select('.[@flag=""0""]/*')}</ul>
    </py:match>
    <ul flag=""1""><li>a</li><li>b</li></ul>
</div>
</document>
}}}

What am I doing wrong ?
"	defect	closed	major	0.4	XPath support	devel	fixed		
