This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I am writing an XSL file which will read data from raw xml file and application does transformation and actually generates a (X)HTML output in the browser with MSWord session in the browser.
In our application we have an option to either get the ouput in original XHTML, HTML or MSWord.
When I select MSWord, it generates the output in browser with MSword interface so that endusers can edit the report.
But this report when generated have "Potrait" orientation selected by default. This chops my report and end-users has to change it to "Landscape" and then report looks fine.
I dont know whether we can add some parameters in xslt template so it renders output in landscape.
There are two steps in the basic process of writing an XSL transformation:
1. Decide what output you want to generate.
2. Write code which generates that output.
So in your case you would have to decide what it is in the output which would set the orientation to Landscape. Perhaps you could look at an actual example which had the orientation set that way, for example. Then fix your XSLT code to generate that.