The following chunk of XSL code will call the Java String.replaceAll() method allowing for entire strings to be replaced within another string.
[PHP]
xmlns:xsl="
http://www.w3.org/1999/XSL/Transform"xmlns:string="xalan://java.lang.String">
[/PHP]
This trick allows you to call any public method in a Java object that the run-time environment can find. There is no need for the added overhead of calling an external and having the result put into the Properties being sent in, and it can be performed anywhere within the template.
Now the question - Is there a method within the LiveSite API to return the RequestContext? The RequestContext class has a lot of "fun" stuff that might come in handy during page construction.
The class com.interwoven.livesite.runtime.servlet.RequestUtils has
getRequestContext(javax.servlet.ServletRequest pRequest)
Gets an already initialized RequestContext from a request.
will return a RequestContext but I don't have the ServletRequest.