Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 6 Jul 1998 10:15:56 +0100
From:      nik@iii.co.uk
To:        Chuck Robey <chuckr@glue.umd.edu>
Cc:        doc@FreeBSD.ORG
Subject:   Re: Using stylesheets with SGML (was Re: cvs commit: doc/sgml freebsd.dsl)
Message-ID:  <19980706101556.09566@iii.co.uk>
In-Reply-To: <Pine.BSF.3.96.980702203622.303N-100000@localhost>; from Chuck Robey on Thu, Jul 02, 1998 at 08:41:25PM -0400
References:  <19980702095135.22477@iii.co.uk> <Pine.BSF.3.96.980702203622.303N-100000@localhost>

next in thread | previous in thread | raw e-mail | index | archive | help
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

    <emphasis>something</>

into italic, and 

    <emphasis role="bf">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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19980706101556.09566>