Mercurial > genshi > genshi-test
annotate examples/transform/template.xml @ 524:49848aaa7839
Add special handling for `xml:lang` to HTML/XHTML serialization.
author | cmlenz |
---|---|
date | Mon, 18 Jun 2007 11:22:24 +0000 |
parents | 24757b771651 |
children |
rev | line source |
---|---|
107
5a9b6e0aa3cc
Add example that shows how to transform an HTML document.
cmlenz
parents:
diff
changeset
|
1 <!DOCTYPE html |
5a9b6e0aa3cc
Add example that shows how to transform an HTML document.
cmlenz
parents:
diff
changeset
|
2 PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" |
5a9b6e0aa3cc
Add example that shows how to transform an HTML document.
cmlenz
parents:
diff
changeset
|
3 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> |
230 | 4 <html xmlns:py="http://genshi.edgewall.org/" py:strip=""> |
107
5a9b6e0aa3cc
Add example that shows how to transform an HTML document.
cmlenz
parents:
diff
changeset
|
5 |
5a9b6e0aa3cc
Add example that shows how to transform an HTML document.
cmlenz
parents:
diff
changeset
|
6 <!--! Add a header DIV on top of every page with a logo image --> |
111
8a4d9064f363
Some fixes and more unit tests for the XPath engine.
cmlenz
parents:
107
diff
changeset
|
7 <body py:match="BODY|body"> |
107
5a9b6e0aa3cc
Add example that shows how to transform an HTML document.
cmlenz
parents:
diff
changeset
|
8 <div id="header"> |
5a9b6e0aa3cc
Add example that shows how to transform an HTML document.
cmlenz
parents:
diff
changeset
|
9 <img src="logo.png" alt="Bad Style"/> |
5a9b6e0aa3cc
Add example that shows how to transform an HTML document.
cmlenz
parents:
diff
changeset
|
10 </div> |
5a9b6e0aa3cc
Add example that shows how to transform an HTML document.
cmlenz
parents:
diff
changeset
|
11 ${select('*')} |
5a9b6e0aa3cc
Add example that shows how to transform an HTML document.
cmlenz
parents:
diff
changeset
|
12 </body> |
5a9b6e0aa3cc
Add example that shows how to transform an HTML document.
cmlenz
parents:
diff
changeset
|
13 |
5a9b6e0aa3cc
Add example that shows how to transform an HTML document.
cmlenz
parents:
diff
changeset
|
14 <!--! Use semantic instead of presentational tags for emphasis --> |
5a9b6e0aa3cc
Add example that shows how to transform an HTML document.
cmlenz
parents:
diff
changeset
|
15 <strong py:match="B|b">${select('*|text()')}</strong> |
5a9b6e0aa3cc
Add example that shows how to transform an HTML document.
cmlenz
parents:
diff
changeset
|
16 <em py:match="I|i">${select('*|text()')}</em> |
5a9b6e0aa3cc
Add example that shows how to transform an HTML document.
cmlenz
parents:
diff
changeset
|
17 |
5a9b6e0aa3cc
Add example that shows how to transform an HTML document.
cmlenz
parents:
diff
changeset
|
18 <!--! Include the actual HTML stream, which will be processed by the rules |
5a9b6e0aa3cc
Add example that shows how to transform an HTML document.
cmlenz
parents:
diff
changeset
|
19 defined above --> |
5a9b6e0aa3cc
Add example that shows how to transform an HTML document.
cmlenz
parents:
diff
changeset
|
20 ${input} |
5a9b6e0aa3cc
Add example that shows how to transform an HTML document.
cmlenz
parents:
diff
changeset
|
21 |
5a9b6e0aa3cc
Add example that shows how to transform an HTML document.
cmlenz
parents:
diff
changeset
|
22 </html> |