chameleon templates

metal namespace, tal namespace in templates isnt recognised ?
can someone one tell me why ?
this code below shows errors like namespace isnt used

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:tal="http://xml.zope.org/namespaces/tal"
      xmlns:metal="http://xml.zope.org/namespaces/metal"
      xmlns:i18n="http://xml.zope.org/namespaces/i18n"
      lang="en">
<body>

<metal:pager define-macro="pagination">
<form onsubmit="return ${pager.goto(0)};">
    <div class="col-md-12 tri-pager">
        <a href="#" tal:condition="pager.first_page != pager.page" tal:attributes="onclick pager.goto(pager.first_page); class 'tri-pager-element first'" class="tri-pager-element first">first</a>
        <a href="#"  tal:condition="pager.previous_page is not None" tal:attributes="onclick pager.goto(pager.previous_page); class 'tri-pager-element prev'">prev</a>
        <span tal:condition="pager.leftmost_page - pager.first_page > 1">...</span>
        <a href="#"  tal:repeat="page range(pager.leftmost_page, pager.rightmost_page+1)" tal:attributes="onclick pager.goto(page); class 'tri-pager-element page'" tal:content="page">pages</a>
        <span tal:condition="pager.last_page - pager.rightmost_page > 1">...</span>
        <a href="#"  tal:condition="pager.next_page is not None" tal:attributes="onclick pager.goto(pager.next_page); class 'tri-pager-element next'">next</a>
        <a href="#"  tal:condition="pager.last_page != pager.page" tal:attributes="onclick pager.goto(pager.last_page); class 'tri-pager-element last'">last</a>
        <span>
            <label>Strona (${pager.page}/${pager.last_page}) :</label>
            <input type="text"  id="${pager.prefix}_goto" placeholder="page no" value="${pager.page}" min="1" max="${pager.last_page}" maxlength="${1+(pager.last_page+10)/10}" size="${1+(pager.last_page+10)/10}"/>
            Rekord ${pager.first_item}-${pager.last_item}/${pager.item_count}
        </span>
    </div>
</form>
</metal:pager>

</body>
</html>

Please sign in to leave a comment.