view examples/transform/template.xml @ 113:d10fbba1d5e0 trunk

Removed the `sanitize()` method from the `Markup` class, and migrate the existing unit tests to `markup.tests.filters`. Provide a `Stream.filter()` method instead which can be used to conveniently apply a filter to a stream.
author cmlenz
date Mon, 31 Jul 2006 23:00:06 +0000
parents 2368c3becc52
children 84168828b074
line wrap: on
line source
<!DOCTYPE html
    PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns:py="http://markup.edgewall.org/" py:strip="">

  <!--! Add a header DIV on top of every page with a logo image -->
  <body py:match="BODY|body">
    <div id="header">
      <img src="logo.png" alt="Bad Style"/>
    </div>
    ${select('*')}
  </body>

  <!--! Use semantic instead of presentational tags for emphasis -->
  <strong py:match="B|b">${select('*|text()')}</strong>
  <em py:match="I|i">${select('*|text()')}</em>

  <!--! Include the actual HTML stream, which will be processed by the rules
        defined above -->
  ${input}

</html>
Copyright (C) 2012-2017 Edgewall Software