Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » XML Schema Definition (XSD) » How to annotate genmodel with a relative import location?
How to annotate genmodel with a relative import location? [message #598627] Sat, 26 August 2006 19:21
Matthew Rawlings is currently offline Matthew RawlingsFriend
Messages: 39
Registered: July 2009
How can I annotate the genmodel to generate the correct schemaLocation value
for an import?

I successfully generate an eCore model and genmodel from this schema.
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns=""
elementFormDefault="qualified" attributeFormDefault="unqualified">
<xs:import namespace=""
<xs:element name="car">
<xs:element ref="ns1:wheel"/>

From the eCore model I want to export the model to an XSD. When I export I
get this schema.
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:ecore=""
ecore:documentRoot="DocumentRoot" ecore:nsPrefix="vehicles"
<xsd:import namespace=""
<xsd:element name="car" type="vehicles:car_._type"/>
<xsd:complexType ecore:name="CarType" name="car_._type">
<xsd:element ref="parts:wheel"/>

How can I make the value of the schemaLocation in the import be the relative
location of "parts.xsd"? I do not want "platform" as the scheme for my URIs.
I want to do this using annotations/detail on the genmodel rather than
coding around it.

- Matthew
Previous Topic:Loading Platform Resource URI based XML Schema
Next Topic:How to annotate genmodel with a relative import location?
Goto Forum:

Current Time: Sun May 27 14:04:27 GMT 2018

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

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

Back to the top