[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

make an fo:table with XSLT from an xml file

Subject: make an fo:table with XSLT from an xml file
From: Le Déaut Stéphane <stephane.ledeaut@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 6 Jul 2004 16:27:03 +0200
fo table
Hello,

here is a sample of my xml file that I want to convert in pdf by using fop.

<row>
   <cell>
       <para column="1" line="1">Session</para>
   </cell>
   <cell>
       <para column="2" line="1">Name</para>
       <para column="2" line="2">LAP</para>
   </cell>
</row>

the result must be (it is an extract):

...
      <fo:page-sequence master-reference="A4">
        <fo:flow flow-name="xsl-region-body" 
                 font-family="sans-serif" font-size="12pt">
          <fo:table border="solid black">
            <fo:table-header text-align="center" font-weight="bold"
                             background-color="silver">
	      	<fo:table-row border-bottom="solid black">
				<fo:table-cell padding="1mm" border-left="solid black">
		  			<fo:block>Session</fo:block>
				</fo:table-cell>
				<fo:table-cell padding="1mm" border-left="solid black">
		  			<fo:block>Name</fo:block>
				</fo:table-cell>
	      	</fo:table-row>	      	
			<fo:table-row border-bottom="solid black">
				<fo:table-cell padding="1mm" border-left="solid black">
		  			<fo:block></fo:block>
				</fo:table-cell>
				<fo:table-cell padding="1mm" border-left="solid black">
		  			<fo:block>LAP</fo:block>
				</fo:table-cell>
	      	</fo:table-row>
          </fo:table-header>
...


How can I manage this transformation with XSLT ?

I hope my problem is well explained, if not ask me more information.
Thanks in advance.

stephane

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.