我正在尝试通过 XSL 转换运行 DataTable,然后将结果放回 DataTable。我的 DataTable 是空的。任何帮助都会很棒。
Dim finalExelList As New DataTable
Dim xlsMyList = New XPath.XPathDocument(New StringReader(myList.DataSet.GetXml()))
Dim trans As Xsl.XslCompiledTransform = New Xsl.XslCompiledTransform
trans.Load(RequestHandlerBase.ServerLocation & "xsl\dataisland2DotNet.xsl")
Using ms As MemoryStream = New MemoryStream
trans.Transform(xlsMyList, Nothing, ms)
ms.Position = 0
finalExelList.ReadXml(ms)
End Using