Re: [css2xslfo-support] [csstoxslfo] Problem with page-break
Brought to you by:
wdonne
From: <wer...@re...> - 2007-06-29 14:52:16
|
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... |