Hi,

I have a question about COM object creation with PerlScript.
I want to translate an example from the MSXML SDK from
JavaScript into Perlscript. 

Here's the code:

<script language="PerlScript">

my $xmlDoc = $WScript -> CreateObject ('Msxml2.DOMDocument');
$xmlDoc -> {async} = 'false';
$xmlDoc -> load('c:\some\nice.xml');
# works fine

my $xslDoc = $WScript -> CreateObject ('Msxml2.FreeThreadedDOMDocument');
$xslDoc -> {async} = 'false';
$xslDoc -> load('c:\some\stylesheet.xsl');
# also ok

my $xslt = $WScript -> CreateObject ('Msxml2.XSLTemplate');
$xslt -> {stylesheet} = $xslDoc;
# looks ok

my $xslProc = $xslt -> createProcessor(); # seems to work
$xslProc -> {input} = $xmlDoc;
$xslProc -> transform() or die; # DIES!

</script>

According to the documentation the createProcessor method
"creates a rental-model XSLProcessor". When I try to invoke
the processors transform method, Perl gives me: can't invoke
this method on unblessed reference. How can I bless $xslProc
as an object of the right type?

Thanks for any suggestions,

Joost

-- 
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net

_______________________________________________
ActivePerl mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/activeperl

Reply via email to