Senthil Nathan wrote:
Hi Michael,
How about the other option of passing DOM's as parameters to stylesheet.
You could supply the two input DOMs to the stylesheet as
parameters, and replace the calls on document() by references
to the parameters.
Any sample of doing the same would be helpful.
If you can use Saxon, it goes like this (from the documentation pages):
A param preceded by a leading plus sign (+) is interpreted as a filename
or directory. The content of the file is parsed as XML, and the
resulting document node is passed to the stylesheet as the value of the
parameter. If the parameter value is a directory, then all the
immediately contained files are parsed as XML, and the resulting
sequence of document nodes is passed as the value of the parameter. For
example, +lookup=lookup.xml sets the value of the stylesheet parameter
lookup to the document node at the root of the tree representing the
parsed contents of the file lookup.xml.
Cheers,
-- Abel Braaksma
--~------------------------------------------------------------------
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>
--~--