Re: PROPOSAL: Extensions to XMIReader and XMIWriter interfaces

Brian Smith <[email protected]>
Newsgroups gmane.comp.java.netbeans.modules.mdr.devel
Organization CollabNet Hosting
Message-ID <[email protected]>
Ronald Krijgsheld wrote:
> Yes, I already thought of that too, but still had to check if the XMI spec
> said something about a xmi.id format. From your remark, I conclude that that
> is not the case. So, I do not need the getLocation method.
> Ronald

The format of xmi.id is constrained by the XML ID validity constraints:
http://www.w3.org/TR/REC-xml#id.

It must be (a) unique to the document, and (b) a valid NAME:
http://www.w3.org/TR/REC-xml#NT-Name

Which means, it must match this grammar:

     [4]    NameChar    ::=    Letter | Digit | '.' | '-' | '_' | ':'
                                      | CombiningChar | Extender
     [5]    Name        ::=    (Letter | '_' | ':') (NameChar)*

Where also the ":" has been reserved for use for XML Namespaces. So, for 
example, a format such as "Model.Class-123" would be a valid xmi.id.

- Brian
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.