cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jasha Joachimsthal" <j.joachimst...@onehippo.com>
Subject RE: Sitemap point to extern directory
Date Tue, 03 Jun 2008 12:04:09 GMT
> -----Original Message-----
> From: jantje [mailto:janvanoppen@skynet.be] 
> Sent: dinsdag 3 juni 2008 13:50
> To: users@cocoon.apache.org
> Subject: Sitemap point to extern directory
> 
> 
> Hi there,
> 
>     <map:pipeline>
>       <map:match pattern="myFirstPipeline">
>         <map:generate src="myXmlFile.xml" type="file"/>
>         <map:serialize type="xml"/>
>       </map:match>
> 
> The file above, myXmlFile.xml is in a different directory. F.i:
> /mnt/sdLacie/source/xml/myXmlFile.xml while the sitemap is in 
> /home/jan/cocoon/project/../sitemap.xmap
> 
> In the sitemap, multiple files in the distant /mnt directory 
> will be adressed. is there a way to define a kind of variable 
> in the sitemap, f.i.:
> 
> 
>         <map:generate src="{$distantDirectory}/myXmlFile.xml" 
> type="file"/>
> 
> Thanks for your help!
> --
> View this message in context: 
> http://www.nabble.com/Sitemap-point-to-extern-directory-tp1762
> 1774p17621774.html
> Sent from the Cocoon - Users mailing list archive at Nabble.com.
> 

Hello Jantje,

You can use the GlobalInputModule [1] for this.

[1] http://cocoon.apache.org/2.1/userdocs/concepts/modules-ref.html

Regards,

Jasha Joachimsthal 

www.onehippo.com
Amsterdam - Hippo B.V. Oosteinde 11 1017 WT Amsterdam +31(0)20-5224466 
San Francisco - Hippo USA Inc. 101 H Street, suite Q Petaluma CA
94952-3329 +1 (707) 773-4646


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


Mime
View raw message