By Ben
For example, there is xml:
- Abcdefabcdeabcdef item>
root>
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:
XML Version = "1.0" encoding = "GB2312"?>
XMLns: msxsl = "URN: Schemas-Microsoft-COM: XSLT" XMLNS:
Myns = "urn: mynamespace">
msxsl: script>
xsl: template>
xsl: template>
xsl: stylesheet>
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);
}
]]]]
msxsl: script>
But it can only be parsed with .NET Framework's system.xml.
Instead of clients often use MSXML.