Hello Marc, thx again for the answer,
Mark Lundquist a écrit :
Aw, phooey! I had a brain-o there, I totally meant "styling", but in my example I wrote "common" (right after I got through telling you that "common" was the wrong one! :-). Sorry, my bad.
No worries, this is already very confusing anyway ;-)
Yes, mode="styling" is right.
Matching "*" on the mode="custom-styling" is right, too — then you will pick up the other kinds of form control elements, as you say.
I forgot about attributes. Try adding this immediately inside the <xsl:copy> in the custom-styling mode template:
<xsl:apply-templates select="@*" />
I'll bet that fixes it!
nope ! lost your bet, the result is just exactly the same :-\
i tried this instead :
<xsl:copy-of select=".">
<xsl:if test="$required='true'">
<xsl:attribute name="class">required-field</xsl:attribute>
</xsl:if>
</xsl:copy-of>and this copies all the attributes of the <fi:styling> tag to the control (even the type="textarea" which is not supposed to be...) but the class="required-filed" is still not copied !
Then i wonder (again) if we are matching the correct element. I think maybe we are matching the fi:field element where we should match the fi:styling... or the opposite :-D
—ml— (eagerly awaiting your report... I love it when other people try out my ideas for me :-) :-) :-)
Lol, well here is my report, do you have more ideas ?
Cheers,
Marc
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
