RE: [css2xslfo-support] [FOP] workarounds for xhtml table ?
Brought to you by:
wdonne
From: Matthias W. <mwe...@pi...> - 2005-06-02 15:16:45
|
Werner,=20 I saw that html2fo (C based) is able to generate a FO that works fine with FOP. their tables need to <colgroup> etc. They are calculating the width and also each <fo:block/> has those attributes. <fo:block line-height=3D"12pt" font-size=3D"10pt" = space-before.optimum=3D"1.5pt" space-after.optimum=3D"1.5pt" = keep-together=3D"always"> keep-allways allows the text to be rendered inside a column of that = table. Can you tell me the java file, where I could add something like that ? ` Or do you know a *patch* for stuff like that? Thanks, Matthias > -----Original Message----- > From: Werner Donn=E9 [mailto:wer...@re...] > Sent: Thursday, June 02, 2005 11:04 AM > To: Matthias Wessendorf > Cc: css...@li... > Subject: Re: [css2xslfo-support] [FOP] workarounds for xhtml table ? >=20 >=20 > Hi Matthias, >=20 > You should add a "col" element to your table with the "width" > attribute set to something. In this case the value I propose > is "1*", which indicates the column will occupy the complete > table. >=20 > Regards, >=20 > Werner. >=20 > Matthias Wessendorf wrote: > > Hi, > >=20 > > I come back to css2xslfo. I have currently the problem,=20 > that I need to generate a PDF that=20 > > contains a xhtml table. > >=20 > > my xhtml is > >=20 > > <?xml version=3D"1.0"?> > > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" > > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> > > <html xmlns=3D"http://www.w3.org/1999/xhtml"> > > <head> > > <title>Foo</title> > > <style type=3D"text/css"> > >=20 > > body, h1, h2, h3, p, div, ol, li, table, thead, tbody, th, tr, td { > > hyphenate: false; > > } > >=20 > >=20 > > </style> > > </head> > > <body> > > =20 > > <table> > > <thead> > > <tr> > > <th>User</th> > > </tr> > > </thead> > > <tbody> > > <tr> > > <td> > > MW > > </td> > > </tr> > > </tbody> > > </table> > >=20 > > </body> > > </html> > >=20 > >=20 > >=20 > >=20 > >=20 > >=20 > >=20 > > I guess it is valid. But the FOP tells me: > >=20 > > [INFO] building formatting object tree > > [INFO] setting up fonts > > [ERROR] property - "text-transform" is not implemented yet. > > [ERROR] property - "text-transform" is not implemented yet. > > [INFO] [1] > > [WARNING] table-layout=3Dauto is not supported, using fixed! > > [WARNING] current implementation of tables requires a=20 > table-column for each column, indicating column-width > > [INFO] Parsing of document complete, stopping renderer > >=20 > >=20 > > and the PDF is blank, no table there :-( > >=20 > > Does anybody know a workaround to output that table using FOP ? > >=20 > > Thanks, > > Matthias > >=20 > >=20 > >=20 > > ------------------------------------------------------- > > This SF.Net email is sponsored by Yahoo. > > Introducing Yahoo! Search Developer Network - Create apps=20 > using Yahoo! > > Search APIs Find out how you can build Yahoo! directly into your own > > Applications - visit=20 http://developer.yahoo.net/?fr___________________________________________= ____ > css2xslfo-support mailing list > css...@li... > https://lists.sourceforge.net/lists/listinfo/css2xslfo-support >=20 >=20 --=20 Werner Donn=E9 -- Re BVBA Engelbeekstraat 8 B-3300 Tienen tel: (+32) 486 425803 e-mail: wer...@re... |