Dave Blake wrote:
I'm constructing a URL in XSL to use as a reference to an external XML fragment in document() call. I need to encode the parameters used in the URL (space to %20 for example). These parameters are pulled in from an XML file which are not URL encoded. I was wondering what the generally used solution to this problem is when using Xalan (XSLTC engine). From what I can tell, Xalan doesn't have a built in encodeURL type function.
I probably miss something here but whats wrong with java.net.URLEncoder? Also, XML-escaping here is probably irrelevant as you probably obtain the params using an XML API that hides how the params are escaped in the XML.
hth, Manos
