#6 XSLT.pm, line 487: Can't coerce array into hash

closed-out-of-date
None
5
2001-12-17
2000-08-11
Anonymous
No

Using XSLT as described in perldoc XML::XSLT even with the
(very simple) "hello" example from Cocoon results in the error:

Can't coerce array into hash at /usr/lib/perl5/site_perl/5.005/XML/XSLT.pm line 487.

Platform: i586 Linux 2.2.14
Perl :V5.6 dynamic (from source, egcs 2.91.66)
XML::Parser V2.27 (for compatibility with libxml-enno)
libxml-enno-1.02

:o(

Discussion

  • Nobody/Anonymous

    Hi there,

    I was getting this the same error message and here is how I solved it.

    You MUST comment out the following code lines in "XSLT.pm" module:
    ----------------------------------------------------
    sub _my_print_text {
    my ($self, $FILE) = @_;
    # if (defined $self->{_disable_output_escaping}) {
    #print "disabled output escaping!$/";
    $FILE->print ($self->getData);
    # } else {
    # $FILE->print (XML::DOM::encodeText ($self->getData, "<&"));
    # }
    }

    -----------------------------------------------------------

    That is it !!!!!!

    Save and re-run your program and everything should be OK.

    Let us Know if you have any more problems.

    Alexander Rondon
    e-mail: ajrs@ease.com.ve

     
  • Jonathan Stowe

    Jonathan Stowe - 2001-12-17
    • assigned_to: nobody --> gellyfish
    • status: open --> open-accepted
     
  • Jonathan Stowe

    Jonathan Stowe - 2001-12-17
    • status: open-accepted --> closed-out-of-date
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks