Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - Support for xsl created from wordml using inference tool [Thread Next] Re: Support for xsl created from wordml using inference toolTo: NULL Date: 5/28/2008 7:41:00 AM Hi, On 13 Mai, 10:17, Blackjack <terrorblackj...@gmail.com> wrote: > We are creating word documents using the wordml approach. Following > are the steps carried out, > [...] > Step 5 is very difficult in the above approach because the xsl file > generated by the inference tool generates a lot of code and it becomes > very difficult to identify approprite places for writing the business > logic. The maintainability of the code becomes very poor. If you've found an appropriate tool meanwhile, please let me know :) I assume that your static and dynamic parts of the document are changing frequently? 1. No: You could embed them (header, footer, etc..) once manually in your xslt and get a clean, maintainable xslt. Your styles could be swapped to a separated styles.xml Compare to the structure of a .docx file (unzip it). 2. Yes: Think about adding placeholders in your seed-document or manually add them in the generated xslt of the inference tool. Process your data in two steps. a) source.xml =(inference-tool.xsl)=> document.xml (static parts with placeholders for dynamic parts) b) document.doc =(business-logic-xsl)=> final.doc regards, Stefan | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
