docbook: Updated XSL Stylesheets


Previous by date: 7 Jul 2003 21:44:43 -0000 Re: Updated XSL Stylesheets, Emma Jane Hogbin
Next by date: 7 Jul 2003 21:44:43 -0000 TLDP-XSL stylesheets updated, David Horton
Previous in thread: 7 Jul 2003 21:44:43 -0000 Re: Updated XSL Stylesheets, Emma Jane Hogbin
Next in thread:

Subject: Re: Updated XSL Stylesheets
From: David Horton ####@####.####
Date: 7 Jul 2003 21:44:43 -0000
Message-Id: <3F09EB54.5070600@megsinet.net>

Emma Jane Hogbin wrote:
> On Sun, Jul 06, 2003 at 09:29:59PM -0500, David Horton wrote:
-snip-
>>I like the idea of getting rid of gratuitous <table>'s.  Do you think it 
>>would be better to do one CSS style for all <pre> tags or do many styles 
>>based on class?  That way it's easier to customize, like maybe "screen" 
>>gets a box drawn around it, but "programlisting" does not.  Or is that 
>>getting carried away?
> 
> 
> I would do one style for all <pre>s with optional classes afterward. For
> example you can combined pre.screen. Anything that <pre> and <pre
> class="screen"> have in common will use the values from <pre
> class="screen">. Anything that is not shared will take on whatever value
> is set.
> 
> For example:
> 	pre { background: #E0E0E0; }
> 	pre.screen { border: 1px solid blue; }
> 	pre.programlisting { background: red; }
> 
> <pre class="screen"> will be gray with a blue border
> <pre class="programlisting"> will be red with a blue border
> 
> Even if there are no additional styles added to the different types of
> <pre>s I would recommend leaving the classes in. If it is decided later on
> to change them then the documents don't need to be re-processed.
> 
> emma
> 

Looks like a good way to do it.  --Dave


Previous by date: 7 Jul 2003 21:44:43 -0000 Re: Updated XSL Stylesheets, Emma Jane Hogbin
Next by date: 7 Jul 2003 21:44:43 -0000 TLDP-XSL stylesheets updated, David Horton
Previous in thread: 7 Jul 2003 21:44:43 -0000 Re: Updated XSL Stylesheets, Emma Jane Hogbin
Next in thread:


  ©The Linux Documentation Project, 2014. Listserver maintained by dr Serge Victor on ibiblio.org servers. See current spam statz.