- From: Mark Birbeck <mark.birbeck@x-port.net>
- Date: Wed, 27 Oct 2004 12:47:35 +0100
- To: "'Micah Dubinko'" <micah@dubinko.info>
- Cc: <www-forms@w3.org>, "'Vo, Thanh Chi'" <ThanhVo@psv.com.vn>
Small thing Micah .... your two paths in the constraint will be relative to
"path/to/your/node"! I know you were using a shorthand, but I thought it
worth mentioning because the context for MIP attributes often catches people
out.
So, we would need something like:
<bind nodeset="path/to/your/node" constraint="/path/to/a < /path/to/b"
/>
^ ^
Regards,
Mark
Mark Birbeck
CEO
x-port.net Ltd.
e: Mark.Birbeck@x-port.net
t: +44 (0) 20 7689 9232
w: http://www.formsPlayer.com/
Download our XForms processor from
http://www.formsPlayer.com/
> -----Original Message-----
> From: www-forms-request@w3.org [mailto:www-forms-request@w3.org] On
> Behalf Of Micah Dubinko
> Sent: 26 October 2004 17:25
> To: Vo, Thanh Chi
> Cc: 'www-forms@w3.org'
> Subject: Re: Validate 2 fieds!
>
>
>
> <bind nodeset="path/to/your/node" constraint="path/to/a < path/to/b"/>
>
> For clarity, I used "<", but in XML that would need to be escaped as
> <
>
> .micah
>
> Vo, Thanh Chi wrote:
>
> > Hi all,
> > Could you tell me how to make a validation like that:
> > value A < value B.
> > By schema I've just make value A, value B in a fix range( such as
> > 0..255) And by schema could we make a constrain like that(
> value A <
> > value B).
> >
>
>
>
> --
> Available for consulting. XForms, web forms, information overload.
> Micah Dubinko mailto:micah@dubinko.info
> Brain Attic, L.L.C. http://brainattic.info
> Yahoo IM: mdubinko
> Learn XForms today: http://xformsinstitute.com
>
>
>
Received on Wednesday, 27 October 2004 11:48:17 UTC