String binding = getBindingFromPrimitiveType(base);\r
writeAttribute(fw, attrName, relationName, binding, isReference);\r
} else {\r
- throw new RuntimeException("Cannot resolve type for Attribute " + attrName + " -> " + primitiveType.getLocalPart());\r
+ //throw new RuntimeException("Cannot resolve type for Attribute " + attrName + " -> " + primitiveType.getLocalPart());\r
+ //writeAttribute(fw, attrName, relationName, binding, isReference);\r
}\r
}\r
\r
// FIXME : handle optional attributes properly.\r
for (org.simantics.xml.sax.configuration.Attribute a : composition.getAttribute()) {\r
Attribute attribute = ((Attribute)attributes.getRight(a));\r
- QName atype = getBaseType(attribute);\r
+ //QName atype = getBaseType(attribute);\r
+ QName atype = getPrimitiveType(attribute);\r
String defaultValue = attribute.getDefault();\r
if (defaultValue == null)\r
defaultValue = getDefaultValue(atype);\r