cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Per Kreipke" <...@onclave.com>
Subject RE: Building a query string with '&'....
Date Wed, 22 Nov 2000 05:02:11 GMT
Robin,

The following complete fragment doesn't work (neither variation).
I get a SAX exception: 
	The reference to entity "QueryText" must end with the ';' delimiter.

<?cocoon-format  type="text/xml"?>
<?cocoon-process type="xsp"?>
<page>
    <include-uri>
        <href>
            <xsp:expr>
            "http://localhost/folders/query-feeds.xml?QueryType=" 
				+ <request:get-parameter name="QueryType" default="freetext"/>
				+ "&QueryText="
				+ <request:get-parameter name="QueryText" default="onclave"/>
				+ "&" + "QueryLog="
				+ <request:get-parameter name="QueryLog" default="0"/>
            </xsp:expr>
        </href>
    </include-uri>
</page>

> "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


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org



Mime
View raw message