xsl-list
[Top] [All Lists]

Re: How to URL encode?

2005-04-22 16:12:09
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?


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>