I am a newbie using cocoon, and am using CForms. In my program, I would like to change the background color for labels of text fields, but was not successful.
The xsl files that I am using are modified from the originals supplied with cocoon.
One that would appear to pertain to this is forms-page-styling.xsl.
Here is an excerpt from my user_template.xml file:
<ft:form-template action="" method="POST">
<ft:widget-label id="name"/>
<ft:widget id="name"/>
<br/>
<ft:widget-label id="name"/>
<ft:widget id="name"/>
<br/>
Here is the corresponding section from user.xml :
<fd:form
xmlns:fd="http://apache.org/cocoon/forms/1.0#definition">
xmlns:fd="http://apache.org/cocoon/forms/1.0#definition">
<fd:widgets>
<fd:field id="name" required="true">
<fd:label>Name:</fd:label>
<fd:datatype base="string"/>
<fd:validation>
<fd:length min="2"/>
</fd:validation>
</fd:field>
<fd:field id="name" required="true">
<fd:label>Name:</fd:label>
<fd:datatype base="string"/>
<fd:validation>
<fd:length min="2"/>
</fd:validation>
</fd:field>
I would like to change the background color of "Name".
thanks, and I do apologize for such a silly question,
Roy Pueschel
Do you Yahoo!?
Shop for Back-to-School deals on Yahoo! Shopping.
