With Microsoft's XSL inheritance, users can customize the XSL function. The basic principle is written by the user written code written in MSXSL, and sets this part of MSXSL inheriting in the user-defined space, then the user can customize the space by user Use script code in MSXSL.
Steps: 1. XSL: Stylesheet Defines MSXML and User Space. XMLns: MSXSL = "URN: Schemas-Microsoft-COM: XSLT" Version = "1.0" XMLns: user = "myscript" where XMLns: user = can be equal to arbitrary value
2. Let MSXSL inherit the user space. Custom function written between MSXSL: Script, and add the imports-prefix = "user" example: ------------------- ----------------------------------------- 1.XML ----- -------------------------------------------------- ------ XML Version = "1.0" encoding = "GB2312"?> Xml-stylesheet type = 'text / xsl' href = '1.xsl'?>
-------------------------------------------------- ----------- 1.xSL ------------------------------------ ------------------------- XML Version = "1.0" eNCoding = "GB2312"?>