From 7bd543e220c806177d805a8f4fbc13e951fe5788 Mon Sep 17 00:00:00 2001
From: Adrian Kummerländer
Date: Fri, 16 May 2014 22:25:39 +0200
Subject: Added XObjectPtr parameter to FunctionTransform * the given XObject
 is passed to the called transformation ** this was done to enable templates
 to pass information to each other ** this should support any type usable in a
 XPath context to be passed as an argument * expanded FunctionTransform test
 case accordingly
---
 test/transform/reference.xml      | 19 +++++++++++++++----
 test/transform/test.xsl           | 12 ++++++++++--
 test/transform/transformation.xsl | 12 +++++++++---
 3 files changed, 34 insertions(+), 9 deletions(-)
(limited to 'test')
diff --git a/test/transform/reference.xml b/test/transform/reference.xml
index 37c060e..d3675bc 100644
--- a/test/transform/reference.xml
+++ b/test/transform/reference.xml
@@ -1,11 +1,15 @@
 
 
-<?xml version="1.0" encoding="UTF-8"?>
+
+
+42
+<?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"
+	exclude-result-prefixes="InputXSLT xalan"
 >
 
 <xsl:output
@@ -18,12 +22,17 @@
 <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')"
+			select = "InputXSLT:transform('test.xsl', 'test_actual.xml', $argument)"
 		/>
 
-		<xsl:value-of select="
+		<xsl:copy-of select="
 			InputXSLT:read-xml-file('test_actual.xml')/test_case/transform_test
 		"/>
 	</transform>
@@ -31,5 +40,7 @@
 </xsl:template>
 
 </xsl:stylesheet>
+
+
 
 
diff --git a/test/transform/test.xsl b/test/transform/test.xsl
index 40134c4..677e80d 100644
--- a/test/transform/test.xsl
+++ b/test/transform/test.xsl
@@ -2,8 +2,9 @@
 
 
 
 
+
+
 
 
 	
-		
+		
+			
+		
+		
+			
+		
 	
 
 
diff --git a/test/transform/transformation.xsl b/test/transform/transformation.xsl
index 9039642..7348fef 100644
--- a/test/transform/transformation.xsl
+++ b/test/transform/transformation.xsl
@@ -2,8 +2,9 @@
 
 
 
 
 	
+		
+			test
+			42
+		
+
 		
 
-		
 	
-- 
cgit v1.2.3