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

Re: Is a URI a uri or the entity pointed to by the uri?

  • From: Michael Kay <mike@saxonica.com>
  • To: "Costello, Roger L." <costello@mitre.org>
  • Date: Mon, 27 Nov 2017 16:47:00 +0000

Re:  Is a URI a uri or the entity pointed to by the uri?

On 27 Nov 2017, at 15:37, Costello, Roger L. <costello@mitre.org> wrote:

Hi Folks,

1. Here is a set:

{The Amazon River, George Washington, 3}

That set uses a name for each of its member, but the set consists of the objects named, not of the names themselves.

If you say so. It's your notation, you can define what it means.

3. An XML document has this attendee element:


The XML Schema declares attendee this way:

                <element name=”attendee” type=”xs:anyURI” />

What is the value of <attendee>?

I guess you're actually asking, what is the value of <attendee>http://www.example.com/SallySmith</attendee>

Answer: it depends what you mean by "value of". If your question means, for example, What is the [value] property of the element information item in the Infoset produced by parsing the string "<attendee>http://www.example.com/SallySmith</attendee>", then the answer is: there is no value property; the Infoset defines no such property. If your question means something else, for example What is the string-value of the element node in XDM produced by parsing the string "<attendee>http://www.example.com/SallySmith</attendee>", then the answer is "http://www.example.com/SallySmith" (a string, or more precisely, an untypedAtomic value). And if your question means "what is the typed value" of this element node, then the answer is a URI (or more precisely, an instance of xs:anyURI).

If your question refers to some specification of an XML vocabulary that uses the term "value of" in a different way, then the answer could indeed be a person whose name is Sally Smith. You just need to say what you mean. Until you say what you mean, your question is meaningless.

Michael Kay

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


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.
First Name
Last Name
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.