Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. XSTL Transformation Include in .net 1.1 (Please Help)

XSTL Transformation Include in .net 1.1 (Please Help)

Scheduled Pinned Locked Moved Visual Basic
helpcsharpsysadminsecurity
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    Cape Town Developer
    wrote on last edited by
    #1

    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. :)

    S 1 Reply Last reply
    0
    • C Cape Town Developer

      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. :)

      S Offline
      S Offline
      Sonia Gupta
      wrote on last edited by
      #2

      What is the code u r writing?

      C 1 Reply Last reply
      0
      • S Sonia Gupta

        What is the code u r writing?

        C Offline
        C Offline
        Cape Town Developer
        wrote on last edited by
        #3

        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

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups