cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Luca Morandini <>
Subject Re: Readable URLs
Date Sat, 03 May 2003 15:39:26 GMT
Matthias Brunner wrote:
> Hello,
> is there a way to make URLs more readable?
> For example, instead of 
> "http://server/cocoon/db/speeches?id=32&release_id=232" I would like 
> to have something like 
> "http://server/cocoon/db/speeches_2003-04-07.pdf". This has the 
> advantage that the user is presented with a reasonable filename when 
> he tries to save the file locally.
> I could imagine that there are some sitemap directives to convert 
> portions of the filename to request parameters. Is this possible?

not in my knowledge.
The good news is that, IMHO, you don't need them: converting URI 
portions to sitemap variables and passing them along your pipeline 
should be enough, something like:

<map:match name="wildcard" pattern="sp-*.xml">
    	<map:generate src="documents/sp/{1}.xml"/>
	<map:transform src="stylesheets/general/gp.xsl"/>
     	<map:serialize type="xml"/>


                Luca Morandini
                GIS Consultant

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message