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

RE: The Power of Groves

  • From: "Didier PH Martin" <martind@n...>
  • To: "cbullard@h..." <"Len Bullard"@mail.HiWAAY.net>, "W. Eliot Kimber" <eliot@i...>
  • Date: Wed, 9 Feb 2000 10:03:37 -0500

grove specification
Hi Len,

Len said:
My problem here is that we seem to be in an MMTT trap.  That is,
I can point to at least four other languages that claim the
*name* "node".  The trick is to prove that what each calls a node
is the same.

Didier replies:
In a previous post, I specified what is a node in the Grove sense. A node is
a set of properties. Some properties are singleton and others are collection
properties. To create a hierarchy of nodes, we can use a collection of node
property. This recursive behavior allows you to create a hierarchy (if you
want to create a hierarchy of course). For instance, a node of type element
has a "content" property. this latter is a collection property, each member
of the collection property is a node. If we apply the constraint to say that
only text and element node (particular types) are allowed in the collection
then we have specified a particular grove plan.

So, a node in the grove sense is well specified. it is a set.... (go back to
previous paragraph). I just repeated that for those who think that Groves
are just for Mensa members :-)

We are actually working on DSSSL-2 and because DSSSL is a grove manipulation
language, we saw that we need to create a specific document for groves.
Actually Grove specification is embedded in both Hytime and DSSSL. Also, if
we now package Groves specifications in a separate document, we have a
chance to add some elements like class inheritance. Have better examples.
And...have figures that are lacking most of the time in ISO specs.

The Info set group is using RDF to define classes. This is a good idea since
an RDF "frame" is a set of properties. A good point about RDF is that its
schema allows class inheritance. The bad point is that the actual info set
is more resembling fussy sets than anything else :-) I think not because of
lack of WG intelligence (there is plenty of that) but probably more because
of political issues (but in fact, I really do not know the cause of the
fuzziness)

Something particular about the usage of the Grove paradigm. A node can be
composed of properties that come form the document and of properties that
come from an outside source like, for instance, an interpreter. For example,
you first translate an XML document into an XML grove plan so that we have
for the XML element node the following set of properties:

element node
   |____ Qname
   |____ ID
   |____ attributes
   |        |___ Attribute node
   |        |___ Attribute node
   |____ content
           |___ text node
           |___ element node
           |___ element node

Then, an Xlink interpreter could transform this element node into something
new if we say that the link node inherits from the element node (this is
only a sample here to illustrate "live" the behavior of Groves)

So that we have now:
element node
   |____ locators
   |        |___ locator node
   |        |___ locator node
   |____ Qname
   |____ ID
   |____ attributes
   |        |___ Attribute node
   |        |___ Attribute node
   |____ content
           |___ text node
           |___ element node
           |___ element node

You recognized that we now transformed our element node into an xlink
extended node. Or so to speak, that the xlink extended node inherited from
the element node and therefore that an xlink node _is an_ element node. And
so on and so forth.

So Len, Even if you know most of this stuff, I wanted to bring to the table
that:
a) If we show how some w3C technologies could be documented, explained or
using Groves, everybody will gain some comprehension
b) Groves are created by interpreters that build a model after the document
is parsed. We can explicitly say what is in the model and why we used this
or this particular property. Even say which property is coming directly from
the document and which property is filled by the interpreter. (this last
point is often missed in most texts about Groves)
c) We can explicitly say also that the actual DOM is based on a certain
model which is not incompatible with Groves.
d) However, alternative API could be created on Groves that are a lot more
scalable, and less complex. For instance, a JavaScript construct could
access a grove element as: document.element1.locators.locator1 which is
providing more information about the node hierarchy and which is probably
more intuitive to a javascript programmer.

Cheers
Didier PH Martin
----------------------------------------------
Email: martind@n...
Conferences: Web New York (http://www.mfweb.com)
Book to come soon: XML Pro published by Wrox Press
Products: http://www.netfolder.com


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.