You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Joshua Chamas <jo...@chamas.com> on 2000/08/02 10:25:08 UTC
Re: XForms & ASP (was: The Template Toolkit )
Dmitry Beransky wrote:
>
> [Mon Jul 31 10:45:53 2000] (eval 76): String found where operator expected at
> (eval 76) line 50, at end of line
> [Mon Jul 31 10:45:53 2000] (eval 76): (Missing operator before ?)
> [Mon Jul 31 10:45:53 2000] [error] [asp] [605] [error] [Mon Jul 31 10:45:53 20
> 00] (eval 76): Can't find string terminator "'" anywhere before EOF at (eval 7
> 6) line 50. <--> , /usr/lib/perl5/site_perl/5.005/Apache/ASP.pm line 1740
>
> It doesn't look like I have any runaway strings, so any idea what gives?
>
The XMLSubsMatch parser is pretty aggressive, and found a
tag in your <% perl code %> that it tried parsing. If you
had debug 2 set, the output would give you more of a hint
as to what was going on. It doesn't only look for tags
in the HTML segments, though this is what it ought to do.
I would recommend using the Script_OnFlush event handler
to grab all of the data at once and process it with XML, or the
XSLT extension even. You can find the response buffer in
$Response->{BinaryRef} as a scalar reference. This member
is documented at:
http://www.apache-asp.org/objects.html
Only if you are looking to extend all forms with the
the xform might I implement this with XMLSubsMatch.
-- Joshua
_________________________________________________________________
Joshua Chamas Chamas Enterprises Inc.
NodeWorks >> free web link monitoring Huntington Beach, CA USA
http://www.nodeworks.com 1-714-625-4051