Thanks Lee, I appreciate you having a look. I have got this to work but I loose the table headers and can't see how to get them back automatically ? Did your headers stay ?
Thank you
Search the XSL Script for the template responsible for "/udt:UserDefinedTable", add a header row directly after the < table > tag