Subject: RE: Pass XML document (*not* file path!) as parameter to XSLT
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Thu, 17 May 2007 23:07:20 +0100
|
> 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/
|