Hi Carlos,
There is no parameter to turn of all style attributes (but perhaps there
should be).
However, you can customize a template that will turn off almost all of
them. That template starts with:
<xsl:template match="*" mode="convert.to.style">
and is located in xhtml5/html5-element-mods.xsl. At the point where it
generates the @style attribute, you can comment out or remove that code:
<xsl:attribute name="style">
<xsl:value-of select="$style"/>
</xsl:attribute>
Here is a little background explanation, if you are interested.
Many traditional HTML attributes generated by DocBook XSL are no longer
allowed in HTML5. The xhtml5 stylesheet uses xsl:apply-imports to
generate the regular DocBook xhtml output into a variable, and then
processes that xhtml output again to deal with those attributes. It
converts many of them to CSS styles and outputs them in an @style
attribute, which is allowed. That's what this template is doing. But
in your case, you don't want any @style, so comment out those lines.
Bob Stayton
Sagehill Enterprises
[email protected]
On 8/18/2014 3:07 PM, Carlos Araya wrote:
Bob,
I mean remove inline style attributes from an element. I'm using
classes for blockquotes but it still generates a style="border: 0" for
the blockquote table.
I use 1.78.1 and snapshot and they both intorduce the inline styles.
Carlos
On Mon, Aug 18, 2014 at 1:17 PM, Bob Stayton <[email protected]
<mailto:[email protected]>> wrote:
Hi Carlos,
I'm not clear what you mean by inline attributes in tables. Can you
be more specific?
Also, are you using the epub3 stylesheets in 1.78.1?
Bob Stayton
Sagehill Enterprises
[email protected] <mailto:[email protected]>
On 8/16/2014 2:59 PM, Carlos Araya wrote:
I'm trying to cleanup my (x)html to use with epub3. One of the
things I
need to do is to remove inline attributes from tables as they
ware not
needed or controlled through CSS.
How do I change the default behavior for tables? Is there a way
to move
this all to be CSS driven
Carlos
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]