DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=28969>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=28969

Radio button list-style does not copy styling attributes

           Summary: Radio button list-style does not copy styling attributes
           Product: Cocoon 2
           Version: 2.1.4
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: CocoonForms
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


bug found in 2.1.4 release, block woody but appears to be on cforms 2.1 head as
well (checked through code repository)

When using 
<wi:styling list-type="radio" submit-on-change="true" style="color:red;"/> 
only list-type is taken into account, other attributes are disgarded although
they should be copied/handled in the same manner as "dropdown" list-type.

fix:
Stylesheet: woody-field-styling.xsl (forms-field-styling.xsl) in template:
<xsl:template match="wi:field[wi:selection-list][wi:styling/@list-type='radio']"
priority="2">

change both lines <xsl:apply-templates select="." mode="styling"/>
to: <xsl:apply-templates select="../.." mode="styling"/>
(apply-templates was done on wrong (child)element of wi:field.)

Reply via email to