What I would like to do, from within the XSLT transform (.Net), I will invoke a template that will return some XML, but the returned XML itself may include XSLT instructions for processing. This process should work recursively until XSLT is left, and then the result is placed in the resulting tree.
Maybe each "template" should actually be a separate file, but I would like to have a context (parameters, variables and context nodes, etc.) supported throughout the process, so only with recursive calls does the Transform () method seem to that this will not be enough.
A somewhat related question: let's say I call an extension function inside a template. Is there a way to call the template from within the extension function? The documentation on extension objects seems very easy - it tells you how to call it, but it does not document any parts of the xslt infrastructure that I can interact with.
Apologies for the fact that you did not provide a worthy concrete example, but now I am in the research stage, so all this is a bit abstract.
Andy
Andy source
share