Stephan,
On Thu, 2004-09-23 at 15:03, [EMAIL PROTECTED] wrote:
> Hi there,
>
> I'm just wondering how to do that. We have an app that retrieves
> people from a database, then pulls deals (of that people) from another
> database and finally uses a webservice to retrieve exchange rates.
>
> I have managed to write 3 XPL that return XML Files with the
> information needed and now need to combine them into one structured
> XML file to hand it over to the caller. What would be the appropriate
> way to do so. Thought that I had:
>
> - Wrap all results in a common header element and use aggregate() ...
> as suggested before.
Why not?
> - Can I use document() in an XLST transformation that points to an XPL
> file that gets executed?
That's something I have thought about. I don't think that its possible
right now (except of course if you wrote your files on disk but I
wouldn't advise that) but I'd like to submit an idea to the development
team here...
Since XPL requires that you declare the inputs, why not allow to declare
other inputs than just "config" and "data" for the XSLT processor and
provide a protocol to access these inputs by name from the document
function?
That could give something such as:
<p:processor name="oxf:xslt">
<p:input name="config" href="oxf:/lucene/affiche.xsl"/>
<p:input name="data" href="oxf:/lucene/cherche.xhtml"/>
<p:input name="request" href="#request"/>
<p:output name="data" id="xhtml"/>
</p:processor>
and, in the XSLT transformation something such as:
<xsl:apply-templates select="document('input:request')"/>
where "input:foo" would mean the input named "foo".
I think that this would be very flexible and easier to use than
aggregates where you get to know the position of each input that is
aggregated while here, you'd access the inputs by name.
My 0.02 Euros,
Eric
--
Read me on XML.com.
http://www.xml.com/pub/au/74
------------------------------------------------------------------------
Eric van der Vlist http://xmlfr.org http://dyomedea.com
(ISO) RELAX NG ISBN:0-596-00421-4 http://oreilly.com/catalog/relax
(W3C) XML Schema ISBN:0-596-00252-1 http://oreilly.com/catalog/xmlschema
------------------------------------------------------------------------
-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
_______________________________________________
orbeon-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/orbeon-user