On Tue, 21 Jan 2003, [EMAIL PROTECTED] wrote:
> Hi,
> This is no doubt a trivial question ( yes I have RTFM ;) about setting up
> a pipeline to handle a web frontend to a database.
> What I want to do (at the moment) is pretty simple I think:
>
> User requests XSP page
> -> AxKit processes XSP page
> -(XML)-> LibXSLT uses a stylesheet to transform PerForm elements
> to html
> -(XML)-> LibXSLT uses a stylesheet to transform result into html
> with bells and whistles
> -(HTML)-> user gets back simple html form
>
> Because the stylesheets are constant across the app I dont want to put
> stylesheet directives in PIs in the XSP pages. But when I try to set it up
> using config directives in the httpd.conf half the time I get the contents
> of my xsp:logic element served up raw, and none of the time can I get a
> chain of 2 stylesheets going.
>
> This seems to me to be a pretty standard kind of setup -- what config
> directives would you use assuming stylesheets are in
> <DocumentRoot>/stylesheets ?
I'd do it like this:
AxAddRootProcessor application/x-xsp NULL \
{http://apache.org/xsp/core/v1}page
AxAddRootProcessor text/xsl /stylesheets/perform_html.xsl \
{http://apache.org/xsp/core/v1}page
AxAddRootProcessor text/xsl /stylesheets/result_html.xsl \
{http://apache.org/xsp/core/v1}page
Note that for PerForm, my preferred method is to include the perform XSL
using <xsl:import>, but YMMV.
--
<!-- Matt -->
<:->get a SMart net</:->
Spam trap - do not mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]