That is what's happening. It uses a custom-bulit engine.
This is how the $storage variable is being created:
<xsl:copy-of select="doc(concat('c:///service/assets/asset/id/', asset/@id, '/version/', asset/@version, '/storage/master/file'))"/>
Is there a better way to do that so that it wouldn't do this?