<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="plone">
<body>

<metal:content-core fill-slot="main">
    <div class="published-content">
        <link rel="stylesheet" 
              type="text/css" 
              media="screen"
              tal:condition="python: context.getCountersStartWith() == 'h1'"
              href="++resource++zopyx.authoring/publisheddocument_counters_h1.css"
        />
        <link rel="stylesheet" 
              type="text/css" 
              media="screen"
              tal:condition="python: context.getCountersStartWith() == 'h2'"
              href="++resource++zopyx.authoring/publisheddocument_counters_h2.css"
        />

        <metal:field use-macro="python:context.widget('text', mode='view')">
            Body text
        </metal:field>

        <style type="text/css" tal:condition="context/getStyles" tal:content="context/getStyles" />
        <style type="text/css" tal:condition="context/getOfficeStyles" tal:content="context/getOfficeStyles" />
    </div>
</metal:content-core>

</body>
</html>

