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?
المحلول 2
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..
نصائح أخرى
MSXML does support XSLT 1.0. See here for more on this: Creating XSLT Solutions
Basically everything is based on the transformNode
and transformNodeToObject
methods: transformNode Method