Thanks, I didn't even know xsp:structure existed.

>>> J�rg Walter <[EMAIL PROTECTED]> 07/30/02 01:24pm >>>
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] 



ITM Business Solutions
Unit 4
Nine Trees Trading Estate
Morthen Road
Rotherham
S66 9JG

Reception
Tel: 01709 703288
Fax: 01709 701549

Help Desk
Tel:01709 530424
Fax: 01709 702159

CONFIDENTIALITY NOTICE: This message is intended only for the use of
the individual or entity to which it is addressed, and may contain
information that is privileged, confidential and exempt from disclosure
under applicable law.



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to