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" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> wrote: > > > > Hope you're donating the vxml stylesheet. :-p > > > > > > ----- Original Message ----- > > From: "Scott Schram" <[EMAIL PROTECTED]> > > To: <[EMAIL PROTECTED]> > > 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: > > [EMAIL PROTECTED] > > > For additional commands, email: > > [EMAIL PROTECTED] > > > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: > > [EMAIL PROTECTED] > > For additional commands, email: > > [EMAIL PROTECTED] > > > > > __________________________________________________ > Do you Yahoo!? > Faith Hill - Exclusive Performances, Videos & More > http://faith.yahoo.com > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, email: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]