You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Ivelin Ivanov <iv...@apache.org> on 2002/06/08 21:07:05 UTC

[PATCH] Re: XMLForms XMLFormTransformer

Bug # 9674 closed (see below) .

Fix provided by Andrew Timberlake

Notes:

modification to the xmlform2html.xsl file which removes the
hard-coded class attributes and allows all attributes to be copied through.
This
allows size to be used on textboxes amongst others, it also allows the class
attribute to be ignored.

XMLFormTransformer: check to see if an xf:hidden element already has an
xf:value child and will add the value from the model if not.


Enjoy !


Ivelin


----- Original Message -----
From: "Andrew Timberlake" <an...@timberlake.co.za>
To: <iv...@apache.org>
Sent: Friday, June 07, 2002 6:58 AM
Subject: Re: XMLForms XMLFormTransformer


> Ivelin
>
> I have submitted a patch
> http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9674
>
> I had submitted an original patch which ignored the fact that xf:hidden
> could already contain an xf:value element.
>
> Andrew
>
> On Fri, 2002-06-07 at 12:13, Ivelin Ivanov wrote:
> >
> >
> > I thought you might be doing something like this.
> > It's kind of a hacky way to pass data from one part of the model to
another,
> > but I guess it is a valid request if often needed.
> >
> > Ok so how do we change the implementation?
> > Populate the xf:value in the transformer if <xf:instance/> does not
specify
> > value in the xml markup?
> >
> > If you have the patch go right ahead, submit it to bugzilla and let me
know.
> >
> >
> > Cheers,
> >
> > Ivelin
> >
> >
>


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


Re: XMLForms. HOWTO bug?

Posted by Ivelin Ivanov <iv...@apache.org>.
Slow is infinitely faster than still.

Looking forward to your contribution.

Ivelin



Andrew C. Oliver wrote:
> As soon as I figure out how to use it I plan to :-)
> 
> I've started my rewrite of this site: www.bringmethis.com using Cocoon 
> (and hence XMLForm).   In the process I'll be happy to contribute a 
> hello XMLForm example once I actually figure out how to get it working. 
> I'm a little slower than the rest of ya.
> 
> -Andy
> 
> Ivelin Ivanov wrote:
> 
>>
>> Interested to write one ? ;)
>>
>>
>> Andrew C. Oliver wrote:
>>
>>> Yromem.com MailingList wrote:
>>>
>>>> Hi,
>>>>
>>>> do you plan to write a simple way to use XMLForm when we need only 
>>>> one Form :
>>>>    with no need to write a javabean (or javacode)
>>>> I trie to understand all the XMLForm, but it is difficult to me. 
>>>> (the java part)
>>>>
>>>> Khalid.
>>>
>>>
>>>
>>>
>>>
>>> +1 -- We need a "Hello XMLForm" example.
>>>
>>>>
>>>>
>>>> Ivelin Ivanov wrote:
>>>>
>>>>>
>>>>> UserBean.java:
>>>>>   private Node system;
>>>>>
>>>>> This an attribute which is of type org.w3c.dom.Node
>>>>>
>>>>> This is used in the FeedBack Wiazard demo to show how JavaBeans can 
>>>>> be mixed with dom nodes. It is referenced on the page where you 
>>>>> select Operating System, RAM, App server, etc.
>>>>>
>>>>> If you're not going to need DOM nodes in your Form model, you can 
>>>>> ignore   this attribute. Just delete it.
>>>>>
>>>>> I am not sure why it is in the HowTo though. Don't think it is 
>>>>> necessary. Heidi?
>>>>>
>>>>>
>>>>> Ivelin
>>>>>
>>>>>>
>>>>
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> Please check that your question  has not already been answered in the
>>>> FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>
>>>>
>>>> To unsubscribe, e-mail:     <co...@xml.apache.org>
>>>> For additional commands, e-mail:   <co...@xml.apache.org>
>>>>
>>>>
>>>
>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> Please check that your question  has not already been answered in the
>>> FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>
>>>
>>> To unsubscribe, e-mail:     <co...@xml.apache.org>
>>> For additional commands, e-mail:   <co...@xml.apache.org>
>>>
>>>
>>
>>
>>
> 
> 
> 
> ---------------------------------------------------------------------
> Please check that your question  has not already been answered in the
> FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>
> 
> To unsubscribe, e-mail:     <co...@xml.apache.org>
> For additional commands, e-mail:   <co...@xml.apache.org>
> 
> 



-- 

-= Ivelin =-


---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>


Re: XMLForms. HOWTO bug?

Posted by "Andrew C. Oliver" <ac...@apache.org>.
As soon as I figure out how to use it I plan to :-)

I've started my rewrite of this site: www.bringmethis.com using Cocoon 
(and hence XMLForm).   In the process I'll be happy to contribute a 
hello XMLForm example once I actually figure out how to get it working. 
 I'm a little slower than the rest of ya.

-Andy

