<tal:level tal:define="level python:0">
  <ul tal:define="item view/tree;
                  children view/tree/children"
      class="book-index">
    <li>

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

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

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

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

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

              </tal:level>
              <ul tal:attributes="class string:level-${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>
