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

"Costello, Roger L." <[email protected]>
Newsgroups gmane.text.xml.schema.devel
Message-ID <[email protected]>
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?

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



-----Original Message-----
From: Michael Kay [mailto:[email protected]] 
Sent: Sunday, March 27, 2011 9:22 AM
To: Costello, Roger L.
Cc: [email protected]
Subject: Re: Terminology: does an XML Schema "declare" a targetNamespace? "specify" a targetNamespace?


targetNamespace is a property of a schema component which it acquires by 
virtue of the presence of a targetNamespace attribute on the xs:schema 
element of the schema document in which the XML representation of the 
component appears.

Which is a mouthful, but to make it fit to go into the spec you would 
have to add appropriate fonts, brackets, and braces.

But the important thing to note is that targetNamespace is not a 
property of a schema, it is a property of a schema document.

Michael Kay
Saxonica

On 27/03/2011 13:36, Costello, Roger L. wrote:
> Hi Folks,
>
> What is the correct terminology with regard to targetNamespace?
>
>    - Does an XML Schema "declare" a targetNamespace?
>
>    - Does an XML Schema "define" a targetNamespace?
>
>    - Does an XML Schema "specify" a targetNamespace?
>
>    - Does an XML Schema "create" a targetNamespace?
>
>    - Does an XML Schema "identify" a targetNamespace?
>
> Or something else?
>
> /Roger
>
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.