Hi Jos,
Yes, you can. See the following call to the XSLT processor, from the epilogue.
<p:processor name="oxf:xslt">
<p:input name="config" href="xforms-to-xhtml.xsl"/>
<p:input name="model" href="#xforms-model"/>
<p:input name="instance" href="#instance"/>
<p:input name="data" href="#annotated-data"/>
<p:output name="data" id="xhtml-data"/>
</p:processor>The "config" input is the stylesheet; the "data" input is the source document. The two additional inputs ("instance" and "model") are supplemental documents that you can access with the doc() XPath function. For instance:
<xsl:variable name="instance" select="doc('oxf:instance')"/>Note that the supplemental input names are not constrained. You can use any string you want, except "data" or "config" of course.
Julien
Jos Vos wrote:
Hi,
Is it possible to access multiple documents (not static files) in an XSLT stylesheet using the XSLT processor? I would expect something similar as with the XUpdate processor, where you can specify multiple input files that can be accessed via "doc('#name')", but that does not seem to work with XSLT.
Thanks,
-- -- Jos Vos <[EMAIL PROTECTED]> -- X/OS Experts in Open Systems BV | Phone: +31 20 6938364 -- Amsterdam, The Netherlands | Fax: +31 20 6948204
------------------------------------------------------- This SF.Net email is sponsored by: Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux. http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click _______________________________________________ orbeon-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/orbeon-user
------------------------------------------------------- This SF.Net email is sponsored by: Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux. http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click _______________________________________________ orbeon-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/orbeon-user
