cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robin Green" <gree...@hotmail.com>
Subject Re: Building a query string with '&'....
Date Wed, 22 Nov 2000 00:01:58 GMT
"Per Kreipke" <per@onclave.com> wrote:
>How can you concatenate an & to some text inside an <xsp:expr>?
>
>E.g. I can't get this to work:
>
><xsl:expr>
>"http://localhost/query.xml?QueryType="
>+ <request:get-parameter name="QueryType" default="freetext"/>
>+ "&QueryText="
>+ <request:get-parameter name="QueryText" default="onclave"/>
></xsp:expr>
>
>It can't parse the XML because it thinks &QueryText is the beginning of an
>entity.
>
>This doesn't work either (replacing & with &amp;):
>
><xsl:expr>
>"http://localhost/query.xml?QueryType="
>+ <request:get-parameter name="QueryType" default="freetext"/>
>+ "&amp;QueryText="
>+ <request:get-parameter name="QueryText" default="onclave"/>
></xsp:expr>
>
>The resulting URL is incorrect.

It works for me in <a> and <img> tags. What do you get?



_____________________________________________________________________________________
Get more from the Web.  FREE MSN Explorer download : http://explorer.msn.com


Mime
View raw message