Re: [xsl] How to URL encode?

Subject: Re: [xsl] How to URL encode?
From: Brian Dunning <brian@xxxxxxxxxxxxxxxx>
Date: Fri, 22 Apr 2005 16:12:09 -0700
Well, maybe I'm misstating the type of encoding I need. Here's the code again (without any extraneous HTML):

<xsl:variable name="ItemLink" select="concat($MediaPlexURL, Link)"/>
{$ItemLink}

Here's what it outputs (I see that it encoded the ampersands, nice but I need more than just that):

http://cgi.ebay.com/ws/eBayISAPI.dll?ViewItem&amp;item=7151201092&amp; category=47351

Here's what I need it to output (note the : and ?):

http%3A//cgi.ebay.com/ws/eBayISAPI.dll%3FViewItem&amp; item=7151201092&amp;category=47351

What do I need to change?

Current Thread