Re: Processing instructions for style tweaks?

James Clark (jjc@jclark.com)
Wed, 30 Nov 1994 10:24:32 +0000


Date: Wed, 30 Nov 1994 10:24:32 +0000
From: jjc@jclark.com (James Clark)
Message-Id: <9411301024.AA07770@jclark.com>
To: connolly@hal.com
Cc: www-html@www0.cern.ch, dsssl-lite@falch.no
In-Reply-To: <9411292338.AA08400@ulua.hal.com> (connolly@hal.com)
Subject: Re: Processing instructions for style tweaks?


> Date: Tue, 29 Nov 1994 17:38:19 -0600
> From: "Daniel W. Connolly" <connolly@hal.com>

> What if we support little bits of DSSSL inside processing instructions,
> ala:
> 
> 	<ul>
> 	<? (space-before: 12pt) >
> 	<li> xlkjdlfkj
> 	<li> ablkjasdf
> 	</ul>
> 
> 	<dl>
> 	<? (font-weight: 'bold font-size: 14pt)> <!-- get the right font -->
> 	<dt>Slug
> 	<dd> explanation
> 	</dl>
> 
> This has the following features:
> 
> 	* It's simple to maintain
> 	* It's independent of the DTD. You could use it in HTML, HTML+,
> 		DocBook, etc.
> 	* The semantics can be defined in terms of DSSSL, a (draft)
> 		international standard with zillions of person-years of
> 		work behind it
> 	  (if a different stylesheet mechanism gets deployed, the same
> 		sort of thing should work. But DSSSL-Lite seems as good
> 		as any right now.)
> 	* It doesn't affect the structure of the document

Why do you prefer a processing instruction to some sort of
architectural form?  For example,

<!element style - - any>
<!attlist style
   DSSSL NAME #FIXED style-long-names -- there might be an alternative
                                         architectural form
					 with shorter (RCS) names --
   font-weight (ultra-light | extra-light | light | semi-light
                | medium | semi-bold | bold | extra-bold | ultra-bold)
                #IMPLIED
   font-size NUTOKEN #IMPLIED
   space-before NUTOKEN #IMPLIED
   space-after NUTOKEN #IMPLIED
   -- and so on --
>

You could easily add this to any DTD as an inclusion, or a DTD
designer could use these forms selectively to give a bit more control.
You could even use LINK to associate these attributes with elements.

James