> From: Donald Ball [mailto:[EMAIL PROTECTED]]
>
> in a c2 project i'm working on, we're using the request parameter
matcher
> to match values that we then use in the generator's source url:
>
> <map:match pattern="nlm/query">
> <map:match type="request" pattern="author">
> <map:generate
>
src="http://www.ncbi.nlm.nih.gov/entrez/utils/pmqty.fcgi?db=PubMed&m
ode=XM
> L&dispmax=999&term={1}[au]"/>
> <map:serialize/>
> </map:match>
> </map:match>
>
> problem was, the request parameter could contain spaces and other fun
> characters, and the value wasn't being urlencoded. i've attached a
patch
> for the sitemap which adds urlencoding to the subst method, but i
don't
> know that that's appropriate for all cases. can y'all think of
anything
> this would break?
If I'm not mistaken, this will break match like:
<map:generate
src="{1}/{2}?db=PubMed&mode=XML&dispmax=999&term={3}[au]"/>
Where
{1} = http://www.ncbi.nlm.nih.gov
{2} = entrez/utils/pmqty.fcgi
Vadim
> - donald
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]