From: matt@... (matt neuburg) Date: 2008-11-14T00:47:14+09:00 Subject: Re: Oddness with gems Peter Hickman wrote: > #!/usr/bin/ruby > > require 'rubygems' > > require 'libxslt' > require 'libxml' > > # Create a new XSL Transform > stylesheet_doc = XML::Document.file('browse.xsl') > stylesheet = LibXSLT::Stylesheet.new(stylesheet_doc) > > # Transform a xml document > xml_doc = XML::Document.file('page.xml') > result = stylesheet.apply(xml_doc) > > puts result > > But when I run it I get uninitialized constant XML (NameError). Any idea > how to go about debugging this? The namespace changed. It is now called LibXML::XML::Document (and so on). m. -- matt neuburg, phd = matt@tidbits.com, http://www.tidbits.com/matt/ Leopard - http://www.takecontrolbooks.com/leopard-customizing.html AppleScript - http://www.amazon.com/gp/product/0596102119 Read TidBITS! It's free and smart. http://www.tidbits.com