You are viewing a plain text version of this content. The canonical link for it is here.
Posted to asp@perl.apache.org by Ma...@idnt.net on 2003/04/21 06:30:19 UTC

Bug Fix for 2.53 and previous required?

Hello list,

I had some trouble when using the XSLT feature and the
$Response->Redirect method:

[error] [asp] [22925] [error] XSLT/XML processing error: Empty String at
/usr/lib/perl5/site_perl/5.6.1//Apache/ASP.pm line 1655 <--> ...

The xml_data and xsl_data variables remain empty and the XSLT processing
fails after calling Redirect.

I'm not sure why the XSLT processing is executed at all if Redirect was
called and I did no further investigations on that but the following
solved my problem:

ASP.pm Line 1655 

>>>     if ( length($$xml_data) && length($$xsl_data) ) {
            my $source = $parser->parse_string($$xml_data);
            my $style_doc = $parser->parse_string($$xsl_data);
            my $stylesheet = $xslt->parse_stylesheet($style_doc);
            my $results = $stylesheet->transform($source);
            $xslt_data = $stylesheet->output_string($results);
>>>    }

Yes, looks ugly so I guess there is something more pretty required...
Anyone already seen that, any ideas?

Thanks
Marcus

---------------------------------------------------------------------
To unsubscribe, e-mail: asp-unsubscribe@perl.apache.org
For additional commands, e-mail: asp-help@perl.apache.org


Re: Bug Fix for 2.53 and previous required?

Posted by Josh Chamas <jo...@chamas.com>.
Marcus.Zoller@idnt.net wrote:
> Hello list,
> 
> I had some trouble when using the XSLT feature and the
> $Response->Redirect method:
> 
> [error] [asp] [22925] [error] XSLT/XML processing error: Empty String at
> /usr/lib/perl5/site_perl/5.6.1//Apache/ASP.pm line 1655 <--> ...
> 
> The xml_data and xsl_data variables remain empty and the XSLT processing
> fails after calling Redirect.
> 
> I'm not sure why the XSLT processing is executed at all if Redirect was
> called and I did no further investigations on that but the following
> solved my problem:
> 
> ASP.pm Line 1655 
> 

I should have a fix for this in the next release 2.55.  I'll send you
a copy of my development version privately for you to try.

Thanks for the bug report!

--Josh
________________________________________________________________
Josh Chamas, Founder                   phone:925-552-0128
Chamas Enterprises Inc.                http://www.chamas.com
NodeWorks Link Checking                http://www.nodeworks.com


---------------------------------------------------------------------
To unsubscribe, e-mail: asp-unsubscribe@perl.apache.org
For additional commands, e-mail: asp-help@perl.apache.org