On Tuesday, 30. July 2002 14:07, Nigel Peck wrote:
> <?xml version="1.0" encoding="UTF-8"?>
> <xsp:page
> language="Perl"
> xmlns:xsp="http://apache.org/xsp/core/v1"
>
> <results>
> <xsp:logic>
> if(0) {
> <test1>yes</test1>
> } elsif(0) {
> <test2>yes</test2>
> } elsif(loginok()) {
> <test4>yes</test4>
> } else {
> <test5>yes</test5>
> }
> </xsp:logic>
> </results>
> <xsp:logic>
> sub loginok {
> <test3>yes</test3>
> }
> </xsp:logic>
> </xsp:page>
You are using a very unorthodox structure of your XSP. To be on the safe side,
try to use this layout:
<?xml ...?>
<xsp:page ...>
<xsp:structure>
<!-- anything global, like sub definitions. stuff in here will only
be executed when the page is compiled -->
</xsp:structure>
<a-root-tag-of-your-choice>
<!-- the actual page, being executed every time -->
</a-root-tag-of-your-choice>
</xsp:page>
leaving out <xsp:structure> container should work, putting that section at the
end might not... I never did that.
--
CU
Joerg
PGP Public Key at http://ich.bin.kein.hoschi.de/~trouble/public_key.asc
PGP Key fingerprint = D34F 57C4 99D8 8F16 E16E 7779 CDDC 41A4 4C48 6F94
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]