Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

xsl - MS word

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
is there any way to make an output for MS word for an XML with XSL?
 
Hi Bartc,

Do you mean that you use data from an xml file and apply a stylesheet to it and the output will be a word document??

If so, why use word at all! Just let the xsl output html and display this html in a browser. (it's possible, we've done this for one of our clients).

Good luck!

Jordi Reineman
Cap Gemini Ernst & Young
 
then you'd be stuck with your data in word.
No, you couldn't use xslt to output word, you could output .rtf (rich text file) but that format is poorly documented, although microsoft recently released a specification. probably the best solution(currently) would be to generate xsl-fo from your xml, fo is a pretty ugly format similar to html with a bunch of css-styling rules all through it. the benefit to that would then by that xsl-fo can be used to generate .pdf via RenderX at or fop(downloadable free from apache) and there are some free java-based tools out there to translate fo2rtf, fo2word.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top