cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Luca Morandini <luca.morandi...@tin.it>
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"/>
</map:match>

Regards,

------------------------------------------
                Luca Morandini
                GIS Consultant
               lmorandini@ieee.org
http://space.virgilio.it/kumora/index.html
------------------------------------------



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


Mime
View raw message