<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"
      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"
      metal:use-macro="context/main_template/macros/master"
      i18n:domain="brasil.gov.portal">

<body>
    <metal:content-core fill-slot="content-core">
        <metal:block define-macro="content-core"
                     tal:define="sources view/sources">

            <audio class="audioPlayer" preload="metadata" controls="controls" tal:condition="sources">
              <tal:sources repeat="source sources">
                <source 
                    tal:attributes="src source/absolute_url;
                                    type source/file/contentType"
                    src="music.ogg" 
                    type="audio/wav" />
              </tal:sources>
            </audio>
            <div tal:condition="context/text">
              <span id="audio-transcricao">Transcrição do Áudio</span>
              <div id="parent-fieldname-text"
                   tal:content="structure context/text/output" />
            </div>
            <div class="download">
              <span id="audio-downloads">Download do Áudio</span>
              <ul tal:define="downloads view/downloads">
                <li tal:repeat='obj downloads'>
                   <a tal:attributes="alt context/Description;
                                      href obj/path">
                        Baixar arquivo em formato <span tal:replace="obj/format" />
                   </a> (<span tal:replace="obj/size" />)
                </li>
              </ul>
            </div>          
        </metal:block>
    </metal:content-core>
</body>

</html>

