Re: Validate 2 fieds!

"Oscar Omar Avila" <[email protected]> Thu, 04 Nov 2004 01:50:58 -0500
Newsgroups gmane.comp.web.voice,gmane.comp.web.css.general,gmane.comp.web.xforms,gmane.comp.web.html.general,gmane.org.w3c.accessibility.agents,gmane.org.w3c.accessibility.guidelines,gmane.org.w3c.accessibility.general
Message-ID <[email protected]>
Greetings, you've already had some answers to your question but I'd like <B=
R>to suggest that you consider the following approach:<BR><BR>&lt;f:instanc=
e&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;data&gt;<BR>&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp; &lt;pair&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp; &lt;a&gt;5&lt;/a&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp; &lt;b&gt;10&lt;/b&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/pa=
ir&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/data&gt;<BR>&lt;/=
f:instance&gt;<BR><BR>&lt;f:bind nodeset=3D"/data/pair" constraint=3D"/data=
/pair/a &amp;lt; /data/pair/b"/&gt;<BR>&lt;f:bind nodeset=3D"/data/pair/a" =
type=3D"xsd:integer"/&gt;<BR>&lt;f:bind nodeset=3D"/data/pair/b" type=3D"xs=
d:integer"/&gt;<BR><BR>&lt;f:group ref=3D"/data/pair"&gt;<BR>&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;f:label&gt;pair: &lt;/f:label&gt;<BR><BR>&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;f:input ref=3D"/data/pair/a"&=
gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &=
lt;f:label&gt;a: &lt;/f:label&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp; &lt;/f:input&gt;<BR><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt=
;f:input ref=3D"/data/pair/b"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;f:label&gt;b: &lt;/f:label&gt;<BR>&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/f:input&gt;<BR><BR>&lt;/f:group&gt;=
<BR><BR>This has the benefit from a users point of view that if the user wa=
nts to <BR>change a and b to be 12 &amp; 17 the intermediate state of a(12)=
 and b(10) <BR>will indicate that the value of a is invalid but it will ind=
icate that <BR>there is a problem with the pair<A href=3D"http://seek-time.=
org/">.</A><BR><BR>Regards, Roland<BR><BR><BR><BR>"Vo, Thanh Chi" &lt;<A hr=
ef=3D"mailto:ThanhVo%40psv.com.vn?Subject=3DRe%3A%20Validate%202%20fieds!&a=
mp;In-Reply-To=3D<OF6256D5D1.A52A26C4-ON80256F40.004AF3B0-80256F40.0050C9FC=
%40uk.ibm.com>&amp;References=3D<OF6256D5D1.A52A26C4-ON80256F40.004AF3B0-80=
256F40.0050C9FC%40uk.ibm.com>">[email protected]</A>&gt; <BR>Sent by: <A h=
ref=3D"mailto:www-forms-request%40w3.org?Subject=3DRe%3A%20Validate%202%20f=
ieds!&amp;In-Reply-To=3D<OF6256D5D1.A52A26C4-ON80256F40.004AF3B0-80256F40.0=
050C9FC%40uk.ibm.com>&amp;References=3D<OF6256D5D1.A52A26C4-ON80256F40.004A=
F3B0-80256F40.0050C9FC%40uk.ibm.com>">[email protected]</A><BR>26/10=
/2004 07:16<BR><BR>To<BR>"'<A href=3D"mailto:www-forms%40w3.org?Subject=3DR=
e%3A%20Validate%202%20fieds!&amp;In-Reply-To=3D<OF6256D5D1.A52A26C4-ON80256=
F40.004AF3B0-80256F40.0050C9FC%40uk.ibm.com>&amp;References=3D<OF6256D5D1.A=
52A26C4-ON80256F40.004AF3B0-80256F40.0050C9FC%40uk.ibm.com>">[email protected]=
rg</A>'" <A href=3D"http://binary-search.org/">,</A>&lt;<A href=3D"mailto:w=
ww-forms%40w3.org?Subject=3DRe%3A%20Validate%202%20fieds!&amp;In-Reply-To=
=3D<OF6256D5D1.A52A26C4-ON80256F40.004AF3B0-80256F40.0050C9FC%40uk.ibm.com>=
&amp;References=3D<OF6256D5D1.A52A26C4-ON80256F40.004AF3B0-80256F40.0050C9F=
C%40uk.ibm.com>">[email protected]</A>&gt;<BR>cc<BR><BR>Subject<BR>Validate =
2 fieds!<A href=3D"http://enter-se.com/">.</A><BR><BR><BR><BR><BR><BR><BR>H=
i all<A href=3D"http://search-options.com/">,</A><BR>Could you tell me how =
to make a validation like that:<BR>value A &lt; value B.<BR>By schema I've =
just make value A, value B in a fix range( such as 0..255)<BR>And by schema=
 could we make a constrain like that( value A &lt; value B)<A href=3D"http:=
//your-search.org/">.</A><BR>&nbsp;<BR><BR>
--=20
<p>_______________________________________________<br>
Find what you are looking for with the <a href=3Dhttp://r.lycos.com/r/yp_em=
ailfooter/http://yellowpages.lycos.com/default.asp?SRC=3Dlycos10>Lycos Yell=
ow Pages </a>