Re: Validate 2 fieds!
"Oscar Omar Avila" <[email protected]>
| 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 to suggest that you consider the following approach: <f:instance> <data> <pair> <a>5</a> <b>10</b> </pair> </data> </f:instance> <f:bind nodeset="/data/pair" constraint="/data/pair/a < /data/pair/b"/> <f:bind nodeset="/data/pair/a" type="xsd:integer"/> <f:bind nodeset="/data/pair/b" type="xsd:integer"/> <f:group ref="/data/pair"> <f:label>pair: </f:label> <f:input ref="/data/pair/a"> <f:label>a: </f:label> </f:input> <f:input ref="/data/pair/b"> <f:label>b: </f:label> </f:input> </f:group> This has the benefit from a users point of view that if the user wants to change a and b to be 12 & 17 the intermediate state of a(12) and b(10) will indicate that the value of a is invalid but it will indicate that there is a problem with the pair. Regards, Roland "Vo, Thanh Chi" <[email protected] > Sent by: [email protected] 26/10/2004 07:16 To "'[email protected] '" , <[email protected] > cc Subject Validate 2 fieds!. 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). -- _______________________________________________ Find what you are looking for with the Lycos Yellow Pages