Re: XSLT extension (fwd)

From: Date: Thu, 07 Sep 2000 18:36:26 +0000
Subject: Re: XSLT extension (fwd)
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-32606@lists.php.net to get a copy of this message
> Just thought some of the folks over on the php-xml list might have some > input here. > > So far the general consensus appears to be: > Sablotron is not 100% conformant, but there are equal concerns regarding > the stability of Xalan. > Those things are going to change. Xalan-C++ is going to come out of Alpha, Sablotron is also going to fully support the XSL specification (to be accurate, Xalan-C++ doesn't fully support it yet, but it is somewhat closer than Sablotron). Also, both projects are open source, have an active community of developers, support a variety of platforms and are constantly growing... I think the main choice is between the API's and for me I'd have to choose Sablotron hands down (however, that's biased on two accounts, one I wrote the Sablotron extension, two, I strongly dislike C++). From what I've seen of both API's, Sablotron provides the same amount of power as Xalan-C++ with a simpler to use and human documented API (Javadoc documentation is fine, but, I prefer when documentation is written by a human to the reader.) Sablotron also provides a C API which means that you don't necessarily need C++ to use it, whereas, Xalan-C++ is just C++. Sablotron works off of Expat, and therefore also provides SAX based XML parsing features (already implemented in the PHP extension). Xalan-C++ works off of Xerces-C++ and therefore offers both DOM and SAX interfaces (of course PHP supports libxml and Expat, so there is really no difference there). Right now, I'd stay with Sablotron (of course that's because I wrote the extension), it currently supports: - Full XSL transformation support, it can transform files into variables, variables into files, variables into variables etc. - Output buffering tie-ins: <?php xslt_output_begintransform("somefile.xsl"); // All output is transformed xslt_output_endtransform(); ?> -SAX based XML parser -An error handling mechanism that provides descriptive errors, logging of errors is also supported. - A full resource API - Full support for XSL parameters - You can provide named buffers for data to be transformed to and by. -Sterling

« previous php.dev (#32606) next »