W3C home > Mailing lists > Public > public-xml-processing-model-comments@w3.org > February 2009

p:www-form-urldecode - decoding of parameter names and values

From: <Toman_Vojtech@emc.com>
Date: Tue, 10 Feb 2009 08:57:48 -0500
Message-ID: <6E216CCE0679B5489A61125D0EFEC7870E7E18E9@CORPUSMX10A.corp.emc.com>
To: <public-xml-processing-model-comments@w3.org>

Hi all,

In the test www-form-urldecode-001.xml, we do the following:

<p:www-form-urldecode value="p3=three&amp;p2=two&amp;p1=one%26zero"/>

What is the correct result?

<c:param-set xmlns:c="http://www.w3.org/ns/xproc-step">
   <c:param name="p3" value="three"/>
   <c:param name="p2" value="two"/>
   <c:param name="p1" value="one&amp;zero"/>
</c:param-set>

Or:

<c:param-set xmlns:c="http://www.w3.org/ns/xproc-step">
   <c:param name="p3" value="three"/>
   <c:param name="p2" value="two"/>
   <c:param name="p1" value="one%26zero"/>
</c:param-set>

When I introduced the "one%26zero" bit in the test, I expected it to
return "one&amp;zero" for p1. But later, Norm changed the expected
output to: "one%26zero".

Which is correct? In my opinion, '%26' should be decoded - otherwise, I
don't see the point of having p:www-urldecode at all. Also, there would
be no functionality in XProc to turn strings like %41%42%43 into proper
string values...

What do you think?

Regards,
Vojtech
Received on Tuesday, 10 February 2009 13:58:41 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 10 February 2009 13:58:41 GMT