aspose file tools*
The moose likes XML and Related Technologies and the fly likes Setting Orientation to Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Setting Orientation to "Landscape" in the XSLT for getting XHTML report output" Watch "Setting Orientation to "Landscape" in the XSLT for getting XHTML report output" New topic
Author

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

abhishek raii
Greenhorn

Joined: Oct 14, 2013
Posts: 1
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
Bartender

Joined: Oct 14, 2005
Posts: 18152
    
    8

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Setting Orientation to "Landscape" in the XSLT for getting XHTML report output
 
Similar Threads
Page margin and orientation problem
problems in showing images in jsp with contentType= application /msword
Page margin and orientation problem
How can I capture the output of a JSP file and send an email?
Stream SVG using Java