Refactored XSLTs some more.
$assetId parameter now automatically injected into stylesheet if it wasn't provided in apply-stylesheet definition