<?xml version="1.0"?>

<!--
  Licensed to the Apache Software Foundation (ASF) under one or more
  contributor license agreements.  See the NOTICE file distributed with
  this work for additional information regarding copyright ownership.
  The ASF licenses this file to You under the Apache License, Version 2.0
  (the "License"); you may not use this file except in compliance with
  the License.  You may obtain a copy of the License at

      http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
-->

<!--
  XSLTAL template for our samples.
  This one generates a nicer layout based on <div> elements and CSS.
-->

<html xmlns:tal="http://xml.zope.org/namespaces/tal">
  <head>
    <title tal:content="document/metadata/title">Here comes the page title</title>

    <!-- We could of course use an external CSS stylesheet instead of this -->
    <style type="text/css">
      body {
        font-family: Georgia, Verdana, Sans-serif;
      }
      p {
        margin-left: 1em;
      }
      a {
        background-color:#FFFFCC;
        padding: 2px;
      }
      .note {
        font-size:80%;
        font-style:italic;
      }
      #footer {
        margin-top: 2em;
        border-top: solid #CCCCCC 1px;
      }
      #title {
        font-size: 180%;
        font-variant: small-caps;
        font-weight: bold;
      }
      #sidebar {
        position:fixed;
        right:0;
        top:0;
        width:20%;
        font-size:80%;
        font-style: italic;
      }
      #content {
        margin-right: 25%;
      }
      #content div {
        margin-top: 1em;
      }
      #sidebar div {
        margin-bottom: 2em;
      }
      .logo {
        clear: both;
      }
    </style>
  </head>

  <body>
    <!-- page structure -->
    <div id="sidebar" tal:repeat="abs /document/metadata/abstract">
      <div>
        <div tal:replace="structure $abs/node()"/>
      </div>
      <div>
        Go <a href="javascript:history.back()">back</a> to previous page.
      </div>
    </div>

    <div id="content">
      <div id="title" tal:content="document/metadata/title">Here comes the page title</div>
      <div tal:repeat="p /document/content/p">
        <div>
          <div tal:replace="structure $p/node()">
            (this should be replaced by the content of a paragraph)
          </div>
        </div>
      </div>
    </div>

    <div id="footer">
      <div class="note">
        Presentation generated by the css-template.xml XSLTAL template.
      </div>
    </div>

    <!-- element matchers -->
    <div tal:match="a">
      <a tal:attributes="href @href" tal:content="structure"></a>
    </div>

  </body>
</html>