ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* XSL-FO
@ 2001-12-27 17:12 Marco Kuhlmann
  2001-12-27 18:01 ` XSL-FO Berend de Boer
  2001-12-28  9:55 ` XSL-FO Hans Hagen
  0 siblings, 2 replies; 4+ messages in thread
From: Marco Kuhlmann @ 2001-12-27 17:12 UTC (permalink / raw)


    Hi all.

Has anyone any experience with XSL-FO? Is it a standard that is
far enough to be used in preparing print layouts? For example,
does it have the same expressivity as ConTeXt? Would it be
possible and meaningful to implement a ConTeXt backend for
formatting objects? There are programs like passivetex; how
easy would it be to implement something similar in ConTeXt?

Any hints would be appreciated.

    Cheers,
    Marco

-- 
Marco Kuhlmann                             marco.kuhlmann@gmx.net


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: XSL-FO
  2001-12-27 17:12 XSL-FO Marco Kuhlmann
@ 2001-12-27 18:01 ` Berend de Boer
  2001-12-28  9:55 ` XSL-FO Hans Hagen
  1 sibling, 0 replies; 4+ messages in thread
From: Berend de Boer @ 2001-12-27 18:01 UTC (permalink / raw)
  Cc: ConTeXt ML

Marco Kuhlmann <marco.kuhlmann@gmx.net> writes:

> Has anyone any experience with XSL-FO? Is it a standard that is
> far enough to be used in preparing print layouts? For example,
> does it have the same expressivity as ConTeXt? Would it be
> possible and meaningful to implement a ConTeXt backend for
> formatting objects? There are programs like passivetex; how
> easy would it be to implement something similar in ConTeXt?

On the last eurotex Simon Pepping presented a clear overview of
FO. From what I understood, is that FO comes into play after *all* the
formatting/typesetting has been done. For example FO doesn't generate
a table of contents, you have to do that yourself.

You can use FO to make things italice, do some paragraph typesetting
and such, but it doesn't look like TeX. All the macro stuff has to be
done before with XSLT.

-- 
Groetjes,

