aboutsummaryrefslogtreecommitdiff
path: root/dummy/transform.xsl
blob: 62d28c272a7984aaa62ab6327f8f72e3b7ee8352 (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
38
39
40
41
42
43
44
45
46
47
<?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('.')[@type='file']">
			<li><xsl:value-of select="."/></li>
		</xsl:for-each>
		</ul>
		<ul id="filelist2">
		<xsl:for-each select="external:read-directory('../')[@type='file']">
			<li><xsl:value-of select="."/></li>
		</xsl:for-each>
		</ul>
		<ul id="filelist3">
		<xsl:for-each select="external:read-directory('../')[@type='directory']">
			<li><xsl:value-of select="."/></li>
		</xsl:for-each>
		</ul>
	</body>
</html>
</xsl:template>

</xsl:stylesheet>