From 246a8e020d97cfc3b4409996f99450fa95b730b1 Mon Sep 17 00:00:00 2001 From: Adrian Kummerländer Date: Sat, 17 May 2014 13:59:33 +0200 Subject: Improved FunctionTransform test case transformations * added basic "transformer" wrapper template to call "InputXSLT:transform" ** this removes the need to specifiy arguments in a separate xslt variable --- test/transform/reference.xml | 40 +--------------------------------------- 1 file changed, 1 insertion(+), 39 deletions(-) (limited to 'test/transform/reference.xml') diff --git a/test/transform/reference.xml b/test/transform/reference.xml index d3675bc..b98f978 100644 --- a/test/transform/reference.xml +++ b/test/transform/reference.xml @@ -2,45 +2,7 @@ -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 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> - +42 -- cgit v1.2.3