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

Re: What is declarative XML? (And what's not)

  • From: Peter Hunsberger <peter.hunsberger@gmail.com>
  • To: "Costello, Roger L." <costello@mitre.org>
  • Date: Wed, 3 Jun 2009 21:47:03 -0500

Re:  What is declarative XML? (And what's not)
On Wed, Jun 3, 2009 at 6:31 PM, Costello, Roger L. <costello@mitre.org> wrote:
>
> Hi Folks,
>
> I'd like for us to nail down exactly what we mean by "descriptive markup" and "algorithmic markup."

Ok, I'll bite, why?

> Here's a stab at it:
>
>
> 1. XML documents just contain markup and data. There are no semantics in XML documents. An XML document is just syntax.
>

XML documents describe a graph.  Computer programs describe a graph.
The semantics are dependent on who / what is traversing the graph.

>
> 2. A software application can be written to perform specific, repeatable actions when it encounters markup in an XML instance document. Stated differently, applications can be written to add a layer of semantics on top of the XML syntax.
>

See above  :-)  But the applications aren't "adding" anything, rather
they are expecting the syntax of the XML to map to the syntax expected
by the application so that they can interpret the semantics in
accordance to the vocabulary the application and the XML presumably
share.

> 3. When creating an XML vocabulary, it is common practice to write prose that specifies semantics for the XML vocabulary. Then software applications can be written to implement the semantics specified by the prose.
>

The semantics can be stored as meta data (a third graph), external to
both the XML and the application if one wishes...

>
> 4. Sometimes the prose just assigns a definition to each element and attribute in the XML vocabulary. Software applications that implement these semantics "understands" the XML vocabulary. These applications don't execute any actions when given an XML instance document, beyond simply informing itself. For these applications the markup is purely informational or descriptive.
>
>    For applications faithful to the semantics
>    specified by the prose, the XML vocabulary
>    is descriptive markup.
>

How is this useful?  Configuration?  I believe you are grasping for
something more...

>
> 5. Sometimes the prose associates actions to each element and attribute in the XML vocabulary. Software applications that implement these semantics will execute the actions when given an XML instance document. For these applications the markup represents instructions or prescriptions.
>
>    For applications faithful to the semantics
>    specified by the prose, the XML vocabulary
>    is algorithmic markup.
>
>
> I'm sure that these can be expressed more clearly. I welcome your suggestions.
>

It's not clear what distinction you are trying to draw.  As such, it's
not clear how to clarify it....

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