• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Marshal
Posts: 28193
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic