aboutsummaryrefslogtreecommitdiff
path: root/dummy
diff options
context:
space:
mode:
Diffstat (limited to 'dummy')
-rw-r--r--dummy/in.xml7
-rw-r--r--dummy/test.txt1
-rw-r--r--dummy/transform.xsl31
3 files changed, 39 insertions, 0 deletions
diff --git a/dummy/in.xml b/dummy/in.xml
new file mode 100644
index 0000000..7b512bc
--- /dev/null
+++ b/dummy/in.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0"?>
+<items>
+ <item>Test1</item>
+ <item>Test2</item>
+ <item>Test3</item>
+ <item>Test4</item>
+</items>
diff --git a/dummy/test.txt b/dummy/test.txt
new file mode 100644
index 0000000..cd08755
--- /dev/null
+++ b/dummy/test.txt
@@ -0,0 +1 @@
+Hello world!
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>
+
+