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

Re: The subsetting has begun


structure controlled markup aware
 >>"Alaric B. Snell" wrote:
 >> It's not a DAG; you can't share subtrees. It's a tree!

[Walter Perry]
 >The XML instance is neither a tree nor a directed acyclic graph.

The instance is UnicodeWithAngleBrackets for sure. But an XML compliant 
parser much turn this mixture into
a tree. If it can't, surely, the instance is not WF? I don't see how a 
parser can match production [1] of the XML spec.
without turning the UnicodeWithAngleBrackets into a tree. The tree might be 
communicated in its entitity
to the application (a la DOM) or in a stream of events (a la SAX) but there 
is always a tree there.

At one level of interpretation - mid-parse as it were - prior to entity 
expansion, the parsers internal model might have
shared sub-trees given than the same entity an occur more than once. But, 
passed entity resolution - the stuff
passed on to the application - is be a tree.

Now, there is absolutely no reason in the world why any process has to work 
directly with the tree. It can instantiate
its own process-specific data structure and map the XML tree structure to 
it. The beauty of always starting
with the UnicodeWithAngleBrackets is that it forces a separation between 
the process-specific and that which
is innate in the data. This breaks down of course, if you just serialize 
objects but that's another topic of course:-)

Also, tools that work with fuzzy-XML - stuff that might not be WF 
(classically editors) have to work directly
with the UnicodeWithAngleBrackets. This class of tools is very different 
from XML processors as defined
in XML 1.0.

In SGML, we had a name for the latter "markup-aware" as distinct from 
"structure controlled".


Sean

http://seanmcgrath.blogspot.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.