[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]
Re: [xml-dev] What is the correct terminology for an element andits namespace?
- From: "Ghislain Fourny" <gfourny@inf.ethz.ch>
- To: "Costello, Roger L." <costello@mitre.org>
- Date: Mon, 28 Mar 2011 21:02:55 +0000
Hi Roger,
My guess is
(f) the element's name is a qualified name (QName) with a local name "Publisher", a namespace "http://www.book.org" and an empty prefix
following the XML Namespace specification:
http://www.w3.org/TR/xml-names/
Furthermore, "http://www.book.org" is declared as the default namespace and the scope of this binding is the element as well as is descendants.
Now, to be complete, if one only considers (as literally as possible) the original XML specification (without the namespace layer):
http://www.w3.org/TR/xml/
then I would also say that
(g) this element has the name "Publisher" and a reserved attribute with the name "xmlns" and the value "http://www.book.org".
However to avoid confusion I would definitely rather use (f) above.
I hope this helps.
Kind regards,
Ghislain
> Hi Folks,
>
> Consider this instance document element:
>
> <Publisher xmlns="http://www.book.org">Wrox Press</Publisher>
>
> Which is the correct terminology:
>
> (a) The Publisher element belongs to the http://www.book.org namespace
>
> (b) The Publisher element is in the http://www.book.org namespace
>
> (c) The Publisher element has a namespace property, whose value is "http://www.book.org"
>
> (d) The element has a name property with value "Publisher" and a namespace property with value "http://www.book.org"
>
> (e) None of the above (please provide the correct terminology)
>
> /Roger
[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]