Search code examples
c++xsltmsxml6

How do I resolve xsl:include directives in c++ (can't use .NET framework)


I need to load an xslt from a database and hold it in memory so that it can be included by another xslt.

I know you can do this using the .NET framework and the xmlPreLoadedResolver class, but unfortunately, we're not allowed to write this as a .NET dll.

Does anyone know if its possible to do this using the msxml6 C++ interfaces?


Solution

  • In the end, the only way we could find to get around this was to write some code on loading the top-level xslts which could load up all the dependencies and 'explode' them into the main xslt. These exploded xlsts are then held in memory as required..