• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Setting Orientation to "Landscape" in the XSLT for getting XHTML report output

 
abhishek raii
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

Please advise and guide.
 
Paul Clapham
Sheriff
Posts: 21152
32
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi abhishek, welcome to the Ranch!

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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic