cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From apurva zaveri <azav...@yahoo.com>
Subject Re: XMLForm and VoiceXML dealing with "/"
Date Sun, 20 Oct 2002 03:00:18 GMT
Got it! 

I think you are right! I will work on adding xsi:type.

I shall keep all updated.

-Apurva

--- Ivelin Ivanov <ivelin@apache.org> wrote:
> 
> A good approach would be to follow the embedded XML
> Schema typing as used in
> SOAP.
> 
> See example:
>
http://www.webreference.com/authoring/languages/xml/webservices/chap3/2/4.ht
> ml
> 
> In your case:
> 
> <xf:textbox ref="age" xsi:type="xsd:decimal">
>        <xf:caption>Age</xf:caption>
>        <xf:violations class="error"/>
> </xf:textbox>
> 
> 
> This allows hinting the type in the most device
> independent way, while
> utilizing the strongest available XML typing
> language.
> 
> In case of VXML you can convert these to a type
> element.
> In case of HTML we can possibly convert xsi:type to
> a validating JavaScript
> function.
> The latter cries out for a volunteer.
> Automatically generating JavaScript for validation
> has long been on the wish
> list of other frameworks, including Struts.
> 
> 
> What do you think?
> 
> 
> If you decide to patch the wizard forms and add the
> type attribute, please
> consider updating the HOWTO with information how
> these attributes are being
> used.
> 
> 
> Ivelin
> 
> 
> ----- Original Message -----
> From: "apurva zaveri" <azaveri@yahoo.com>
> To: <cocoon-dev@xml.apache.org>
> Sent: Tuesday, October 15, 2002 8:49 AM
> Subject: Re: XMLForm and VoiceXML dealing with "/"
> 
> 
> > Ofcourse! :)
> >
> > There is one thing that I have to discuss. In
> voiceXML
> > all the form fields have a type. Like Voice
> browser
> > built in types
> > i.e digits, number, date etc.
> >  For all other (which are not built in) types
> there is
> > a grammer associated with it.
> >
> > For the build in type I was thinkin if we can have
> > something like the following for example:
> >
> > This is what it is right now:
> > <xf:textbox ref="age">
> >       <xf:caption>Age</xf:caption>
> >       <xf:violations class="error"/>
> > </xf:textbox>
> >
> > Suggestion:
> >
> > <xf:textbox ref="age" type="number">
> >       <xf:caption>Age</xf:caption>
> >       <xf:violations class="error"/>
> > </xf:textbox>
> >
> > Adding one more attribute does not effect the HTML
> > form and this can be very useful in
> "wizard2vxml.xsl"
> > and "xmlform2vxml.xsl" atleast thats what I am
> doin
> > and it works.
> >
> > Does any one have other better suggestions??
> >
> > -Apurva
> >
> >
> >
> >
> >
> >
> > --- Ivelin Ivanov <ivelin@apache.org> wrote:
> > >
> > > Hope you're donating the vxml stylesheet. :-p
> > >
> > >
> > > ----- Original Message -----
> > > From: "Scott Schram" <scott@schram.net>
> > > To: <cocoon-dev@xml.apache.org>
> > > Sent: Monday, October 14, 2002 8:11 AM
> > > Subject: Re: XMLForm and VoiceXML dealing with
> "/"
> > >
> > >
> > > > At 08:04 AM 10/14/2002, you wrote:
> > > > >One more thing to mention.
> > > > >
> > > > >I am working on creating "wizard2vxml.xsl"
> and
> > > > >"xmlform2vxml.xsl" for VoiceXML 2.0 for
> XMLForm.
> > > > >
> > > > >Is it Necessary to have "/" in the field name
> > > (html
> > > > >input variable name) like : <select
> name="/city">
> > > > >this?
> > > > >
> > > > >Would this be fine?
> > > > >
> > > > ><select name="city">
> > > > >
> > > > >I am using bean not dom for XMLForm
> > > >
> > > > This would probably work ok, because the name
> is
> > > used as an XPath
> > > > expression (implemented by JXPath), and in
> this
> > > case, "/city" and "city"
> > > > point to the same node.
> > > >
> > > > Try it, and let us know if it works or not.
> > > >
> > > > Scott
> > > >
> > > >
> > > >
> > > > ------------------------
> > > > http://schram.net
> > > >
> > > >
> > > >
> > >
> >
>
---------------------------------------------------------------------
> > > > To unsubscribe, e-mail:
> > > cocoon-dev-unsubscribe@xml.apache.org
> > > > For additional commands, email:
> > > cocoon-dev-help@xml.apache.org
> > > >
> > >
> > >
> > >
> >
>
---------------------------------------------------------------------
> > > To unsubscribe, e-mail:
> > > cocoon-dev-unsubscribe@xml.apache.org
> > > For additional commands, email:
> > > cocoon-dev-help@xml.apache.org
> > >
> >
> >
> > __________________________________________________
> > Do you Yahoo!?
> > Faith Hill - Exclusive Performances, Videos & More
> > http://faith.yahoo.com
> >
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> cocoon-dev-unsubscribe@xml.apache.org
> > For additional commands, email:
> cocoon-dev-help@xml.apache.org
> >
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> cocoon-dev-unsubscribe@xml.apache.org
> For additional commands, email:
> cocoon-dev-help@xml.apache.org
> 


__________________________________________________
Do you Yahoo!?
Y! Web Hosting - Let the expert host your web site
http://webhosting.yahoo.com/

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


Mime
View raw message