@@ -88,6 +88,7 @@ export class ExprContext {
8888 constructor (
8989 nodeList : XNode [ ] ,
9090 outputNodeList : XNode [ ] ,
91+ xsltVersion : '1.0' | '2.0' | '3.0' = '1.0' ,
9192 opt_position ?: number ,
9293 opt_outputPosition ?: number ,
9394 opt_outputDepth ?: number ,
@@ -102,6 +103,8 @@ export class ExprContext {
102103 ) {
103104 this . nodeList = nodeList ;
104105 this . outputNodeList = outputNodeList ;
106+ this . xsltVersion = xsltVersion ;
107+
105108 this . position = opt_position || 0 ;
106109 this . outputPosition = opt_outputPosition || 0 ;
107110
@@ -158,6 +161,7 @@ export class ExprContext {
158161 return new ExprContext (
159162 opt_nodeList || this . nodeList ,
160163 opt_outputNodeList || this . outputNodeList ,
164+ this . xsltVersion ,
161165 typeof opt_position !== 'undefined' ? opt_position : this . position ,
162166 typeof opt_outputPosition !== 'undefined' ? opt_outputPosition : this . outputPosition ,
163167 this . outputDepth ,
@@ -176,6 +180,7 @@ export class ExprContext {
176180 return new ExprContext (
177181 this . nodeList ,
178182 opt_outputNodeList || this . outputNodeList ,
183+ this . xsltVersion ,
179184 this . position ,
180185 typeof opt_outputPosition !== 'undefined' ? opt_outputPosition : this . outputPosition ,
181186 typeof opt_outputDepth !== 'undefined' ? opt_outputDepth : this . outputDepth ,
0 commit comments