problem with XSLT

good night
I need help to build a program to make a conversion into a ruby xslt
someone already used these libraries?
I found an example on a site such as the following but could not
install the gems know if this is only for Linux?

   1
   2 require 'xml/libxml'
   3 require 'xml/libxslt'
   4
   5 xslt = XML::XSLT.new()
   6 xslt.xml = "news_links.xml"
   7 xslt.xsl = "links2html.xsl"
   8
   9 out = xslt.serve()
  10 print out;