Changing xml content when converting it to HTML via xslt
===

I need to transform a XML file to HTML format via XSLT and java. One of the tags contains the link of intranet page like:

 <internalPageLink>http://mycompany.com&amp;mypage=xyz&amp;version=999</internalPageLink>

 now I want to use this value in href attribute in generated html.

Before using this value I want to get rid of "amp;" and change the url like appending it with username.

Can I do it via some XSLT function or I have to replace it in java code ?
 