Xslt param with libxslt ....errr!

this one is driving me up a wall, I cant seem to pass a param to the
xslt what is wrong here? I keep getting nothingness…

<?xml version="1.0" encoding="UTF-8"?>

<xsl:stylesheet xmlns:xsl=“http://www.w3.org/1999/XSL/Transform

<xsl:param name=“stylesheet”/>

<xsl:template match="/">
<xsl:copy-of select="$stylesheet"/>

and heres the ruby code

require “rubygems”

require ‘xml’
require ‘libxml’
require ‘libxslt’

xsltdoc = XML::Document.file(“main.xslt”)
xslt = LibXSLT::XSLT::Stylesheet.new(xsltdoc)

xml = XML::Document.file(“file.xml”)
result = xslt.apply(xml, {:stylesheet => “style.css”})

thank you,

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs