<tal:level tal:define="level python:0">
<ul tal:define="item view/tree; children view/tree/children;">
<li class="navTreeItem visualNoMarker">

    <tal:level define="item_wf_state_class python: 'state-' + item['item'].review_state;">

    <div tal:define="itemClass string:$item_wf_state_class;">

        <a tal:attributes="href item/item/getURL;
                           title item/item/Description;
                           class string:$itemClass">
            <span tal:replace="python:item['toc_number'] +' '+item['item'].Title">Selected Item Title</span>
        </a>

    </div>

    </tal:level>
<ul>
<metal:main define-macro="nav_item">
<tal:navitem tal:repeat="item children">
<li class="navTreeItem visualNoMarker">

    <tal:level define="item_wf_state_class python: 'state-' + item['item'].review_state;">

    <div tal:define="itemClass string:$item_wf_state_class;">

        <a tal:attributes="href item/item/getURL;
                           title item/item/Description;
                           class string:$itemClass">
            <span tal:replace="python:item['toc_number'] +' '+item['item'].Title">Selected Item Title</span>
        </a>

    </div>

    </tal:level>
    <ul tal:attributes="class python:'navTree navTreeLevel'+str(level)"
        tal:define="level item/depth; children item/children"
        tal:condition="nocall:item/children">
        <metal:recurse use-macro="here/index_view/template/macros/nav_item"/>
    </ul>
</li>
</tal:navitem>
</metal:main>
</ul>
</li>
</ul>
</tal:level>
