I have written an xslt that reads some xml file names and does some operations on them.
I use a for-each to work them one-by-one. I have each path inside a parameter $path.
But now I would like to output the result of applying an external stylesheet to those files. I would write something like
<div> <something like xsl-transform($extern-xslt,$path)> </div>
to have the result tree of the transformation inside the main html output.
It is possible?
You can use the
document()XPath function to load an external XML file. This returns a node-set which can be parsed with a<xml:apply-templates>call. Including an external stylesheet can be accomplished by using an<xsl:include>tag.See also the documentation for
document()