fix attribute processing bug, but introduce questionable namespace processing
[org.ibex.xt-crawshaw.git] / src / java / org / ibex / xt / JSElement.java
index 1f07af2..cfa1a1f 100644 (file)
@@ -35,8 +35,10 @@ public class JSElement extends JSScope implements XML.Element {
     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 (!"http://xt.ibex.org/".equals(a.getUri(i))) continue;
+                if (!xturi && !"http://xt.ibex.org/".equals(a.getUri(i))) continue;
                 declare(a.getKey(i));
                 put(a.getKey(i), eval(a.getVal(i)));
             }