XSLT lets you add nonstandard language-specific extensions. The standard
discusses the general process at
http://www.w3.org/TR/xslt#extension
and Xalan, a popular Java implementation, has more information at
http://xml.apache.org/xalan-j/extensionslib.html
I've just recently submitted an article to Dr. Dobb's Journal that
describes how to use JSTL as an alternative to XSLT for tasks of the kind
it sounds like you're working on. JSTL provides a standard,
platform-independent way to access databases.
--
Shawn Bayern
"JSTL in Action" http://www.jstlbook.com