Using XSLT and XPath 1.0, I have a string I want to escape for use on a URL, for example:
<description>one word & another</description>
So, the text() of the description element should get URL escaped.
How would I do this?
Using C# (XslCompiledTransform) the code would be:
string a = Server.UrlEncode("one word & another");
And would produce:
one+word+%26+another
Any suggestions?
Thanks,
Matt.