Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Operations in XML Schema Not Translating
Operations in XML Schema Not Translating [message #429150] Thu, 09 April 2009 21:48 Go to next message
Mike Gering is currently offline Mike GeringFriend
Messages: 41
Registered: July 2009
Member
I have Eclipse 3.4.2 and cannot get operations to translate from my XML
schema to the ecore model. I can add an operation in the ecore editor
and export the model to a schema file. But when I either try to reload
the model or create a new model from the xsd, the operation is not
translated.

Here is the testcase:
<?xml version="1.0" encoding="UTF-8"?><xsd:schema
xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" ecore:nsPrefix="ovf"
ecore:package="com.ibm.ccl.soa.deploy.ovf"
targetNamespace="http://www.ibm.com/ccl/soa/deploy/ovf/1.0.0/"
xmlns:ovf="http://www.ibm.com/ccl/soa/deploy/ovf/1.0.0/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:complexType abstract="true" name="AbstractMapping">
<xsd:annotation>
<xsd:appinfo ecore:key="operations"
source="http://www.eclipse.org/emf/2002/Ecore">
<operation name="foobar"/>
</xsd:appinfo>
</xsd:annotation>
<xsd:attribute ecore:changeable="false" ecore:derived="true"
ecore:reference="xsd:anyType" ecore:transient="true"
ecore:volatile="true" name="ovfModelObject" type="xsd:IDREF"/>
<xsd:attribute name="ovfURIFragment" type="xsd:anyURI"/>
</xsd:complexType>
</xsd:schema>

The foobar operation is not imported.

Help, please!!

Mike Gering
Re: Operations in XML Schema Not Translating [message #429151 is a reply to message #429150] Thu, 09 April 2009 23:31 Go to previous message
Mike Gering is currently offline Mike GeringFriend
Messages: 41
Registered: July 2009
Member
So, as usual, I found the problem after I posted it. For reasons I don't
recall, the schema element includes a null prefix for the XMLSchema
namespace. I think this confused EMF when it processed the <operation>
element.

Mike

Mike Gering wrote:
> I have Eclipse 3.4.2 and cannot get operations to translate from my XML
> schema to the ecore model. I can add an operation in the ecore editor
> and export the model to a schema file. But when I either try to reload
> the model or create a new model from the xsd, the operation is not
> translated.
>
> Here is the testcase:
> <?xml version="1.0" encoding="UTF-8"?><xsd:schema
> xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" ecore:nsPrefix="ovf"
> ecore:package="com.ibm.ccl.soa.deploy.ovf"
> targetNamespace="http://www.ibm.com/ccl/soa/deploy/ovf/1.0.0/"
> xmlns:ovf="http://www.ibm.com/ccl/soa/deploy/ovf/1.0.0/"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema">
> <xsd:complexType abstract="true" name="AbstractMapping">
> <xsd:annotation>
> <xsd:appinfo ecore:key="operations"
> source="http://www.eclipse.org/emf/2002/Ecore">
> <operation name="foobar"/>
> </xsd:appinfo>
> </xsd:annotation>
> <xsd:attribute ecore:changeable="false" ecore:derived="true"
> ecore:reference="xsd:anyType" ecore:transient="true"
> ecore:volatile="true" name="ovfModelObject" type="xsd:IDREF"/>
> <xsd:attribute name="ovfURIFragment" type="xsd:anyURI"/>
> </xsd:complexType>
> </xsd:schema>
>
> The foobar operation is not imported.
>
> Help, please!!
>
> Mike Gering
Previous Topic:Undo in EMF Editor based on Forms
Next Topic:eSuperTypes vs. eGenericSuperTypes
Goto Forum:
  


Current Time: Thu Apr 18 10:05:48 GMT 2024

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

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

Back to the top