From owner-freebsd-doc Mon Jul 6 02:16:25 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id CAA07036 for freebsd-doc-outgoing; Mon, 6 Jul 1998 02:16:25 -0700 (PDT) (envelope-from owner-freebsd-doc@FreeBSD.ORG) Received: from tyree.iii.co.uk (tyree.iii.co.uk [195.89.149.230]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id CAA07031 for ; Mon, 6 Jul 1998 02:16:20 -0700 (PDT) (envelope-from nik@iii.co.uk) From: nik@iii.co.uk Received: from carrig.strand.iii.co.uk (carrig.strand.iii.co.uk [192.168.7.25]) by tyree.iii.co.uk (8.8.8/8.8.8) with ESMTP id KAA04136; Mon, 6 Jul 1998 10:16:14 +0100 (BST) Received: (from nik@localhost) by carrig.strand.iii.co.uk (8.8.8/8.8.7) id KAA28612; Mon, 6 Jul 1998 10:15:57 +0100 (BST) Message-ID: <19980706101556.09566@iii.co.uk> Date: Mon, 6 Jul 1998 10:15:56 +0100 To: Chuck Robey Cc: doc@FreeBSD.ORG Subject: Re: Using stylesheets with SGML (was Re: cvs commit: doc/sgml freebsd.dsl) References: <19980702095135.22477@iii.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.85e In-Reply-To: ; from Chuck Robey on Thu, Jul 02, 1998 at 08:41:25PM -0400 Organization: interactive investor Sender: owner-freebsd-doc@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Thu, Jul 02, 1998 at 08:41:25PM -0400, Chuck Robey wrote: > I realize that I could change the stylesheet, but the goal was to be > able to do it from the single document source sgml file, and not to have > to include a modified stylesheet each time (so that it is like my > present groff documents). I wanted to be able to include some kind of > sgml markup in the base doc, that would send a parameter to the > stylesheet. > > I'm not sure it's possible to go in that direction with the information, > but it would make things extremely more workable. This would be > something I would want to change on a doc by doc basis, and not just > being able to have one personally-modified local stylesheet. I'm trying > to get the functionality I presently have in groff (or that you get via > LaTeX). It's not really possible, since the SGML approach is to keep the content and the formatting apart. One approach is to abuse an attribute of an element. For example, a back end processor might convert something into italic, and something into a bold face. But this doesn't really scale, and (of course) it's up to the back end processor (or DSSSL stylesheet) to know that the 'bf' value of a 'role' attribute means that it should be rendered in a bold face. I welcome corrections from anyone else reading this, but that's my take on the issue. N -- Work: nik@iii.co.uk | FreeBSD + Perl + Apache Rest: nik@nothing-going-on.demon.co.uk | Remind me again why we need Play: nik@freebsd.org | Microsoft? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message