Re: [css2xslfo-support] [csstoxslfo] Problem with page-break
Brought to you by:
wdonne
From: <wer...@re...> - 2007-06-29 17:38:00
|
Hi Andreas, Making the filtering optional would render the tool non-compliant again. However, I can introduce a post-processing filter for Xinc like there is one for the old FOP already. In there, the conversion could be made. This conversion should then also be added to the old FOP post-processor, because it doesn't implement the property either. This is consistent with the fact that Xinc is based on the old FOP. Regards, Werner. Andreas Jung wrote: > Thanks for the reply Werner. This explains it. However some FO converters > like XINC don't implement page-break-after but only break-after. Any > chance to make this filtering optional? Not a big deal since I have already > a XSLFO post-processing step where I could converter page-break-after back > into break-after. > > Andreas > > --On 29. Juni 2007 16:51:36 +0200 Werner Donné <wer...@re...> wrote: > >> Hi Andreas, >> >> This is a feature. Since version 1.4.1 there is a filter in CSSToXSLFO >> which discards invalid CSS properties. The CSS specification prescribes >> that such properties should be ignored. Before, they all ended up in >> the generated XSL-FO document. The break-after property is valid in >> XSL-FO, but not in CSS, which is why it is blocked. In this case the >> page-break-after property should be used instead. >> >> Best regards, >> >> Werner. >> >> Andreas Jung wrote: >>> I have the following test HTML file where each DIV should start >>> on a new page (break-after: page). >>> >>> >>> <?xml version="1.0" ?> >>> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" >>> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> >>> <html xmlns="http://www.w3.org/1999/xhtml" > >>> <head> >>> <style type="text/css"> >>> >>> >>> div.sp-page { >>> break-after:page; >>> } >>> >>> </style> >>> </head> >>> <body> >>> <div class="main"> >>> >>> <div class="sp-page">hello world</div> >>> <div class="sp-page">hello world</div> >>> <div class="sp-page">hello world</div> >>> >>> </div> >>> </body> >>> </html> >>> >>> However css2xslfo 1.4.2 generates this: >>> >>> .... >>> <fo:block margin-left="0pt" margin-right="0pt" >>> unicode-bidi="embed">hello world</fo:block> >>> <fo:block margin-left="0pt" margin-right="0pt" >>> unicode-bidi="embed">hello world</fo:block> >>> <fo:block margin-left="0pt" margin-right="0pt" >>> unicode-bidi="embed">hello world</fo:block> >>> >>> ... >>> >>> where the break-after attibute isn't passed through. Bug or Feature? >>> >>> Thanks in advance, >>> Andreas >>> >>> >>> ------------------------------------------------------------------------ >>> >>> ------------------------------------------------------------------------- >>> >>> This SF.net email is sponsored by DB2 Express >>> Download DB2 Express C - the FREE version of DB2 express and take >>> control of your XML. No limits. Just data. Click to get it now. >>> http://sourceforge.net/powerbar/db2/ >>> >>> >>> ------------------------------------------------------------------------ >>> >>> _______________________________________________ >>> css2xslfo-support mailing list >>> css...@li... >>> https://lists.sourceforge.net/lists/listinfo/css2xslfo-support >> >> -- >> Werner Donné -- Re >> Engelbeekstraat 8 >> B-3300 Tienen >> tel: (+32) 486 425803 e-mail: wer...@re... >> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by DB2 Express >> Download DB2 Express C - the FREE version of DB2 express and take >> control of your XML. No limits. Just data. Click to get it now. >> http://sourceforge.net/powerbar/db2/ >> _______________________________________________ >> css2xslfo-support mailing list >> css...@li... >> https://lists.sourceforge.net/lists/listinfo/css2xslfo-support > > > -- Werner Donné -- Re Engelbeekstraat 8 B-3300 Tienen tel: (+32) 486 425803 e-mail: wer...@re... |