小编Dee*_*ali的帖子

platformnotsupportedException :XSLCompiledTransform.Load(xslt) 未在 .net Core 2.1 目标框架中加载带有 </msxsl:script> 的 xslt 文件

我有一个 xml 文件,需要将其转换为 txt,为此我使用了 xslt 转换。我的 xslt 转换文件包含一些支持 javascript 函数

如果我在 .net Framework 4.5 及更高版本中运行代码,我可以成功转换文件,但相同的代码在 .net core 2.1 中会失败。

.netcore 2.1 的文档显示了对 xslt 转换的支持,但它对我不起作用,这是我所缺少的。

我的输入 XML:

   <?xml version="1.0" encoding="utf-8"?>
<Maps xmlns:xsi= "https://www.w3.org/TR/xmlschema-1/" xmlns:xsd= "http://www.w3.org/2001/XMLSchema" xmlns= "http://www.semi.org">
<Map SubstrateId= "EMAXA191X0121" SubstrateType= "">
<Device MachineID= "M/C Name : AOI-404" BinType= "Decimal" NullBin= "099" Orientation= "0" OriginLocation= "2" Columns= "59" Rows= "41" CreateDate= "20190111.214309" ProductId= "EMAXA191X0121" LotId= "" WaferSize= "200">
<ReferenceDevice ReferenceDeviceX= "-1" ReferenceDeviceY= "-1" />
<Bin>
<Bin BinCode= "001" BinCount= "1565" BinQuality= …
Run Code Online (Sandbox Code Playgroud)

.net xml xslt-1.0 .net-core-2.1

4
推荐指数
1
解决办法
3692
查看次数

如何在ajax post回调后刷新KendoUi网格

如何在ajax帖子成功后刷新kendo ui网格?这是我的网格ajax帖子:

 var newUser = {
                    UserId: 0,
                    UserLoginName: currentRecord.UserLoginName,
                    UserDisplayName: currentRecord.UserDisplayName
                };
                //insert selected rows using DataSource insert method
                destinationGrid.dataSource.insert(newRecord);
                //ajax post to server
                var url = '@Url.Action("CreateUser", "ManageUsers")';
                $.post(url, { loginid: currentRecord.UserLoginName, name: currentRecord.UserDisplayName, role: roleSelected }, function (result) {
                    if (result.Success) {
        **////grid is not refreshing as I want to refersh the grid again from database**
                        destinationGrid.dataSource.read();
                    }

                });
            }
Run Code Online (Sandbox Code Playgroud)

kendo-ui kendo-grid kendo-asp.net-mvc

2
推荐指数
2
解决办法
1万
查看次数