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

=?UTF-8?Q?Re=3A_=5Bxml=2Ddev=5D_Word_of_the_day_=E2=80=9Crepresent=E2=80

  • From: Peter Hunsberger <peter.hunsberger@gmail.com>
  • To: "Costello, Roger L." <costello@mitre.org>
  • Date: Sat, 4 Apr 2020 09:36:49 -0500

=?UTF-8?Q?Re=3A_=5Bxml=2Ddev=5D_Word_of_the_day_=E2=80=9Crepresent=E2=80
The more interesting question, at least to me, is "what representations of things are equivalent to other representations"? For the answer to that you may want to look into Category theory. Helps if you know Group theory, which if you've done enough functional programming (even by way of XSLt) you may have picked up without even knowing it. In any case, Category theory can be used to formalize type systems, which then gives a nice answer to your question...

On Sat, Apr 4, 2020 at 8:50 AM Costello, Roger L. <costello@mitre.org> wrote:

Hi Folks,

When writing programs we use a sequence of digit characters such as 1234 to represent an integer value. We use the + character to represent the addition operation.

What does the word “represent” mean? From the above sentences I surmise that the word “represent” is used when you have one thing that is used in place of another thing. Here are a couple graphics I created showing this:

I said that the word “represent” is used when you have one thing (I’ll refer to this by “A”) that is used in place of another thing (I’ll refer to this by “B”). Why don’t we use B? After all, B is the thing that we are really interested in, right? Why do we use A?  Take 1234. It represents a thing, but what? The above graphic shows it representing a “certain integer.” That’s pretty vague. Can we be more concrete? Perhaps 1234 represents a binary encoding:

10011010010

But isn’t that binary encoding another representation? Yes it is.

1234 and 10011010010 represent an abstract thing. In fact, they represent the same abstract thing. What does “abstract thing” mean? It means a thing that humans made up and doesn’t have an objective reality.

If the things being represented are abstract/amorphous/not-objective-reality, then it seems clear that we will need some way to represent them if we are to have meaningful discussions and if we are to process them. What does it mean to “process” a thing that is abstract/amorphous/not-objective-reality? We don’t. Instead, we process its representation. The history of mathematics and computing has shown that 1234 and 10011010010 are useful ways to represent a thing (i.e., some particular integer).

Let’s get to XML. Consider the following XML:

<Book>
   
<title>The Emperor's New Mind</title>
   
<author>Roger Penrose</author>
   
<isbn>0-19-286198-0</isbn>
   
<publisher>Oxford University Press</publisher>
</Book>

 

Does the XML represent a thing? If so, what?

Per the XML specification, the XML represents a tree of elements. What does that mean, “per the XML specification”? It means, per XML parsers. To XML parsers the XML represents a tree of elements, as this graphic shows:

Most assuredly, to an XML parser the XML does not represent a book.

On the other hand, for an application that is specifically coded to process XML instances of the type shown above, the XML does represent a book. Notice that I did not say “for an application that is specifically coded to process books.” Book is one of those abstract/amorphous/not-objective-reality things. Applications cannot process books. But applications can process XML instances.

Those are my musings for this Saturday morning. I welcome your corrections and/or additions.

/Roger (armchair philosopher)

 

--
Peter Hunsberger


[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.