Mercurial > genshi > genshi-test
view examples/transform/template.xml @ 519:9f1d90d6abd4
Cut and copy transformer operations can now operate on selected attributes.
Also added an example of inserting content to the documentation.
author | athomas |
---|---|
date | Thu, 07 Jun 2007 18:03:02 +0000 |
parents | 24757b771651 |
children |
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://genshi.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>