ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> perl-xml
perl-xml
Re: gateway between OpenSP and SAX APIs?
by Bjoern Hoehrmann other posts by this author
May 25 2007 1:36AM messages near this date
view in the new Beta List Site
Re: XML Validation in Perl. | replacing & in a string
& XSLT * 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:bjoern@[...].de · 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/ 
_______________________________________________
Perl-XML mailing list
Perl-XML@[...].com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Privacy Policy | Email Opt-out | Feedback | Syndication
© 2004 ActiveState, a division of Sophos All rights reserved