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
|