From owner-freebsd-doc Thu Jan 2 1:50:21 2003 Delivered-To: freebsd-doc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1CACE37B401 for ; Thu, 2 Jan 2003 01:50:19 -0800 (PST) Received: from crf-consulting.co.uk (pc-80-194-99-19-hy.blueyonder.co.uk [80.194.99.19]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3403F43E4A for ; Thu, 2 Jan 2003 01:50:07 -0800 (PST) (envelope-from nik@crf-consulting.co.uk) Received: from clan.nothing-going-on.org (clan.nothing-going-on.org [192.168.1.20]) by crf-consulting.co.uk (8.12.3/8.12.3) with ESMTP id h029o1aw013744; Thu, 2 Jan 2003 09:50:01 GMT (envelope-from nik@catkin) Received: from clan.nothing-going-on.org (localhost [127.0.0.1]) by clan.nothing-going-on.org (8.12.3/8.12.3) with ESMTP id h029oAxO001901; Thu, 2 Jan 2003 09:50:10 GMT (envelope-from nik@clan.nothing-going-on.org) Received: (from nik@localhost) by clan.nothing-going-on.org (8.12.3/8.12.3/Submit) id h029o9GS001900; Thu, 2 Jan 2003 09:50:09 GMT Date: Thu, 2 Jan 2003 09:50:09 +0000 From: Nik Clayton To: Warren Block Cc: doc@freebsd.org Subject: Re: FDP Future And XSL Message-ID: <20030102095009.GA33071@clan.nothing-going-on.org> References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="sdtB3X0nJg68CQEu" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4i Organization: FreeBSD Project Sender: owner-freebsd-doc@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org --sdtB3X0nJg68CQEu Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Dec 19, 2002 at 09:36:19PM -0700, Warren Block wrote: > Based on some of my web searching, it looks like XSL will be a much > bigger player in the future than DSSSL. Certainly it seems to be much > more active right now. Are the current DSSSL style sheets going to be > around a long time, or is XSL in the works? (Is it worth my time to get > the new XSL-FO book from OReilly if I want to stay compatible with FDP?) Last time I looked (which, granted, was over 6 months ago), the main problem was the lack of decent FOP -> PS / PDF processors. The main contender was PassiveTeX (which is in the ports tree, print/passivetex), but it didn't do that good a job. It was also 2 to 3 times slower than JadeTeX. Things may have changed since then, but I haven't had the chance to go back and look at it in detail. However, some of the early work in this area has been committed. =20 doc/share/xsl/ contains some simple skeleton XSL driver files, and=20 doc.docbook.mk supports a STYLESHEET_TYPE variable, so you can do make FORMATS=3Dhtml STYLESHEET_TYPE=3Dxsl to use the XSL stylesheets (the default is 'STYLESHEET_TYPE=3Ddsssl'). So there's the beginnings of some support for this in the build infrastructure -- you'll need to install ports/textproc/libxslt as well for this to work. This isn't documented in detail yet, mainly because I don't have too clear an idea of exactly what it's all going to look like when it's finished. What this needs is someone with some spare time to work on finishing the proof of concept stylesheets so that HTML, PS, and PDF generation work in a reasonably painless fashion when using XSL -- at least as painless as using the DSSSL sheets[1]. This would be a great project for you (or anyone else reading this) to tackle. As I recall, the stumbling block I hit last time I was doing this was in terms of parameterising the stylesheets. There's only one FreeBSD DSSSL stylesheet (if you ignore the little customisations in the per-language freebsd.dsl files), and this stylesheet uses SGML marked sections to select which bits of the stylesheet are visible (HTML no images, HTML with images, generic HTML, generic print, generic). You can't do this with XSL stylesheets. So I have (uncommitted) files that implement default.xsl, freebsd.xsl, freebsd-fo.xsl, freebsd-html.xsl, and freebsd-html-chunk.xsl. That's probably still not enough. I've put these up at http://people.freebsd.org/~nik/xsl-test/ if anyone wants to use them as the starting point for something better. N [1] Depending on your definition of 'painless', of course. I well=20 remember the frustration of trying to climb the DSSSL learning curve. --=20 FreeBSD: The Power to Serve http://www.freebsd.org/ (__) FreeBSD Documentation Project http://www.freebsd.org/docproj/ \\\'',) \/ \= ^ --- 15B8 3FFC DDB4 34B0 AA5F 94B7 93A8 0764 2C37 E375 --- .\._/= _) --sdtB3X0nJg68CQEu Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE+FAtQk6gHZCw343URAhxxAJ0d01+oXI8BunWXSmI1uGNmMbaZ3gCfVGWU 1rcJo6e8/RUg2Ch1GvJBkvU= =6dB4 -----END PGP SIGNATURE----- --sdtB3X0nJg68CQEu-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message