A transform that works fine in XMLSPy fails when I run it under dot net.
I've run many other transforms successfully in dot net so there is something
"special" about this transform
I just installed dot net framework 1.1 SP1 - but I still get the same error
What makes this transform more complex than others is:
1) It uses an MSXSL extension function to evaluate Xpaths at run time
2) It uses an include to include the extension function
3) It reads two XML files - a second specified in document statement
I've tried fiddling with the dot net transform statement to use a
XPathDocument. a XPathNavigator and/or a XmlUrlResolver, but I still get the
same error
here's a sample:
XPathDocument doc = new XPathDocument(xtr);
XPathNavigator nav = doc.CreateNavigator();
XmlResolver res = new XmlUrlResolver();
MemoryStream ms = new MemoryStream();
// transform.Transform(doc,null,ms,null);
transform.Transform(nav,null,ms,res);
I'll provide more details if ncessary, but I'm hoping this is enough for
some expert
Here is the extension function def:
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:dyn="http://www.wheels.com/dynamic"
xmlns:msxsl="urn:schemas-microsoft-com:xslt"
extension-element-prefixes="dyn msxsl">
<msxsl:script implements-prefix="dyn" language="jscript">
function evaluate(context, expression)
{
return context.nextNode().selectNodes(expression);
}
</msxsl:script>
</xsl:stylesheet>