aboutsummaryrefslogtreecommitdiff
path: root/t/test-site/common/du2html.xsl
diff options
context:
space:
mode:
Diffstat (limited to 't/test-site/common/du2html.xsl')
-rw-r--r--t/test-site/common/du2html.xsl27
1 files changed, 27 insertions, 0 deletions
diff --git a/t/test-site/common/du2html.xsl b/t/test-site/common/du2html.xsl
new file mode 100644
index 0000000..d7a9b62
--- /dev/null
+++ b/t/test-site/common/du2html.xsl
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="utf-8"?>
+<x:stylesheet xmlns:x="http://www.w3.org/1999/XSL/Transform"
+ xmlns="http://www.w3.org/1999/xhtml"
+ version="1.0"
+ >
+
+ <x:import href="reST.xsl"/>
+
+ <x:param name="language" select="'en'"/>
+
+ <x:output method="html" encoding="utf-8"
+ doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN"
+ indent="yes"/>
+
+ <x:template match="/document">
+ <html xml:lang="{$language}" lang="{$language}">
+ <head>
+ <title><x:apply-templates select="title/node()"/></title>
+ </head>
+ <body>
+ <h1><x:apply-templates select="title/node()"/></h1>
+ <x:apply-templates/>
+ </body>
+ </html>
+ </x:template>
+
+</x:stylesheet> \ No newline at end of file