xsl-list
[Top] [All Lists]

RE: [xsl] Pass XML document (*not* file path!) as parameter to XSLT

2007-05-17 15:23:54
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>
--~--

<Prev in Thread] Current Thread [Next in Thread>