From: Tony Collen <[EMAIL PROTECTED]>
Sonny Sukumar wrote:
Is there any way to pass *sitemap* parameters to the "xslt" transformer (TraxTransformer)? I know there's a "use-request-parameters" option to use request parameters, but that's not what I want to do.
I want to at least be able to pass in the request URI (e.g. "requestUri" in "http://www.mysite.com/requestUri?id=12345"), but passing in parameters with names/values of my choosing from the sitemap would be better.
Yes, this is quite easy:
<map:match pattern="*.foo"> <map:generate src="docs/bar.xml"/> <map:transform src="stylesheets/whatever.xsl"> <map:parameter name="uri" value="{1}"/> </map:transform> <map:serialize/> </map:match>
Hey thanks for that simple insight!
You may also want to check out the requestURI input module
Hmm, did you mean {request:requestURI} ? I did a quick Google search and that's all I found. I know some of these input modules were renamed within the past few months.
_________________________________________________________________
Instant message in style with MSN Messenger 6.0. Download it now FREE! http://msnmessenger-download.com
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
