You are viewing a plain text version of this content. The canonical link for it is here.
Posted to embperl@perl.apache.org by Matthias Auchmann <ma...@artech.at> on 2005/08/09 12:50:19 UTC
tag mismatch
Hi list!
Thnx to the help of Gerald I finally suceeded in setting up EmbPerl on
SuSE Linux 9.3. The trick was to put an #undef AP_DEBUG on line 51 of
ep.h
I now copied my old embperl-scripts and wanted to run them under 2.0 and
now have the following problem: I have a pair of functions
(PrintMenuStart, PrintMenuDone), PrintMenuStart is called to build up
the start of the "frame", ending with <td>, then depending on the menu
selection some content is put out, and at the end PrintMenuDone is
called that simply puts out </td></tr></table>.
With 2.0, embperl complains about a tag mismatch. is it possible to
disable this error? I found the part in the source that returns
tcTagMismatch but I'm not sure if this will have further implications...
Rewriting the code would be a lot of work, since I use this approach
(function pairs) several times.
thnx,
Matthias
---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org
RE: tag mismatch
Posted by Gerald Richter <ri...@ecos.de>.
Hi,
>
> I now copied my old embperl-scripts and wanted to run them
> under 2.0 and now have the following problem: I have a pair
> of functions (PrintMenuStart, PrintMenuDone), PrintMenuStart
> is called to build up the start of the "frame", ending with
> <td>, then depending on the menu selection some content is
> put out, and at the end PrintMenuDone is called that simply
> puts out </td></tr></table>.
>
> With 2.0, embperl complains about a tag mismatch. is it
> possible to disable this error? I found the part in the
> source that returns tcTagMismatch but I'm not sure if this
> will have further implications...
>
> Rewriting the code would be a lot of work, since I use this
> approach (function pairs) several times.
>
The problem is the interpretation of table tags for dynamic table
processing.
You can set the syntax to EmbperlBlocks, either in the httpd.conf
permanently or for a block of code by using
[$ syntax EmbperlBlocks $]
You can switch back with
[$ syntax EmbperlHTML $]
This will cause embperl not to look at any html tag, so dynamic tables, form
processing etc. will not work within such an area.
If you don't use dynamic tables at all, you could also define your own
syntax, by coping Embperl/Syntax/EmbperlHTML.pm to a new name and delteing
all references to tables tags.
Gerald
---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org