I am updating our program made with VS 2003 to VS 2010. XslTransforms have been deprecated in favor of XslCompiledTransforms. I have run into a problem. The overload
does not have a direct XslCompiledTransform match, so I have been using
. It would appear to me that this should not be a problem, as we were setting the missing parameter, "resolver", to Nothing anyway.
However, XslCompiledTransform is not working exactly like XslTransform. We are passing CSS and Javascript in our args parameter to XslCompiledTransform, previously XslTransform. XslTransform.Transform successfully put the CSS and Javascript in the the style and script elements respectively. However, XslCompiledTransform.Transform is not doing so.
Any suggestions?
VB.NET:
Transform(ByVal input As System.Xml.XPath.IXPathNavigable, ByVal args As System.Xml.Xsl.XsltArgumentList, ByVal output As System.IO.Stream, ByVal resolver As System.Xml.XmlResolver)
VB.NET:
Transform(ByVal input As System.Xml.XPath.IXPathNavigable, ByVal arguments As System.Xml.Xsl.XsltArgumentList, ByVal results As System.IO.Stream)
However, XslCompiledTransform is not working exactly like XslTransform. We are passing CSS and Javascript in our args parameter to XslCompiledTransform, previously XslTransform. XslTransform.Transform successfully put the CSS and Javascript in the the style and script elements respectively. However, XslCompiledTransform.Transform is not doing so.
Any suggestions?