Hello jfor users,
This might be useful to some of you: I created an XSLT transform
(inherit-attributes.xsl) that can be used to process XSL-FO documents before
converting them with jfor, in order to implement some form of "attributes
inheritance".
This is a known problem in jfor, in the following construct for example the
text is not shown as bold:
<fo:block font-weight="bold">
<fo:inline>Without processing, this will not be bold</fo:inline>
</fo:block>
Transforming the XSL-FO document with inherit-attributes.xsl before
converting with jfor solves the problem - in a dead simple way and without
following the XSL-FO rules of attribute inheritance, but it might be helpful
in many cases.
As inherit-attributes.xsl is still experimental, the best thing is to grab it
directly from CVS at
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/jfor/jfor/samples/
You need only a browser to do this via this web page.
Note that this is not conformant with XSL-FO, rather it is a workaround that
should not be needed anymore once proper attribute inheritance is implemented.
As usual, feedback about this transform is welcome!
--
Bertrand Delacrétaz (codeconsult.ch, jfor.org)
buzzwords: XML, java, XSLT, cocoon, mentoring/teaching/coding.
disclaimer: eternity is very long. mostly towards the end. get ready.
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Gadgets, caffeine, t-shirts, fun stuff.
http://thinkgeek.com/sf
|