[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: What is the correct terminology for an element andits name

  • From: "Ghislain Fourny" <gfourny@inf.ethz.ch>
  • To: "Costello, Roger L." <costello@mitre.org>
  • Date: Mon, 28 Mar 2011 21:02:55 +0000

Re:  What is the correct terminology for an element andits name
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]


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.