Hey all,
here is my code :
doc = Nokogiri::XML(File.read(find_latest_xml))
xslt = Nokogiri::XSLT(File.read("#{@sites_xml_fo}/#{@xsl_fbn}"))
puts xslt.transform(doc, ["lang", "fr"])
in the style sheet i have :
...
<xsl:variable name="title">Title</xsl:variable>
...
<h2>$lang = <xsl:value-of select="$lang"/></h2>
just to try out ))
and i get :
...
...
that's to say the parameter is seems to be empty, why ?
and also i do have a number of parameters to send to xslt, how to send more than one, like that :
xslt.transform(doc, ["lang", "fr", "param2", "value2", ..., "paramn", "valuen"])
???
best,
Yvon