Apply JavaScriptC # Script in XSL, etc.

xiaoxiao2021-03-06  80

By Ben

For example, there is xml:

Abcdefabcdeabcdef

Require write XSL to convert this XML, all b in the contents of Item in the output is B, ordinary XSL cannot be completed

Solution to JavaScript:

XSL is as follows:

XMLns: msxsl = "URN: Schemas-Microsoft-COM: XSLT" XMLNS:

Myns = "urn: mynamespace">

What did I think?

Script may not be JScript, but C #:

Public String Trans (String S)

{

String [] ary = s.split ('b');

Return string.join ('b', ary);

}

]]]]

But it can only be parsed with .NET Framework's system.xml.

Instead of clients often use MSXML.

转载请注明原文地址:https://www.9cbs.com/read-108554.html

New Post(0)