To answer both David and Josephs ideas:
Joseph's idea:
I took a look at javax.xml.transform.dom.DOMSource and it doesn't accept a String. Is there another string-to-dom thing I could do?
David's idea:
The file idea could work except the passed XML Tree will always be a stream. ( I wouldn't want to have to write this to file every time the stream exists).
Thanks a lot
On Wednesday, Jul 23, 2003, at 13:04 America/Detroit, [EMAIL PROTECTED] wrote:
"Bennett" writes:I'm running into a situation where I need to pass an XML Tree into a param in a stylesheet.
If that tree were in a file, you could pass the filename as a string parameter, then call document() with a URIfied version of the filename as its argument. If you want to look at the source code of document(), you may get some ideas on how to hack it to take a new URI scheme. Or it could be the basis for an extension function that takes a suitable identifier as argument.
XSLT 2.0 will probably introduce useful techniques for doing this. Anyone thinking about a durable solution should look at the draft spec, particularly the "Initiating a Transformation" section. .................David Marston