Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Is "#" symbol allowed in package NS URI?
Is "#" symbol allowed in package NS URI? [message #704136] Thu, 28 July 2011 10:05 Go to next message
Nikolay Kasyanov is currently offline Nikolay KasyanovFriend
Messages: 30
Registered: September 2010
Location: Russia
Member
Have some metamodel MM1 with package having NS URI ending with "#", and another metamodel MM2, that uses MM1.

When using this MMs with CDO, I had problems with resolving MM1 package elements by URI, so I think problem is "#" symbol, looks like it's being truncated in some places, and not truncated in other.
(no subject) [message #704227 is a reply to message #704136] Thu, 28 July 2011 11:58 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
Am 28.07.2011 12:05, schrieb corrmage:
> Have some metamodel MM1 with package having NS URI ending with "#", and another metamodel MM2, that uses MM1.
>
> When using this MMs with CDO, I had problems with resolving MM1 package elements by URI, so I think problem is "#" symbol, looks like it's being truncated in some places, and not truncated in other.
In CDO we decided to use the hash character to separate package nsURI from classifier name when we use a single string to unambiguously identify EClassifiers in the scope of a package registry. I thought that was a good decision because the hash character is reserved as a fragment separator in XML anyway.

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper


Re: (no subject) [message #704262 is a reply to message #704227] Thu, 28 July 2011 12:32 Go to previous messageGo to next message
Nikolay Kasyanov is currently offline Nikolay KasyanovFriend
Messages: 30
Registered: September 2010
Location: Russia
Member
thanks for answer, Eike.
Re: (no subject) [message #704335 is a reply to message #704262] Thu, 28 July 2011 13:51 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33142
Registered: July 2009
Senior Member
I agree that, it's quite a bad idea to include a # in the nsURI.

On 28/07/2011 5:32 AM, corrmage wrote:
> thanks for answer, Eike.


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:[EMF] ItemProvider for AnyType
Next Topic:EMF Command Line Plugin Headless Server
Goto Forum:
  


Current Time: Fri Apr 26 11:57:15 GMT 2024

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

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

Back to the top