Unlike a proxy that forwards on the requests, a B2BUA acts as both a useragent server (UAS) and a useragentclient (UAC) to further participate in the SIP transaction.
A third option, rather than using client side XSLT, is to detect the useragent at the server and to provide different content depending on the user agent's capabilities.