Re: [docbook-apps] Does dockbook.xsl covers the whole?

From
Bob Stayton <>
Date
2011-02-21T17:25:37+00:00
ID
014e01cbd1ec$527075a0$6600a8c0@pazu
Thread
Re: [docbook-apps] Does dockbook.xsl covers the whole?
Hi Sanjaya,

OK, can you clarify where you are applying the 
CSS?  Is it your intention to style the XML source directly using CSS, or 
to use CSS to style the HTML output from DocBook XSL?  When you say 
"further styled", I presume you mean the HTML.

 

Bob Stayton
Sagehill Enterprises


 

 

  
----- Original Message ----- 

  
From: 
  Sanjaya 
  Liyanage 

  
To: Bob Stayton 

  
Cc: Docbook Apps 

  
Sent: Sunday, February 20, 2011 9:24 
  PM

  
Subject: Re: [docbook-apps] Does 
  dockbook.xsl covers the whole?

  

Hi Bob,
    Thank you for the reply.Yes it is 
  true that almost every docbook element has been styled by docbook XSL.But my 
  this effort is to style them more using css.I feel that most of the docbook 
  elements can further be styled so that the output of docbook will be a more 
  clear and nice one.As an examples

  
    
 <title> elements in different classes can further be 
    styled

  
    
 we can style <title> and <subtitle> in different ways 
    to show their difference

  
    
<sec1>,<sec2>,<sec3>,etc.. can be further styled  

    
<caption> element can be styled differently
    
<code> elements can be further styled as well.
I have not 
  tested many docbook XMLs.I think there can be more elements that can be styled 
  further.

Thank you
Sanjaya

  
On Sun, Feb 20, 2011 at 1:21 AM, Bob Stayton <> wrote:

  
    

    
Hi,

    
I'm not sure how useful this exercise is. 
    I will put forth the proposition that all 
    DocBook elements except some metadata elements in info are already styled by 
    DocBook XSL. Metadata elements are not automatically styled because metadata 
    is used for different purposes by different people.  Any elements 
    outside of info that are not styled should be in the list of bug reports on 
    the DocBook SourceForge site.  At the moment, I don't think there are 
    any reports of that nature.

    
 

    
Also, the DocBook XSL stylesheets already have 
    a template that flags any elements that it encounters for which it otherwise 
    has no template.  See the template in fo/docbook.xsl starting 
    with:

    
 

    
<xsl:template match="*">

    
  ...

    
 

    
That template will be applied by 
    the XSLT processor when no other template matches an element in 
    the document. It issues an error message and inserts a copy of the element 
    tags in red in the output.

    
 

    
Have you seen any DocBook elements that are not 
    styled?

    
 

    
Bob Stayton
Sagehill Enterprises


    

    

    

    
 

    
 

    
      
----- Original Message ----- 

      
From: 
      Sanjaya Liyanage 

      
To: Docbook 
      Apps 

      
Sent: Friday, February 18, 2011 9:02 
      PM

      
Subject: [docbook-apps] Does 
      dockbook.xsl covers the whole?

      

Hi dev,
    I am trying to find the 
      elements of docbook xmls which haven't styled by including docbbok.xsl in 
      my test.xsl.Does it enough to see any kind of styling for any kind of 
      element in the xml or are there any other xsl files that I must include to 
      see different kind of styling for any other element?Also where can I find 
      some sample docbook xmls which include most of possible elements in 
      it?Thank you very much.

Sanjaya 
    Liyanage