Berend. (-:


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: XSL-FO
  2001-12-27 17:12 XSL-FO Marco Kuhlmann
  2001-12-27 18:01 ` XSL-FO Berend de Boer
@ 2001-12-28  9:55 ` Hans Hagen
  2001-12-30 12:03   ` XSL-FO Simon Pepping
  1 sibling, 1 reply; 4+ messages in thread
From: Hans Hagen @ 2001-12-28  9:55 UTC (permalink / raw)
  Cc: ConTeXt ML

At 05:12 PM 12/27/2001 +0000, Marco Kuhlmann wrote:
>     Hi all.
>
>Has anyone any experience with XSL-FO? Is it a standard that is
>far enough to be used in preparing print layouts? For example,
>does it have the same expressivity as ConTeXt? Would it be
>possible and meaningful to implement a ConTeXt backend for
>formatting objects? There are programs like passivetex; how
>easy would it be to implement something similar in ConTeXt?
>
>Any hints would be appreciated.

(also see berends reply)

afaik formatting object is like putting boxes together;

xml -> (with xslt) xml-fo -> tex -> pdf

in many cases (esp when dealing with documents) the xml-fo stage is not 
needed at all;

so far i never ran into an fo, but i may some day as part of a doc (i can 
imagine that for instance sub apps spit out fo's); in that case an extended 
version of \framed is probably enough to implement it; when the moment is 
there, i will probably cook up such an extended framed, but it's low on my 
list of priorities [but you may expect much more xml support next year in 
context]

taco may have more to say about this since he's working with fo's

Hans
-------------------------------------------------------------------------
                                   Hans Hagen | PRAGMA ADE | pragma@wxs.nl
                       Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: XSL-FO
  2001-12-28  9:55 ` XSL-FO Hans Hagen
@ 2001-12-30 12:03   ` Simon Pepping
  0 siblings, 0 replies; 4+ messages in thread
From: Simon Pepping @ 2001-12-30 12:03 UTC (permalink / raw)


On Fri, Dec 28, 2001 at 10:55:41AM +0100, Hans Hagen wrote:
> At 05:12 PM 12/27/2001 +0000, Marco Kuhlmann wrote:
> >     Hi all.
> >
> >Has anyone any experience with XSL-FO? Is it a standard that is
> >far enough to be used in preparing print layouts? For example,
> >does it have the same expressivity as ConTeXt? Would it be
> >possible and meaningful to implement a ConTeXt backend for
> >formatting objects? There are programs like passivetex; how
> >easy would it be to implement something similar in ConTeXt?
> >
> >Any hints would be appreciated.
> 
> (also see berends reply)
> 
> afaik formatting object is like putting boxes together;
> 
> xml -> (with xslt) xml-fo -> tex -> pdf
> 
> in many cases (esp when dealing with documents) the xml-fo stage is not 
> needed at all;
> 
> so far i never ran into an fo, but i may some day as part of a doc (i can 
> imagine that for instance sub apps spit out fo's); in that case an extended 
> version of \framed is probably enough to implement it; when the moment is 
> there, i will probably cook up such an extended framed, but it's low on my 
> list of priorities [but you may expect much more xml support next year in 
> context]
> 
> taco may have more to say about this since he's working with fo's

The standard is certainly usable. But I do not think it has the same
expressivity as Context.

In fact it is a bit hard to judge, because it depends on the available
implementations. It is an abstract layout description, consisting of
block areas and inline areas, which are fine tuned with a large array
of properties. Implementations should use this description to produce
an actually formatted document. It is possible that, when one reads
the spec carefully and has a complete implementation, i.e. one that
implements all FOs and properties that the spec provides, a powerful
expressivity results; I just do not know.

Sebastian Rahtz has produced passivetex, which, together with xmltex
as its XML parser, is an implementation. It is not complete. Earlier,
Sebastian has done similar work for SGML and DSSSL, producing
jadetex. Despite the large amount of work, that is also not a complete
implementation. A complete implementation is just huge.

Making an implementation in Context would duplicate
passivetex. Because Context's XML parsing support is under active
development, it might make sense. One should be able to parse a FOT
file, which is an XML file containing only FO elements. Parsing and
using all the properties, together with the default properties, is not
easy. I believe xmltex is not actively maintained, but it is
sufficient to parse a FOT file.

A lot of Sebastian's work concerns the mapping of Unicode to TeX
symbols. Although this is done in terms of LaTeX symbol names, much of
it might be reusable in Context, giving a head start.

I believe passivetex was plagued by the fact that the logical model of
an FO tree is different from TeX's logical model. An FO tree is
strictly hierarchical, which should be translated into a flat
horizontal and vertical list. Perhaps it is better to start from
scratch and write a typesetting engine with the FO view of a document
in mind. That is what is being done by the FOP project,
http://xml.apache.org/fop/index.html, and by some commercial
implementations, e.g. RenderX, http://www.renderx.com, and Antenna
House, http://www.antennahouse.com/. In my article in the EuroTeX2001
proceedings I have described an idea to implement FOs directly in NTS,
not via macros; but I have not done anything in that direction.

For DSSSL, jadetex is by far the most widely used backend, as it is
called there. One might even say that without jadetex DSSSL would not
be a practical option for most of its users. The use of SGML Docbook
in the Open Source community would not have grown as it did without
it. In XML this is not so; the active community is much larger, and
much more work is spent on FO implementations.

See Sebastian and Michel Goossens' article in the TUG2000 Proceedings
for some fine examples of what they have achieved with passivetex.

See also my tutorial at EuroTeX2001,
http://www.ntg.nl/eurotex/presentations/.

-- 
Simon Pepping
email: spepping@scaprea.hobby.nl


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2001-12-30 12:03 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-12-27 17:12 XSL-FO Marco Kuhlmann
2001-12-27 18:01 ` XSL-FO Berend de Boer
2001-12-28  9:55 ` XSL-FO Hans Hagen
2001-12-30 12:03   ` XSL-FO Simon Pepping

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).