From: "Morris, Chris" Date: 2001-01-11T23:08:12+09:00 Subject: [ruby-talk:9133] Need help with win32ole control of ms dom I'm trying to script a simple wrapper of the MS DOM for xslt processing. This script chokes on the transformation: require 'win32ole' dom = WIN32OLE.new('MSXML2.DOMDocument') dom.async = false if !dom.load('sample.xml') Exception.exception('loading of sample.xml failed.') end xsl = WIN32OLE.new('MSXML2.DOMDocument') xsl.async = false if !xsl.load('sample.xsl') Exception.exception('loading of sample.xsl failed.') end newXML = dom.transformNode(xsl) # Above line produces following error: # The stylesheet does not contain a document element. The stylesheet may be # empty, or it may not be a well-formed XML document. For reference, here's the xml and xsl, which does work through the same OLE code written in Delphi: Output should be: A B