File: fuzface_REXML.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 (11 lines) | stat: -rw-r--r-- 231 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
#!/usr/bin/ruby -w
require 'rexml/document'
require '../xslt'

xslt = XML::XSLT.new()

xslt.xml = REXML::Document.new File.open( "fuzface.xml" )
xslt.xsl = REXML::Document.new File.open( "fuzface.xsl" )

out = xslt.serve()
puts out