trying to validate url with xs:anyURI

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

trying to validate url with xs:anyURI

srikanth.prodigy

Hello All,

 

Im trying to validate a url using xs:anyURI but the input box is taking any text

How can I restrict  xforms:input to take only the url

Please find the attachment with this mail

 

Thanks,

Srikanth A

 



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws

view.xhtml (1K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: trying to validate url with xs:anyURI

Erik Bruchez
Administrator
xs:anyURI should restrict what the input is taking. However anyURI is
still a fairly flexible type. Try using xforms:bind/@constraint with
the match() function, which allows you to validate according to a
regexp.

-Erik

On Mon, Jun 29, 2009 at 3:34 AM, Srikanth
A<[hidden email]> wrote:

> Hello All,
>
>
>
> Im trying to validate a url using xs:anyURI but the input box is taking any
> text
>
> How can I restrict  xforms:input to take only the url
>
> Please find the attachment with this mail
>
>
>
> Thanks,
>
> Srikanth A
>
>
>
> --
> You receive this message as a subscriber of the [hidden email] mailing
> list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws
>
>


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws