XPath Explorer

[ via aFish ] Purple Tech’s XPath Explorer is a Java Swing app that loads an XML file and lets you try out various XPath queries on it. It’ll also generate the unique XPath expression to reach any node in the document. A great app for your toolbox.

Apache Cocoon 2.1 Milestone 1 Release

The Apache Group has released the first Milestone for the Cocoon framework. You can grab a copy from the official site or one of the mirrors.
There’s a bit of twiddling to get it to build under Java 1.4, you need to copy newer versions of the XML library Jar files into your JVM’s lib/endorsed directory, [...]

CocoonWiki: GettingStartedWithFlow

[ via Erik Thauvin ] Cool, in Cocoon 2.1 you can write components in JavaScript.

Adding XML to Struts

StrutsCX extends the Jakarta Struts framework by replacing JSP with XSLT, and using Apache’s Castor to store data. The creator of the project wrote an introduction to StrutsCX for DevX.com.

Cocoon Competence Center

[ via AxKit Churn ] Tutorials for Cocoon newbies at the Cocoon Competence Center.

TagSoup

John Cowan mentions Tag Soup which “parses HTML as it is found in the wild: nasty and brutish, though quite often far from short.”
It doesn’t fix HTML, but returns a SAX stream of properly nested elements and attributes you can catch and process.

Regular Expressions in XSLT are Possible

Gunther Schadow considers what it will take to add regular expression handling to XSLT.
In a follow-up, Michael Kay describes the features in XSLT and XPath 2.0 that’ll help make regular expression processing possible.

Running XSLT batch jobs with Ant

The article’s title says it’s about writing Ant configurations which can take advantage of multiple XSLT processors, but it’s also covers how to write build scripts in Ant for XSLT processing. Ant rules. I haven’t done any Java projects in over a year, but I used Ant on my last one and loved it.

Benchmarking Web Apps on Apache

Chamas consulting put together a set of Web Application benchmarks on Apache, comparing the throughput and memory usage of a ‘Hello World’ application written in various frameworks (mod_perl, PHP, JSP, XSLT, custom Apache Modules).
As you’d expect, the custom Apache API modules were the top performers, but mod_perl appeared to outdo mod_php, in both throughput [...]

Generating XHTML using XQuery

Per Bothner’s written an illuminating primer on how XQuery works through building an application to transform XML to HTML. What you’ll learn from reading it is that if you’re used to the PHP/JSP/ASP model, then XQuery is going to be easier to wrap your head around than XSLT.
He’s also written a partial implementation of XQuery [...]

printf v. API

Interesting conversation on the XSL developer list. This started when the Microsofties on the list pooh-poohed Eliotte Rusty Harold’s new XML API for Java, XOM. Examples of .NET and C# ease-of-use were trundled out, and several readers commented on how they were akin to the desperate Perl/VB/PHP hacker trick of writing out an XML stream [...]

Apache Cocoon GetTogether

[ via XSLT list ] There’s a one-day gathering of Apache Cocoon developers and users this November in Belgium.

Integrating Tomcat with Apache on OS X

What you need to download and build in order to get Apache to listen for requests and hand them off to Tomcat under Mac OS X.

Yet Another Tomcat Install for OS X

Yes, another article on installing the Tomcat Servlet container on OS X. But this one’s interesting because it’s an installer packaged for OS X by Sun (giving Apple the hot Java love thang), and comes with a mess of class libraries for Web Services.

Using Request Parameters in Cocoon 2

You can make a web application quickly using XSLT and a handler like Cocoon 2.x. The trick is to get parameters in an HTTP POST or GET into your XSLT as parameters. Cocoon Central has a tutorial.
I’m using a similar technique on a mini-web app we use to track program item ideas for ConJosé, except [...]