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
246 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 50 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

In this post we will learn different types of Android Layout and some basics of an Android App.
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
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)
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).
Suggested Courses

636 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