cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adam Ratcliffe <>
Subject URL encoding problem
Date Mon, 01 Nov 2004 09:58:55 GMT

I've run into some difficulty with URL encoding some URL parameters using the

The transformer is being invoked but the produced document contains unencoded
URLs.  I've tried using the to explicity encode the URLs in
my stylesheet which works, however Cocoon doesn't appear to understand how to
decode this URL when it receives the request.

The pipline is an internal pipeline invoked from another pipeline by the
CInclude transformer, it looks like this:

      <map:match pattern="categoriesHtml">
	<map:generate type="jx" src="xml/categories.jx">
	  <map:parameter name="cid" value="{request-param:cid}"/>
	<map:transform src="xsl/categories2html.xsl">
	  <map:parameter name="cid" value="{request-param:cid}"/>
	<map:transform type="encodeURL"/>
	<map:serialize type="xml"/>

The URLs are built in the stylesheet in this section:

      <xsl:attribute name="href"><xsl:value-of
select="concat('search.html?class1=', parent/name/text(), '&amp;class2=',
name/text(), '&amp;loctype=', type/text(), '&amp;categories=true', '&amp;cid=',
      <xsl:value-of select="name/text()"/>

Where some of the parameter values contain spaces and/or the ampersand

I'm sure this should be simple, hopefully someone can point out the error of my
ways :)


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

View raw message