cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Francesco Chicchiriccò <francesco.chicchiri...@everett.it>
Subject Re: Server side functionality - based upon the URL (Domain/Virtual Host)
Date Wed, 17 Feb 2010 09:43:28 GMT
On 17/feb/10, at 10:36, Anish Sneh wrote:

> Hi All
>
> I need to apply a server side functionality which will be based upon  
> the URL (Domain/Virtual Host) for which the request is coming. e.g.  
> if the request is coming for www.abc.com server should treat it  
> differently, else if it is coming for www.xyz.com or www.abc.ca it  
> should be treated differently.
>
> I wanted to achieve this using XSLT (if possible), please suggest  
> how can I achieve this.

I think that the simplest approach could be to use the host selector  
in your sitemap [1] to decide which XSLT (or which parameter value to  
pass to an XSLT) to use in the pipeline.

Cheers.

[1] http://cocoon.apache.org/2.1/userdocs/host-selector.html


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


Mime
View raw message