Question XslCompiledTransform not working like XslTransform

tharpa

New member
Joined
Aug 15, 2012
Messages
1
Programming Experience
3-5
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
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)
does not have a direct XslCompiledTransform match, so I have been using
VB.NET:
Transform(ByVal  input As System.Xml.XPath.IXPathNavigable, ByVal arguments As  System.Xml.Xsl.XsltArgumentList, ByVal results As  System.IO.Stream)
. 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?
 
Back
Top