Re: Re: [mdr-users] Re: how to import XMI 1.0 instance of UML metamodel?

Daniel Prusa <[email protected]> Mon, 04 Nov 2002 17:34:03 +0100
Newsgroups gmane.comp.java.netbeans.modules.mdr.devel
Message-ID <[email protected]>
Hi Brian,

> If XMI 1.0 is a subset of XMI 1.1, then it should be the case that a XMI
> 1.0 document should validate against an XMI 1.2 DTD, right? If so, then
> the current DTD writer is not correct since it does not include the XMI
> 1.0 forms of elements. E.g. it handles elements like
> <Model:Package>...</Model:Package> but not
> <Model.Package>...</Model.Package>

DTD writer produces fully qualified names only if the metamodel does not
contain namespace definitions. This is stated in the specification. For
example, DTD related to MOF metamodel available at omg contains namespace
prefixed names only as well.
You are right that such a DTD cannot be used to validate XMI 1.0 - we can
consider to add some optional parameter forcing DTD writer to produce both
types of names.

Daniel