XML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreXML Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here!
  #1  
Old September 8th, 2003, 12:00 PM
D-flyer D-flyer is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2001
Posts: 261 D-flyer User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 6 h 18 m
Reputation Power: 7
xml ->xsl -> fop -> .pdf and i want a table with headings?

Hi there,

I got xml ->xsl -> fop -> .pdf and i want a table with headings?

I got it, but i think it isn't the way to go

PHP Code:
<xsl:template match="/">
    <
fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">

      <
fo:layout-master-set>

        <
fo:simple-page-master master-name="A4"
           
page-width="297mm"  page-height="210mm"
           
margin-top="0.5cm"  margin-bottom="0.5cm"
           
margin-left="0.5cm" margin-right="0.5cm">
          <
fo:region-body/>
        </
fo:simple-page-master>

      </
fo:layout-master-set>

      <
fo:page-sequence master-reference="A4">

        <
fo:flow flow-name="xsl-region-body">
          <
fo:table>
            <
fo:table-column column-width="30mm"/>
            <
fo:table-column column-width="30mm"/>
            <
fo:table-column column-width="30mm"/>
            <
fo:table-body>
              <
fo:table-row>
      <
fo:table-cell border-style="solid" border-width="0.1mm" background-color="#CCBB22">
        <
fo:block>This is 1</fo:block>
      </
fo:table-cell>
      <
fo:table-cell>
        <
fo:block>This is 2</fo:block>
      </
fo:table-cell>
        </
fo:table-row>
              <
xsl:apply-templates select="//ATOM">
                <
xsl:sort data-type="number"
                  
select="ATOMIC_NUMBER"/>
              </
xsl:apply-templates>
            </
fo:table-body>
          </
fo:table>
        </
fo:flow>

      </
fo:page-sequence>

    </
fo:root>
  </
xsl:template>


  <
xsl:template match="ATOM">
     <
fo:table-row>
      <
fo:table-cell>
        <
fo:block><xsl:value-of select="NAME"/></fo:block>
      </
fo:table-cell>
      <
fo:table-cell>
        <
fo:block><xsl:value-of select="SYMBOL"/></fo:block>
      </
fo:table-cell>
    
  

        </
fo:table-row>
  </
xsl:template


Furthermore i would like to represent data in a graphs any tips

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreXML Programming > xml ->xsl -> fop -> .pdf and i want a table with headings?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway