

Re: Newbie question

From: Jeni Tennison <jeni@jenitennison.com>
Date: Mon, 30 Dec 2002 09:01:03 +0000
Message-ID: <2484715453.20021230090103@jenitennison.com>
To: Vineet Chaoji <chaoji@roguewave.com>

Hi Vineet,

> Looking at the specs it seems that your answers assumed that both
> the complex types are in the same target namespace. But I dont
> understand how does the target namespace influence the answer to my
> questions. In context of my schema, I think, that the derived
> complex type should have the use="required" irrespective of what its
> target namespace is.

The target namespaces of the two schemas (and hence the namespaces of
the two complex types) makes no difference whatsoever. So you are
correct that the attribute declaration in the derived complex type
should have use="required" whatever the target namespaces are.

The only difference that the target namespace of your schemas could
make would be if they were different and the 'form' of either or both
of the attributes you were declaring was 'qualified'. If that were the
case then the attribute declarations would be for attributes in
different namespaces and the derived complex type would end up with
two separate attributes: the attribute use from the base type would
not be overridden by the attribute use from the definition of the
derived type.



Jeni Tennison
Received on Monday, 30 December 2002 04:00:36 GMT
