Gasper:

That could be done through the sitemap by matching.  I don't know if you can
do use processing instructions that way in 2.0 or even in 1.8

Carlos


On 01/09/02 4:51, "Gasper" <[EMAIL PROTECTED]> wrote:

> Hi
> 
> The question is:
> Can I have an xml document written as jsp or xsp that has different xslt
> translations denpended on the http parameters the page gets. Can cocoon be
> cofigured to do this and how to do it.
> 
> Thanks.
> 
> Gasper
> 
> an example:
> 
> <?xml version="1.0"?>
> 
> <%
> String s=request.getParameter("action");
> if (s.equals("insert)) {
> %>
>   <?xml-stylesheet href="insert.xsl" type="text/xsl"?>
> <%
> } else if (s.equals("edit")) {
> %>
>   <?xml-stylesheet href="edit.xsl" type="text/xsl"?>
> <%
> } else if (s.equals("remove")) {
> %>
>   <?xml-stylesheet href="remove.xsl" type="text/xsl"?>
> <%
> }
> %>
> 
> <stuff>
> ...
> </stuff>
> 
> 
> ---------------------------------------------------------------------
> 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: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
> 

-- 
Carlos E. Araya
---+ WebCT Administrator/Trainer
 P | California Virtual Campus
 - | C/O De Anza College
 G | 21250 Stevens Creek Blvd
---+ Cupertino, CA 95014

email               [EMAIL PROTECTED]
web                 http://www.cvc1.org/ (work)
                    http://www.silverwolf-net.net (personal)
phone               408 257 0420 (work)
PGP Fingerprint:    E629 5DFD 7EAE 4995 E9D7  3D2F 5A9F 0CE7 DFE7 1756

Paradoxically, a refusal to 'put a monetary value on life' means that life
is often undervalued.
-- Artificial Intelligence: A Modern Approach



---------------------------------------------------------------------
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: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>

Reply via email to