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.
|
|
|
|
|
![]() |
||
XSL FO Table formatting
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
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 |
|
|
![]() |
| Tags |
| table formatting |
| Thread Tools | |
|
|
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 |