cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stuart Thorne" <Stuart.Tho...@dna.co.uk>
Subject RE: CForms - adding style to labels
Date Thu, 04 Aug 2005 10:08:55 GMT
Hi,

Yes, you could use something like this, in the form template:

<ft:widget id="widget1">
	<fi:styling class="form-input" tabindex="1" />
</ft:widget>

Then use a CSS file to style the ' form-input' class

Thanks,

Stu


-----Original Message-----
From: Thomas Lutz [mailto:mattom@gmx.at] 
Sent: 04 August 2005 10:09
To: users@cocoon.apache.org
Subject: Re: CForms - adding style to labels

Isn't there something like a fi:styling tag in the form template ? I 
think I used this for some additional javascript hacks.. everything you 
pass in the fi:styling is copied to the output tag...

footh wrote:

>Hello,
>
>I'm trying to add a class attribute to the <label> tag
>that gets generated from the
>"forms-samples-styling.xsl" stylesheet.  However, I
>can't seem to figure out how to do it.  In all the
>associated xsl files, I can only find the text
>"<label" in one location on "forms-field-styling.xsl"
>in this template:
>
>  <xsl:template match="fi:*" mode="label">
>    <xsl:param name="id" select="@id"/>
>    <label for="{$id}" title="{fi:hint}">
>      <xsl:copy-of select="fi:label/node()"/>
>    <label>
>  </xsl:template>
>
>However, this appears to never get called.  I've
>removed the <label> tag and done other things to this
>template but the same html is generated each time.  I
>simply want to add a class to style this <label> tag.
>
>Can anyone offer any suggestions?
>
>
>
>		
>____________________________________________________
>Start your day with Yahoo! - make it your home page 
>http://www.yahoo.com/r/hs 
> 
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>For additional commands, e-mail: users-help@cocoon.apache.org
>
>
>  
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


_____________________________________________________________________
This e-mail has been scanned for viruses by MCI's Internet Managed
Scanning Services - powered by MessageLabs. For further information
visit http://www.mci.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message