You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by jantje <ja...@skynet.be> on 2008/06/03 13:49:50 UTC
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-tp17621774p17621774.html
Sent from the Cocoon - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Sitemap point to extern directory
Posted by DAVIGNON Andre - CETE NP/DIODé/PANDOC <An...@developpement-durable.gouv.fr>.
Hi
You can use :
<map:pipelines>
<map:component-configurations>
<!-- global-variables is used like a configuration file -->
<global-variables>
<distantDirectory>/home/foo</distantDirectory>
</global-variables>
</map:component-configurations>
...
<map:generate src="{global:distantDirectory}/myXmlFile.xml" type="file"/>
André
Le 03/06/2008 13:49, > jantje (par Internet, dépôt
users-return-95191-andre.davignon=developpement-durable.gouv.fr@cocoon.apache.org)
a écrit :
> 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!
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
RE: Sitemap point to extern directory
Posted by Jasha Joachimsthal <j....@onehippo.com>.
> -----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