File: test_parameters.rb

package info (click to toggle)
libxslt-ruby 0.9.2-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 368 kB
  • ctags: 374
  • sloc: ansic: 2,965; ruby: 333; xml: 145; makefile: 5
file content (13 lines) | stat: -rw-r--r-- 361 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
require "../xslt"

xslt = XML::XSLT.new()
xslt.xsl = "test.xsl"
xslt.xml = "test.xml"
xslt.parameters = { "p1" => "the first parameter ...",
                    "p2" => "'and the second one!'" }
#xslt.save("test.html")
puts xslt.serve
xslt.parameters = { "p1" => "Ruby...",
                    "p2" => "'...is cool !'" }
#xslt.save("test.html")
puts xslt.serve