IMPORTANT:
this is not a Support Forum! Experienced users might answer from time to time questions posted here. If you need a professional and reliable answer, or if you want to report a bug, please contact Altova Support instead.

Support for xsl created from wordml using inference tool Options · View
astir
Posted: Tuesday, May 13, 2008 5:27:34 AM
Rank: Newbie

Joined: 5/13/2008
Posts: 5
Location: India
We are creating word documents (2003) using the wordml approach. Following are the steps carried out,

1• Create an xml file to create the report template

2• Open this xml file in word and apply the formatting for the static part of the document which does not involve any business logic (like adding header, footer, page number etc)

3• Save the xml file after unselecting "Save data only" option

4• Run the inference tool(for word 2003) to convert the xml to xsl file


5• Open the xsl file generated by the inference tool and add all the business logic (like dynamic generation of tables) at appropriate places of the xsl document. This business logic will be used to fetch the data from the xml file (which acts as the data store).

6• Then finally in the C# code the Transform method is applied using the xsl and xml files to get the final report in word 2003. To get the output report in doc format, the extension of the output file is mentioned as doc.


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.

Does xmlspy make the xsl edting easy in the xsl generated by the inference tool?
Users browsing this topic
guest

Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Use of the Altova User Forum(s) is governed by the Altova Terms of Use.