I have a component I wrote in C#. Among other things it performs a XSLT transform on XML data it collects. When I test this feature using another C# project that uses the component it works just fine. However when I export the component as a COM component and try to use this feature from a unmanaged application it fails on the XslCompiledTransform.Load command with an XSLT compile error.
If I take out the template tags then it loads just fine, of course it will not actually do anything then either.
Thanks for any help you can provide,
Rich
Inner exception: {"Overflow or underflow in the arithmetic operation."}
Stack Trace:
at System.Xml.Xsl.Xslt.QilGenerator.Compile(Compiler compiler)
at System.Xml.Xsl.Xslt.Compiler.Compile(Object stylesheet, XmlResolver xmlResolver, QilExpression& qil)
at System.Xml.Xsl.XslCompiledTransform.CompileToQil(Object stylesheet, XsltSettings settings, XmlResolver stylesheetResolver)
at System.Xml.Xsl.XslCompiledTransform.LoadInternal(Object stylesheet, XsltSettings settings, XmlResolver stylesheetResolver)
at System.Xml.Xsl.XslCompiledTransform.Load(IXPathNavigable stylesheet, XsltSettings settings, XmlResolver stylesheetResolver)
at EDEN.XmlSqlExport.XmlSqlExportControl.ProcessExportFull(Boolean useBackground, String dataSelectSQL, String xmlConfig, String outputFile, String connectionString) in S:\NET20\XMLSQLExport\EDEN.XmlSqlExport\XmlSqlExportControl.cs:line 195
Content of the XSL document:
<xsl:stylesheet xmlns:xsl=" http://www.hide-link.com/ " version="2.0"
xmlns:msxsl="urn:schemas-microsoft-com:xslt">
<xsl:output omit-xml-declaration="yes" indent ="no" method="text" encoding="us-ascii"/>
<xsl:template match="/">
</xsl:template>
</xsl:stylesheet>