-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Andy,
On 5/16/12 12:36 PM, Andy Stevens wrote:
> Hi Bob,
>
> Assuming you have the request input module in your cocoon.xconf,
> then you can pass the context path into an xsl:param (or otherwise
> use in the sitemap) with e.g. <map:transform
> src="mytransform.xslt"> <map:parameter="xslParamName"
> ="{request:contextPath}"/> </map:transform>
+1
IMO this is the right way to do things.
If you want a completely, fully-absolute URL, you might want to:
<map:parameter name="requestScheme" value="{request:scheme}" />
<map:parameter name="requestServerName" value="{request:serverName}" />
<map:parameter name="requestServerPort" value="{request:serverPort}" />
<map:parameter name="context-path" value="{request:contextPath}" />
<map:parameter name="request-uri" value="{request:requestURI}" />
<map:parameter name="query-string" value="{request:queryString}" />
We have a bunch of XSL templates that produce XHTML and need to
provide references back to themselves in certain circumstances. So, we
pass everything and the template can build as much of the URL as it
chooses in a case-by-case basis.
- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAk+1IRUACgkQ9CaO5/Lv0PCCZQCgqewzX0xNnTU4rPzeccS2tadN
AwYAn3xRtJ2ZpXOHU8tg2IJLD1BAq87m
=9G3l
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]