XSD type derived via restriction in same namespace as restricted type?



In XML Schema, is it possible to derive a complex type via restriction
and have the new derived type be in a different namespace than the
original base type?

I've banged on this for 2 days now and I'm starting to think the
answer is no. I've searched this group and have not seen anything
discussing this.

From Walmsley: "The values for the new type are a subset of those for
the base type. All values of the restricted type are also valid
according to the base type".

Now since all values of the restricted type are also valid according
to the base type, it follows that the namespace of the derived type
must be the same as the namespace of the base type. Otherwise the
instances of the derived type would not conform to the base type.

My question: Is it possible to derive a complex type via restriction
and have the new derived type be in a different namespace than the
original base type?

.



Relevant Pages

  • Re: Dynamic cast with generics
    ... ....the problem is that I don't know that is the derived type used. ... The scenario is the following... ... I have a namespace with types and classes that defines a business model. ... but still there is need to reference the objects... ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: inheritance, multiple inheritance and the weaklist and instance dictionaries
    ... and instance dictionaries. ... You have one base type ... layout conflict would be caused by a type setting tp_dictoffset. ... tp_dictoffset and tp_weakrefoffset appropiately in the derived type, ...
    (comp.lang.python)
  • Re: inheritance, multiple inheritance and the weaklist and instance dictionaries
    ... and instance dictionaries. ... You have one base type ... layout conflict would be caused by a type setting tp_dictoffset. ... tp_dictoffset and tp_weakrefoffset appropiately in the derived type, ...
    (comp.lang.python)
  • Re: Problem with map::iterator?
    ... Public inheritance carries with it a standard conversion from the ... derived type to the base type. ... and instance of your derived type as an argument to a function which you ...
    (alt.comp.lang.learn.c-cpp)
  • Re: Casting trouble
    ... > variable of the derived type be assigned a value of base type? ... Dim son As Base ... Dim daughter As Derived ...
    (microsoft.public.dotnet.languages.vb)