Thanks, I'm not sure the best way to integrate with wordpress but what's basically happening here is...

  1. Site is published from Xara to a templates folder in the cms
  2. The cms automatically makes changes to the code on these pages, adding some dynamic code and updates script/img links from relative to absolute so the template pages can be used from any url on the site
  3. When creating a page or category in the cms you can then select one of these template pages to display the content for that particular page