RE: XHTML -- FO
The stylesheet tries to convert XSL FO data into HTML+CSS1. CSS2 support is still rare among browsers, and hardly can be relyed upon. Even with CSS1, there are many discrepancies between MS Internet Explorer and Netscape Communicator. However, one can hardly do this task without using any stylesheet capabilities at all; so CSS1 seemed to be a common denominator. It goes without saying that XSL FOs are much more powerful than HTML+CSS1; moreover, since paged media are organized differently from scrollable media, absolute similarity is not achievable. Therefore, the conversion aims mostly at giving the user a possibility to browse FO files, without pretending to preserve all formatting subtleties predisposed for quality printing. The task is also simplified by common vocabulary shared by XSL FO and CSS. With this premises, the problem can be solved by amazingly simple means: a 30 kb stylesheet does the bulk of the work. Certainly, not everything can be achieved easily: for instance, calculating the inheritance propagation along the FO tree is a really tough task, as well as parsing CSS2 shorthands in XSLT. We didn't even attempted to tackle this: in our opinion, this is more easily achieved by a preprocessor. RenderX has such a preprocessor built into XEP; redirecting its output into a file gives us a canonical XSL FO document - with all shorthands expanded, inheritance propagated, length units normalized etc. However, if your XSL FO documents don't make use of shorthands, multiple columns, absolutely positioned blocks and similar advanced features, the results of the conversion can be very close to the truth even without preprocessing, like in the examples given above. This requires special care while writing XSL FO stylesheets; but our experience shows it is relatively easy. Afshartous, Nick [EMAIL PROTECTED]To: '[EMAIL PROTECTED]' tcorp.com[EMAIL PROTECTED] cc: 02/26/03 01:01 AM Subject: RE: XHTML -- FO Please respond to fop-user This is AntennaHouse's version, haven't used it very much but I think it works. Needs an internet connection while processing (at least with FOP), probably for the XHTML namespace... Thanks, I've been using the AntennaHouse version but it doesn't translate tables in a way that satisifes FOP. Just thought someone may have already solved this ? Nick -Original Message- From: Santtu Pajukanta [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 2:21 PM To: [EMAIL PROTECTED] Subject: Re: XHTML -- FO Afshartous, Nick wrote: Hi, I've seen discussion on the topic in the archives, but no postings of stylesheets that are compatible with FOP. Could someone please post a stylesheet that does XHTML -- FO where the output is compatible with FOP (i.e. tables work). Thanks. -- Nick --InterScan_NT_MIME_Boundary-- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: XHTML -- FO
Title: RE: XHTML -- FO Hi, I've seen discussion on the topic in the archives, but no postings of stylesheets that are compatible with FOP. Could someone please post a stylesheet that does XHTML -- FO where the output is compatible with FOP (i.e. tables work). Thanks. -- Nick
Re: XHTML -- FO
Afshartous, Nick wrote: Hi, I've seen discussion on the topic in the archives, but no postings of stylesheets that are compatible with FOP. Could someone please post a stylesheet that does XHTML -- FO where the output is compatible with FOP (i.e. tables work). Thanks. -- Nick This is AntennaHouse's version, haven't used it very much but I think it works. Needs an internet connection while processing (at least with FOP), probably for the XHTML namespace... -- -- Santtu Japsu Pajukanta -- [EMAIL PROTECTED] -- ICQ#: 115011651 Any job worth doing with a laser is worth doing with many, many lasers, -Khrima in ADVENTURERS! the comic by Mark Shallow ?xml version=1.0 encoding=utf-8? xsl:stylesheet version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform; xmlns:fo=http://www.w3.org/1999/XSL/Format; xmlns:html=http://www.w3.org/1999/xhtml; xsl:output method=xml version=1.0 encoding=utf-8 indent=no/ !--== Parameters ===-- !-- page size -- xsl:param name=page-widthauto/xsl:param xsl:param name=page-heightauto/xsl:param xsl:param name=page-margin-top1in/xsl:param xsl:param name=page-margin-bottom1in/xsl:param xsl:param name=page-margin-left1in/xsl:param xsl:param name=page-margin-right1in/xsl:param !-- page header and footer -- xsl:param name=page-header-margin0.5in/xsl:param xsl:param name=page-footer-margin0.5in/xsl:param xsl:param name=title-print-in-headertrue/xsl:param xsl:param name=page-number-print-in-footertrue/xsl:param !-- multi column -- xsl:param name=column-count1/xsl:param xsl:param name=column-gap12pt/xsl:param !-- writing-mode: lr-tb | rl-tb | tb-rl -- xsl:param name=writing-modelr-tb/xsl:param !-- text-align: justify | start -- xsl:param name=text-alignstart/xsl:param !-- hyphenate: true | false -- xsl:param name=hyphenatefalse/xsl:param !--== Attribute Sets ===-- !--=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Root =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-- xsl:attribute-set name=root xsl:attribute name=writing-modexsl:value-of select=$writing-mode//xsl:attribute xsl:attribute name=hyphenatexsl:value-of select=$hyphenate//xsl:attribute xsl:attribute name=text-alignxsl:value-of select=$text-align//xsl:attribute !-- specified on fo:root to change the properties' initial values -- /xsl:attribute-set xsl:attribute-set name=page xsl:attribute name=page-widthxsl:value-of select=$page-width//xsl:attribute xsl:attribute name=page-heightxsl:value-of select=$page-height//xsl:attribute !-- specified on fo:simple-page-master -- /xsl:attribute-set xsl:attribute-set name=body !-- specified on fo:flow's only child fo:block -- /xsl:attribute-set xsl:attribute-set name=page-header !-- specified on (page-header)fo:static-content's only child fo:block -- xsl:attribute name=font-sizesmall/xsl:attribute xsl:attribute name=text-aligncenter/xsl:attribute /xsl:attribute-set xsl:attribute-set name=page-footer !-- specified on (page-footer)fo:static-content's only child fo:block -- xsl:attribute name=font-sizesmall/xsl:attribute xsl:attribute name=text-aligncenter/xsl:attribute /xsl:attribute-set !--=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Block-level =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-- xsl:attribute-set name=h1 xsl:attribute name=font-size2em/xsl:attribute xsl:attribute name=font-weightbold/xsl:attribute xsl:attribute name=space-before0.67em/xsl:attribute xsl:attribute name=space-after0.67em/xsl:attribute xsl:attribute name=keep-with-next.within-columnalways/xsl:attribute xsl:attribute name=keep-together.within-columnalways/xsl:attribute /xsl:attribute-set xsl:attribute-set name=h2 xsl:attribute name=font-size1.5em/xsl:attribute xsl:attribute name=font-weightbold/xsl:attribute xsl:attribute name=space-before0.83em/xsl:attribute xsl:attribute name=space-after0.83em/xsl:attribute xsl:attribute name=keep-with-next.within-columnalways/xsl:attribute xsl:attribute name=keep-together.within-columnalways/xsl:attribute /xsl:attribute-set xsl:attribute-set name=h3 xsl:attribute name=font-size1.17em/xsl:attribute xsl:attribute name=font-weightbold/xsl:attribute xsl:attribute name=space-before1em/xsl:attribute xsl:attribute name=space-after1em/xsl:attribute xsl:attribute name=keep-with-next.within-columnalways/xsl:attribute xsl:attribute name=keep-together.within-columnalways/xsl:attribute /xsl:attribute-set xsl:attribute-set name=h4 xsl:attribute
RE: XHTML -- FO
Title: RE: XHTML -- FO This is AntennaHouse's version, haven't used it very much but I think it works. Needs an internet connection while processing (at least with FOP), probably for the XHTML namespace... Thanks, I've been using the AntennaHouse version but it doesn't translate tables in a way that satisifes FOP. Just thought someone may have already solved this ? Nick -Original Message- From: Santtu Pajukanta [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 25, 2003 2:21 PM To: [EMAIL PROTECTED] Subject: Re: XHTML -- FO Afshartous, Nick wrote: Hi, I've seen discussion on the topic in the archives, but no postings of stylesheets that are compatible with FOP. Could someone please post a stylesheet that does XHTML -- FO where the output is compatible with FOP (i.e. tables work). Thanks. -- Nick