March 2010 Archives
Just a quick reminder how easy xml transformation with xslt can be. Originally I used the libxml-ruby bindings but they threw a NoMethodException from deep inside the libxml.
After switching to nokogiri the code looked like this and worked as expected.
xslt = Nokogiri::XSLT.parse(File.open('some_xslt.xsl'))
result = xslt.transform(Nokogiri::XML.parse(xmlString))