#1282 Skip "compact" attributes in HTML5 convert.to.style

output: HTML
open
nobody
XSL (1066)
5
2013-01-08
2013-01-08
No

The "compact" attribute (added to lists in certain circumstances in the xhtml stylesheets) is deprecated in HTML 5. It should be stripped out in html5-element-mods.xsl stylesheet, as part of convert.to.style. Perhaps change the <xsl:copy-of> instruction (line 405 in http://docbook.svn.sourceforge.net/viewvc/docbook/trunk/xsl/xhtml5/html5-element-mods.xsl?revision=9703&view=markup\) to the following:

<xsl:copy-of select="@*[local-name(.) != 'width' and
local-name(.) != 'height' and
local-name(.) != 'summary' and
local-name(.) != 'compact' and
local-name(.) != 'border' and
local-name(.) != 'cellspacing' and
local-name(.) != 'cellpadding' and
local-name(.) != 'style' and
local-name(.) != 'align' and
local-name(.) != 'valign']"/>

Also as a substitute, may want to add some corresponding CSS to the "style" attribute to reduce line spacing and indentation?

Discussion


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks