﻿id,summary,reporter,owner,description,type,status,priority,milestone,component,version,resolution,keywords,cc
8,Path expressions on match templates don't work with path segments encountered before the match directive,cmlenz,cmlenz,"Before [18], the following worked:

{{{
#!xml
<div xmlns:py=""markup.edgewall.org/"">
  <span py:match=""div/greeting"">
    Hello ${select('@name')}
  </span>
  <greeting name=""Dude"" />
</div>
}}}

Since [18], the patch expression “''div/greeting''” no longer matches because the `<div>` element is encountered before the `py:match` directive in the input. This should probably be fixed, though. One option is to keep a stack of already encountered elements in the `Template._match` filter and ''push'' them into the path evaluator so that it has the correct context.",defect,new,minor,,Template processing,0.6,,,
