Bug 1027485 - Role attributes end up as duplicated css attributes in the HTML
Summary: Role attributes end up as duplicated css attributes in the HTML
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Publican
Classification: Community
Component: publican
Version: 3.2
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: 4.1
Assignee: Jeff Fearn 🐞
QA Contact: Ruediger Landmann
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-11-06 22:52 UTC by Roman Joost
Modified: 2014-03-27 02:38 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-03-27 02:38:18 UTC


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.