Re: html output

Subject: Re: html output
From: Jany Quintard <quintard.j@xxxxxx>
Date: Mon, 17 Apr 2000 11:26:51 +0200 (CEST)
On Fri, 14 Apr 2000 jandig@xxxxxxxxxxxx wrote:

> How would you change the style specs. in the output?
> (E.g., BGCOLOR, VLINK, etc)
You can do it using the simple method, which is to generate attributes,
for example (for the body element) :
(element xxxx
  (make element gi: "body"
        attributes: (list (list "bgcolor" "#FFFFFF")
                          (list "otheratt" "value")
                          (list ...))
    (process-children)))

I prefer the generation of a link to a css file, which is much "cleaner".    

After this, you have only to generate class attributes matching with the
attributes used in the css. 
One of the advantages is that you can use a richer set of styles and that
they can be logical styles instead of presentational ones.
One drawback is that browsers are not always able to use correctly the css
rules.

Jany.


 DSSSList info and archive:  http://www.mulberrytech.com/dsssl/dssslist


Current Thread
  • html output
    • jandig - Thu, 13 Apr 2000 18:48:33 -0400 (EDT)
      • Jany Quintard - Mon, 17 Apr 2000 05:52:16 -0400 (EDT) <=