[Xsltforms-support] Problem with bind constraint
Brought to you by:
alain-couthures
From: Alexander H. <al...@ho...> - 2013-01-16 17:09:44
|
Hi list, I have a constraint problem. I use this bind: <xf:bind id="bind_xxx" nodeset="instance('inst_xxx')/xxx" required="true()" constraint="string-length(.) > 1"/> It works quite well in the following cases: * If I have an input of string-length(.) = 1, <xf:alert/> labels show up, good. * As soon as string-length(.) is greater than one, they go away, good. Problem: * If I have string-length(.) = 0, no <xf:alert/> labels show up, which is unexpected. What is working as expected, is that I can not submit data (as it obviously does not fulfill the constraint). But since no alert message is shown, I am not able to provide feedback about the missing value to the user. Do you have any clue, what is happening here? Thanks, Alex |