<?xml version="1.0"?>
<memory xmlns:al="http://www.logilab.org/namespaces/Narval/1.2">

<al:test recipe='test.test-038' category='basic'>
  <al:description lang="en">Test condition "to_context" attribute</al:description>
</al:test>

<al:recipe name='test-038' group='test'>
 <al:step id='step1' type='action' target='Selftest.NOP'/>
 <al:step id='step2' type='action' target='Selftest.NOP'/>
 <al:transition id='tr1'>
  <al:in idref='step1'/>
  <al:out idref='step2'/>
  <al:condition to_context="step">
    <al:match>isinstance(elmt, Element)</al:match>
  </al:condition>
 </al:transition>
</al:recipe>

<element el_id="captain"/>

</memory>
