Re: [css2xslfo-support] [csstoxslfo] Problem with page-break
Brought to you by:
wdonne
From: Andreas J. <li...@zo...> - 2007-06-29 15:29:20
|
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=C3=A9 <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=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> >> <style type=3D"text/css"> >> >> >> div.sp-page { >> break-after:page; >> } >> >> </style> >> </head> >> <body> >> <div class=3D"main"> >> >> <div class=3D"sp-page">hello world</div> >> <div class=3D"sp-page">hello world</div> >> <div class=3D"sp-page">hello world</div> >> >> </div> >> </body> >> </html> >> >> However css2xslfo 1.4.2 generates this: >> >> .... >> <fo:block margin-left=3D"0pt" margin-right=3D"0pt" >> unicode-bidi=3D"embed">hello world</fo:block> >> <fo:block margin-left=3D"0pt" margin-right=3D"0pt" >> unicode-bidi=3D"embed">hello world</fo:block> >> <fo:block margin-left=3D"0pt" margin-right=3D"0pt" >> unicode-bidi=3D"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=C3=A9 -- 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 --=20 ZOPYX Ltd. & Co. KG - Charlottenstr. 37/1 - 72070 T=C3=BCbingen - Germany Web: www.zopyx.com - Email: in...@zo... - Phone +49 - 7071 - 793376 Registergericht: Amtsgericht Stuttgart, Handelsregister A 381535 Gesch=C3=A4ftsf=C3=BChrer/Gesellschafter: ZOPYX Limited, Birmingham, UK ------------------------------------------------------------------------ E-Publishing, Python, Zope & Plone development, Consulting |