aboutsummaryrefslogtreecommitdiff
path: root/dummy/transform.xsl
diff options
context:
space:
mode:
Diffstat (limited to 'dummy/transform.xsl')
-rw-r--r--dummy/transform.xsl31
1 files changed, 31 insertions, 0 deletions
diff --git a/dummy/transform.xsl b/dummy/transform.xsl
new file mode 100644
index 0000000..dca15a1
--- /dev/null
+++ b/dummy/transform.xsl
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xsl:stylesheet version="1.0"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:external="http://ExternalFunction.xalan-c++.xml.apache.org">
+
+<xsl:output method="xml"
+ doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN"
+ doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"
+ omit-xml-declaration="yes"
+ encoding="UTF-8"
+ indent="yes" />
+
+<xsl:template match="/">
+<html>
+ <head>
+ </head>
+ <body>
+ <xsl:apply-templates select="items/item" />
+ </body>
+</html>
+</xsl:template>
+
+<xsl:template match="items/item">
+ <div id="{.}">
+ <xsl:value-of select="external:read-file('dummy/test.txt')" />
+ </div>
+</xsl:template>
+
+</xsl:stylesheet>
+
+