Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » bug with xpand 0.8M4 and XSD adapter?
icon5.gif  bug with xpand 0.8M4 and XSD adapter? [message #509869] Mon, 25 January 2010 11:10
Marco  is currently offline Marco
Messages: 216
Registered: August 2009
Senior Member
Hi,

after upgrading Xtext with Xtend and Xpand to 0.8M4 my workflow fails with:
22391 WARN  EClassType         - Couldn't resolve type for Short
22407 WARN  EClassType         - Couldn't resolve type for Short
22438 ERROR AbstractExpressionsUsingWorkflowComponent - Error in Component  of type org.eclipse.xpand2.Generator: 
	EvaluationException : Couldn't find property 'value' for type root::ValueType


The relevant part of the XSD looks like this
  <xs:element name="Foo">
    <xs:complexType>
      <xs:sequence>
        <xs:element ref="Value"/>
        <xs:element maxOccurs="unbounded" ref="Bar"/>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="Value">
    <xs:complexType>
      <xs:simpleContent>
        <xs:extension base="xs:integer">
          <xs:attribute name="Type" use="required" type="xs:NCName"/>
        </xs:extension>
      </xs:simpleContent>
    </xs:complexType>
  </xs:element>


Exactly the same files worked immediately before the upgrade. So I guess the in 0.8 there might be something wrong with the way XSD adapter deals with integer value or that specific type structure.

Best regards,
Marco
Previous Topic:looking for good tutorial or reference work
Next Topic:Howto run MWE workflow programmatically with classpath?
Goto Forum:
  


Current Time: Fri Apr 18 06:56:19 EDT 2014

Powered by FUDForum. Page generated in 0.01692 seconds