Hi,
I'm using xxforms:valid function to validate my instance based on binds. This function works on nodes only, not on node sets (the first node is taken). This means that I have to insert a container element in my instance if I want to validate a sequence of sibling nodes. Looking at the XXFormsValid java class, it wouldn't be too hard to support also node sets. Is there any specific reason only nodes are supported as first argument? Any chance this will be implemented? Cheers Jeroen -- 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 |
Administrator
|
Jeroen,
On Feb 26, 2009, at 6:58 AM, Jeroen Hoffman wrote: > I'm using xxforms:valid function to validate my instance based on > binds. This function works on nodes only, not on node sets (the > first node is taken). This means that I have to insert a container > element in my instance if I want to validate a sequence of sibling > nodes. If you want to check a number of nodes with xxforms:valid(), assuming you have a sequence of nodes '$nodes', you can write: empty($nodes[not(xxforms:valid(., true()))]). > Looking at the XXFormsValid java class, it wouldn't be too hard to > support also node sets. Is there any specific reason only nodes are > supported as first argument? Yes, I guess it wouldn't hurt to make it work on a sequence of nodes, and semantic would be that all the nodes have to be valid. > Any chance this will be implemented? Are you volunteering? ;) Alex -- Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise Orbeon's Blog: http://www.orbeon.com/blog/ Personal Blog: http://avernet.blogspot.com/ Twitter - http://twitter.com/avernet -- 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 |
Alessandro Vernet wrote: > Jeroen, > > On Feb 26, 2009, at 6:58 AM, Jeroen Hoffman wrote: >> I'm using xxforms:valid function to validate my instance based on >> binds. This function works on nodes only, not on node sets (the first >> node is taken). This means that I have to insert a container element >> in my instance if I want to validate a sequence of sibling nodes. > If you want to check a number of nodes with xxforms:valid(), assuming > you have a sequence of nodes '$nodes', you can write: > empty($nodes[not(xxforms:valid(., true()))]). > Yes, I guess it wouldn't hurt to make it work on a sequence of nodes, > and semantic would be that all the nodes have to be valid. >> Any chance this will be implemented? > Are you volunteering? ;) Well, in fact I am! However.. I already have written an adjusted XXFormsValid but I haven't been able to test it on the latest trunk code base because of work being done on JSR-286 (which is great!). The OrbeonPortlet couldn't load, neither the OrbeonPortlet2Delegate (got that from thread "orbeon on jboss" starting feb 23rd), because NoClassDefFoundError: javax/portlet/MimeResponse, which is in portlet-api 2.0. So I stopped.. will continue some other time. Cheers Jeroen > Alex > -- > Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise > Orbeon's Blog: http://www.orbeon.com/blog/ > Personal Blog: http://avernet.blogspot.com/ > Twitter - http://twitter.com/avernet > -- 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 |
Administrator
|
On Feb 26, 2009, at 12:54 PM, Jeroen Hoffman wrote:
> Well, in fact I am! However.. Excellent :). > I already have written an adjusted XXFormsValid but I haven't been > able to test it on the latest trunk code base because of work being > done on JSR-286 (which is great!). The OrbeonPortlet couldn't load, > neither the OrbeonPortlet2Delegate (got that from thread "orbeon on > jboss" starting feb 23rd), because NoClassDefFoundError: javax/ > portlet/MimeResponse, which is in portlet-api 2.0. So I stopped.. > will continue some other time. The problems discussed in that other thread were related to some work we did recently, and Erik will be taking care of that. Once this is done, you should be able to get back on the main trunk and implement this change. Alex -- Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise Orbeon's Blog: http://www.orbeon.com/blog/ Personal Blog: http://avernet.blogspot.com/ Twitter - http://twitter.com/avernet -- 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 |
Free forum by Nabble | Edit this page |