orbeon/orbeon-forms — Issue #14: Improve xxbl:global scoping
Author: ebruchez
Created: 2012-01-27 18:21:13+00:00
State: open
Labels: RFE, XForms

Right now, [`xxbl:global`](http://wiki.orbeon.com/forms/doc/developer-guide/xbl-components-guide#TOC-xxbl:global-element) scopes everything in the top-level scope. This is problematic:

- it breaks encapsulation (global elements are just copied to the top-level)
- it can lead to id conflicts
- accessing the top-level scope is not always possible

The idea is to scope globals in a new scope per XBL binding id (not per concrete binding as the scope is shared amongst concrete bindings).