Beaten to the draw, but a much better explanation that I could have given! Colin
On Thu, 2003-11-06 at 16:05, Andrew Davies wrote: > James > > Set up AxKit as in the docs.... so you'll have a bit of httpd.conf that > looks like: > > -- > PerlModule AxKit > AddHandler axkit .xml .xsp > AxAddStyleMap text/xsl Apache::AxKit::Language::LibXSLT > AxAddStyleMap application/x-xsp Apache::AxKit::Language::XSP > -- > > (Add this at the end of httpd.conf if you like) > > You then need to add the PerForm taglib to httpd.conf. So > you can put the following after the above: > > -- > AxAddXSPTaglib AxKit::XSP::PerForm > -- > > Now we have to say how to get XSP->XML and XML -> HTML so > in httpd.conf: > > -- > <Directory "XXXXXXX"> > Options Indexes FollowSymLinks MultiViews > AllowOverride All > Order allow,deny > Allow from all > > <Files *.xsp> > AxAddProcessor application/x-xsp null > </Files> > > AxAddProcessor text/xsl YYYYYYY > </Directory> > -- > > where XXXXX is probably your document root and YYYYYY is your > style sheet that converts your XML into HTML. > > Now XSP files get: XSP -> XML -> HTML and XML files get XML -> HTML. > > One other thing (school boy errors No. 1 when using PerForm) is that > you must have the stylesheet that converts the output of the perform > taglib to html. You can do this by adding the following to your > stylesheet: > > -- > <xsl:import href="/xsl/perform_html.xsl"/> > -- > > perform_html.xsl you'll find to be included in tar file for PerForm. > Adjust the path as necessary. > > > Good luck > > Andy > > > Colin, > > Thanks (I think!) - that's what I feared. > > > > Perhaps you could clarify how PerForm fits in, though... > > > > It looks like I need to set up an XSP form, for example, form.xsp. This > > will be processed to produce xml output, which then should be processed > > by a stylesheet to produce the output I want (an HTML form in my case). > > > > So somewhere I need to specify how form.xsp -> xml -> XSL stylesheet > > (and XSLT) ->HTML chains. But where? Presume it's in my httpd.conf, > > but can't find documentation on how to glue it together! > > > > > > Thanks, > > > > James > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
