Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XSLT
|
XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 6th, 2009, 08:40 AM
Registered User
 
Join Date: Sep 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default XSLT, XML to word

hello,

can you please tell me what code must i write in my xslt file so i can convert it with xml to a windows word 2003 file (using c#)?
 
Old October 6th, 2009, 09:09 AM
joefawcett's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

I presume you mean using Word 2003's XML file representation?
It really depends on what you need. If you just need a few fields inserted into a document then you can create the document in Word, save as XML, and examine it in an XML editor. You can then use either XSLT or DOM to merge the Word XML with your data file.
If you are still struggling then you need to be more specific about the problem.
Be aware that Word 2003's XML structure is very complicated and not easy to process.
__________________
Joe
http://joe.fawcett.name/
 
Old October 6th, 2009, 04:31 PM
mhkay's Avatar
Wrox Author
 
Join Date: Apr 2004
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 Posts
Default

The specification of the XML format for Microsoft Word is thousands of pages long. I'm sorry, I can't give you a summary.

If you really want to do this, then a good way is to generate a sample Word document by hand and examine the structure of the XML, and then reproduce this as the output of your stylesheet. In fact, though, many of the details you see in a document output by Word are optional, and the only way to find out which is to read the specification.
__________________
Michael Kay
http://www.saxonica.com/
Author, XSLT 2.0 and XPath 2.0 Programmer\'s Reference





Similar Threads
Thread Thread Starter Forum Replies Last Post
xslt header/footer for word loukiachr XSLT 2 September 30th, 2009 05:12 PM
Regarding xml-html transformation of an xml string using xslt and javascript suprakash444 XSLT 1 January 12th, 2009 01:23 AM
xml and xsl templates as input to xslt gives xml rameshnarayan XSLT 5 August 3rd, 2005 01:58 AM
XSLT for complicated xml to xml transf. required doug@sirvisetti XSLT 3 June 17th, 2005 04:26 PM
XHTML to Word ML using XSLT debsoft XSLT 0 June 26th, 2004 04:53 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.