[fpc-devel] [patch] - fpcUnit XSLT
idokan at gmail.com
Tue Nov 21 09:24:29 CET 2006
On 11/21/06, Graeme Geldenhuys <graemeg.lists at gmail.com> wrote:
> On 11/21/06, ik <idokan at gmail.com> wrote:
> > What's wrong with the XML standard of FO ? It allows you to generate
> > almost any kind of document (including HTML and PDF) from pure xml
> > data and xslt as template (together with FO template). The benefits
> > are that the CSS styles are properties, so the style itself (when
> > needed) is part of the template rather a whole new section for
> > specific type of document.
> Ok, well to answer you question. I didn't know of XSL-FO. :-)
> I'm a fairly newbie when it comes to XSLT. I just knew what it could
> do, and needed to generate a HTML fpcUnit results page for the tiOPF
> project's daily builds and a summary email. I Google'd XSLT and found
> a few tutorials. fpcunit.xsl is the result of that. :-) The xsl
> file for the summary email is not included in fpcUnit - it's to
> specific to tiOPF.
> As soon as I have some time, I'll read up on the XSL-FO to see if it
> can improve what I have done so far. If you can spot something
> obvious, please let me know.
Few things :)
1. When ever it is written (for example) that for border you need:
border-inner-top, border-inner-left etc... you can do the same with
one command (just like css), although most documents about FO that I
found does not write anything about it.
2. Make sure that the DTD that you are using support the feature you
wish to use, otherwise the result will not be what you are expecting.
3. You will find your writing a bigger text file then "regular" HTML.
But it gives you the power to create many other types of document,
from simple text file, to pdf and RTF documents (and more, depends on
the engine you are using).
Please also write comments inside to know where something begins and
end. It will help you more when the file is all grown and it is almost
impossible to find what effects what.
4. Adobe acrobat is really buggy, so if you use PDF, please use more
then one type of pdf viewer (stand alone that is) to see result of PDF
5. XSLT 1 is really bad, and if you can, work with XSLT 2 :)
That's 5 tips for start :)
> Graeme Geldenhuys
> Location: S 34° 03.168' E018° 49.342'
> There's no place like 127.0.0.1
More information about the fpc-devel