On Thursday 15 August 2002 10:37, Ben Motz wrote: > With AxKit 1.6, the following xsp gives a 500 server error; > <?xml version='1.0'?> > <?xml-stylesheet href="NULL" type="application/x-xsp"?> > <xsp:page xmlns:xsp="http://apache.org/xsp/core/v1"> > <xsp:logic> > </xsp:logic> > </xsp:page>
Your actual document is missing. You need a user root, which, in your next example is the <foo/> > <?xml version='1.0'?> > <?xml-stylesheet href="NULL" type="application/x-xsp"?> > <xsp:page xmlns:xsp="http://apache.org/xsp/core/v1"> > <foo /> > <xsp:logic> > </xsp:logic> > </xsp:page> Basically, your XSP page should be laid out like this: <?xml ...?> <!-- next line is optional - you can configure it in httpd.conf as well --> <?xml-stylesheet ...?> <xsp:page xmlns:xsp="..."> <!-- first(!) any static initialization - this will be executed only once per process, the whole section is optional --> <xsp:structure> <xsp:logic> # some stuff here, sub definitions, one-time-initialization, ... </xsp:logic> </xsp:structure> <!-- now the actual page - only code below the user root is executed every time --> <foo> <xsp:logic> # do something... </xsp:logic> </foo> </xsp:page> You are free to put whatever you like below the user root. In the xsp:structure section you should be careful, putting reglar XML tags (not belonging to a taglib, and not processed by a taglib) may fail. CU J�rg --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
