Shail - 2005-09-15

Hi All,

I have to Transform xml to xml/html using Saxon_1.NET-1.0-RC1 within VB.NET.

Coding for the same:

                Dim xslStream As New"mstrInputXSLTFile"))
                Dim xmlStream As New"mstrInputXMLFile"))
                Dim out As New"mstrOutputXMLFile"))
                Dim t As javax.xml.transform.TransformerFactory = net.sf.saxon.TransformerFactoryImpl.newInstance()
                Dim transformer As javax.xml.transform.Transformer = t.newTransformer()
                transformer.transform(xmlStream, out)
                Cursor.Current = Cursors.Default
                MessageBox.Show("Data has been successfully Transform.", "Transformation Complete", MessageBoxButtons.OK, MessageBoxIcon.Information)
                transformer = Nothing
            Catch ex As Exception
                Cursor.Current = Cursors.Default
                MessageBox.Show(ex.Message, "Error Transforming Data", MessageBoxButtons.OK, MessageBoxIcon.Stop)
            End Try

With the above code I can't able to transform also not generating output.

Can anyone help me for the same.