Roxen Internet Software
Log in/New account
Are there lazy way to stop RXML evaluation?
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:
<set variable="var.stop_eval" value="true"/>
<if variable="var.stop_eval is true" />
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;" />
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.
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.
Search this thread:
this site. | Contact us
Copyright © 2018 Roxen Internet Software AB