Skip to main content


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 16:10
Marco  is currently offline Marco Friend
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: Sun Oct 06 17:49:26 GMT 2024

Powered by FUDForum. Page generated in 0.02888 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top