You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Gianluca Sartori <g....@elis.org> on 2003/10/27 11:35:23 UTC
Woody - Cocoon Forms
How can I use my existent XHTML templates with woody? Could someone
point me to some documentation?
Cheers,
Gianluca
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Woody - Cocoon Forms
Posted by Ugo Cei <u....@cbim.it>.
Gianluca Sartori wrote:
> «The WoodyTemplateTransformer (simply "woody transformer" from now on)
> makes it possible to define the layout for your form without having to
> write a seperate XSLT for each form. If you prefer to do everything with
> XSLT, you have also the option of using the WoodyGenerator.»
>
> I want to build these XSLT starting from XHTML I already have. How can I
> do this?
Why would you want to do that? If you already have the XHTML files, it's
much easier (IMHO) to use them as the basis for your template files,
just substitute all <input>'s with <wt:widget>'s.
If you *really* want to use the WoodyGenerator, look at the output it
produces and work out how to transform it to XHTML. This requires
knowing just enough XSLT to write a simple stylesheet, it's not that hard.
Ugo
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Woody - Cocoon Forms
Posted by Joerg Heinicke <jh...@virbus.de>.
On 27.10.2003 14:53, Gianluca Sartori wrote:
> Il lun, 2003-10-27 alle 13:39, Ugo Cei ha scritto:
>
>>You DO need the templating facility. Take your XHTML forms, substitute
>>occurrences of <input> with <wt:widget> and you're (more or less) set.
>>
>> Ugo
>
>
>>>From the wiki:
>
> «The WoodyTemplateTransformer (simply "woody transformer" from now on)
> makes it possible to define the layout for your form without having to
> write a seperate XSLT for each form. If you prefer to do everything with
> XSLT, you have also the option of using the WoodyGenerator.»
>
> I want to build these XSLT starting from XHTML I already have. How can I
> do this?
Do you have a XHTML file for every form? If yes, they are the form
templates. Have a look at
http://cvs.apache.org/viewcvs.cgi/cocoon-2.1/src/blocks/woody/samples/forms/form2_template.xml?rev=1.3&content-type=text/vnd.viewcvs-markup.
This is a form template too. As Ugo said the wt:* elements are the
important ones. But you can also do it in XSLT using a stylesheet that
replaces the woody stylesheets at
http://cvs.apache.org/viewcvs.cgi/cocoon-2.1/src/blocks/woody/samples/resources/.
Joerg
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Woody - Cocoon Forms
Posted by Gianluca Sartori <g....@elis.org>.
Il lun, 2003-10-27 alle 13:39, Ugo Cei ha scritto:
> You DO need the templating facility. Take your XHTML forms, substitute
> occurrences of <input> with <wt:widget> and you're (more or less) set.
>
> Ugo
>>From the wiki:
«The WoodyTemplateTransformer (simply "woody transformer" from now on)
makes it possible to define the layout for your form without having to
write a seperate XSLT for each form. If you prefer to do everything with
XSLT, you have also the option of using the WoodyGenerator.»
I want to build these XSLT starting from XHTML I already have. How can I
do this?
Gianluca
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Woody - Cocoon Forms
Posted by Ugo Cei <u....@cbim.it>.
Gianluca Sartori wrote:
> Ok. Where can I find docs about the WoodyTransformer? :) I have XHTML
> Pages made by a designer with forms in it. What I want to do is use
> Woody with'em. I built a Woody "Form Descriptor" but I don't understand
> how to arrange togeter those two elements: the XHTML Page and the Form
> Descriptor.
>
> What I don't need is the Woody Templating facility (the "wt" namespace).
> The wiki says I can avoid using it, but I cannot find informations on
> how to do it.
You DO need the templating facility. Take your XHTML forms, substitute
occurrences of <input> with <wt:widget> and you're (more or less) set.
Ugo
--
Ugo Cei - Consorzio di Bioingegneria e Informatica Medica
P.le Volontari del Sangue, 2 - 27100 Pavia - Italy
Phone: +39.0382.525100 - E-mail: u.cei@cbim.it
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Woody - Cocoon Forms
Posted by Gianluca Sartori <g....@elis.org>.
Il lun, 2003-10-27 alle 11:41, Joerg Heinicke ha scritto:
> In which form does your XHTML templates exist? In general it could be either
> added to the form template the WoodyTransformer works on or to stylesheets
> working on the output of the WoodyTransformer.
>
Ok. Where can I find docs about the WoodyTransformer? :) I have XHTML
Pages made by a designer with forms in it. What I want to do is use
Woody with'em. I built a Woody "Form Descriptor" but I don't understand
how to arrange togeter those two elements: the XHTML Page and the Form
Descriptor.
What I don't need is the Woody Templating facility (the "wt" namespace).
The wiki says I can avoid using it, but I cannot find informations on
how to do it.
Thanks,
Gianluca
> Joerg
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Woody - Cocoon Forms
Posted by Joerg Heinicke <jh...@virbus.de>.
Gianluca Sartori wrote:
> How can I use my existent XHTML templates with woody? Could someone
> point me to some documentation?
In which form does your XHTML templates exist? In general it could be either
added to the form template the WoodyTransformer works on or to stylesheets
working on the output of the WoodyTransformer.
Joerg
--
System Development
VIRBUS AG
Fon +49(0)341-979-7419
Fax +49(0)341-979-7409
joerg.heinicke@virbus.de
www.virbus.de
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org