cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Haul <h...@informatik.tu-darmstadt.de>
Subject Re: Sitemap Syntax
Date Tue, 02 Dec 2003 20:18:51 GMT
Juan Ignacio Jiménez de Luis wrote:
> 
>     Greetings,
> 
>     I'm trying to simulate a hashmap with the XMLFileModule input 
> module..  I have an XML File with this structure
> 
>     <servers>
>         <server url="www.unmardedatos.com">
>             <site>unmarde</site>   
>             <skin>basic</skin>
>         </server>
>         <server url="www.otherdomain.com">
>             <site>unmarde</site>   
>             <skin>shiny</skin>
>         </server>
>     </servers>
> 
> 
>     I planned to reference that  in the sitemap as 
> {xmlhashmap:/servers/server[@url='{request:serverName}']/site} to 
> emulate a NamedVirtualServer behaviour.
> 
>     Unluckily, it seems that you can't nest variables in the sitemap.. 
> Does anyone now any workarround to this limitation? Am I doing something 
> wrong?

No. This is not possible. But there is an InputModuleAction to your 
recue. Use that to access the xmlhashmap module and pass the 
request:serverName value to it.

	Chris.


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


Mime
View raw message