Ivelin Ivanov wrote:

>
> Interested to write one ? ;)
>
>
> Andrew C. Oliver wrote:
>
>> Yromem.com MailingList wrote:
>>
>>> Hi,
>>>
>>> do you plan to write a simple way to use XMLForm when we need only 
>>> one Form :
>>>    with no need to write a javabean (or javacode)
>>> I trie to understand all the XMLForm, but it is difficult to me. 
>>> (the java part)
>>>
>>> Khalid.
>>
>>
>>
>>
>> +1 -- We need a "Hello XMLForm" example.
>>
>>>
>>>
>>> Ivelin Ivanov wrote:
>>>
>>>>
>>>> UserBean.java:
>>>>   private Node system;
>>>>
>>>> This an attribute which is of type org.w3c.dom.Node
>>>>
>>>> This is used in the FeedBack Wiazard demo to show how JavaBeans can 
>>>> be mixed with dom nodes. It is referenced on the page where you 
>>>> select Operating System, RAM, App server, etc.
>>>>
>>>> If you're not going to need DOM nodes in your Form model, you can 
>>>> ignore   this attribute. Just delete it.
>>>>
>>>> I am not sure why it is in the HowTo though. Don't think it is 
>>>> necessary. Heidi?
>>>>
>>>>
>>>> Ivelin
>>>>
>>>>>
>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> Please check that your question  has not already been answered in the
>>> FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>
>>>
>>> To unsubscribe, e-mail:     <co...@xml.apache.org>
>>> For additional commands, e-mail:   <co...@xml.apache.org>
>>>
>>>
>>
>>
>>
>>
>> ---------------------------------------------------------------------
>> Please check that your question  has not already been answered in the
>> FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>
>>
>> To unsubscribe, e-mail:     <co...@xml.apache.org>
>> For additional commands, e-mail:   <co...@xml.apache.org>
>>
>>
>
>
>



---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>


Re: XMLForms. HOWTO bug?

Posted by "Yromem.com MailingList" <ma...@yromem.com>.
actually i write :
    xmlform.xml -> addsession-tag.xsl -> session transformer -> 
removesession-tag.xsl -> xmlform2html.xsl
but it don't work, and i don't know why ?
if someone want i can give you that ?

khalid.

Ivelin Ivanov wrote:

>
> Interested to write one ? ;)
>
>
> Andrew C. Oliver wrote:
>
>> Yromem.com MailingList wrote:
>>
>>> Hi,
>>>
>>> do you plan to write a simple way to use XMLForm when we need only 
>>> one Form :
>>>    with no need to write a javabean (or javacode)
>>> I trie to understand all the XMLForm, but it is difficult to me. 
>>> (the java part)
>>>
>>> Khalid.
>>
>>
>>
>>
>> +1 -- We need a "Hello XMLForm" example.
>>
>>>




---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>


Re: XMLForms. HOWTO bug?

Posted by Ivelin Ivanov <iv...@apache.org>.
Interested to write one ? ;)


Andrew C. Oliver wrote:
> Yromem.com MailingList wrote:
> 
>> Hi,
>>
>> do you plan to write a simple way to use XMLForm when we need only one 
>> Form :
>>    with no need to write a javabean (or javacode)
>> I trie to understand all the XMLForm, but it is difficult to me. (the 
>> java part)
>>
>> Khalid.
> 
> 
> 
> +1 -- We need a "Hello XMLForm" example.
> 
>>
>>
>> Ivelin Ivanov wrote:
>>
>>>
>>> UserBean.java:
>>>   private Node system;
>>>
>>> This an attribute which is of type org.w3c.dom.Node
>>>
>>> This is used in the FeedBack Wiazard demo to show how JavaBeans can 
>>> be mixed with dom nodes. It is referenced on the page where you 
>>> select Operating System, RAM, App server, etc.
>>>
>>> If you're not going to need DOM nodes in your Form model, you can 
>>> ignore   this attribute. Just delete it.
>>>
>>> I am not sure why it is in the HowTo though. Don't think it is 
>>> necessary. Heidi?
>>>
>>>
>>> Ivelin
>>>
>>>>
>>
>>
>>
>> ---------------------------------------------------------------------
>> Please check that your question  has not already been answered in the
>> FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>
>>
>> To unsubscribe, e-mail:     <co...@xml.apache.org>
>> For additional commands, e-mail:   <co...@xml.apache.org>
>>
>>
> 
> 
> 
> 
> ---------------------------------------------------------------------
> Please check that your question  has not already been answered in the
> FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>
> 
> To unsubscribe, e-mail:     <co...@xml.apache.org>
> For additional commands, e-mail:   <co...@xml.apache.org>
> 
> 



-- 

-= Ivelin =-


---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>


Re: XMLForms. HOWTO bug?

Posted by "Andrew C. Oliver" <ac...@apache.org>.
Yromem.com MailingList wrote:

