aboutsummaryrefslogtreecommitdiff
path: root/t/test-site/common/du2html.xsl
diff options
context:
space:
mode:
authordakkar <dakkar@luxion>2007-09-09 11:18:59 +0000
committerdakkar <dakkar@luxion>2007-09-09 11:18:59 +0000
commit9deff2ac08868dcc097d4335b6919632f1c5d0d2 (patch)
tree2886ab7bf0c438ac19e0c585ed68c08c399f34bb /t/test-site/common/du2html.xsl
parentparser call on putting scalar (diff)
downloadWebCoso-9deff2ac08868dcc097d4335b6919632f1c5d0d2.tar.gz
WebCoso-9deff2ac08868dcc097d4335b6919632f1c5d0d2.tar.bz2
WebCoso-9deff2ac08868dcc097d4335b6919632f1c5d0d2.zip
first test (preparation)
git-svn-id: svn://luxion/repos/WebCoso/trunk@286 fcb26f47-9200-0410-b104-b98ab5b095f3
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