Forum

Posted by
ITANI Eiichiro  -  August 2011
Aren't there way to stop RXML parsing and chop off rest of page?
I'd like know if I can stop RXML evaluation from nested frames.

After I decide to redirect UA somewhere, or no more SQL thing
needed for a situation, to avoid needless CPU consumption,
I will write like below:

<html>
...
<body>

Some processing...

<if somecondition>
  <if variable="var.do_rediect">
    <redirect to="&var.do_redirect_url;">
    <set variable="var.stop_eval" value="true"/>
  </if><else>
    ...
  </else>
</if>

<if variable="var.stop_eval is true" />
<else>
  Other processing...
</else>
</body>
</html>

To keep if/else balanced in RXML sometimes become pain and
source of mistakes.  So if I can, I'd like to write like:

<redirect to="&var.do_redirect_url;" />
<exit></body></html></exit>

On an other situation, I'd like to use 'exit' from user defined tag.

Can it be possible?  It's ok using <?pike?> if it can be.
 
Posted by
Martin Stjernholm  -  August 2011
I think the closest you get are the <throw> and <catch> tags. Note though that they are a bit unfriendly on the rxml p-code caches, in case you have any of that in use.
 
1
Search this thread: