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.
|