cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From COFFMAN Steven <>
Subject RE: [announce] XMLForm - a new project using Xerces, Xalan, & JTi dy
Date Mon, 21 Feb 2000 21:59:09 GMT
This suggestion is probably out of the scope of what you intended, but
here's my wishlist. Rather than only treating it as a servlet, I'd like to
be able to use it *in* a servlet (pass it the request or whatever). Rather
than writing XML to a file, I'd like to be able to instead just have the
object returned. It sounds dumb, but as I mentioned before, I jury rigged an
XML to e-mailed PDF System. My servlet takes an HTML Form submission data
and outputs it to an XML file. Then I faked an HTTP request to get Cocoon to
translate the XML into PDF via FOP. Then I spewed the PDF as an e-mail
attachment to the person who was originally targetted by one of the form
values. It's a terrible hack, but XMLForm + James + Cocoon + FOP would make
a very nice implementation, once FOP's PDF to support Vector graphics (which
I've been doing, and I'm almost ready to submit).

-----Original Message-----
From: Donald Ball []
Sent: Monday, February 21, 2000 4:25 PM
Cc: Cocoon;;
Subject: [announce] XMLForm - a new project using Xerces, Xalan, & JTidy

I've been using cocoon for time out of mind to handle sending information
out of my XML files as HTML over HTTP and it's fantastic. That's half of
the work of a typical web design shop. The other half of the equation
hasn't really been addressed to my satisfaction yet - I wanted a way to
edit XML files through an HTML form interface. Poking around in the perl
world (which is ahead of us in some areas, but oddly behind in others) I
found the CGI::XMLForm module which lets you create XML documents from
HTTP requests by interpreting the variable names as XPath-like
expressions. It's nice, but it's in perl, which is not my language of
choice, and I had some things I wanted to add to it.

I reimplemented most of it as a Java servlet using Xerces and Xalan to do
the heavy lifting. I went two steps further, adding support for
interpreting variable values as XML or HTML (thanks to JTidy), and adding
the ability to insert the newly created XML fragment into an existing XML
document at a point specified by an XPath expression.

I've got easily a dozen ideas for things I might like to do to it, but
it's usable now and I thought I'd see if others might be interested in
playing with it. It's available here:

If you find this servlet useful, if you have any suggestions, or if you
know of a similar project in Java that escaped my attention, please don't
hesitate to contact me.

- donald

View raw message