I meant to follow up on this : it does seem to cause some problems,
because classes start to appear too often. ie if I set a certain class
to have a background image, you get a table cell styled with the image,
and then whatever is in the cell also gets the image.
Probably the enclosing <td> shouldn't get given the class at all, but
that will probably need a more carefully thought out change than mine :)
Adrian
> -----Original Message-----
> From: Joern Turner [mailto:joern.turner-S0/GAf8tV78@xxxxxxxxxxxxxxxx]
> Adrian Baker wrote:
> > I can happily style triggers with a class attribute outside
> of repeat
> > groups, but when the resulting <input> tag doesn't get the class
> > attribute passed down to it - it remains only on the enclosing <td>
> > tag.
> >
> > eg the first button rendered outside the repeat has the
> correct class,
> > the second inside the repeat does not.
> >
> > <xforms:trigger class="delete"/>
> >
> > <xforms:repeat id="phones" bind="bind-phones"
> appearance="minimal">
> > <xforms:trigger class="delete"/>
> > ....
> > </xforms:repeat>
> >
> > Stumbling around the xslt files I've found that changing
> <xsl:template
> > name="trigger"> in html-form-controls.xsl from this
> >
> > <xsl:call-template name="assembleRepeatClasses">
> > <xsl:with-param name="repeat-id" select="$repeat-id"/>
> > <xsl:with-param name="pos" select="$pos"/>
> > <xsl:with-param name="classes" select="'value'"/>
> > </xsl:call-template>
> >
> > to
> >
> > <xsl:variable name="css">
> > <xsl:call-template name="assembleClasses"/>
> > </xsl:variable>
> > <xsl:call-template name="assembleRepeatClasses">
> > <xsl:with-param name="repeat-id" select="$repeat-id"/>
> > <xsl:with-param name="pos" select="$pos"/>
> > <xsl:with-param name="classes" select="$css"/>
> > </xsl:call-template>
> >
> > fixes this, although I'm not totally sure why or whether this is a
> > good idea....
> think it is. i'll have a look at it and maybe include your patch -
> should not break anything.
>
> thanks for the hint,
>
> Joern
>
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id396&op=click
|