What's the proper way to pass an XML document as a parameter
to an XSLT, without writing that document to a file and
passing the filepath to the XSLT ?
It depends entirely on which XSLT processor you are using.
In Java code, i create a org.dom4j.Document
Even within the confines of the JAXP interface, it's entirely
product-dependency what kinds of object can be passed as the value of a
parameter.
In Saxon you could pass
new net.sf.saxon.dom4j.DocumentWrapper(dom4jDoc)
but that won't work for other products.
Michael Kay
http://www.saxonica.com/
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--