logo       

RE: trigger within repeat : class attribute ignored: msg#00007

Subject: RE: trigger within repeat : class attribute ignored
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


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
boot-loaders.gr...    php.pear.genera...    debugging.valgr...    kde.redhat.user...    text.xml.xsl.ge...    culture.languag...    hardware.microc...    java.servicemix...    redhat.release....    web.zope.plone....    user-groups.lin...    opendarwin.webk...    video.mjpeg.use...    sysutils.bcfg2....    encryption.gpg....    lx-office.devel...    xfree86.forum/2...    mail.mutt.devel...    acpi.devel/2003...    qnx.openqnx.dev...    network.irc.irs...    freebsd.devel.m...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe