cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Luca Morandini <lmorand...@ieee.org>
Subject Re: C.2.2 Properties in the sitemap
Date Mon, 02 Jun 2008 20:01:43 GMT
Robin Wyles wrote:
> 
> Is it possible to use configuration properties defined in 
> /META-INF/cocoon/properties within a sitemap? 

Yes.


> Is there an input module 
> that does this, or can the new expression language block be used?

No input modules needed for this. It would be fine to use expressions 
across the board (from JXTemplates to sitemaps) but this has not yet 
been implemented.

Here's sample properties file and sitemap fragments:

mapserver.wms-path=/geoserver/wms
mapserver.wfs-path=/geoserver/wfs
mapserver.map-format=image/png
mapserver.cache.expiry-time=3600
mapserver.map-transparent=false
mapserver.map-bgcolor=0xffffff
app.mapserver2appserver=localhost:8080
app.appserver2mapserver=localhost:8080
app.path=/geoid-samples

<map:reader name="wmsmcsld" 
src="org.cocoondev.geoid.reading.WMSSLDReader" logger="geoid"
         mime-type="${mapserver.map-format}" path="${mapserver.wms-path}"
         server="${app.appserver2mapserver}" 
sld-path="http://${app.mapserver2appserver}${app.path}/"
 
wfs-path="http://${app.appserver2mapserver}${mapserver.wfs-path}" 
version="1.0.0"
         expires-seconds="${mapserver.cache.expiry-time}"/>

Regards,

--------------------
    Luca Morandini
www.lucamorandini.it
--------------------


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


Mime
View raw message