From: Bjoern H. <der...@gm...> - 2007-05-25 08:35:58
|
* olivier Thereaux wrote: >What I am wondering, and I was thinking you may be able to help me, is: > >* Is there any plan/effort to get the two APIs any closer? (doubt it, >they've both been around for a while) >* Has anyone ever built a list of the differences between the two APIs? >* Has anyone ever worked on some kind of "converter" that would be >put between the SPO parser and a SAX handler, or vice versa. Bjoern >[2] maybe? Or is this a futile idea? The answer to all your questions is basically no. If you want to marry the two APIs there are basically two ways: propose specific and minor changes to SGML::Parser::OpenSP (I could for example adapt the way the attribute values are reported), or write a handler that acts as a SAX parser would. I did some work on both approaches, but mainly in fixing the Perl SAX specification and implementations thereof. I think a small wrapper should be easy to write; a complete one that takes care of the different approaches to positioning information reporting, error re- porting, SGML-specific features, etc. would be much more difficult. I'd recommend to start with a wrapper and see what changes to spo might be useful. -- Björn Höhrmann · mailto:bj...@ho... · http://bjoern.hoehrmann.de Weinh. Str. 22 · Telefon: +49(0)621/4309674 · http://www.bjoernsworld.de 68309 Mannheim · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/ |