In the XSLT template, the format of a parameter nodeid is defined as follows:
<XSL: Param name = "nodeid"/>
Generally, the value of the nodeid parameter is in the *** format, and there is no error in using this parameter. However, in some special cases, the format of the passed nodeid parameter is ****, * *** format. In this case, you only need to capture the content before the first Separator in the nodeid. Finally, find the solution to the file, that is, define another parameter, assign the nodeid value to this parameter, and process it during the value assignment process. As shown below:
<XSL: variable name = "arraynodeid" select = "substring-before ($ nodeid, ',')"/>
In the process of XSLT programming, you only need to judge the arraynodeid, as shown below:
<XSL: Choose> <XSL: When test = "$ arraynodeid! = ''"> <XSL: value-of select = "$ arraynodeid"/> </XSL: When> <XSL: otherwise> <XSL: value-of select = "$ nodeid"/> </XSL: otherwise> </XSL: Choose>