> Hi,
>
> do you plan to write a simple way to use XMLForm when we need only one 
> Form :
>    with no need to write a javabean (or javacode)
> I trie to understand all the XMLForm, but it is difficult to me. (the 
> java part)
>
> Khalid.


+1 -- We need a "Hello XMLForm" example.

>
>
> Ivelin Ivanov wrote:
>
>>
>> UserBean.java:
>>   private Node system;
>>
>> This an attribute which is of type org.w3c.dom.Node
>>
>> This is used in the FeedBack Wiazard demo to show how JavaBeans can 
>> be mixed with dom nodes. It is referenced on the page where you 
>> select Operating System, RAM, App server, etc.
>>
>> If you're not going to need DOM nodes in your Form model, you can 
>> ignore   this attribute. Just delete it.
>>
>> I am not sure why it is in the HowTo though. Don't think it is 
>> necessary. Heidi?
>>
>>
>> Ivelin
>>
>>>
>
>
>
> ---------------------------------------------------------------------
> Please check that your question  has not already been answered in the
> FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>
>
> To unsubscribe, e-mail:     <co...@xml.apache.org>
> For additional commands, e-mail:   <co...@xml.apache.org>
>
>




---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>


Re: XMLForms. HOWTO bug?

Posted by "Yromem.com MailingList" <ma...@yromem.com>.
Hi,

do you plan to write a simple way to use XMLForm when we need only one 
Form :
    with no need to write a javabean (or javacode)
I trie to understand all the XMLForm, but it is difficult to me. (the 
java part)

Khalid.


Ivelin Ivanov wrote:

>
> UserBean.java:
>   private Node system;
>
> This an attribute which is of type org.w3c.dom.Node
>
> This is used in the FeedBack Wiazard demo to show how JavaBeans can be 
> mixed with dom nodes. It is referenced on the page where you select 
> Operating System, RAM, App server, etc.
>
> If you're not going to need DOM nodes in your Form model, you can 
> ignore   this attribute. Just delete it.
>
> I am not sure why it is in the HowTo though. Don't think it is 
> necessary. Heidi?
>
>
> Ivelin
>
>>



---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>


Re: XMLForms. HOWTO bug?

Posted by Ivelin Ivanov <iv...@apache.org>.
UserBean.java:
   private Node system;

This an attribute which is of type org.w3c.dom.Node

This is used in the FeedBack Wiazard demo to show how JavaBeans can be 
mixed with dom nodes. It is referenced on the page where you select 
Operating System, RAM, App server, etc.

If you're not going to need DOM nodes in your Form model, you can ignore 
   this attribute. Just delete it.

I am not sure why it is in the HowTo though. Don't think it is 
necessary. Heidi?


Ivelin



Kenny Chow wrote:
> To whom it may concern,
>     I am very interested in XMLForms and had been
> looking at the docs, both on the apache and in the
> 2.1dev. However, there is one thing that I don't
> understand -- the "Node system" in UserBean. I notice
> both UserBean and howtoBean have this attribute but my
> understanding is limited; I don't know what it is used
> for and why they are there. If I were to write my own
> bean to incorporate into my xmlform, do I include
> "Node system" in my bean as well?
> 
> Thanks,
> KC
> 
> __________________________________________________
> Do You Yahoo!?
> Yahoo! - Official partner of 2002 FIFA World Cup
> http://fifaworldcup.yahoo.com
> 
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
> 
> To unsubscribe, e-mail: <co...@xml.apache.org>
> For additional commands, e-mail: <co...@xml.apache.org>
> 
> 



-- 

-= Ivelin =-


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


XMLForms

Posted by Kenny Chow <ky...@yahoo.com>.
To whom it may concern,
    I am very interested in XMLForms and had been
looking at the docs, both on the apache and in the
2.1dev. However, there is one thing that I don't
understand -- the "Node system" in UserBean. I notice
both UserBean and howtoBean have this attribute but my
understanding is limited; I don't know what it is used
for and why they are there. If I were to write my own
bean to incorporate into my xmlform, do I include
"Node system" in my bean as well?

Thanks,
KC

__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


Re: [HELP FIX BUG] XMLForms - wizard2html.xsl or xmlform2html.xsl

Posted by Ivelin Ivanov <iv...@apache.org>.
Just noticed that the wizard demo leaves xf:cation tags in the resulting 
html.
It does not affect display in IE, but Mozilla shows the caption text in 
arbitrary locations.

This a silly bug in one of the two stylesheets.

Any XSLT takers?

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9716

Ivelin


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


Re: [HELP FIX BUG] XMLForms - wizard2html.xsl or xmlform2html.xsl

Posted by Ivelin Ivanov <iv...@apache.org>.
Just noticed that the wizard demo leaves xf:cation tags in the resulting 
html.
It does not affect display in IE, but Mozilla shows the caption text in 
arbitrary locations.

This a silly bug in one of the two stylesheets.

Any XSLT takers?

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9716

Ivelin


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>