Bug 1027485

Summary: Role attributes end up as duplicated css attributes in the HTML
Product: [Community] Publican Reporter: Roman Joost <rjoost>
Component: publicanAssignee: Jeff Fearn 🐞 <jfearn>
Status: CLOSED CURRENTRELEASE QA Contact: Ruediger Landmann <rlandman>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 3.2CC: aigao, rlandman
Target Milestone: 4.1   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-03-27 02:38:18 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Roman Joost 2013-11-06 22:52:26 UTC
Description of problem:

When transforming DocBook to XHTML, a single role attribute ends as a duplicated css attribute in the resulting HTML, e.g:

DOCBOOK: role="foobar"
HTML: css="foobar foobar"


Version-Release number of selected component (if applicable):

publican-3.2.1-0.el6eng.noarch
docbook-dtds-1.0-51.el6.noarch
docbook-style-xsl-1.77.1-3.el6eng.noarch

OS: Red Hat Enterprise Linux Server release 6.4 (Santiago)


How reproducible:

Always


Steps to Reproduce:
1. Add a role attribute to a DocBook tag.
2. Transform it the DocBook content with publican
3. Check the resulting HTML and the css attribute.


Actual results:

Duplicated attribute content.


Expected results:

Single role attribute should be transformed as a single css attribute.


Additional info:

In xsl:template class.attribute (xhtml-common.xsl:550), if I remove the additional condition and <xsl:value-of select="@role" /> it correctly renders the CSS attribute, by using the class.value template.

Comment 2 Jeff Fearn 🐞 2014-03-27 02:38:18 UTC
This seems to have been resolved sometime between 3.2 and 4.0.