Perhaps xalan extension functions are what you are after.
http://www.ibm.com/developerworks/library/x-xalanextensions.html
----- Original Message -----
From: "Johan Zxcer" <nab...@zurahn.com>
To: <xalan-j-users@xml.apache.org>
Sent: Sunday, March 01, 2009 12:10 PM
Subject: Re: Usage model - no source XML, just api calls
I looked through this and it does exactly what Tatu suggested, but it
doesn't
seem to address what I'm looking for, dynamically fetching data based on
what is in the xsl stylesheet. This simply skips the generation and
parsing
of an XML source, instead emitting SAX elements directly, but still
statically with respect to what a given stylesheet requires.
Here's a scenario, a data set consisting of enormous amounts of financial
transactions, tied to personal data. For both security and size reasons,
the data cannot be exposed as a data source to be manipulated by xslt
transformations. But a set of aggregator functions can be used to
generate
statistics, for instance "get the distribution of transactions relative to
income over the past 3 months". This derived data set can then be
further
manipulated by xslt. But there is no way to predict what derived data a
given style-sheet will request, so it needs to be fetched dynamically.
DOM
and SAX aren't designed to do this, but the XPath API *appears* to be - I
just can't for the life of me figure out how to make it work as a source.
Dave Brosius-2 wrote:
as an example,
http://sf.net/projects/beansource
http://beansource.sf.net
shows how to pass a simple java bean as input to a Xslt transformation.
--
View this message in context:
http://www.nabble.com/Usage-model---no-source-XML%2C-just-api-calls-tp22264025p22275164.html
Sent from the Xalan - J - Users mailing list archive at Nabble.com.