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

RE: What should TrAX look like? (Was: Re: Article on

  • To: "'Elliotte Harold'" <elharo@m...>,"'XML Developers List'" <xml-dev@l...>
  • Subject: RE: What should TrAX look like? (Was: Re: Article on JAXP 1.3 "Fast and Easy XML Processing")
  • From: "Michael Kay" <mike@s...>
  • Date: Thu, 17 Feb 2005 13:06:04 -0000
  • Cc: <xml-dev@l...>
  • In-reply-to: <421486A8.5050303@m...>
  • Thread-index: AcUU6B6z9Q+VUrT5TS6b5wFed2c6LQAB+Xpg

purpose of trax in xml
> I think we've all implicitly agreed that Source is pretty 
> useless. The 
> primary argument in its favor has been a lot of hand waving 
> and pointing 
> at some .NET thing, and saying, "That's even worse" but 
> nobody's really 
> stepped up to defend Source on its own merits.

I'm disappointed to see my defence of the design dismissed in that kind of
language. I didn't claim it was perfect but I did say that I thought it was
better than the alternatives, and no-one has yet shown me an alternative
that is demonstrably better.
> 
> Here's a perhaps more useful question. Could we define an alternate 
> source interface that would allow validators, transformers, and query 
> tools to hook into arbitrary models? 

Only, I think, by forcing the "arbitrary model" to implement some kind of
standard interface like SAX or DOM - and that would defeat the whole
purpose, even if it were an improved SAX or an improved DOM.

The current design has enabled me in the latest Saxon release to support a
PullSource derived from a StAX parser, without adding further overloaded
methods to the transform() interface. The new kind of Source also
immediately becomes available to other interfaces such as the URIResolver. I
don't see an alternative design on the table that would achieve that level
of extensibility. 

Michael Kay
http://www.saxonica.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.