?
Solved

A simple Question on XSL-FO.(Is it possible to increase the cell or column width dynamically based on the value we kept in that cell?)

Posted on 2003-10-31
4
Medium Priority
?
248 Views
Last Modified: 2013-11-18
Hi,


Is it possible to increase the cellwidth or column width using xsl-fo?
(I want to increase the cell width based upon the text, i kept in that cell?)

Hi,


Is it possible to increase the cellwidth or column width using xsl-fo?

I am trying  to increase the cell width based upon the value i kept in that cell?

<fo:table width="18cm" space-after="0.5cm" space-before="0.5cm">
  <fo:table-column column-width="0.1cm" />
  <fo:table-column column-width="2cm" />
      <fo:table-body>
            <fo:table-row height="0.3cm">
                 <fo:table-cell>
             <fo:block padding-bottom="5pt">
                   //here i will display text dynamically.
                         (at this place i wnt to increase/decreas dynamically the width equal   to content widthy)
                     </fo:block>
      </fo:table-cell>
            </fo:table-row>
       </fo:table-body>
</fo-table>



Thank you very much for your answer.

Eagerly waiting for your replys.

regards
coolguy

0
Comment
Question by:coolguy77
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 

Accepted Solution

by:
maheshmandave earned 200 total points
ID: 9661827
It's not possible to increase cell width. Because we give format using <fo:table-column column-width="0.1cm" />
It is just like HTML <TD>.
I think if u remove the column-width attribute fo will adjust the width accordingly
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

What do responsible coders do? They don't take detrimental shortcuts. They do take reasonable security precautions, create important automation, implement sufficient logging, fix things they break, and care about users.
We live in a world of interfaces like the one in the title picture. VBA also allows to use interfaces which offers a lot of possibilities. This article describes how to use interfaces in VBA and how to work around their bugs.
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

719 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question