[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] XSL-FO, vertical text in table cell?


Subject: Re: [xsl] XSL-FO, vertical text in table cell?
From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx>
Date: Wed, 12 Jun 2013 08:26:45 -0400

At 2013-06-12 11:12 +0200, Jesper Tverskov wrote:
How easy is it in XSL-FO to make just one word in a table cell from
"bottom-to-top" as is very common in tables made with traditional Word
processors?

I have looked around in the spec, and done some experiments in vain,

I would like to know, if I should just work a little harder, and give
it ago, or if I can forget about it using Apache FOP?

A small example indicating the way to proceed, would be nice.

Create a reference area where you can change the reference orientation:


<?xml version="1.0" encoding="US-ASCII"?><!--juesper.fo-->
<root xmlns="http://www.w3.org/1999/XSL/Format"
      font-family="Times" font-size="20pt">

  <layout-master-set>
    <simple-page-master master-name="frame"
                        page-height="210mm" page-width="297mm"
                        margin-top="1cm" margin-bottom="1cm"
                        margin-left="1cm" margin-right="1cm">
      <region-body region-name="frame-body"/>
    </simple-page-master>
  </layout-master-set>

  <page-sequence master-reference="frame">
    <flow flow-name="frame-body">
      <block>Test:</block>
      <table border="solid 1pt">
        <table-body>
          <table-cell>
            <block-container reference-orientation="90">
              <block>Hello</block>
            </block-container>
          </table-cell>
          <table-cell>
            <block>World</block>
          </table-cell>
        </table-body>
      </table>
    </flow>
  </page-sequence>
</root>

I hope this helps.

. . . . . . . . Ken

--
Contact us for world-wide XML consulting and instructor-led training |
Free 5-hour lecture: http://www.CraneSoftwrights.com/links/udemy.htm |
Crane Softwrights Ltd.            http://www.CraneSoftwrights.com/s/ |
G. Ken Holman                   mailto:gkholman@xxxxxxxxxxxxxxxxxxxx |
Google+ profile: https://plus.google.com/116832879756988317389/about |
Legal business disclaimers:    http://www.CraneSoftwrights.com/legal |


Current Thread
Keywords
xml