On Tue, 29 Jan 2002, Aaron E. Ross wrote:

>
>  Hi all,
>
>     I'm just starting to use AxKit so I want to get some reaction to my
>     first guess about how to design an application.
>
>     My company has a software package that organizes documents by
>     mentions of people, places and things.  We have a number of
>     different interfaces and markets that we need to support.  Our
>     software outputs XML and so AxKit seems like a perfect fit.
>
>     What I think I need to do is the following:
>
>     - Define a provider to access our software, Apache::AxKit::Provider::XDC
>     - Define a set of XSP stylesheets based on our current interface,
>       using AxKit::XSP::Session taglib and Apache::Session for session
>       management
>     - Add new interfaces by cascading XSLT and/or XPathScript and/or XSP
>       stylesheets

One thing to remember is that XSP isn't a stylesheet - it's more like
code. I guess think of it as a better ASP or JSP or PHP.

>     Questions -
>
>     Is there a way I could use XSLT (with which I am more familiar) and
>         sessions?

Not directly. You need XSP for that.

>     Can I write a Provider subclass that only handles XML document requests?

This is a pain, because the answer at the moment is no. I originally
designed AxKit so that XML and Stylesheet providers were different things,
but it got too complex in my head and I merged them. So right now all
requests go through the same provider, which is only dependant on the
apache config mappings for a particular request. I.e it won't make any
difference if you do an AxProvider in a <Location /stylesheets> block - it
will use the provider specified for the XML requested even for the
stylesheet. Sorry.

The aim is to clean this up a bit by allowing scheme oriented providers,
so you'll be able to map the request to xdc://some/path and have your XDC
provider pick it up, but it's still just an idea and hasn't been specced
out fully yet.

>     Can I narrow it down even farther to very specific document requests?
>     Can I use Apache directives to install the Provider for specific files?

You've got complete flexibity by using httpd.conf and .htaccess
directives. You can do whatever you want/need to. Modulo AxKit
restrictions of course (see above).

-- 
<!-- Matt -->
<:->Get a smart net</:->


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

Reply via email to