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

About Infosets

  • From: Didier PH Martin <martind@n...>
  • To: Xml-Dev <xml-dev@x...>
  • Date: Sat, 03 Mar 2001 10:11:07 -0500

wirelessonecon
Hi,

Even if I am very busy to put the final touches on the talvastudio.com site,
I still have time to lurk the list and think about what is said. Something
caught my attention: Infosets.

I am glad Henry presented the underlying model behind XML. To what he said,
let me add this:

Food for though:
----------------

a) an info set can also be perceived as a hierarchical database
b) A particular node, being a document model abstraction may benefit to be
also something else. For instance, an <invoice> element is an element _and_
an invoice entity. Thus, if we find ways to have a node to inherits the
document abstraction (i.e. a syntax entity) and _also be_ a semantic entity
(an invoice entity is the real semantic object, the element is tied to the
syntax, taken as a node abstraction we can say that the element's hierarchy
and therefore the node's position within the hierarchy supports the
composite pattern (see gamma and al. Design Patterns) - the fact that the
document structure is based on the composite pattern is sufficient but not
necessary to say that we have here the basis for a hierarchical database
structure).

So like we said, points B leads to the fact that an infoset is a potential
hierarchical database. Therefore an XML document is a serialized
hierarchical database fragment.

Current limitations of the infoset:
-----------------------------------

Until we have a way to query an infoset with an API forget about the
processing pipeline. Off course until we have at least a recommended one,not
a standard one :-), . For instance, the coupling between a parser
transforming a serialized format (i.e. an xml document) into an infoset
(i.e. a mini hierarchical database) and an XSLT engine may be through
something like the Microsoft's selectNodes function (Doctor recommendation:
if you think Microsoft is the evil empire just imagine that your mother or
your best friend invented this useful API :-). This function allows to
extract a node list from an info set. If you pay close attention to an XSLT
engine's needs, you'll notice that this latter starve for node lists
extracted from an infoset (using Xpath addressing).

So, what is needed to help access an infoset is an API allowing to extract
nodelists with xpath expressions. I though DOM3 would do that but I have
seen nor heard nothing said about it in the presented specifications (from
W3C). Why? Don't we got 3 versions to learn what is useful and necessary?
Maybe some political good reasons behind this decision. But there are also
some good practical reasons to include a query function to the current DOM
API. Until then, forget about the dream of having pipelined infosets and so
on and so forth.

So, in fact, the whole processing pipeline also means that:
a) a parser can be used to build the hierarchical database (i.e. the
infoset)
b) processors may query elements from this hierarchical database to perform
some processing like for instance, create a new hierarchical database by
extracting nodelist, performing some processing on these nodelists. By
modifying the info set structure or any other useful process.

In some ways, a processing pipeline resemble data flow engines in which data
structures move from a processor to an other, each processor altering the
data structure (but in the case of an XSLT engine it creates a new altered
copy of the data structure)

Should I ask for a wake up call at the W3C hotel's front desk for the DOM
group? :-)

Didier PH Martin
----------------------------------------------
Email: martind@n...
Conferences: xml devcon 2000 (http://www.xmldevcon2000.com)
		 Wireless Summit NY (http:www.pulver.com)
	       xml devcon 2001 London (http://www.xmldevcon2000.com)
		 wireless one: (http://www.wirelessonecon.com/lasvegas/index.asp)
Book: XML Professional (http://www.wrox.com)
column: xml.com (http://www.xml.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.