cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Donald Ball <ba...@webslingerZ.com>
Subject Re: [C2]determine stylesheet in XSP
Date Mon, 23 Apr 2001 16:08:39 GMT
On Mon, 23 Apr 2001, Berin Loritsch wrote:

> > Based on the logic in the XSP stylesheet (actually the amount of data
> > retrieved in a query), I need to change the stylesheet that was specified
> > for my request in the sitemap.
> > In C1, I could use <xsp:pi target="xml-stylesheet"> to get this working, is
> > there an alternative in C2?
>
> It's done in the sitemap.  You have the concept of Matchers, Selectors, and
> Actions which can all change the way the pipeline is built.  If you change
> the stylesheet based on the type of browser, you can use the Browser Selector
> to pick the stylesheet.  If you wan't to match on URI, you can nest matchers.
> If you want your selection to be based on complex representations of information
> such as a database query, then Actions are your answer.

then we need to come up with a better way of writing actions. or hey, why
can't xsp pages have the option of passing a Map back to the sitemap for
doing stuff like this?

- donald


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


Mime
View raw message