<map:parameter name="use-request-parameters" value="true"/>
in your main sitemap writing :
<map:transformers default="xslt">
<!-- NOTE: This is the default XSLT processor. -->
<map:transformer logger="sitemap.transformer.xslt" name="xslt"
pool-grow="2" pool-max="32" pool-min="8"
src="org.apache.cocoon.transformation.TraxTransformer">
<use-request-parameters>true</use-request-parameters>
<use-session-parameters>true</use-session-parameters>
<use-cookie-parameters>true</use-cookie-parameters> --> HERE
<xslt-processor-role>xalan</xslt-processor-role>
</map:transformer>This sample comes from cocoon 2.1.
Lionel
At 16:03 01/10/2003 -0500, you wrote:
In your sitemap.xmap file, you'll want the following for your transformer:
<map:transform src="WEB-INF/stylesheets/myXSLfile.xsl" > <map:parameter name="use-request-parameters" value="true"/> </map:transform>
Then, in the XSL file itself, you'll want to add the following after the xsl:stylesheet tag.
<xsl:param name="id"/>
Then, where you want to add to the URL you would have something like /myURL?id=<xsl:value-of select="$appID"/>
Because you are using request parameters in the transformer, any caching that you may be taking advantage of, won't work exactly as it did before. For more on this see the following link:
<http://cocoon.apache.org/2.1/userdocs/concepts/caching.html>http://cocoon.apache.org/2.1/userdocs/concepts/caching.html
Hope this helps.
-----Original Message----- From: Diodato, Anthony [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 01, 2003 3:07 PM To: '[EMAIL PROTECTED]' Subject: XSL and Reading the Request
Hi all, Im using Cocoon 2.1 and JRun 3.1
My question is, how can I read the request parameters from an XSL Stylesheet.
For example.
In my XSL, I want to create a dynamic link. (<http://www.test.com/id=10>http://www.test.com/id=10)
But the id parameter is being passed to the xml file that is using the xsl stylesheet.
My problem is that I cant make any changes to this one xml file, so Im trying to put all of the logic in the stylesheet.
Is this possible??
Thanks Tony
This e-mail and any accompanying attachments are confidential. The information is intended solely for the use of the individual to whom it is addressed. Any review, disclosure, copying, distribution, or use of this e-mail communication by others is strictly prohibited. If you are not the intended recipient, please notify us immediately by returning this message to the sender and delete all copies. Thank you for your cooperation.
Lionel CRINE Ing�nieur Syst�mes documentaires Soci�t� : 4DConcept 22 rue Etienne de Jouy 78353 JOUY EN JOSAS Tel : 01.34.58.70.70 Fax : 01.39.58.70.70
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
