[Xsltforms-support] Improved debugging for "Two binds affect one node"
Brought to you by:
alain-couthures
From: Leigh L K. Jr <lei...@xe...> - 2011-02-14 19:45:05
|
As long as XSLTForms restricts bindings to one bind per node, it would be nice to have some debugging support. Of course, it would be better to remove the restriction, but if not, here's a simple thing to do which gives you more info: if (bindid && this.element.id != bindid) { XFProcessor.error(el, "xforms-binding-exception", "Two binds affect one node: " + bindid + ", " + this.element.id); You'll see something like "xf-bind-8, xf-bind-9". Search for the 8th and 9th binds in your file and add unique id attributes to them, and you'll see those new names show up in the error message. Then you can be sure you've found the right ones. Leigh. |