aboutsummaryrefslogtreecommitdiff
path: root/dummy/transform.xsl
blob: 6dc45dc2d8b0bf83be194efa730341bc76597b49 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?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>
		<div id="raw">
			<xsl:value-of select="external:read-file('test.txt')" />
		</div>
		<ul id="xml">
		<xsl:for-each select="external:read-xml-file('test.txt')/tester/eintrag">
			<li><xsl:value-of select="."/></li>
		</xsl:for-each>
		</ul>
		<ul id="filelist">
		<xsl:for-each select="external:read-directory('.')/content/file">
			<li><xsl:value-of select="."/></li>
		</xsl:for-each>
		</ul>
	</body>
</html>
</xsl:template>

</xsl:stylesheet>