[XQZone General] xdmp:get-request-field

Danny Sokolsky dsokolsky at marklogic.com
Tue May 9 14:29:00 PDT 2006


One way to do what Darin suggested from XQuery is to use
xdmp:url-encode.  For example, if you want to put the following on a
request field:

/foo/docs.xml#12345

you can do this when you construct the URL:

xdmp:url-encode("/foo/docs.xml#12345")

-Danny

-----Original Message-----
From: general-bounces at xqzone.marklogic.com
[mailto:general-bounces at xqzone.marklogic.com] On Behalf Of Tim Finney
Sent: Tuesday, May 09, 2006 2:18 PM
To: General XQZone Discussion
Subject: Re: [XQZone General] xdmp:get-request-field


I don't know whether the client sends the fragment identifier. That may
be the cause of the problem. It looks like I will have to follow Darin's
advice.

On Tue, 2006-05-09 at 14:05 -0700, Jason Hunter wrote:
> Tim Finney wrote:
> > I am trying to use xdmp:get-request-field to retrieve a field that 
> > includes a fragment identifier. I would prefer not to have to use 
> > another name value pair. If I encode "#", shouldn't I have to encode

> > "/" as well?
> 
> The xdmp:get-request-field() call provides access to HTTP parameters.
> The # isn't a parameter so isn't returned.
> 
> The xdmp:get-request-path() call would be more appropriate, but it
> doesn't return the fragment identifier either.
> 
> Are you sure the client even sends the fragment identifier to the
> server?  It's a client side concern, not server side.
> 
> -jh-
> _______________________________________________
> General mailing list
> General at xqzone.marklogic.com 
> http://xqzone.com/mailman/listinfo/general

_______________________________________________
General mailing list
General at xqzone.marklogic.com http://xqzone.com/mailman/listinfo/general



More information about the General mailing list