XML.orgXML.org
FOCUS AREAS |XML-DEV |XML.org DAILY NEWSLINK |REGISTRY |RESOURCES |ABOUT
OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]
=?utf-8?B?UmU6IFt4bWwtZGV2XSBUaGUgc2VtYW50aWNzIG9mIGFuIFhNTCBkb2N1bWVu?==?utf-8?B?dCBpcyDigKY=?=

Hi David,

 

  • That's a very strange interpretation of "semantics"

 

My interpretation of “semantics” is consistent (I think) with how mathematicians define the semantics of an expression. For example, I believe that a mathematician would say the semantics of this expression:

 

               1 + 1

 

is: 2

 

In other words, the semantics of the expression is determined by the actions taken on the expression.

 

Compare that with what I said:

 

The semantics of an XML document is determined by the actions taken on the XML document.

 

I think that I am being consistent with mathematicians. Do you agree?

 

/Roger

 

From: David Carlisle <d.p.carlisle@gmail.com>
Sent: Saturday, January 8, 2022 8:14 AM
To: Roger L Costello <costello@mitre.org>
Cc: xml-dev@lists.xml.org
Subject: [EXT] Re: [xml-dev] The semantics of an XML document is …

 

 

 

On Sat, 8 Jan 2022 at 13:04, Roger L Costello <costello@mitre.org> wrote:

Hi Folks,

The semantics of an XML document is determined by the actions taken on the XML document.

Consider this XML document:

<airplane-flight>
    <duration units="hours">1</duration>
    <speed units="kilometers-per-hour">500</speed>
</airplane-flight>

What is its semantics?

Answer: it has no semantics because it has no actions.

Pair up the XML document with actions that compute duration * speed (i.e., distance traveled by the airplane flight):

The semantics of the XML document is: 500

Pair up the XML document with different actions and it has different semantics:

Now the semantics of the XML document is: 310.686

----------------------------------------------

Wicked cool!

Comments?

/Roger

 

That's a very strange interpretation of "semantics"  you have two calculations both with the same data so the semantics (meaning) of the document is the same in both cases and is the interpretation of the elements. For example the interpretation of  <duration units="hours">1</duration> as meaning 1 hour, that interpretation (which is external to the document) is the same in both cases. and (probably) the same if you just store the xml and never do any calculation at all.

 

David

 

 

 



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


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 1993-2007 XML.org. This site is hosted by OASIS