>From the design point of view, I assumed that templates where the appropriate place to put HTML, is this not correct?
In any case the regular wi:field template has the following in woody-field-styling.xsl: <xsl:if test="wi:styling"> <xsl:copy-of select="wi:styling/@*[not(name() = 'submit-on-change')]"/> </xsl:if> which would copy any attributes, including "style" or "class". For some reason wi:field[wi:selection-list] template does not have it and only allows the "listbox-size" attribute. Any idea why? Cheers, -Alex --- Tony Collen <[EMAIL PROTECTED]> wrote: > Alex Romayev wrote: > > Hi, > > > > Sorry for the previous post. > > > > I have problems getting my wi:styling attribute > picked > > up for a select list widget. > > > > Here is the widget: > > <wd:field id="locale"> > > <wd:datatype base="string"/> > > <wd:label>Language</wd:label> > > <wd:selection-list> > > ... > > </wd:selection-list> > > </wd:field> > > > > and the template: > > <wt:widget id="locale"> > > <wi:styling style="size:120px;"/> > > </wt:widget> > > > > however, the resultant HTML is missing the style > > attribute. > > > > Do you know what I am doing wrong? > > Not offhand, but I don't think style is supposed to > be communicated this way (SoC). > > See: > http://wiki.cocoondev.org/Wiki.jsp?page=WoodyXSLT > > I'm not sure you can just dump a CSS style attribute > in there. You might have to edit the XSLTs that > transform the template into HTML or whatever. > > > > > Cheers, > > -Alex > > Regards, > Tony Collen > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > ===== Alex Romayev Software Architect http://www.romayev.com [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
