XSTL Transformation Include in .net 1.1 (Please Help)
-
Hi , Im trying to transform an xml document with a style sheet that includes a vbscript file with vb script functions, using .net 1.1 and vb.net i get the following error when the code block attempts to transform the xml file. The scripting language 'vbscript' is not supported.:(( Ive googled with very little help can someone please offer me a solution or advice !! From my understanding this is .net security kicking in by not allowing server side scripts being included which may contain bad code nice but in this case its not helping me, in this case my intentions are good so i need this script to be trusted Thank you in advance. :)
-
Hi , Im trying to transform an xml document with a style sheet that includes a vbscript file with vb script functions, using .net 1.1 and vb.net i get the following error when the code block attempts to transform the xml file. The scripting language 'vbscript' is not supported.:(( Ive googled with very little help can someone please offer me a solution or advice !! From my understanding this is .net security kicking in by not allowing server side scripts being included which may contain bad code nice but in this case its not helping me, in this case my intentions are good so i need this script to be trusted Thank you in advance. :)
What is the code u r writing?
-
What is the code u r writing?
Hi, Here is my code Public Function TransformXml(ByVal InputXml As String, ByVal XSLPath As String) As String Dim szResult As String = String.Empty Dim objxml As New XmlDocument Dim objxslt As New XslTransform Dim writer As New StringWriter Dim xmlreader = New XmlTextReader(XSLPath) ' Create a resolver with default credentials. Dim resolver As XmlUrlResolver = New XmlUrlResolver resolver.Credentials = System.Net.CredentialCache.DefaultCredentials Try objxml.LoadXml(InputXml) objxslt.Load(xmlreader, resolver) objxslt.Transform(objxml, Nothing, writer, Nothing) szResult = writer.ToString() writer.Close() Catch ex As Exception Throw (ex) End Try Return (szResult) End Function