You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Christofer Dutz <du...@c-ware.de> on 2003/11/13 14:53:41 UTC
Selecting xslt-document based on the domain-name of a requet ?
Hi,
a few days ago I asked this question before and thanks for the answer.
It helped me a lot. The only thing is, that I would like cocoon to
select a stylesheet besed on the name of the domain-name in the request
without having to change the cocoon sitemap.
My idea is to have cocoon select stylesheet domain1.com.xsl if a request
to domain1.com arrives .... some kind of
<map:transform type="xslt" src="{host}.xsl"/>
is there a way to do this?
Chris
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Selecting xslt-document based on the domain-name of a requet
?
Posted by Christofer Dutz <du...@c-ware.de>.
Thanks :))
It worked !
Why couldn't I find anything about this in any of the cocoon docs ?
Would have been quite helpfull;)
Thanx again!
Chris
Sylvain Wallez wrote:
> Christofer Dutz wrote:
>
>> Hi,
>>
>> a few days ago I asked this question before and thanks for the
>> answer. It helped me a lot. The only thing is, that I would like
>> cocoon to select a stylesheet besed on the name of the domain-name in
>> the request without having to change the cocoon sitemap.
>>
>> My idea is to have cocoon select stylesheet domain1.com.xsl if a
>> request to domain1.com arrives .... some kind of
>>
>> <map:transform type="xslt" src="{host}.xsl"/>
>>
>> is there a way to do this?
>
>
>
> Maybe <map:transform type="xslt" src="{request-header:Host}.xsl"/> ?
>
> Sylvain
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Selecting xslt-document based on the domain-name of a requet
?
Posted by Sylvain Wallez <sy...@apache.org>.
Christofer Dutz wrote:
> Hi,
>
> a few days ago I asked this question before and thanks for the answer.
> It helped me a lot. The only thing is, that I would like cocoon to
> select a stylesheet besed on the name of the domain-name in the
> request without having to change the cocoon sitemap.
>
> My idea is to have cocoon select stylesheet domain1.com.xsl if a
> request to domain1.com arrives .... some kind of
>
> <map:transform type="xslt" src="{host}.xsl"/>
>
> is there a way to do this?
Maybe <map:transform type="xslt" src="{request-header:Host}.xsl"/> ?
Sylvain
--
Sylvain Wallez Anyware Technologies
http://www.apache.org/~sylvain http://www.anyware-tech.com
{ XML, Java, Cocoon, OpenSource }*{ Training, Consulting, Projects }
Orixo, the opensource XML business alliance - http://www.orixo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org