This is long and about 7 years old, but a great article / sample chapter. It has lots of nuts and bolts.
It starts here, part 1 of 9:
http://www.onjava.com/pub/a/onjava/excerpt/java_xslt_ch5/index.html
Other parts of note:
Part 2 has "hello world" for XSLT with Xalan and Saxon
Part 3 does the same thing with JAXP which allows you to switch XSLT processors between Xalan and Saxon by just using Java properties.
Part 5 talks about files vs. URLs / URIs and how to convert back and forth (usefull even if you're not doing XSLT, streams, readers, etc.)
Parts 5, 6, 7 and 8 talk about turning CSV data into XML for processing by writing a custom SAX parser that turns CSV record and field breaks into SAX start and end token events, and then sends it to DOM, XSLT, etc. Nice to see a full example of this, although I don't think it will handle CSV generated from Excel when it has nested linebreaks in the cell, but that could be added.
And for the finale, part 9 gives THREE WAYS to interface in-memory JDOM structures with JAXP for XSLT transforms, wow!
Lots of useful "how to" info, though may be a bit out of date.
Comments