Discussion Locked

XML/XSL and URL encoding for links

0 helpful
1 reply
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I have links with spaces in them (which, of course, Netscape hates). How would I feed a path (with spaces) into the xsl template and have it encode the path/url so that Netscape doesn't complain about it? (similar to Server.URLEncode function in ASP)
As it exists now (name has spaces within):

1 reply

by shelleydoll

You can try replacing spaces with the URL encode value %20 before feeding it into the xsl template using JavaScript or some other nonsense. IE and other browsers should be able to interpret it that way as well. Your other option is to change the link in question to be URL encoded from the get go.

This discussion is closed to new replies.