XSL FO Table formatting

This is a discussion on "XSL FO Table formatting" within the Other Programming Languages section. This forum, and the thread "XSL FO Table formatting are both part of the Program Your Website category.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Program Your Website > Other Programming Languages

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Dec 13th, 2006, 07:35
New Member
Join Date: Dec 2006
Location: KL
Age: 37
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
XSL FO Table formatting

Hi!

Help, I think there is a simple solution for this. Can't seem to format this correctly

Thanks alot.

Dave

<fo:table width="100%">
<fo:table-column column-width="proportional-column-width(50)"/>
<fo:table-column column-width="proportional-column-width(25)"/>
<fo:table-column column-width="proportional-column-width(25)"/>
<fo:table-body>
<xsl:for-each select="//DscA | //DscB">
<fo:table-row line-height="13pt">
<fo:table-cell border-width="1pt" border-style="solid">
<fo:block>
<xsl:value-of select="."/>
</fo:block>
</fo:table-cell>
</fo:table-row>
</xsl:for-each>
</fo:table-body>
</fo:table>

Actual XML Data
<DscA>1. Money In Premises</DscA>
<DscA>3,000.00</DscA>
<DscA>0.00</DscA>
<DscA>2. Money In Transit</DscA>
<DscB>3,000.00</DscB>
<DscB>0.00</DscB>
<DscB>3. Others</DscB>
<DscB>10,000.00</DscB>
<DscB>0.00</DscB>

The expected output (3 columns

1. Money In Premises 3,000.00 0.00
2. Money In Transit 3,000.00 0.00
3. Others 10,000.00 0.00

The current output
1. Money In Premises
3,000.00
0.00
2. Money In Transit
3,000.00
0.00
3. Others
10,000.00
0.00
TOTAL
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

Reply

Tags
table formatting

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
XML with CSS Formatting taemurz Web Page Design 11 Jun 23rd, 2007 21:57
Trouble formatting vlink with css! Help! nateyork Web Page Design 6 Feb 18th, 2007 01:09
formatting of text froma a dynamic table in dreamweaver chimp Databases 2 Jan 2nd, 2007 10:09
Formatting not working masonbarge Webforumz Suggestions and Feedback 4 Jun 26th, 2006 14:41
Need to align width of Float table with the table below Vertabase Web Page Design 4 Mar 8th, 2006 21:21


All times are GMT. The time now is 12:30.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42