• 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

Rotate text 90 degrees

 
Ranch Hand
Posts: 152
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
no misconception, please reread the question
frank
 
Sheriff
Posts: 7001
6
Eclipse IDE Python C++ Debian Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
It's just a flesh wound! Or a tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic