wouldn't the aspdnsf function ProductLink do the job?

aspdnsf:ProductLink(ProductID, SEName, IncludeATag, TagInnerText)