Aspose.Words XML with XLST file

Hi,

Is it possible, like it is in aspose.pdf, to create a document using a XML file(s) and a XLST file?

Thanks

Yes, you can create either WordML or XHTML file from your xml using XSLT. Documents in both formats can be loaded into Aspose.Words.

Please let me know if it answers your question.

Best regards,

yes, this does answer my issue, but can you provide an example of how I can do this, or give me a URL to where an example already existst.

Thanks

We don’t have such examples on our site but there are plenty of those on internet. Just google for WordML XSLT. Here are some examples that popped up after I have done the search:

http://www.tkachenko.com/blog/archives/000024.html

Hope this helps,

Helps to an extent, but doesn’t tell me how I do this using the Aspose.Words API.

Please can you produce an example so I can do this? We own an Aspose.Total license, so if you need me to provide details of this first, please let me know.

to be clear, I am not “LOADING” douments.

I want to create new documents form stratch, using XLST, and XML.?

The answer is that you don’t need Aspose.Words to create WordML documents from custom XML using XSLT. Aspose.Words will not help you with this. But it will help if you want to convert the WordML documents you produce with XSLT into other formats, like DOC, RTF or HTML.

Hi,

I have exactly the same requirement but it isn’t clear from the answer whether Aspose.Words can achieve it.

Can Aspose.Words open an XML document that has been transformed using an XSL file? I have approximately 100 XML documents that are created on a server everyday and need to be able to transform them via an XSL file and then save the output as WordML.

If Aspose.Words will do this please let us have the lines of code to open an XML file, transform it using an XSL file and then load it into Aspose.Words.

Thanks

Tim Metcalfe

Aspose.Words can open, manipuulate and save files in WordML but it won’t assist you in transforming some proprietory XML to WordML.

If you have data files in some proprietory XML format you can transform them to WordML using classes from .NET System.Xml.Xsl namespace. But that is up to you to code the necessary XSL transformations that will fit your application. It is a programming job requiring a considerable time and effort.