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

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

From: Michael Kay <mike@saxonica.com>
Date: Mon, 28 Mar 2011 09:36:06 +0100
Message-ID: <4D904876.4040201@saxonica.com>
To: "Costello, Roger L." <costello@mitre.org>
CC: "xmlschema-dev@w3.org" <xmlschema-dev@w3.org>
On 27/03/2011 14:47, Costello, Roger L. wrote:
> Thanks Michael.
> Let me put my spin on what I think you said:
>      Each element and attribute that is declared in an XML Schema
>      document acquires a namespace property by virtue of the presence
>      of the targetNamespace attribute on the xs:schema element.
> Is that correct?

Not quite. An Element Declaration has a property called {target 
namespace}. You can find a list of the properties of an Element 
Declaration here:


> This is an embarrassingly simple question:
>      A namespace is a "property" is an element. Yes?
> I've never thought of a namespace as being a "property" of an element. What other "properties" do element's have? If an element has attributes, are those attributes a "property" of the element?
> /Roger
Michael Kay
Received on Monday, 28 March 2011 08:36:37 UTC

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