Sha256: 6254ae20e3f5d189366f7fa00049fa6f6760e8aa815293b93d8e8930b9734caf

Contents?: true

Size: 320 Bytes

Versions: 1

Compression:

Stored size: 320 Bytes

Contents

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ruby-xslt-0.9.2 examples/test_functions.rb