#5 Broken _my_print_text() in 0.24 since XML::DOM 1.27

closed-accepted
None
5
2001-12-17
2000-07-28
No

XML::XSLT barfs with "Can't coerce array into hash at /usr/lib/perl5/site_perl/5.005/XML/XSLT.pm line 492."

IIt appears that the private hash key '_disable_output_escaping' is no longer available in DOM 1.27

My 'fix' for the time being:

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, "<&"));
# }
}

Discussion

  • Jonathan Stowe

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

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

    Jonathan Stowe - 2001-12-17

    Logged In: YES
    user_id=313586

    Can you confirm that this is still the case with the latest CVS version
    before I go and try and fix it ?

     

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

Sign up for the SourceForge newsletter:





No, thanks