You are viewing a plain text version of this content. The canonical link for it is here.
Posted to embperl@perl.apache.org by Heath Morrison <he...@emumail.com> on 2004/09/11 17:33:31 UTC

Table Processing

Hello,

First, let me say that I've been using Embperl 1.x since 1999 with
incredible success. I've used it in virtually all my web-based projects
since then. Thanks Gerald for something that truly is exactly what I've
needed for years and years.

I've decided to make the push from 1.3 to 2.0. I'm having some trouble
with the table parsing (something that I've always felt was best left
disabled) in 2.0. Since I cannot disable it in 2.0 I've been working
around it, but I've hit a bit of a wall that I don't know how to get
past. Please advise why the following HTML fails to parse successfully,

[$ if (0) $]
<table align='center' width='50%'>
 <tr><td align='center' bgcolor='#66AA66'>
[$ endif $]
 
Test! 

[$ if (0) $]
 </td></tr> 
 </table>  
[$ endif $]

This generates the following crash message:

   Error (no description) Unstrutured forward jump 

...notice that those 'if' blocks should not be entered. If I set those
conditions to '1' instead of '0' everything works as expected. If I
remove the if blocks (or comment them out with [# #]) everything works
as expected. 

My actual HTML is of course much more involved, but suffers
from the same problem outlined here.  Please let me know if you guys
have any suggestions. In particular, if anybody can suggest a means of
disabling table parsing that would probably make me happiest :) 

Thanks again!

Heath
heath@emumail.com


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


Re: Table Processing

Posted by Hans de Groot <ha...@dandy.nl>.
Hi,

I am not sure, but I use this at the start of every script.

[$syntax EmbperlBlocks $]

When I switched to embperl 2 I looked for ages to get my embperl 1.3 pages to
work.

Anyway I am still looking for a global way to turn table and html parsing of.

but if I remember correctly this worked for me. (But I did have to edit all
those pages to add [$syntax EmbperlBlocks $] to the top.)

This is what I have im my httpd.conf but I am not sure if this still is used by
embperl 2.x

---
PerlModule Embperl
Embperl_UseEnv on
SetEnv EMBPERL_DEBUG 0
SetEnv EMBPERL_OPTIONS 2064
SetEnv EMBPERL_ESCMODE 0
PerlSetEnv EMBPERL_COOKIE_PATH "/"
PerlSetEnv EMBPERL_SESSION_CLASSES "MySQL Semaphore"
PerlSetEnv EMBPERL_SESSION_ARGS "DataSource=dbi:mysql:session UserName=**
Password=**"
----

Hope this helps







Met vriendelijke groet,

Hans de Groot



Quoting Heath Morrison <he...@emumail.com>:

> Hello,
>
> First, let me say that I've been using Embperl 1.x since 1999 with
> incredible success. I've used it in virtually all my web-based projects
> since then. Thanks Gerald for something that truly is exactly what I've
> needed for years and years.
>
> I've decided to make the push from 1.3 to 2.0. I'm having some trouble
> with the table parsing (something that I've always felt was best left
> disabled) in 2.0. Since I cannot disable it in 2.0 I've been working
> around it, but I've hit a bit of a wall that I don't know how to get
> past. Please advise why the following HTML fails to parse successfully,
>
> [$ if (0) $]
> <table align='center' width='50%'>
>  <tr><td align='center' bgcolor='#66AA66'>
> [$ endif $]
>
> Test!
>
> [$ if (0) $]
>  </td></tr>
>  </table>
> [$ endif $]
>
> This generates the following crash message:
>
>    Error (no description) Unstrutured forward jump
>
> ...notice that those 'if' blocks should not be entered. If I set those
> conditions to '1' instead of '0' everything works as expected. If I
> remove the if blocks (or comment them out with [# #]) everything works
> as expected.
>
> My actual HTML is of course much more involved, but suffers
> from the same problem outlined here.  Please let me know if you guys
> have any suggestions. In particular, if anybody can suggest a means of
> disabling table parsing that would probably make me happiest :)
>
> Thanks again!
>
> Heath
> heath@emumail.com
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
> For additional commands, e-mail: embperl-help@perl.apache.org
>


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


Re: Table Processing

Posted by Heath Morrison <he...@emumail.com>.
Hi Hans,

You should be able to do this by setting the environment variable EMBPERL_SYNTAX
to 'EmbperlBlocks'

Hope that helps!

Heath
heath@emumail.com


On Sun, 12 Sep 2004 20:32:10 +0200
Hans de Groot <ha...@dandy.nl> wrote:

> Hi,
> 
> Sorry I could notbe of any help .
> 
> Anyway. Does some one know how I can configure embperl 2 so it uses (or not
> uses) embperlblock globally? Now I can add it to every page, but it sort of
> breaks the compatibility with embperl 1.3
> 
> Every time I migrate a site I have to go throught all the pages and add the
> [$syntax EmbperlBlocks $] to it. which makes it a problem if I want to use the
> same on a 1.3 embperl.
> 
> It's not urgent but it would be nice to know.
> 
> Regards
> 
> Hans
> 
> Met vriendelijke groet,
> 
> Hans de Groot
> 
> 
> 
> Quoting Heath Morrison <he...@emumail.com>:
> 
> > Hi,
> >
> > Thanks for your response!
> >
> > I've considered using EmbperlBlocks, but it knocks out all of the HTML
> > processing
> > not just table stuff. I rely quite a bit on %fdat and the associated
> > form element filling (It's actually one of my favorite features, and one
> > that you don't find in many other template engines).
> >
> > Thanks!
> >
> > Heath
> > heath@emumail.com
> >
> >
> > On Sun, 12 Sep 2004 08:38:09 +0200
> > Hans de Groot <ha...@dandy.nl> wrote:
> >
> > > Hi,
> > >
> > > I am not sure, but I use this at the start of every script.
> > >
> > > [$syntax EmbperlBlocks $]
> > >
> > > When I switched to embperl 2 I looked for ages to get my embperl 1.3 pages
> > to
> > > work.
> > >
> > > Anyway I am still looking for a global way to turn table and html parsing
> > of.
> > >
> > > but if I remember correctly this worked for me. (But I did have to edit all
> > > those pages to add [$syntax EmbperlBlocks $] to the top.)
> > >
> > > This is what I have im my httpd.conf but I am not sure if this still is
> > used by
> > > embperl 2.x
> > >
> > > ---
> > > PerlModule Embperl
> > > Embperl_UseEnv on
> > > SetEnv EMBPERL_DEBUG 0
> > > SetEnv EMBPERL_OPTIONS 2064
> > > SetEnv EMBPERL_ESCMODE 0
> > > PerlSetEnv EMBPERL_COOKIE_PATH "/"
> > > PerlSetEnv EMBPERL_SESSION_CLASSES "MySQL Semaphore"
> > > PerlSetEnv EMBPERL_SESSION_ARGS "DataSource=dbi:mysql:session UserName=**
> > > Password=**"
> > > ----
> > >
> > > Hope this helps
> > >
> > > Regards
> > >
> > > Hans de Groot
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > Met vriendelijke groet,
> > >
> > > Hans de Groot
> > >
> > >
> > >
> > > Quoting Heath Morrison <he...@emumail.com>:
> > >
> > > > Hello,
> > > >
> > > > First, let me say that I've been using Embperl 1.x since 1999 with
> > > > incredible success. I've used it in virtually all my web-based projects
> > > > since then. Thanks Gerald for something that truly is exactly what I've
> > > > needed for years and years.
> > > >
> > > > I've decided to make the push from 1.3 to 2.0. I'm having some trouble
> > > > with the table parsing (something that I've always felt was best left
> > > > disabled) in 2.0. Since I cannot disable it in 2.0 I've been working
> > > > around it, but I've hit a bit of a wall that I don't know how to get
> > > > past. Please advise why the following HTML fails to parse successfully,
> > > >
> > > > [$ if (0) $]
> > > > <table align='center' width='50%'>
> > > >  <tr><td align='center' bgcolor='#66AA66'>
> > > > [$ endif $]
> > > >
> > > > Test!
> > > >
> > > > [$ if (0) $]
> > > >  </td></tr>
> > > >  </table>
> > > > [$ endif $]
> > > >
> > > > This generates the following crash message:
> > > >
> > > >    Error (no description) Unstrutured forward jump
> > > >
> > > > ...notice that those 'if' blocks should not be entered. If I set those
> > > > conditions to '1' instead of '0' everything works as expected. If I
> > > > remove the if blocks (or comment them out with [# #]) everything works
> > > > as expected.
> > > >
> > > > My actual HTML is of course much more involved, but suffers
> > > > from the same problem outlined here.  Please let me know if you guys
> > > > have any suggestions. In particular, if anybody can suggest a means of
> > > > disabling table parsing that would probably make me happiest :)
> > > >
> > > > Thanks again!
> > > >
> > > > Heath
> > > > heath@emumail.com
> > > >
> > > >
> > > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
> > > > For additional commands, e-mail: embperl-help@perl.apache.org
> > > >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
> > For additional commands, e-mail: embperl-help@perl.apache.org
> >


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


Re: Create Syntax without Table Processing (was: Table Processing)

Posted by Heath Morrison <he...@emumail.com>.
Hi Gerald,

That sounds like a great idea :) Thanks for the tip. 

Thanks!

Heath
heath@emumail.com


On Wed, 15 Sep 2004 10:08:27 +0200
"Gerald Richter" <ri...@ecos.de> wrote:

> Hi,
> 
> > 
> > I've considered using EmbperlBlocks, but it knocks out all of 
> > the HTML processing not just table stuff. I rely quite a bit 
> > on %fdat and the associated form element filling (It's 
> > actually one of my favorite features, and one that you don't 
> > find in many other template engines).
> > 
> 
> Just create your own syntax without table processing:
> 
> Goto Embperl/Syntax/EmbperlHTML.pm and make a copy. Remove anything table
> related.
> 
> Then goto Embperl/Syntax/Embperl.pm and make a copy. Change the @ISA so it
> inherits from your new module, instead from EmbperlHTML.
> 
> Add EMBPERL_SYNTAX <your new name> to the httpd.conf
> 
> Done!
> 
> Gerald
> 
> 
> 
> > Thanks!
> > 
> > Heath
> > heath@emumail.com
> > 
> > 
> > On Sun, 12 Sep 2004 08:38:09 +0200
> > Hans de Groot <ha...@dandy.nl> wrote:
> > 
> > > Hi,
> > > 
> > > I am not sure, but I use this at the start of every script.
> > > 
> > > [$syntax EmbperlBlocks $]
> > > 
> > > When I switched to embperl 2 I looked for ages to get my 
> > embperl 1.3 
> > > pages to work.
> > > 
> > > Anyway I am still looking for a global way to turn table 
> > and html parsing of.
> > > 
> > > but if I remember correctly this worked for me. (But I did have to 
> > > edit all those pages to add [$syntax EmbperlBlocks $] to the top.)
> > > 
> > > This is what I have im my httpd.conf but I am not sure if 
> > this still 
> > > is used by embperl 2.x
> > > 
> > > ---
> > > PerlModule Embperl
> > > Embperl_UseEnv on
> > > SetEnv EMBPERL_DEBUG 0
> > > SetEnv EMBPERL_OPTIONS 2064
> > > SetEnv EMBPERL_ESCMODE 0
> > > PerlSetEnv EMBPERL_COOKIE_PATH "/"
> > > PerlSetEnv EMBPERL_SESSION_CLASSES "MySQL Semaphore"
> > > PerlSetEnv EMBPERL_SESSION_ARGS "DataSource=dbi:mysql:session 
> > > UserName=** Password=**"
> > > ----
> > > 
> > > Hope this helps
> > > 
> > > Regards
> > > 
> > > Hans de Groot
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > Met vriendelijke groet,
> > > 
> > > Hans de Groot
> > > 
> > > 
> > > 
> > > Quoting Heath Morrison <he...@emumail.com>:
> > > 
> > > > Hello,
> > > >
> > > > First, let me say that I've been using Embperl 1.x since 
> > 1999 with 
> > > > incredible success. I've used it in virtually all my web-based 
> > > > projects since then. Thanks Gerald for something that truly is 
> > > > exactly what I've needed for years and years.
> > > >
> > > > I've decided to make the push from 1.3 to 2.0. I'm having some 
> > > > trouble with the table parsing (something that I've 
> > always felt was 
> > > > best left
> > > > disabled) in 2.0. Since I cannot disable it in 2.0 I've 
> > been working 
> > > > around it, but I've hit a bit of a wall that I don't know 
> > how to get 
> > > > past. Please advise why the following HTML fails to parse 
> > > > successfully,
> > > >
> > > > [$ if (0) $]
> > > > <table align='center' width='50%'>
> > > >  <tr><td align='center' bgcolor='#66AA66'> [$ endif $]
> > > >
> > > > Test!
> > > >
> > > > [$ if (0) $]
> > > >  </td></tr>
> > > >  </table>
> > > > [$ endif $]
> > > >
> > > > This generates the following crash message:
> > > >
> > > >    Error (no description) Unstrutured forward jump
> > > >
> > > > ...notice that those 'if' blocks should not be entered. If I set 
> > > > those conditions to '1' instead of '0' everything works 
> > as expected. 
> > > > If I remove the if blocks (or comment them out with [# #]) 
> > > > everything works as expected.
> > > >
> > > > My actual HTML is of course much more involved, but 
> > suffers from the 
> > > > same problem outlined here.  Please let me know if you 
> > guys have any 
> > > > suggestions. In particular, if anybody can suggest a means of 
> > > > disabling table parsing that would probably make me happiest :)
> > > >
> > > > Thanks again!
> > > >
> > > > Heath
> > > > heath@emumail.com
> > > >
> > > >
> > > > 
> > --------------------------------------------------------------------
> > > > - To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
> > > > For additional commands, e-mail: embperl-help@perl.apache.org
> > > >
> > 
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
> > For additional commands, e-mail: embperl-help@perl.apache.org
> > 
> > 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
> For additional commands, e-mail: embperl-help@perl.apache.org


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


RE: Create Syntax without Table Processing (was: Table Processing)

Posted by Gerald Richter <ri...@ecos.de>.
Hi,

> 
> I've considered using EmbperlBlocks, but it knocks out all of 
> the HTML processing not just table stuff. I rely quite a bit 
> on %fdat and the associated form element filling (It's 
> actually one of my favorite features, and one that you don't 
> find in many other template engines).
> 

Just create your own syntax without table processing:

Goto Embperl/Syntax/EmbperlHTML.pm and make a copy. Remove anything table
related.

Then goto Embperl/Syntax/Embperl.pm and make a copy. Change the @ISA so it
inherits from your new module, instead from EmbperlHTML.

Add EMBPERL_SYNTAX <your new name> to the httpd.conf

Done!

Gerald



> Thanks!
> 
> Heath
> heath@emumail.com
> 
> 
> On Sun, 12 Sep 2004 08:38:09 +0200
> Hans de Groot <ha...@dandy.nl> wrote:
> 
> > Hi,
> > 
> > I am not sure, but I use this at the start of every script.
> > 
> > [$syntax EmbperlBlocks $]
> > 
> > When I switched to embperl 2 I looked for ages to get my 
> embperl 1.3 
> > pages to work.
> > 
> > Anyway I am still looking for a global way to turn table 
> and html parsing of.
> > 
> > but if I remember correctly this worked for me. (But I did have to 
> > edit all those pages to add [$syntax EmbperlBlocks $] to the top.)
> > 
> > This is what I have im my httpd.conf but I am not sure if 
> this still 
> > is used by embperl 2.x
> > 
> > ---
> > PerlModule Embperl
> > Embperl_UseEnv on
> > SetEnv EMBPERL_DEBUG 0
> > SetEnv EMBPERL_OPTIONS 2064
> > SetEnv EMBPERL_ESCMODE 0
> > PerlSetEnv EMBPERL_COOKIE_PATH "/"
> > PerlSetEnv EMBPERL_SESSION_CLASSES "MySQL Semaphore"
> > PerlSetEnv EMBPERL_SESSION_ARGS "DataSource=dbi:mysql:session 
> > UserName=** Password=**"
> > ----
> > 
> > Hope this helps
> > 
> > Regards
> > 
> > Hans de Groot
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > Met vriendelijke groet,
> > 
> > Hans de Groot
> > 
> > 
> > 
> > Quoting Heath Morrison <he...@emumail.com>:
> > 
> > > Hello,
> > >
> > > First, let me say that I've been using Embperl 1.x since 
> 1999 with 
> > > incredible success. I've used it in virtually all my web-based 
> > > projects since then. Thanks Gerald for something that truly is 
> > > exactly what I've needed for years and years.
> > >
> > > I've decided to make the push from 1.3 to 2.0. I'm having some 
> > > trouble with the table parsing (something that I've 
> always felt was 
> > > best left
> > > disabled) in 2.0. Since I cannot disable it in 2.0 I've 
> been working 
> > > around it, but I've hit a bit of a wall that I don't know 
> how to get 
> > > past. Please advise why the following HTML fails to parse 
> > > successfully,
> > >
> > > [$ if (0) $]
> > > <table align='center' width='50%'>
> > >  <tr><td align='center' bgcolor='#66AA66'> [$ endif $]
> > >
> > > Test!
> > >
> > > [$ if (0) $]
> > >  </td></tr>
> > >  </table>
> > > [$ endif $]
> > >
> > > This generates the following crash message:
> > >
> > >    Error (no description) Unstrutured forward jump
> > >
> > > ...notice that those 'if' blocks should not be entered. If I set 
> > > those conditions to '1' instead of '0' everything works 
> as expected. 
> > > If I remove the if blocks (or comment them out with [# #]) 
> > > everything works as expected.
> > >
> > > My actual HTML is of course much more involved, but 
> suffers from the 
> > > same problem outlined here.  Please let me know if you 
> guys have any 
> > > suggestions. In particular, if anybody can suggest a means of 
> > > disabling table parsing that would probably make me happiest :)
> > >
> > > Thanks again!
> > >
> > > Heath
> > > heath@emumail.com
> > >
> > >
> > > 
> --------------------------------------------------------------------
> > > - To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
> > > For additional commands, e-mail: embperl-help@perl.apache.org
> > >
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
> For additional commands, e-mail: embperl-help@perl.apache.org
> 
> 


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


Re: Table Processing

Posted by Heath Morrison <he...@emumail.com>.
Hi,

Thanks for your response!

I've considered using EmbperlBlocks, but it knocks out all of the HTML processing
not just table stuff. I rely quite a bit on %fdat and the associated
form element filling (It's actually one of my favorite features, and one
that you don't find in many other template engines).

Thanks!

Heath
heath@emumail.com


On Sun, 12 Sep 2004 08:38:09 +0200
Hans de Groot <ha...@dandy.nl> wrote:

> Hi,
> 
> I am not sure, but I use this at the start of every script.
> 
> [$syntax EmbperlBlocks $]
> 
> When I switched to embperl 2 I looked for ages to get my embperl 1.3 pages to
> work.
> 
> Anyway I am still looking for a global way to turn table and html parsing of.
> 
> but if I remember correctly this worked for me. (But I did have to edit all
> those pages to add [$syntax EmbperlBlocks $] to the top.)
> 
> This is what I have im my httpd.conf but I am not sure if this still is used by
> embperl 2.x
> 
> ---
> PerlModule Embperl
> Embperl_UseEnv on
> SetEnv EMBPERL_DEBUG 0
> SetEnv EMBPERL_OPTIONS 2064
> SetEnv EMBPERL_ESCMODE 0
> PerlSetEnv EMBPERL_COOKIE_PATH "/"
> PerlSetEnv EMBPERL_SESSION_CLASSES "MySQL Semaphore"
> PerlSetEnv EMBPERL_SESSION_ARGS "DataSource=dbi:mysql:session UserName=**
> Password=**"
> ----
> 
> Hope this helps
> 
> Regards
> 
> Hans de Groot
> 
> 
> 
> 
> 
> 
> 
> Met vriendelijke groet,
> 
> Hans de Groot
> 
> 
> 
> Quoting Heath Morrison <he...@emumail.com>:
> 
> > Hello,
> >
> > First, let me say that I've been using Embperl 1.x since 1999 with
> > incredible success. I've used it in virtually all my web-based projects
> > since then. Thanks Gerald for something that truly is exactly what I've
> > needed for years and years.
> >
> > I've decided to make the push from 1.3 to 2.0. I'm having some trouble
> > with the table parsing (something that I've always felt was best left
> > disabled) in 2.0. Since I cannot disable it in 2.0 I've been working
> > around it, but I've hit a bit of a wall that I don't know how to get
> > past. Please advise why the following HTML fails to parse successfully,
> >
> > [$ if (0) $]
> > <table align='center' width='50%'>
> >  <tr><td align='center' bgcolor='#66AA66'>
> > [$ endif $]
> >
> > Test!
> >
> > [$ if (0) $]
> >  </td></tr>
> >  </table>
> > [$ endif $]
> >
> > This generates the following crash message:
> >
> >    Error (no description) Unstrutured forward jump
> >
> > ...notice that those 'if' blocks should not be entered. If I set those
> > conditions to '1' instead of '0' everything works as expected. If I
> > remove the if blocks (or comment them out with [# #]) everything works
> > as expected.
> >
> > My actual HTML is of course much more involved, but suffers
> > from the same problem outlined here.  Please let me know if you guys
> > have any suggestions. In particular, if anybody can suggest a means of
> > disabling table parsing that would probably make me happiest :)
> >
> > Thanks again!
> >
> > Heath
> > heath@emumail.com
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
> > For additional commands, e-mail: embperl-help@perl.apache.org
> >


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


Re: Table Processing

Posted by Heath Morrison <he...@emumail.com>.
Hi Ken,

Thanks for your response, I appreciate you thinking about the issue. I
agree with your logic regarding the blocks...in theory the parser should
be ignoring both of the blocks because neither should exist. The
symptoms I'm seeing is that this is not the case.

Regarding having only one true block - yes, the problem occurs then as
well, though it's a bit expected in that case because the table tags
will be unbalanced.

Thanks!

Heath
heath@emumail.com


On Sat, 11 Sep 2004 22:05:32 -0400
"KFanyo_Subs@Digiflex Systems" <kf...@digiflexsystems.com> wrote:

> Heath,
> 
> Have you tried setting only one of the conditions to '1' and leaving the
> other at '0' (Both ways)? I am by no means even practiced in embperl, but I
> would want to eliminate this combination as well. I'm thinking you will get
> the same error whenever the two conditions do not match. I'm guessing the
> 0-0 combination does not work because (again, I am guessing) the parser is
> not finding the end tags because it does not consider the second block
> because it is always "off" and so does not (or can not) know they exist.
> 
> Also, try this stucture:
> 
> [$ if (0) $]
> 
>   <table align='center' width='50%'>
>   <tr><td align='center' bgcolor='#66AA66'>
>  
>   Test! 
> 
>   </td></tr> 
>   </table>  
> 
> [$ else $] 
> 
>   Test! 
> 
> [$ endif $]
> 
> Or try this just to see if the error changes or does not appear:
> 
> [$ if (0) $]
> 
>   <table align='center' width='50%'>
>   <tr><td align='center' bgcolor='#66AA66'>
>  
>   Test! 
> 
>   [$ if (0) $]
>     </td></tr> 
>     </table>  
>   [$ endif $]
> 
> [$ endif $]
> 
> This way, if the first condition is false, the second condition block is
> never evaluated and, according to what I see here, it shouldn't be, anyway.
> 
> I'm probably wasting your time but I hope this helps,
> 
> Ken
> 
> -----Original Message-----
> From: Heath Morrison [mailto:heath@emumail.com] 
> Sent: Saturday, September 11, 2004 11:34 AM
> To: embperl@perl.apache.org
> Subject: Table Processing
> 
> 
> Hello,
> 
> First, let me say that I've been using Embperl 1.x since 1999 with
> incredible success. I've used it in virtually all my web-based projects
> since then. Thanks Gerald for something that truly is exactly what I've
> needed for years and years.
> 
> I've decided to make the push from 1.3 to 2.0. I'm having some trouble with
> the table parsing (something that I've always felt was best left
> disabled) in 2.0. Since I cannot disable it in 2.0 I've been working around
> it, but I've hit a bit of a wall that I don't know how to get past. Please
> advise why the following HTML fails to parse successfully,
> 
> [$ if (0) $]
> <table align='center' width='50%'>
>  <tr><td align='center' bgcolor='#66AA66'>
> [$ endif $]
>  
> Test! 
> 
> [$ if (0) $]
>  </td></tr> 
>  </table>  
> [$ endif $]
> 
> This generates the following crash message:
> 
>    Error (no description) Unstrutured forward jump 
> 
> ...notice that those 'if' blocks should not be entered. If I set those
> conditions to '1' instead of '0' everything works as expected. If I remove
> the if blocks (or comment them out with [# #]) everything works as expected.
> 
> 
> My actual HTML is of course much more involved, but suffers from the same
> problem outlined here.  Please let me know if you guys have any suggestions.
> In particular, if anybody can suggest a means of disabling table parsing
> that would probably make me happiest :) 
> 
> Thanks again!
> 
> Heath
> heath@emumail.com
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
> For additional commands, e-mail: embperl-help@perl.apache.org
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
> For additional commands, e-mail: embperl-help@perl.apache.org
> 


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


RE: Table Processing

Posted by "KFanyo_Subs@Digiflex Systems" <kf...@digiflexsystems.com>.
Heath,

Have you tried setting only one of the conditions to '1' and leaving the
other at '0' (Both ways)? I am by no means even practiced in embperl, but I
would want to eliminate this combination as well. I'm thinking you will get
the same error whenever the two conditions do not match. I'm guessing the
0-0 combination does not work because (again, I am guessing) the parser is
not finding the end tags because it does not consider the second block
because it is always "off" and so does not (or can not) know they exist.

Also, try this stucture:

[$ if (0) $]

  <table align='center' width='50%'>
  <tr><td align='center' bgcolor='#66AA66'>
 
  Test! 

  </td></tr> 
  </table>  

[$ else $] 

  Test! 

[$ endif $]

Or try this just to see if the error changes or does not appear:

[$ if (0) $]

  <table align='center' width='50%'>
  <tr><td align='center' bgcolor='#66AA66'>
 
  Test! 

  [$ if (0) $]
    </td></tr> 
    </table>  
  [$ endif $]

[$ endif $]

This way, if the first condition is false, the second condition block is
never evaluated and, according to what I see here, it shouldn't be, anyway.

I'm probably wasting your time but I hope this helps,

Ken

-----Original Message-----
From: Heath Morrison [mailto:heath@emumail.com] 
Sent: Saturday, September 11, 2004 11:34 AM
To: embperl@perl.apache.org
Subject: Table Processing


Hello,

First, let me say that I've been using Embperl 1.x since 1999 with
incredible success. I've used it in virtually all my web-based projects
since then. Thanks Gerald for something that truly is exactly what I've
needed for years and years.

I've decided to make the push from 1.3 to 2.0. I'm having some trouble with
the table parsing (something that I've always felt was best left
disabled) in 2.0. Since I cannot disable it in 2.0 I've been working around
it, but I've hit a bit of a wall that I don't know how to get past. Please
advise why the following HTML fails to parse successfully,

[$ if (0) $]
<table align='center' width='50%'>
 <tr><td align='center' bgcolor='#66AA66'>
[$ endif $]
 
Test! 

[$ if (0) $]
 </td></tr> 
 </table>  
[$ endif $]

This generates the following crash message:

   Error (no description) Unstrutured forward jump 

...notice that those 'if' blocks should not be entered. If I set those
conditions to '1' instead of '0' everything works as expected. If I remove
the if blocks (or comment them out with [# #]) everything works as expected.


My actual HTML is of course much more involved, but suffers from the same
problem outlined here.  Please let me know if you guys have any suggestions.
In particular, if anybody can suggest a means of disabling table parsing
that would probably make me happiest :) 

Thanks again!

Heath
heath@emumail.com


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



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