• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
  • Knute Snortum
Sheriffs:
  • Liutauras Vilda
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Joe Ess
  • salvin francis
  • fred rosenberger

Rotate text 90 degrees

 
Ranch Hand
Posts: 152
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
Is it possible to rotate some text from an xml file 90 degrees using a stylesheet? if so, how do you do it?
tia
frank
 
author
Posts: 3252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by Frank Daly:
Is it possible to rotate some text from an xml file 90 degrees using a stylesheet? if so, how do you do it?


This question seems to be based on a misconception of what XML is. XML is pure data representation, it has no presentation component (although, to complicate matters, the data could represent presentation information, as in XHTML).
What you can do is use XSLT to transform the XML file to a presentation language such as HTML. Or you use XSL Formatting Objects to transform to PDF, gif and whatnot. If your presentation language allows you to display text 90 degrees rotated, you can use XSL to generate whatever formatting is necessary to achieve that.
- Peter
 
Frank Daly
Ranch Hand
Posts: 152
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
no misconception, please reread the question
frank
 
Sheriff
Posts: 6920
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
OK, to clear up if there is a misconception or not ...
How would you like the output text to be marked up to indicate that it is rotated 90 degrees? If it's as simple as converting something like:
<text angle='0'>hello</text>
to
<text angle='90'>hello</text>
then yes, a stylesheet can do it.
So I reiterate, what is your intended output format? and how will the incoming text be marked up to indicate that which should be rotated?
 
Frank Daly
Ranch Hand
Posts: 152
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks Frank
initially i would like the output to be html. You have now cleared this up for me. However i do at some stage want to output pdf using formatting objects. I'll check this out at http://www.w3.org/TR/xsl/
thanks again
frank
 
Let nothing stop you! Not even this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!