Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: [xsl] FO: Write vertically

From: "G. Ken Holman" <gkholman@-------------------->
To:
Date: 11/1/2008 11:56:00 PM
At 2008-11-01 23:33 +0100, Florent Georges wrote:
  I have a table with a lot of small columns (a dozen of columns with
only numbers.)  I would like to write the titles of the column
vertically (because even single words are too large for each column
width.)

  I tried reference-orientation="90", both on the fo:table-cell and its
inner fo:block, but the text is still horizontal within the cell.

reference-orientation isn't supposed to work on table-cell because 
that construct is only used to group content, not to create any areas itself.



reference-orientation isn't supposed to work on block because that 
construct creates a normal area not a reference area.



You need to use a block-container to get what you want:



  <page-sequence master-reference="frame">
    <flow flow-name="frame-body" xmlns="http://www.w3.org/1999/XSL/Format">
      <block>This is a test</block>
      <table>
        <table-body>
          <table-cell><block>Hello</block></table-cell>
          <table-cell>
            <block-container reference-orientation="90">
              <block>Hello</block>
            </block-container>
          </table-cell>
          <table-cell><block>Hello</block></table-cell>
        </table-body>
      </table>
    </flow>
  </page-sequence>

  I use Fop 0.95.  Do I use the wrong property?

I don't have FOP so I cannot answer if it is conformant or not.



I hope this helps.



. . . . . . . . . . . Ken



--
Upcoming XSLT/XSL-FO hands-on courses:      Wellington, NZ 2009-01
Training tools: Comprehensive interactive XSLT/XPath 1.0/2.0 video
Video sample lesson:    http://www.youtube.com/watch?v=PrNjJCh7Ppg
Video course overview:  http://www.youtube.com/watch?v=VTiodiij6gE
G. Ken Holman                 mailto:gkholman@xxxxxxxxxxxxxxxxxxxx
Crane Softwrights Ltd.          http://www.CraneSoftwrights.com/s/
Male Cancer Awareness Nov'07  http://www.CraneSoftwrights.com/s/bc
Legal business disclaimers:  http://www.CraneSoftwrights.com/legal


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent