[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: the fo:block thing

Subject: Re: the fo:block thing
From: Matts Isuls <matts.isuls@xxxxxxxxxxx>
Date: Tue, 14 Jan 2003 10:02:41 +0200
matts isuls
Thanks!

Hmm it looks very promising that block-container but somehow it only
displays the first word of the text sting and only one line (not two as u
describe). What could the problem be? 

//Matts 

G. Ken Holman  (13.1.2003  14:50):
>At 2003-01-13 12:52 +0200, Matts Isuls wrote:
>>Just started with fo.
>
>Welcome!
>
>>I have this cell in a table. ... The thing is that is always have to use 
>>two lines. How do i do this?
>
>This was important for me when developing stylesheets for use with the 
>Universal Business Language (UBL) documents.  Each field on the form has a 
>prescribed location and size, yet the information in each field varies, so 
>I couldn't rely on the number of lines of text.
>
>I ended up using a block container within the table-cell.  This required me

>to set the block container to a multiple of the number of lines, but 
>remember that the default line-height is implementation dependent, so I had

>to then explicitly set the line-height so that my multiplier worked.
>
>In the example below I have font-size="10pt" line-height="1.1" which means 
>that two lines will take up 22pt, so each cell has <block-container 
>height="22pt"> to force a two-line height.
>
>I hope this helps.
>
>......................... Ken
>
>
><flow flow-name="frame-body" font-family="Times" font-size="10pt" 
>line-height="1.1">
>
>   <block>This is a test</block>
>   <table>
>     <table-column column-width="5cm"/>
>     <table-column column-width="5cm"/>
>     <table-column column-width="5cm"/>
>     <table-body>
>       <table-row>
>         <table-cell>
>           <block-container height="22pt">
>             <block>Short line</block>
>           </block-container>
>         </table-cell>
>         <table-cell>
>           <block-container height="22pt">
>             <block>Short line</block>
>           </block-container>
>         </table-cell>
>         <table-cell>
>           <block-container height="22pt">
>             <block>Short line</block>
>           </block-container>
>         </table-cell>
>       </table-row>
>       <table-row>
>         <table-cell>
>           <block-container height="22pt">
>             <block>A longer line with enough information for two
rows.</block>
>           </block-container>
>         </table-cell>
>         <table-cell>
>           <block-container height="22pt">
>             <block>A longer line with enough information for two
rows.</block>
>           </block-container>
>         </table-cell>
>         <table-cell>
>           <block-container height="22pt">
>             <block>A longer line with enough information for two
rows.</block>
>           </block-container>
>         </table-cell>
>       </table-row>
>       <table-row>
>         <table-cell>
>           <block-container height="22pt">
>             <block>Short line</block>
>           </block-container>
>         </table-cell>
>         <table-cell>
>           <block-container height="22pt">
>             <block>Short line</block>
>           </block-container>
>         </table-cell>
>         <table-cell>
>           <block-container height="22pt">
>             <block>Short line</block>
>           </block-container>
>         </table-cell>
>       </table-row>
>       <table-row>
>         <table-cell>
>           <block-container height="22pt">
>             <block>A longer line with enough information for two
rows.</block>
>           </block-container>
>         </table-cell>
>         <table-cell>
>           <block-container height="22pt">
>             <block>A longer line with enough information for two
rows.</block>
>           </block-container>
>         </table-cell>
>         <table-cell>
>           <block-container height="22pt">
>             <block>A longer line with enough information for two
rows.</block>
>           </block-container>
>         </table-cell>
>       </table-row>
>     </table-body>
>   </table>
>
></flow>
>

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.