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
Peter den Haan | peterdenhaan.com | quantum computing specialist, Objectivity Ltd
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?
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