use xml file to create a word/pdf document

i have a xml doument created using jdom i need to create a word or a pdf document from this fileis there a way to tackle this using java? or what else would you recomend?
[184 byte] By [h1400046a] at [2007-11-26 17:12:50]
# 1

Without knowing any details, I would guess that you have a couple of options;

Parse the xml using SAX or some similar tool and use the data recovered to create the document using an existing API; HWPF for example would allow you to create a simple Word documnet or, if you were much braver, you could use the SWT to 'drive' Word using OLE/COM.

If you are very lucky and the xml document conforms to the format Word has recently begun to recognise, you could just try opening the document in Word using the Desktop class.

As far as I am aware, there is no one tool that will do all of this for you. Of course, you could try using Google of visiting Sourceforge to see if anyone is working on such an application.

Tillermana at 2007-7-8 23:40:43 > top of Java-index,Java Essentials,Java Programming...
# 2

yeh, ill have to look into that.

From my research i have found out it is possible to use xslt to create a web page and xsl-fo to create a pdf document but i dont have any skill with xsl-fo and there is little documentation so i was wondering what my options were

the xml file is designed using the structure: hr-xml and contains infomation about an individual. the plan is to use the xml file to create a cv

h1400046a at 2007-7-8 23:40:43 > top of Java-index,Java Essentials,Java Programming...
# 3
If you have XML, one thing to try is xsl-fo stylesheets and an XSL processor like Apache's FOP.%
duffymoa at 2007-7-8 23:40:43 > top of Java-index,Java Essentials,Java Programming...
# 4
im using tomcat, and would need to be able to create the stylesheet from a jsp page. how this is possible im not sureMessage was edited by: h1400046
h1400046a at 2007-7-8 23:40:43 > top of Java-index,Java Essentials,Java Programming...
# 5
it appears it is possible to embed FOP in tomcat, dont know how tho
h1400046a at 2007-7-8 23:40:43 > top of Java-index,Java Essentials,Java Programming...