News for hackers. Stuff that matters.
Re:Docbook by bambax on Monday November 04, 2019 @07:39AM (#21441048)
Over 10 years ago I wrote a tool to transform Open Office files (with proper styles applied) to Docbook using XSLT and Schematron. It was fun to do. Now all these techs seem to have almost completely disappeared, which is kind of sad. It was fun.
Re:Docbook by bjoli on Monday November 04, 2019 @10:32AM (#21442531)
I have been waiting for XML to become cool again for the last 15 years. I started writing XML for all my personal blogs and sites back then, and I still use the same markup. It has been fun to see all the static site generators popping up to solve problems that never existed. At least not for old farts like myself that like XSLT.
Re:Docbook by chrisseaton on Monday November 04, 2019 @08:22AM (#21441344)
Did XSL FO ever become used somewhere serious? That seemed an incredibly powerful tool but so complicated and it didn't ever seem to be fully implemented.
Re:Docbook by ivoc on Monday November 04, 2019 @09:16AM (#21441782)
There's AntennaHouse and PrinceXML, but both are pretty pricey ($3-5K / server), and both of these do now support CSS as well.

Apache FOP / Batik is okay for generating nice looking PDFs, but its SVG rasterization is much worse than that of Chrome's PDF renderer (Skia).

As I didn't get the memo about XML being dead, I'm still using Docbook and XSLT/XInclude to structure and filter content written in markdown/rst.

But I will be switching over from XSL-FO to CSS paged media for layout as soon as Chrome supports bookmarks in PDF output, or either WeasyPrint or wkhtmltopdf improve their CSS3 column support.

Re:Docbook by jamespaden on Thursday November 07, 2019 @03:21PM (#21476903)
Biased cause I work there, but DocRaptor offers a saas API version of the Prince library with a much lower usage-based monthly fee.
Re:Docbook by bambax on Tuesday November 05, 2019 @01:13AM (#21450110)
Cocoon used (uses?) Apache FOP to generate PDFs on the fly. You could produce documents from a search with the search terms highlighted inside the PDF... It felt magical. This was in 2001!