cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dario Liberman" <coc...@ineba.net>
Subject Re: textarea in XMLForm Re: [Off-topic:XSLT] Passing an XML fragment via a HTML form.
Date Wed, 23 Oct 2002 14:26:10 GMT
Just a comment:

See XML WebAccess 2.0 from www.mozquito.com
It may be interesting. I was wondering some time ago if a merge with
XMLForms from cocoon and that approach (I emphasize that I mean the
approach, not necessarily this specific implementation) of mozquito's to
have an intelligent client (with JavaScript).

If anyone had made already any simple example of this merge working please
let me know.

Best regards,
Dario.

PD: I have put both titles since they are strongly related.
In order to achieve the merge you need the textarea patch and Dom
representation of the form instead of javabeans ("helpful for quick & dirty
solutions" like this) and the ability to pass an XML fragment via HTML form.



----- Original Message -----
From: "Emmanuil Batsis (Manos)" <mbatsis@humanmarkup.org>
To: <cocoon-users@xml.apache.org>
Sent: Wednesday, October 23, 2002 06:44
Subject: Re: [Off-topic:XSLT] Passing an XML fragment via a HTML form.


> ROSSEL Olivier wrote:
> >>>I need to pass a subtree of that XML as a parameter, via that form.
> >>>
> >>>Is there a way, in XSLT, to transform a XML fragment into a string?
> >>>So I can have an <input> in my form that contains the text
> >>
> >>of this XML
> >>
> >>>fragment.
> >>
> >>How about parsing the form element value to a DOM object
> >>(either client
> >>or server side) and extract the DOM node that serves as the
> >>root of the
> >>fragment you need?
> >
> >
> > You think I should use Java/XSP for such a process?
>
> Ideally, before submission, you parse the form value to a DOM object via
> Javascript (easy in both IE and Moz). You then locate the node
> (fragment) of choice and use it's text serialization (XML) to replace
> the earlier value of the form. Your server will thus get only the
> fragment you need and get away with less work.
>
>
> Manos
>
>
> ---------------------------------------------------------------------
> 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:     <cocoon-users-unsubscribe@xml.apache.org>
> For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>


----- Original Message -----
From: "Geoff Howard" <cocoongeoff@yahoo.com>
To: <cocoon-users@xml.apache.org>
Cc: <cocoon-dev@xml.apache.org>
Sent: Wednesday, October 23, 2002 10:12
Subject: Re: textarea in XMLForm


> The dev list is a better place to discuss submitting
> patches.  I've cc'd this reply there as well.
>
> Geoff Howard
>
> --- Robert Ellis Parrott <parrott@fas.harvard.edu>
> wrote:
> >
> > I noticed that in the XMLForm example that one could
> > not hit return and
> > have a multiline message in the additional notes
> > textarea. Looking into
> > it, and working on related things in which I need a
> > textarea, I see that
> > the xmlform2html.xsl converts <xf:textarea> to an
> > input field, and not a
> > true textarea. I don't think that this is correct;
> > without the "style"
> > attribute it defaults to a textbox.
> >
> > The below mods to xmlform2html.xsl replace the
> > textarea template with one
> > that actually creates a real textarea.
> >
> >  I think that this is the right thing to do here.
> >
> > rob
> >
> > PS: I've modified the Form class to now support
> > basic Maps as well as DOM
> > and Beans; I think that having this modification
> > would be very helpful for
> > quick & dirty solutions, and for in-development
> > projects, because one can
> > get data from an XMLForm into the map without
> > creating nodes or a javabean
> > ahead of time.
> >
> > Are you interested in patches?
> >
> >
> >
> > <!--
> >    <xsl:template match="xf:textarea">
> >       <input name="{@ref}" type="textarea"
> > value="{xf:value/text()}">
> >         <xsl:copy-of
> > select="@*[not(name()='ref')]"/>
> >         <xsl:apply-templates select="xf:hint"/>
> >       </input>
> >    </xsl:template>
> > -->
> >
> >    <xsl:template match="xf:textarea">
> >       <textarea name="{@ref}" >
> >         <xsl:copy-of
> > select="@*[not(name()='ref')]"/>
> >         <xsl:value-of select="xf:value/text()"/>
> >         <xsl:apply-templates select="xf:hint"/>
> >       </textarea>
> >    </xsl:template>
> >
> >
> >
> > ----------------------------
> > Robert E. Parrott
> > Department of Physics
> > 351 Jefferson Laboratory
> > Harvard University
> > 17 Oxford St.
> > Cambridge, Massachusetts 02138
> > (617)-495-2867
> > parrott@fas.harvard.edu
> > Robert.E.Parrott.96@alum.dartmouth.org (permanent)
> >
> >
> >
> >
> >
> ---------------------------------------------------------------------
> > 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:
> > <cocoon-users-unsubscribe@xml.apache.org>
> > For additional commands, e-mail:
> > <cocoon-users-help@xml.apache.org>
> >
>
>
> __________________________________________________
> Do you Yahoo!?
> Y! Web Hosting - Let the expert host your web site
> http://webhosting.yahoo.com/
>
> ---------------------------------------------------------------------
> 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:     <cocoon-users-unsubscribe@xml.apache.org>
> For additional commands, e-mail:   <cocoon-users-help@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:     <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>


Mime
View raw message