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

RE: how i can use 'table' in fo in differt way ?

Subject: RE: how i can use 'table' in fo in differt way ?
From: Roberta Granata <robgranata@xxxxxxxxxxx>
Date: Mon, 19 Apr 2004 09:26:37 +0100 (BST)
roberta granata
I change my xslt code with the new instructions and 
it works good:

Thanks for the answers and the help,
Roberta



--- "Andreas L. Delmelle" <a_l.delmelle@xxxxxxxxxx>
wrote: > > -----Original Message-----
> > From: Roberta Granata
> [mailto:robgranata@xxxxxxxxxxx]
> >
> 
> Hi,
> 
> > i write a tool to convert a xml document in PDF
> using
> > fo.
> >
> > The problem is that when a use a 'table' in the
> xsl
> > file , it forces me to indicate how many columns i
> > need to use and the width.
> >
> 
> Strictly speaking, that is not true. The XSL-FO spec
> leaves room for
> something as 'auto table-layout'. The real problem
> is that it's not exactly
> a cake-walk to implement (--and Apache FOP, for
> instance, doesn't)
> 
> In any case, to achieve the result you describe:
> 
> Say your table has two columns, then the cell
> containing the Chapter names
> should have number-columns-spanned="2"
> 
> Example code (XSLT)
> 
> <xsl:template match="ChapterHead">
>   <fo:table-row>
>     <fo:table-cell number-columns-spanned="2">
>       <!-- content -->
>     </fo:table-cell>
>   </fo:table-row>
> </xsl:template>
> 
> <xsl:template match="ChapterLine">
>   <fo:table-row>
>     <fo:table-cell>
>       <!-- content -->
>     </fo:table-cell>
>     <fo:table-cell>
>       <!-- content -->
>     </fo:table-cell>
>   </fo:table-row>
> </xsl:template>
> 
> 
> Hope this helps!
> 
> Cheers,
> 
> Andreas
>  


	
	
		
____________________________________________________________
Yahoo! Messenger - Communicate instantly..."Ping" 
your friends today! Download Messenger Now 
http://uk.messenger.yahoo.com/download/index.html

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.