Using XSLT to convert XML to Word

Source: Internet
Author: User
Tags xslt
After reading the relevant information, it is summarized as follows: We need to consider the use of Microsoft's Open XML SDK architecture; Under Microsoft's structure, all Word files are actually a zip file package, where there is a document.xml file that needs to be replaced by the file; The approximate process is: Prepare a Word template file,  There are document.xml files (which can be opened for viewing with WinRAR software); Prepare XML files that need to be converted, such as Demo.xml, and write XSLT files that convert demo.xml files that need to be converted to Document.xml, based on the first two; Then use the Word software to open the Word template file (which has the Word template file renamed: docx-> zip-> docx). Related information: Generate Word documents with Xslt-stefan kapfererusing XSLT and Open XML to Create a Word Document or consider the second way : Use Apache's poi to write Java applications to consider conversions. Apache Poi-case Studies

Using XSLT to convert XML to Word

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.