cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sonny Sukumar" <>
Subject RE: Pass sitemap params to "xslt" transformer?
Date Sat, 11 Oct 2003 19:55:20 GMT

Ok, I can't get the <map:parameter> value to work in the XSL.  I keep 
getting a ResourceNotFoundException. I even tried hardcoding the 
map:parameter value, but it still doesn't work.  Here's the sitemap 

<map:transform type="xslt" src="mysite/xsl/customerFacingTemplate.xsl">
  <map:parameter name="centerPage"

The XSL is:

<?xml version="1.0"?>

<xsl:stylesheet xmlns:xsl="" 
  <xsl:param name="centerPage" value="home"/>

   <xsl:template match="rp:content[@replace-with]">
    <cinclude:include src="${@replace-with}"/>

  <!-- 1 other template to copy all other tags over -->

The specific error is this:
org.apache.cocoon.ProcessingException: Failed to execute pipeline.: 
java.lang.RuntimeException: org.apache.cocoon.ResourceNotFoundException: 
Resource not found.: org.apache.excalibur.source.SourceNotFoundException: 
file:/usr/local/tomcat/webapps/cocoon/$centerPage doesn't exist

Any ideas??



>From: "Horsfield, Peter A." <>
>	<map:transform type="xslt">
>		<map:parameter name="paramName" value="{1}" />
>	</map:transform>
>Then, in your XSLT file at the top level (under stylesheet)
>	<xsl:param name="paramName" value="defaultvalue" />
>I've had problems using hyphens in parameter names, however.
>-----Original Message-----
>From: Sonny Sukumar []
>Sent: Wednesday, October 08, 2003 3:03 PM
>Subject: Pass sitemap params to "xslt" transformer?
>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
>""), but passing in parameters 
>names/values of my choosing from the sitemap would be better.
>Thanks for the help,
>Add MSN 8 Internet Software to your existing Internet access and enjoy
>patented spam protection and more.  Sign up now!
>To unsubscribe, e-mail:
>For additional commands, e-mail:

Add MSN 8 Internet Software to your existing Internet access and enjoy 
patented spam protection and more.  Sign up now!

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

View raw message