You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Florian Leinberger <le...@seitenbau.com> on 2006/07/25 10:58:34 UTC

[CForms] Strictness of the template transformer

Hi,

we had invented some own tags to influence our modified XSL-Stylesheets that
render cocoon forms in Cocoon 2.1.6.

i.e. "<fi:cssclass>" or "<fi:cssclassLabel>" 

<ft:widget id="mitarbeiterAbwesenheitStartdate">
  <fi:styling type="readonly" class="" layout="2cols2"/>
  <fi:cssclass>webFormInputNormalDivHg</fi:cssclass>            
  <fi:cssclassLabel>webFormTextfett</fi:cssclassLabel>
</ft:widget>

This worked fine in 2.1.6. After un upgrade to Cocoon 2.1.9 however it seems
that the forms template transformer is much stricter now and doesn't allow
unknown tags within <ft:widget> anymore. 

Also some official tags like <fi:help> and <fi:value> are no longer accepted in
2.1.9.

Is there a way to configure the tranformer so that is less strict? Our problem
is, that we have many, many forms and therefore it would be really a lot of work
to modify all our form templates.

Thanks for any advice, 
Florian


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


Re: [CForms] Strictness of the template transformer

Posted by Mark Lundquist <ml...@wrinkledog.com>.
On Jul 25, 2006, at 1:58 AM, Florian Leinberger wrote:

> we had invented some own tags to influence our modified 
> XSL-Stylesheets that
> render cocoon forms in Cocoon 2.1.6.
>
> i.e. "<fi:cssclass>" or "<fi:cssclassLabel>"
>
> <ft:widget id="mitarbeiterAbwesenheitStartdate">
>   <fi:styling type="readonly" class="" layout="2cols2"/>
>   <fi:cssclass>webFormInputNormalDivHg</fi:cssclass>
>   <fi:cssclassLabel>webFormTextfett</fi:cssclassLabel>
> </ft:widget>
>
> This worked fine in 2.1.6. After un upgrade to Cocoon 2.1.9 however it 
> seems
> that the forms template transformer is much stricter now and doesn't 
> allow
> unknown tags within <ft:widget> anymore.

You could try not using the FormsTemplateTransformer...

Just add this to your form template:

   <jx:import 
uri="resource://org/apache/cocoon/forms/generation/jx-macros.xml"/>

...and remove the FTT <transform> from your sitemap.

It looks like this will do what you want.

The "strictening" of FFT looks like it was done in a change that has 
this message in the commit log:

	Remove (buggy) support for arbitrary elements within ft:widget.

So apparently, the functionality was removed because it was buggy and 
it wasn't felt that fixing it was practical.

HTH,
—ml—