Re: [docbook-apps] Extraneous CSS in ePub Generate XHTML

From
Bob Stayton <>
Date
2013-03-08T00:14:59+00:00
ID
F9BE202E95674FE19A4492C681DAD8DB@totoro
Thread
Re: [docbook-apps] Extraneous CSS in ePub Generate XHTML
Hi Carlos,

It seems there are several params added over time that try to 
address similar problems.  In general, the param named 'make.clean.html' 
does the best a removing most CSS code.  However, it seems to have missed 
this case.  There is a separate param named 'admon.style' that inserts that 
style attribute.  Set that to blank.

 

Bob Stayton
Sagehill Enterprises


From: Carlos Araya 

Sent: Thursday, March 07, 2013 3:10 PM

To:  

Subject: [docbook-apps] Extraneous CSS in ePub Generate 
XHTML

In the book I'm working on I'm getting the following as part of 
my admonition code

<div style="margin-left: 0.5in; margin-right: 
0.5in;" class="note" title="Note" epub:type="notice">

I thought either 
of the following would help me get rid of it but neither 
worked.

<xsl:param name="html.cleanup" 
select="1"></xsl:param>
<!-- Make sure that HTML is rendered 
without CSS decorations, leave the CSS to the local 
stylesheet-->
<xsl:param name="css.decoration" 
select="0"></xsl:param>

Is there a way to remove the style 
from the admonition divs and handle it with an local css 
stylesheet?