Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » XML Schema Definition (XSD) » Identifier and package names in XSD-based EMF
Identifier and package names in XSD-based EMF [message #71863] Tue, 20 March 2007 13:12 Go to next message
Shahar Ronen is currently offline Shahar RonenFriend
Messages: 17
Registered: July 2009
Junior Member
Hello
I'm new to EMF as well as XML schema. Generating a model from an XML schema,
I noticed EMF names the identifiers, as well as the model's packages, after
the last word in the schema's namespace hierarchy. For example, the
namespace identifier for a schema whose namespace is
http://www.test.org/2007/sname would be "sname"; however, the identifier for
the namespace http://www.ccsds.org/xfdu/2004 (which I use) would be "2004" -
even though I'd like it to be "xfdu".
Is there a way to configure the way EMF generates these names? It turns out
there's some inconsistency when it comes to schema namespaces (i.e., whether
the year should follow the standard's name or precede it), so being able to
change EMF's naming methods would help overcome such inconsistencies.

Thanks,
Shahar.
Re: Identifier and package names in XSD-based EMF [message #71892 is a reply to message #71863] Tue, 20 March 2007 13:40 Go to previous message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

This is a multi-part message in MIME format.
--------------030305050404070800070107
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Shahar,

This document describes all the annotations available to tailor the XML
Schema -> Ecore conversion process:

XML Schema to Ecore Mapping
< http://www.eclipse.org/modeling/emf/docs/overviews/XMLSchema ToEcoreMapping.pdf>

You can use ecore:package on the <xsd:schema> element to specify the
fully qualified package name.


Shahar Ronen wrote:
> Hello
> I'm new to EMF as well as XML schema. Generating a model from an XML schema,
> I noticed EMF names the identifiers, as well as the model's packages, after
> the last word in the schema's namespace hierarchy. For example, the
> namespace identifier for a schema whose namespace is
> http://www.test.org/2007/sname would be "sname"; however, the identifier for
> the namespace http://www.ccsds.org/xfdu/2004 (which I use) would be "2004" -
> even though I'd like it to be "xfdu".
> Is there a way to configure the way EMF generates these names? It turns out
> there's some inconsistency when it comes to schema namespaces (i.e., whether
> the year should follow the standard's name or precede it), so being able to
> change EMF's naming methods would help overcome such inconsistencies.
>
> Thanks,
> Shahar.
>
>
>


--------------030305050404070800070107
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Shahar,<br>
<br>
This document describes all the annotations available to tailor the XML
Schema -&gt; Ecore conversion process:<br>
<blockquote><a
href=" http://www.eclipse.org/modeling/emf/docs/overviews/XMLSchema ToEcoreMapping.pdf">XML
Schema to Ecore Mapping</a><br>
</blockquote>
You can use ecore:package on the &lt;xsd:schema&gt; element to specify
the fully qualified package name.<br>
<br>
<br>
Shahar Ronen wrote:
<blockquote cite="midetomj7$drd$1@utils.eclipse.org" type="cite">
<pre wrap="">Hello
I'm new to EMF as well as XML schema. Generating a model from an XML schema,
I noticed EMF names the identifiers, as well as the model's packages, after
the last word in the schema's namespace hierarchy. For example, the
namespace identifier for a schema whose namespace is
<a class="moz-txt-link-freetext" href="http://www.test.org/2007/sname">http://www.test.org/2007/sname</a> would be "sname"; however, the identifier for
the namespace <a class="moz-txt-link-freetext" href="http://www.ccsds.org/xfdu/2004">http://www.ccsds.org/xfdu/2004</a> (which I use) would be "2004" -
even though I'd like it to be "xfdu".
Is there a way to configure the way EMF generates these names? It turns out
there's some inconsistency when it comes to schema namespaces (i.e., whether
the year should follow the standard's name or precede it), so being able to
change EMF's naming methods would help overcome such inconsistencies.

Thanks,
Shahar.


</pre>
</blockquote>
<br>
</body>
</html>

--------------030305050404070800070107--
Re: Identifier and package names in XSD-based EMF [message #602247 is a reply to message #71863] Tue, 20 March 2007 13:40 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33113
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------030305050404070800070107
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Shahar,

This document describes all the annotations available to tailor the XML
Schema -> Ecore conversion process:

XML Schema to Ecore Mapping
< http://www.eclipse.org/modeling/emf/docs/overviews/XMLSchema ToEcoreMapping.pdf>

You can use ecore:package on the <xsd:schema> element to specify the
fully qualified package name.


Shahar Ronen wrote:
> Hello
> I'm new to EMF as well as XML schema. Generating a model from an XML schema,
> I noticed EMF names the identifiers, as well as the model's packages, after
> the last word in the schema's namespace hierarchy. For example, the
> namespace identifier for a schema whose namespace is
> http://www.test.org/2007/sname would be "sname"; however, the identifier for
> the namespace http://www.ccsds.org/xfdu/2004 (which I use) would be "2004" -
> even though I'd like it to be "xfdu".
> Is there a way to configure the way EMF generates these names? It turns out
> there's some inconsistency when it comes to schema namespaces (i.e., whether
> the year should follow the standard's name or precede it), so being able to
> change EMF's naming methods would help overcome such inconsistencies.
>
> Thanks,
> Shahar.
>
>
>


--------------030305050404070800070107
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Shahar,<br>
<br>
This document describes all the annotations available to tailor the XML
Schema -&gt; Ecore conversion process:<br>
<blockquote><a
href=" http://www.eclipse.org/modeling/emf/docs/overviews/XMLSchema ToEcoreMapping.pdf">XML
Schema to Ecore Mapping</a><br>
</blockquote>
You can use ecore:package on the &lt;xsd:schema&gt; element to specify
the fully qualified package name.<br>
<br>
<br>
Shahar Ronen wrote:
<blockquote cite="midetomj7$drd$1@utils.eclipse.org" type="cite">
<pre wrap="">Hello
I'm new to EMF as well as XML schema. Generating a model from an XML schema,
I noticed EMF names the identifiers, as well as the model's packages, after
the last word in the schema's namespace hierarchy. For example, the
namespace identifier for a schema whose namespace is
<a class="moz-txt-link-freetext" href="http://www.test.org/2007/sname">http://www.test.org/2007/sname</a> would be "sname"; however, the identifier for
the namespace <a class="moz-txt-link-freetext" href="http://www.ccsds.org/xfdu/2004">http://www.ccsds.org/xfdu/2004</a> (which I use) would be "2004" -
even though I'd like it to be "xfdu".
Is there a way to configure the way EMF generates these names? It turns out
there's some inconsistency when it comes to schema namespaces (i.e., whether
the year should follow the standard's name or precede it), so being able to
change EMF's naming methods would help overcome such inconsistencies.

Thanks,
Shahar.


</pre>
</blockquote>
<br>
</body>
</html>

--------------030305050404070800070107--


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:Identifier and package names in XSD-based EMF
Next Topic:an issue when using the xml schema editor to show the reference element...
Goto Forum:
  


Current Time: Fri Mar 29 04:41:25 GMT 2024

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

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

Back to the top