cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jason Johnston <>
Subject Re: forms-field-styling.xsl jar classpath
Date Wed, 19 Jul 2006 14:35:05 GMT
Andrew wrote:
> Hi,
> from my understanding forms-field-styling.xsl is part of a jar in the 
> class path (<xsl:include 
> href="resource://org/apache/cocoon/forms/resources/forms-advanced-field-styling.xsl"/>)?

> I need to gain access to forms-field-styling.xsl so that I can change 
> the following lines from:
>     <xsl:if test="@required='true'">
>       <span class="forms-field-required">*</span>
>     </xsl:if>
> to:
>     <xsl:if test="@required='true'">
>       <span class="forms-field-required"><img src="images/plus.gif" 
> border="0" /></span>
>     </xsl:if>

FWIW, I've found that keeping around modified versions of the 
forms-*-styling.xsl files just leads to headaches, as with every upgrade 
you have to merge in all your changes and it becomes very messy.

What I've started doing instead is, in my equivalent of 
forms-samples-styling.xsl, simply add templates that override those in 
the imported files to apply my custom stylings.

In your case you could also avoid XSL changes altogether and use CSS 
image replacement to show your image in place of the asterisk.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message