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?

2 require ‘xml/libxml’
3 require ‘xml/libxslt’
5 xslt =
6 xslt.xml = “news_links.xml”
7 xslt.xsl = “links2html.xsl”
9 out = xslt.serve()
10 print out;