xsl-list
[Top] [All Lists]

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

2013-06-12 07:27:07
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(_at_)CraneSoftwrights(_dot_)com 
|
Google+ profile: https://plus.google.com/116832879756988317389/about |
Legal business disclaimers:    http://www.CraneSoftwrights.com/legal |


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>