Jasmin,I have it working now, I made a xfaForm variable pointing to the xdp template, then I used the @templateUrl parameter with XPath for the URL of the template.This worked.Now I only need to get the attachments working. Any idea's?Thanks a lot,RonnyR