require "../xslt"

class XML::XSLT
	def round_trip( arg )
		arg
	end
	def type( arg )
		arg.class.to_s
	end
end

xslt = XML::XSLT.new()
xslt.xsl = "functions.xsl"
xslt.xml = "test.xml"
XML::XSLT.extFunction("round-trip", "http://test.none", xslt)
XML::XSLT.extFunction("type", "http://test.none", xslt)

puts xslt.serve
