X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=org.simantics.xml.sax%2Fsrc%2Forg%2Fsimantics%2Fxml%2Fsax%2FImporterGenerator.java;h=eb99b5324ab2eb7e5f786bd011564b359c5b8d7f;hb=bcfe73ff5f614ff83f20ce7bf5bfc0fa1b045978;hp=cff87ed72fcfc43ef3b65ac1d5090eadf687c287;hpb=ada38ab0a1a98dcb413bef3273064da36ce2d273;p=simantics%2Finterop.git diff --git a/org.simantics.xml.sax/src/org/simantics/xml/sax/ImporterGenerator.java b/org.simantics.xml.sax/src/org/simantics/xml/sax/ImporterGenerator.java index cff87ed..eb99b53 100644 --- a/org.simantics.xml.sax/src/org/simantics/xml/sax/ImporterGenerator.java +++ b/org.simantics.xml.sax/src/org/simantics/xml/sax/ImporterGenerator.java @@ -525,7 +525,8 @@ public class ImporterGenerator extends SchemaConversionBase{ String binding = getBindingFromPrimitiveType(base); writeAttribute(fw, attrName, relationName, binding, isReference); } else { - throw new RuntimeException("Cannot resolve type for Attribute " + attrName + " -> " + primitiveType.getLocalPart()); + //throw new RuntimeException("Cannot resolve type for Attribute " + attrName + " -> " + primitiveType.getLocalPart()); + //writeAttribute(fw, attrName, relationName, binding, isReference); } } @@ -607,7 +608,8 @@ public class ImporterGenerator extends SchemaConversionBase{ // FIXME : handle optional attributes properly. for (org.simantics.xml.sax.configuration.Attribute a : composition.getAttribute()) { Attribute attribute = ((Attribute)attributes.getRight(a)); - QName atype = getBaseType(attribute); + //QName atype = getBaseType(attribute); + QName atype = getPrimitiveType(attribute); String defaultValue = attribute.getDefault(); if (defaultValue == null) defaultValue = getDefaultValue(atype);