T
tascien
Can anyone tell me what security problems that can be encountered when
running xslt transformation on the server side? appart from potential
infinite loops?
Also, I have the below code... why am i being forced to pass the
EVIDENCE... ( all other constructors are marked absolete ) and what is
the evidence anyway? what does it do? I need to pass a string to
transformer.load...
Sub Work()
Dim x As New Xml.XmlDocument
x.Load("sales.xml")
Dim t As New Xml.Xsl.XslTransform
Dim w As New System.IO.StreamReader("transform.xsl")
Dim xr As New System.Xml.XmlTextReader(w)
t.Load(xr, Nothing, New System.Security.Policy.Evidence)
w.Close()
Dim sw As New System.IO.StringWriter
t.Transform(x.CreateNavigator(), Nothing, sw, Nothing)
s = sw.ToString()
End Sub
running xslt transformation on the server side? appart from potential
infinite loops?
Also, I have the below code... why am i being forced to pass the
EVIDENCE... ( all other constructors are marked absolete ) and what is
the evidence anyway? what does it do? I need to pass a string to
transformer.load...
Sub Work()
Dim x As New Xml.XmlDocument
x.Load("sales.xml")
Dim t As New Xml.Xsl.XslTransform
Dim w As New System.IO.StreamReader("transform.xsl")
Dim xr As New System.Xml.XmlTextReader(w)
t.Load(xr, Nothing, New System.Security.Policy.Evidence)
w.Close()
Dim sw As New System.IO.StringWriter
t.Transform(x.CreateNavigator(), Nothing, sw, Nothing)
s = sw.ToString()
End Sub