aboutsummaryrefslogtreecommitdiff
path: root/test/transform/transformation.xsl
blob: 7348feff67cc161c860a21dcda57358131854744 (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:xalan="http://xml.apache.org/xalan"
	xmlns:InputXSLT="function.inputxslt.application"
	exclude-result-prefixes="InputXSLT xalan"
>

<xsl:output
	method="xml"
	omit-xml-declaration="no"
	encoding="UTF-8"
	indent="yes"
/>

<xsl:template match="/">
<test_case>
	<transform>
		<xsl:variable name="argument">
			<key>test</key>
			<value>42</value>
		</xsl:variable>

		<xsl:variable
			name   = "result"
			select = "InputXSLT:transform('test.xsl', 'test_actual.xml', $argument)"
		/>

		<xsl:copy-of select="
			InputXSLT:read-xml-file('test_actual.xml')/test_case/transform_test
		"/>
	</transform>
</test_case>
</xsl:template>

</xsl:stylesheet>