It's certainly possible in InDesign CS2 to save your content out to an XML "snippet" that can then be translated and re-read by the InDesign document, but you'll need to do a
fair amount of ramping up (also
here) before you'll be able to understand the process and come up with your own.