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

Re: how much complexity is unavoidable?


complexity of xerces
"Michael Kay" <michael.h.kay@n...> writes:

> > Here's an observation:
> > 
> >   [kari@pc-kari kari]$ du -sh $XSLT_SOURCES
> >   9.3M    xalan-j_2_4_0/src/org/apache
> >   2.8M    saxon6_5_2/source/com/icl/saxon
> >   1.6M    xt-20020426a-src/src/com/jclark
> > 
> > There are two issues with this that I could immediately think 
> > of: (1)XT is incomplete, missing some minor feature which 
> > Xalan is reported to support. (2)Xalan includes xsltc, an 
> > XSLT-to-Java-bytecode compiler; OTOH, both XT and Saxon 
> > include their own parsers, whereas Xalan relies on Xerces 
> > (not included in the estimate).
> 
> Size and complexity are different things.
> 
> But I think you will find that on a single-person project (like Saxon or
> xt) there is constant adaptation of existing classes to make them more
> powerful and reusable, and to eliminate duplication, whereas on a
> multi-person project (like Xalan) there is a tendency to try to

How many people *are* on the Xalan team? my impression is that the
core group is quite small.

> implement your part of the system without changing other people's parts,
> even if this leads to duplication.

Looking at the code, it seems that the authors value reuse highly;
inheritance hierarchies 5 and 6 levels deep are commonplace.

But my puzzlement is not over *why did Apache* create a more complex
product than you or James Clark did. It is over the fact that *it is
possible* to create a product that is every bit as functional yet not
as complex.

> The biggest reason for the discrepancy is probably that the Xalan
> package actually contains two completely separate XSLT processors,
> Xalan-J and XSLTC.

I mentioned that, but it doesn't change the overall picture. And
correct me if I'm wrong on the parser issue. BTW, Xalan and xsltc are
not completely separate; xslt uses the same internal representation as
Xalan, DTM.

[kari@pc-kari kari]$ du -sh $APACHE_XML_SOURCES
9.3M    xalan-j_2_4_0/src/org/apache
2.9M    xalan-j_2_4_0/src/org/apache/xalan/xsltc
7.3M    xerces-2_2_1/src/org/apache

Xalan-J is still huge.

> One reason that the Saxon source is twice the size of xt is that half
> the lines are comments; James Clark is notoriously averse to commenting
> his code.

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.