RE: [xsl] URL encoding

Subject: RE: [xsl] URL encoding
From: "Michael Kay" <michael.h.kay@xxxxxxxxxxxx>
Date: Mon, 20 May 2002 08:52:15 +0100
> Is there a quick way to encode URLs in XSL? 
> Ex: Convert 
> to 
> 2%3Dfoo2 
There isn't a built-in function to do it, though we're planning to add
one in XPath 2.0.

But more to the point, your encoding is wrong according to RFC 2396.
Special characters such as "/", "?", and ampersand should be %HH-encoded
only when they are used as ordinary characters, not when they are used
with their special meanings.

Michael Kay
Software AG
home: Michael.H.Kay@xxxxxxxxxxxx
work: Michael.Kay@xxxxxxxxxxxxxx 

 XSL-List info and archive:

Current Thread