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

Re: linking, 80/20


amelia a. lewis
Amelia A Lewis wrote:
> Create a TypeHandler in SAX.  This turns out to be a problem.  Clearly,
> you want to be able to signal a type (an identifier for the type) and a
> value; this means that there is significant overlap with the "regular"
> handlers.  Double-reportage, in short, and the usual problems of
> synchronization.  The problem becomes acute if there is a desire to
> create a mostly-PSVI, falling back to plain-old-content if the content
> is well-formed, but not valid (this happens a lot more often than the
> folks who write the specs seem to think).  Issues arise of: does the
> type information arrive first or last?  How do multiple extensions
> interact?  What order are the information items delivered in, when
> multiple extensions (or the core and one or more extensions) overlap? 
> This is a problem for SAX and similar streaming/message-oriented  APIs,
> but such APIs tend to be best-suited for the parse.

i don't know sax too well, but shouldn't there already exist such a case 
for 'attributes' and 'namespace attributes' of an element, so that when 
an attribute declaring a namespace is being parsed, two events could be 
raised? how does handle sax this?

and yes, introducing infoset extensibility certainly would make any api 
more complex, even though i think that the issues that were being raised 
could be solved. and: if you didn't need or want access to the infoset 
extensions, than you could still use a good old sax1/2 parser.

cheers,

erik wilde  -  tel:+41-1-6325132  -  fax:+41-1-6321035
           mailto:net.dret@d... -  http://dret.net/
           computer engineering and networks laboratory
           swiss federal institute of technology  (eth)
           * try not. do, or do not. there is no try. *


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.