[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [cgiapp] CGI::Application::XML


Hi Josh --

> How is this an improvement over CGI::XMLApplication? Can you get your
> improvements into C'XA so there isn't a code fork? If there is some
> reason to not use CGI'XA in favor of C'A'X you should really document
> that in your pod and provide the pros and cons for each.

IMHO, the author of CGI::XMLApplication should have used
CGI::Application in the first place.

CGI::XMLApplication is just CGI-App which outputs XML destined for XSLT.
It implements a CGI-App style state machine.  (The fact that
CGI::XMLApplication uses call-backs is not important.  CGI-App used to
use call-backs, but we evolved to support references by name in addition
to call-backs.)  As Jason has proven, slapping XML output on CGI-App is
easy and clean.

Jason:  If you haven't already, you should release your module to CPAN.
I think it makes a lot more sense than CGI::XMLApplication.  I believe
it will have a built-in user base of CGI-App users.  It will be far more
appealing than CGI::XMLApplication, which is a bit of a one-trick pony
and an unsupported dead-end, IMHO.

Before you release it, I would do a couple things:
* Improve the interface to better integrate into CGI-App.  For example,
use the cgiapp_postrun() hook to automatically create XML or HTML via
XSLT.
* Write POD!  Don't forget to include example cases.
* Write tests, and set up a real MakeMaker-style CPAN package.

Not that you need it, but you have my blessings to use the
CGI::Application::* namespace.

I think you could have a winner here.  When I read about
CGI::XMLApplication a few months ago I nearly wrote the same thing.  The
only reason I didn't is because I don't use XSLT.  ;-)  HTML::Template
rocks.


TTYL,

-Jesse-


--

  Jesse Erlbaum
  The Erlbaum Group
  suppressed
  Phone: 212-684-6161
  Fax: 212-684-6226




---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/suppressed/
              http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: suppressed
For additional commands, e-mail: suppressed


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.