W3C home > Mailing lists > Public > xmlschema-dev@w3.org > March 2011

Re: Terminology: does an XML Schema "declare" a targetNamespace? "specify" a targetNamespace?

From: Mukul Gandhi <gandhi.mukul@gmail.com>
Date: Mon, 28 Mar 2011 15:12:23 +0530
Message-ID: <AANLkTim-xy5e0gQG1Gtndw6mw04+DbDH6v0zKdoS-1KR@mail.gmail.com>
To: Michael Kay <mike@saxonica.com>
Cc: "Costello, Roger L." <costello@mitre.org>, "xmlschema-dev@w3.org" <xmlschema-dev@w3.org>
I think I might have misread Roger's question somewhat. With XML
Schema 1.1 in the case of xs:element and xs:attribute declarations,
the local targetNamespace value overrides the one provided by
xs:schema, while for all other schema components, targetNamespace is
acquired from the xs:schema element.

Please correct me if I'm wrong.

On Sun, Mar 27, 2011 at 7:22 PM, Mukul Gandhi <gandhi.mukul@gmail.com> wrote:
> I think this is true with XML Schema 1.0.
> In XML Schema 1.1, xs:element and xs:attribute instructions can
> specify a local targetNamespace property which overrides the
> targetNamespace property present on the xs:schema instruction.

Mukul Gandhi
Received on Monday, 28 March 2011 09:43:15 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:56:19 UTC