- /** Load the attributes into the js scope. */
- protected void loadAttr() {
- try {
- XML.Attributes a = getAttributes();
- // FIXME: questionable abuse of XML namespaces here
- boolean xturi = "http://xt.ibex.org/".equals(getUri());
- for(int i=0; i < a.attrSize(); i++) {
- if (!xturi && !"http://xt.ibex.org/".equals(a.getUri(i))) continue;
- declare(a.getKey(i));
- put(a.getKey(i), eval(a.getVal(i)));
- }
- } catch (JSExn e) { throw new Exn(e); }
- }
-
- private Object eval(String s) {