From d794befb63cd46355ebb37e38e881e7e9a8cf101 Mon Sep 17 00:00:00 2001 From: Maarten Kroon Date: Thu, 10 Sep 2020 13:27:28 +0200 Subject: [PATCH] Upgraded Saxon dependency from Saxon 9.9.1-7 -> 10.2, including the necessary code changes. Upgraded Saxon-JS integration to version 2. --- home/webapps/ROOT/xsl/itworks.xsl | 2 +- .../static/scripts/saxon-js/SaxonJS.min.js | 8 - .../static/scripts/saxon-js/SaxonJS2.js | 4568 +++++++++++++++++ .../static/scripts/saxon-js/SaxonJS2.rt.js | 958 ++++ .../examples/xsl/request-dispatcher.xsl | 2 +- .../examples/xsl/saxon-js/saxon-js.xsl | 10 +- .../armatiek/xslweb/configuration/WebApp.java | 57 +- .../xslweb/pipeline/FopSerializerStep.java | 5 +- .../pipeline/IdentityTransformerStep.java | 8 +- .../xslweb/pipeline/JSONSerializerStep.java | 5 +- .../xslweb/pipeline/PipelineHandler.java | 9 +- .../armatiek/xslweb/pipeline/QueryStep.java | 23 +- .../pipeline/ResourceSerializerStep.java | 5 +- .../xslweb/pipeline/SerializerStep.java | 12 +- .../pipeline/StylesheetExportFileStep.java | 35 +- .../pipeline/SystemTransformerStep.java | 9 +- .../pipeline/TraceablePipelineStep.java | 62 - .../xslweb/pipeline/TransformerStep.java | 20 +- .../xslweb/pipeline/ZipSerializerStep.java | 5 +- .../errrorlistener/MessageListenerProxy.java | 30 +- .../functions/ExtensionFunctionCall.java | 6 +- .../xslweb/saxon/functions/cache/Remove.java | 5 +- .../functions/common/GetAttributeCall.java | 5 +- .../functions/common/GetCacheValueCall.java | 5 +- .../functions/common/SetAttributeCall.java | 5 +- .../functions/common/SetCacheValueCall.java | 4 +- .../xslweb/saxon/functions/dynfunc/Call.java | 2 +- .../DynamicExtensionFunctionDefinition.java | 8 +- .../saxon/functions/dynfunc/Register.java | 32 +- .../saxon/functions/exec/ExecExternal.java | 18 +- .../saxon/functions/expath/file/Copy.java | 5 +- .../functions/expath/file/CreateDir.java | 2 +- .../saxon/functions/expath/file/Delete.java | 2 +- .../saxon/functions/expath/file/Exists.java | 2 +- .../saxon/functions/expath/file/IsDir.java | 2 +- .../saxon/functions/expath/file/IsFile.java | 2 +- .../functions/expath/file/LineSeparator.java | 2 +- .../saxon/functions/expath/file/Move.java | 2 +- .../expath/file/WriteBinaryCall.java | 2 +- .../functions/expath/file/WriteCall.java | 2 +- .../functions/expath/file/WriteTextCall.java | 2 +- .../expath/file/WriteTextLinesCall.java | 2 +- .../httpclient/HttpClientEntityResolver.java | 50 +- .../functions/httpclient/RequestUtils.java | 2 +- .../functions/httpclient/ResponseUtils.java | 103 +- .../functions/httpclient/SendRequest.java | 4 +- .../xslweb/saxon/functions/image/Scale.java | 2 +- .../saxon/functions/json/ParseJSON.java | 2 +- .../xslweb/saxon/functions/log/Log.java | 2 +- .../saxon/functions/response/AddCookie.java | 2 +- .../functions/response/AddDateHeader.java | 2 +- .../saxon/functions/response/AddHeader.java | 2 +- .../functions/response/AddIntHeader.java | 2 +- .../functions/response/SetBufferSize.java | 2 +- .../saxon/functions/response/SetStatus.java | 2 +- .../saxon/functions/session/Invalidate.java | 2 +- .../session/SetMaxInactiveInterval.java | 2 +- .../xslweb/saxon/functions/sql/Close.java | 2 +- .../saxon/functions/sql/ResultSetToNode.java | 25 +- .../saxon/functions/util/DiscardDocument.java | 9 +- .../xslweb/saxon/functions/zip/Unzip.java | 2 +- .../xslweb/saxon/functions/zip/Zip.java | 2 +- .../trace/XSLWebTimingTraceListener.java | 35 - .../xslweb/saxon/utils/NodeInfoUtils.java | 20 +- .../xslweb/saxon/utils/SaxonUtils.java | 16 + .../saxon/utils/SerializableNodeInfo.java | 43 +- .../xslweb/serializer/AbstractSerializer.java | 3 +- .../xslweb/serializer/RequestSerializer.java | 4 +- .../xslweb/serializer/ZipSerializer.java | 20 - .../web/filter/PipelineGeneratorFilter.java | 2 +- .../xslweb/web/servlet/XSLWebServlet.java | 125 +- 71 files changed, 5903 insertions(+), 536 deletions(-) delete mode 100644 home/webapps/examples/static/scripts/saxon-js/SaxonJS.min.js create mode 100644 home/webapps/examples/static/scripts/saxon-js/SaxonJS2.js create mode 100644 home/webapps/examples/static/scripts/saxon-js/SaxonJS2.rt.js delete mode 100644 src/main/java/nl/armatiek/xslweb/pipeline/TraceablePipelineStep.java delete mode 100644 src/main/java/nl/armatiek/xslweb/saxon/trace/XSLWebTimingTraceListener.java diff --git a/home/webapps/ROOT/xsl/itworks.xsl b/home/webapps/ROOT/xsl/itworks.xsl index b88ccc98..0e2e3aa6 100644 --- a/home/webapps/ROOT/xsl/itworks.xsl +++ b/home/webapps/ROOT/xsl/itworks.xsl @@ -31,7 +31,7 @@

It works!

-

Go to the documentation (in PDF) +

Go to the documentation or to the examples


XSLWeb version

diff --git a/home/webapps/examples/static/scripts/saxon-js/SaxonJS.min.js b/home/webapps/examples/static/scripts/saxon-js/SaxonJS.min.js deleted file mode 100644 index 3e5d63de..00000000 --- a/home/webapps/examples/static/scripts/saxon-js/SaxonJS.min.js +++ /dev/null @@ -1,8 +0,0 @@ -var SaxonJS=function(){function t(e){"use strict";if(null===e)return"#null";if("undefined"==typeof e)return"#undefined";var n;if(e instanceof C.XdmArray){n="[";var r;for(r=0;rr;r++)0!==r&&(n+=","),n+=t(e.value[r]);return e.value.length>=4&&(n+=",...("+e.value.length+")"),n+="]"}if(e instanceof w)return n="{",e.forAllPairs(function(e){n+=t(e.k),n+=": ",n+=t(e.v),n+=", "}),n+="}";if(!T.isNode(e)||T.isAttr(e)||T.isNSNode(e)){if(T.isAttr(e))return"attribute @"+e.name;if(T.isNSNode(e))return"ns:"+e.prefix+"="+e.uri;if(e.type)return"string"===e.type?'"'+e.toString()+'"':"integer"===e.type||"boolean"===e.type?e.toString():"xs:"+e.type+"("+e.toString()+")";if("object"==typeof e&&"length"in e){n="(";var o;for(o=0;oo;o++)0!==o&&(n+=","),n+=t(e[o]);return e.length>=4&&(n+=",...("+e.length+")"),n+=")"}return"??? "+e}if(n={1:"element <"+e.tagName+">",2:"attribute @"+e.name,3:"text:"+(e.nodeValue?e.nodeValue.substring(0,8):"''"),7:"pi",8:"comment",9:"document "+(e._saxonDocumentNumber?"#"+e._saxonDocumentNumber:"(No nr / #0)"),11:"docFrag"}[e.nodeType],"9"==e.nodeType){var i;for(i=0;i"+t(e.childNodes[i])}return n}function e(t,e,n){this.prefix=null===t?"":t,this.uri=null===e?"":e,n&&(this.parentNode=n)}function n(t,e,n){this.qname=t,this.value=e,this.parent=n,this.name=this.qname.toString(),this.namespaceURI=this.qname.uri,this.localName=this.qname.local,this.prefix=this.qname.prefix}function r(t,e,n){return this instanceof r?(this.name="XError",this.message=t||"Default Message",this.code=e||"FORG0001",n&&this.setExpr(n),void(this.stack=(new Error).stack)):new r(t,e,n)}function o(){"use strict";L?(i(y.platform),a("Saxon-JS "+v().productVersion+" in browser")):(i(JSTestDriver.platform),a("Saxon-JS "+v().productVersion+" in Nashorn")),"function"==typeof J.initialize&&J.initialize()}function i(t){"use strict";J=t}function a(t){J.saxonPrint(t)}function u(){return $}function s(t){"use strict";function e(t){switch(t.nodeType){case T.DOCUMENT_NODE:e(t.documentElement);break;case T.DOCUMENT_FRAGMENT_NODE:case T.ELEMENT_NODE:for(var r=T.nameOfNode(t),o=T.getInheritedAttribute(t,"xml:space"),i=n(r.uri,r.local)&&!(o&&"preserve"==o),a=t.childNodes,u=0;u0;)P.removeChild(P.childNodes[0]);k.forEachItem(function(t){P.appendChild(t)})}else n.principalResult=i.resultRoot}else n.principalResult=i.resultRoot}L&&m(i)}function l(t,e){"use strict";function n(t){var e="";for(var n in t)t.hasOwnProperty(n)&&(e+=n+", ");return e}function o(n,o){if(null===n)throw r("No stylesheet supplied","SXJS0006");f(n),c(n,o,t),e&&e(t.principalResult)}a("Transform options supplied: "+n(t)),t.stylesheetParams||(t.stylesheetParams={}),"function"==typeof J.deliverMessage&&J.deliverMessage(t);var i,u;if(L){var s=[],l=window.document.baseURI;t.stylesheetLocation&&(t.stylesheetLocation=J.resolveUri(t.stylesheetLocation.toString(),l),s.push(t.stylesheetLocation)),t.sourceLocation&&(t.sourceLocation=J.resolveUri(t.sourceLocation.toString(),l),s.push(t.sourceLocation)),i=t.stylesheetNode?t.stylesheetNode:null,u=t.sourceNode?t.sourceNode:t.sourceText?J.parseXmlFromString(t.sourceText):null,t.sourceNode&&t.sourceNode.baseURI&&(u._saxonBaseUri=t.sourceNode.baseURI),0===s.length?o(i,u):J.asyncGetMultipleXml(s,function(e){i=t.stylesheetLocation?e[t.stylesheetLocation]:i,u=t.sourceLocation?e[t.sourceLocation]:u,o(i,u)})}else{if(i=t.stylesheetNode,!i){var m=t.stylesheetText;if(!m){var p=t.stylesheetFileName;if(!p)throw r("No stylesheet supplied","SXJS0006");m=J.readFile(p)}i=J.parseXmlFromString(m)}if(u=t.sourceNode,u&&t.sourceNode.baseURI&&(u._saxonBaseUri=t.sourceNode.baseURI),!u){var h=t.sourceText;if(!h){var g=t.sourceFileName;g&&(h=J.readFile(g))}h&&(u=J.parseXmlFromString(h),u._saxonBaseUri=t.sourceLocation?t.sourceLocation:t.sourceFileName)}o(i,u)}}function f(t){"use strict";function e(t,e){for(var n=e<<8,r=0;ri?4294967295+i+1:i).toString(16);if(u!=t.data)throw r("Invalid checksum in SEF "+t.data+" != "+u,"SXJS0006");s=!0}}),!s)throw r("No checksum found in SEF","SXJS0006")}function m(t){"use strict";function e(e,n){var r=function(n){var r=n.target,o=t.newContext(!0);o.currentEvent=n,o.focus=A.Tracker(A.Singleton(C.convertFromJS(r)));var i=parseInt(e._expr.parentNode.getAttribute("id"));o.currentComponent=t.fixed.components[i],e.applyTemplates(o).expand()},o=["afterprint","beforeprint","beforeunload","hashchange","languagechange","message","offline","online","pagehide","pageshow","popstate","storage","unhandledrejection","unload"];-1==o.indexOf(n)?window.document.addEventListener(n,r,!1):window.addEventListener(n,r,!1)}var n=t.fixed.modes;for(var r in n)if(n.hasOwnProperty(r)){var o=r.split("}");o[0]=="Q{"+C.KNOWN_URI.ixsl&&e(n[r],o[1].replace(/^on/,""))}}function p(t,e,n){"use strict";function o(e,n){E.descendant(t).filter(function(t){return t.nodeType==T.ELEMENT_NODE&&t.tagName==e}).forEachItem(n)}function i(t){var e=T.getAttribute(t,"name");return e?/^Q\{/.test(e)?e:"Q{}"+e:null}function a(t,e){function n(t){for(var n=T.getChildElements(t,"co"),r=0;r0}function e(){Math.trunc=Math.trunc||function(t){return 0>t?Math.ceil(t):Math.floor(t)},Array.prototype.findIndex||Object.defineProperty(Array.prototype,"findIndex",{value:function(t){if(null==this)throw new TypeError("Array.prototype.findIndex called on null or undefined");if("function"!=typeof t)throw new TypeError("predicate must be a function");for(var e,n=Object(this),r=n.length>>>0,o=arguments[1],i=0;r>i;i++)if(e=n[i],t.call(o,e,i,n))return i;return-1},enumerable:!1,configurable:!1,writable:!1}),String.prototype.includes||(String.prototype.includes=function(t,e){return"number"!=typeof e&&(e=0),e+t.length>this.length?!1:-1!==this.indexOf(t,e)})}var n;try{var o=new DOMParser,i=o.parseFromString("<","text/xml");n=i.getElementsByTagName("parsererror")[0].namespaceURI}catch(u){}var s={inBrowser:!0,asyncGet:function(t,e){var n=new XMLHttpRequest;n.open("GET",t,!0),n.onload=function(o){4===n.readyState&&e(200===n.status?n.responseText:new r(n.statusText+": "+t,"SXJS0006"))},n.onerror=function(o){e(new r(n.statusText+": "+t,"SXJS0006"))},n.send(null)},asyncGetXml:function(t,e){s.asyncGet(t,function(n){var o=null;n instanceof r?o=n:(o=s.parseXmlFromString(n),o._saxonBaseUri=t),e(t,o)})},asyncGetMultipleXml:function(t,e){function n(t,n){if(n instanceof r)throw n;i[t]=n,--o<=0&&e(i)}for(var o=t.length,i={},a=0;a=0?t.headers[e.substring(0,n).toLowerCase()]=e.substring(n+1).trim():a("No ':' separator found in HTTP response header "+e)}})}}if(4===i.readyState){if(!(i.status>=200))throw r(i.statusText+": "+t.href,"SXJS0006");a("Saxon-JS processing httpRequest response");var o={};if(o.headers={},o.status=i.status,o.message=i.statusText,!t["status-only"]){var u=i.getResponseHeader("Content-Type"),c=u.split(/;/),l=c[0],f=(c[1].trim(),t["override-media-type"]||l);switch(o["media-type"]=f,f){case"text/xml":case"application/xml":case"text/xml-external-parsed-entity":case"application/xml-external-parsed-entity":o.body=i.responseXML||s.parseXmlFromString(i.responseText);break;case"text/html":o.body=i.responseXML||s.parseXmlFromString(i.responseText);break;default:if(/\+xml$/.test(f)){o.body=i.responseXML||s.parseXmlFromString(i.responseText);break}if(/^text\//.test(f)){o.body=i.responseText;break}if(/^multipart\//.test(f)){o.body=i.responseText;break}o.body=i.responseText}}n(o,i),e(o)}},i.send(t.body)},parseXmlFromString:function(e){e=e.replace(/\r\n|\r(?!\n)/g,"\n");try{var n=/Edge\//.test(window.navigator.userAgent);if(!n&&/^.+<\?xml/i.test(e))throw new Error;var o=(new DOMParser).parseFromString(e,"application/xml");o.documentElement;if(t(o))throw new Error;return o}catch(i){throw r("Misplaced or malformed XML","FODC0002")}},readResource:function(t){var e,n=new XMLHttpRequest,o=s.resolveUri(t,s.baseUri());if(n.open("GET",o,!1),n.send(null),200!=n.status)throw r("Failed to read resource at "+t,"SXJS0006");if(e=n.responseText,"\ufeff"==e.charAt(0))throw r(e.substring(1),"FODC0002");return e},readFile:function(t,e){var n,o=new XMLHttpRequest;try{o.open("GET",t,!1),o.send(null)}catch(i){throw r("Get failure "+t,"FODC0002")}if(200!=o.status)throw r("Failed to read file at "+t,"FODC0002");if(n=o.responseText,"\ufeff"==n.charAt(0))throw r(n.substring(1),"FODC0002");if(n.indexOf("\x00")>=0)throw r("External file contains non-XML characters","FOUT1190");return n},resolveUri:function(t,e){try{var n,o=document,i=o.getElementsByTagName("base")[0],a=i&&i.href,u=o.head||o.getElementsByTagName("head")[0],s=i||u.appendChild(o.createElement("base")),c=o.createElement("a");return s.href=e||"",c.href=t,n=c.href,i?i.href=a:u.removeChild(s),n}catch(l){throw r("Illegal URI: href="+t+" base="+e,"FODC0005")}},baseUri:function(){for(var t=document.getElementsByTagName("script"),e=0;e>18&63,i=s>>12&63,a=s>>6&63,u=63&s,f[l++]=B.charAt(o)+B.charAt(i)+B.charAt(a)+B.charAt(u);while(c>16&255,n=c>>8&255,r=255&c,64==u?m[f++]=String.fromCharCode(e):64==s?m[f++]=String.fromCharCode(e,n):m[f++]=String.fromCharCode(e,n,r);while(l0&&0>e||0>t&&e>0)throw new r("Months/seconds must both be negative or both positive","FORG0001");this.type=n||"duration"}function O(t){var e=X[t]={};e.name=t,e.matches=function(e){return e instanceof b&&e.type==t},e.fromString=function(e){return I(e,t)},e.fromDate=function(e,n){return new b(e,n,t)},e.cast=function(e){if(X[t].matches(e))return e;if(S.dateTime.matches(e)||S.date.matches(e)){var r=X[t];return r.fromString(r.fromDate(e.UTCdate,e.timezoneOffset).toString())}return S.string.matches(e)||S.untypedAtomic.matches(e)?X[t].fromString(e.toString()):void n(e,t)}}function A(t){if(-1!=t.indexOf(".",t.length-4)){for(var e=t.split("."),n=e[1];n.length<3;)n+="0";t=e[0]+"."+n}return t}function D(t){var e=t[0],n=t[1],r=t[2],o=t[3],i=t[4],a=t[5],u=e%4===0&&!(e%100===0&&e%400!==0);return!(1>n||n>12||1>r||r>[31,u?29:28,31,30,31,30,31,31,30,31,30,31][n-1]||o>=24||i>=60||a>=60)}function F(t,e){var n=t.split(/[\-T:]/).map(function(t){return parseFloat(t)}),o=n[0];if(1>o||o>9999)throw r("Year "+o+" is out of range","FODT0001");if(!D(n))throw new r("Invalid date "+e,"FORG0001")}function I(t,e){var n=t.match(J[e]);null===n&&o(t,e);var r=n[2]?n[2]:"",i=L[e](n[1])+r;/24:00:00(\.0+)?([Z\+\-]|$)/.test(i)&&(i="time"==e?i.substring(0,10)+"T00:00:00":M["t+u"](I(i.substring(0,10),"date"),P("P1D","dayTimeDuration")).toString()+"T00:00:00");var a,u,s="-"==i.charAt(0);if(s)F(i.substring(1,20),t),u=i.substr(1).split(/[\-T:]/).map(function(t){return parseFloat(t)}),a=new Date(Date.UTC(-u[0],u[1]-1,u[2],u[3],u[4],u[5]));else{F(i.substring(0,19),t);var c=i.split(/[\-T:]/);u=i.split(/[\-T:]/).map(function(t){return parseFloat(t)});var l=u[5],f=l-Math.floor(l);a=new Date(Date.UTC(c[0],u[1]-1,u[2],u[3],u[4],l,Math.round(1e3*f))),a.setUTCFullYear(c[0])}if(""===r){var m=new Date;a=new Date(a.getTime()+60*m.getTimezoneOffset()*1e3)}else a=new Date(a.getTime()-60*k(r)*1e3);return new b(a,k(n[2]?n[2]:""),e)}function k(t){if(""===t)return null;if("Z"==t)return 0;var e=t.split(":"),n=parseInt(e[0],10),o=/^\-.*/.test(e[0]),i=Math.abs(n),a=parseInt(e[1],10);if(i>14||a>59)throw r("Invalid timezone "+t,"FORG0001");return(o?-1:1)*(60*i+a)}function P(t,e){var n=t.match(J[e]);return(null===n||!/\d/.test(t)||/T$/.test(t))&&o(t,e),new E(q[Q[e][0]](n,t),q[Q[e][1]](n,t),e)}function U(){function n(t){for(var e=X[t];e.base;)R[t+"<"+(void 0!==e.base.name?e.base.name:e.base)]=1,e=e.base;("decimal"==e||"double"==e||"float"==e)&&(R[t+"=0&&e.cmp(Big("9223372036854775807"))<=0}),a("int","long",function(t){return t.toNumber()>=-2147483648&&t.toNumber()<=2147483647}),a("short","int",function(t){return t.toNumber()>=-32768&&t.toNumber()<=32767}),a("byte","short",function(t){return t.toNumber()>=-128&&t.toNumber()<=127}),a("nonNegativeInteger","integer",function(t){return t.toNumber()>=0}),a("positiveInteger","nonNegativeInteger",function(t){return t.toNumber()>0}),a("unsignedLong","nonNegativeInteger",function(t){return t.toNumber()>=0&&t.toBig().cmp(Big("18446744073709551615"))<=0}),a("unsignedInt","unsignedLong",function(t){return t.toNumber()>=0&&t.toBig().cmp(Big("4294967295"))<=0}),a("unsignedShort","unsignedInt",function(t){return t.toNumber()>=0&&t.toNumber()<=65535}),a("unsignedByte","unsignedShort",function(t){return t.toNumber()>=0&&t.toNumber()<=255});var c=function(t){return t.replace(/[ \r\t\n]/g," ")},l=function(){return!0};u("normalizedString","string",l,c),u("token","normalizedString",l,C.wsCollapse),u("language","token",function(t){return/^[a-zA-Z]{1,8}(-[a-zA-Z0-9]{1,8})*$/.test(t)},C.wsCollapse),u("NMTOKEN","token",_.isNMTOKEN,C.wsCollapse),u("Name","token",_.isName,C.wsCollapse),u("NCName","Name",_.isNCName,C.wsCollapse),u("ID","NCName",_.isNCName,C.wsCollapse),u("IDREF","NCName",_.isNCName,C.wsCollapse),u("ENTITY","NCName",_.isNCName,C.wsCollapse),s("yearMonthDuration","duration",function(t){return 0===t.milliseconds}),s("dayTimeDuration","duration",function(t){return 0===t.months}),X.dayTimeDuration.fromNumberOfMinutes=function(t){return new E(0,60*t*1e3,"dayTimeDuration")},X.showValue=t,X._init=function(){}}var R={"integer0){var n;for(n=0;e>n;n++)t=31*t+this.value.charAt(n++);this._hash=t}return s(t)},matchKey:function(){return"s"+this.toString()}},h.prototype={value:null,type:"hexBinary",toString:function(){return"hexBinary"==this.type?f(this.value):c(this.value)},compareTo:function(t){return t instanceof h&&this.type==t.type?N.codepointComparison(this.value,t.value):void a(this.type,t.type)},equals:function(t){return 0===this.compareTo(t)},hashCode:function(){return new p(this.value).hashCode()},matchKey:function(){return("hexBinary"==this.type?"h":"i")+this.toString()}},g.prototype={value:0,type:"double",toString:function(){if(0===this.value)return 1/this.value<0?"-0":"0";if(this.value==Number.POSITIVE_INFINITY)return"INF";if(this.value==Number.NEGATIVE_INFINITY)return"-INF";var t,e=this.value,n=Math.abs(e);if(n>=1e6||1e-6>n){t=e.toExponential();var r=t.indexOf("e"),o=t.substring(0,r);o.includes(".")||(o+=".0");var i=t.substring(r+1);return o+"E"+i.replace("+","")}if("float"===this.type&&e%1!=0){var a=0>e?e-5e-8:e+5e-8;t=a.toString();var u=t.indexOf(".");return t=t.substring(0,u+6),t.replace(/0+$/,"")}return e.toString()},equals:function(t){return 0===this.compareTo(t)},compareTo:function(t){return"toNumber"in t?this.valuet){var e=Math.pow(10,-t);return new d(Math.round(this.value/e)*e)}return this},roundHalfToEven:function(t){if(0>t){var e=Math.pow(10,-t);return new d(parseInt(Big(this.value).div(e).round(0,2).times(e),10))}return this}},v.prototype={value:null,type:"decimal",toString:function(){return this.value.toFixed()},equals:function(t){return 0===this.compareTo(t)},compareTo:function(t){return t instanceof v?this.value.cmp(t.value):"toDouble"in t?this.value-t.toDouble().value:void a(this.type,t.type)},hashCode:function(){ -return s(this.toNumber())},matchKey:function(){return"n"+this.hashCode()},toBig:function(){return this.value},toDouble:function(){return new g(parseFloat(this.value))},toNumber:function(){return parseFloat(this.value)},abs:function(){return new v(this.value.abs(),this.type)},negate:function(){var t=Big(this.value);return t.s=-t.s,new v(t,"decimal"==this.type?"decimal":"integer")},ceiling:function(){return new v(this.value.round(0,this.value.s<0?0:3),this.type)},floor:function(){return new v(this.value.round(0,this.value.s<0?3:0),this.type)},round:function(t){function e(t,e){var n=new Big(t);return n.e+=e,n}var n=this.value,r=0;0>t&&(r=t,t=0,n=e(n,r));var o=n.s>0?Big(0):this.floor().abs();return n=n.plus(o).round(t,1).minus(o),0!==e&&(n=e(n,-r)),new v(n,"decimal"==this.type?"decimal":"integer")},roundHalfToEven:function(t){var e;if(0>t){var n=Big(10).pow(-t);e=this.value.div(n).round(0,2).times(n)}else e=this.value.round(t,2);return new v(e,"decimal"==this.type?"decimal":"integer")}},y.prototype={value:null,type:"boolean",toString:function(){return this.value.toString()},toBoolean:function(){return this.value},compareTo:function(t){return t instanceof y?(this.value?1:0)-(t.value?1:0):void a(this.type,t.type)},equals:function(t){return 0===this.compareTo(t)},hashCode:function(){return this.value.toString()},matchKey:function(){return"b"+this.toString()}},x.prototype={prefix:null,uri:null,local:null,type:"QName",toEQName:function(){return"Q{"+this.uri+"}"+this.local},toString:function(){return(this.prefix.length>0?this.prefix+":":"")+this.local},equals:function(t){return t instanceof x&&this.local==t.local&&this.uri==t.uri},compareTo:function(){throw new r("QNames are not ordered","FORG0006")},hashCode:function(){return this.uri.substring(this.uri.length-3)+":"+new p(this.local).hashCode()},matchKey:function(){return"q"+this.toEQName()}},b.prototype={type:"dateTime",UTCdate:null,timezoneOffset:null,proxy:function(){var t=new Date,e=null!==this.timezoneOffset?this.timezoneOffset:-t.getTimezoneOffset();return new Date(this.UTCdate.getTime()+60*e*1e3)},_ISOEdit:function(t){if(t=t.substr(0,t.length-1),0===this.UTCdate.getUTCMilliseconds())t=t.replace(".000","");else for(;"0"==t.charAt(t.length-1);)t=t.substr(0,t.length-1);return t=t.replace(/^-0?0?/,"-")},toString:function(){function t(t){switch(t){case"dateTime":case"dateTimeStamp":return e;case"date":return e.substring(0,10+n);case"time":return e.substring(11+n);case"gYearMonth":return e.substring(0,7+n);case"gYear":return e.substring(0,4+n);case"gMonthDay":return"-"+e.substring(4+n,10+n);case"gMonth":return"-"+e.substring(4+n,7+n);case"gDay":return"--"+e.substring(7+n,10+n);default:throw"type not recognised "+t}}var e=this._ISOEdit(this.proxy().toISOString()),n="-"==e.charAt(0)?1:0;return t(this.type)+this.tzOffsetToString()},compareTo:function(t){return t instanceof b&&(e(t.type,this.type)||e(this.type,t.type))?+this.UTCdate.getTime()-t.UTCdate.getTime():void a(this.type,t.type)},equals:function(t){return 0===this.compareTo(t)},hashCode:function(){return s(this.UTCdate.getTime()-1454346732296)},matchKey:function(){return"t"+this.hashCode()},adjustByMinutes:function(t){return S.dateTime.fromDate(new Date(this.UTCdate.getTime()+60*t*1e3),this.timezoneOffset)},addMonths:function(t){var e=this.toString(),n=parseInt(e.substring(0,4),10),r=parseInt(e.substring(5,7),10),o=parseInt(e.substring(8,10),10),i=n+Math.floor((r+t-1)/12),a=0>i,u=(r+t-1)%12+1;for(0>=u&&(u+=12);!D([i,u,o,0,0,0]);)o-=1;return S[this.type].fromString((a?"-"+w(-i):w(i))+"-"+T(u)+"-"+T(o)+e.substring(10))},tzOffsetToString:function(){var t=this.timezoneOffset;if(null===t)return"";if(0===t)return"Z";var e=Math.abs(t);return(0>t?"-":"+")+T(Math.floor(e/60))+":"+T(e%60)}},E.prototype={type:"duration",months:0,milliseconds:0,parts:function(){function t(t,n){n.forEach(function(n){1e3!=n?(e.push(Math.floor(t/n)),t%=n):e.push(t/n)})}var e=[];return t(Math.abs(this.months),[12,1]),t(Math.abs(this.milliseconds),[864e5,36e5,6e4,1e3]),e},signum:function(){var t=this.months+this.milliseconds;return 0>t?-1:t>0?1:0},toString:function(){var t,e=this.signum();return 0===e?t="yearMonthDuration"==this.type?"P0M":"PT0S":(t=0>e?"-P":"P",this.parts().forEach(function(e,n){3==n&&(t+="T"),0!==e&&(t+=6==n?e/1e3+"S":e+["Y","M","D","H","M","S"][n])}),t=t.replace(/T$/,"")),t},compareTo:function(t){if(S.yearMonthDuration.matches(this)&&S.yearMonthDuration.matches(t))return this.months-t.months;if(S.dayTimeDuration.matches(this)&&S.dayTimeDuration.matches(t))return this.milliseconds-t.milliseconds;throw new r("Cannot compare durations that mix months and seconds","XPTY0004")},equals:function(t){return t instanceof E&&this.months==t.months&&this.milliseconds==t.milliseconds},hashCode:function(){return this.months.toString()+":"+this.milliseconds.toString()},matchKey:function(){return"d"+this.hashCode()}};var X={hierarchy:R,isSubtype:e,anyAtomicType:{name:"anyAtomicType",matches:function(t){return t instanceof p||t instanceof v||t instanceof d||t instanceof g||t instanceof h||t instanceof y||t instanceof E||t instanceof b||t instanceof x}},untypedAtomic:{name:"untypedAtomic",fromString:function(t){return new p(t,"untypedAtomic")},matches:function(t){return"untypedAtomic"==t.type},cast:function(t){return new p(t.toString(),"untypedAtomic")}},string:{name:"string",fromString:function(t){return new p(t,"string")},matches:function(t){return e(t.type,"string")},cast:function(t){return new p(t.toString(),"string")},isStringLike:function(t){return t instanceof p}},anyURI:{name:"anyURI",fromString:function(t){var e=t.replace(/[ \r\t\n]+/g," ").replace(/^[ ]|[ ]$/g,"");return new p(e,"anyURI")},matches:function(t){return"anyURI"==t.type},cast:function(t){return t instanceof p?S.anyURI.fromString(t.toString()):void n(t,"anyURI")}},"double":{name:"double",fromString:function(t){return new g(u(t,!0))},fromStringUnfailing:function(t){return new g(u(t,!1))},fromNumber:function(t){return new g(t)},matches:function(t){return"double"==t.type},cast:function(t){return null==t?S["double"].fromNumber(NaN):S.string.matches(t)||S.untypedAtomic.matches(t)?S["double"].fromString(t.toString()):S.numeric.matches(t)?S["double"].fromNumber(t.toNumber()):S["boolean"].matches(t)?S["double"].fromNumber(t.toBoolean()?1:0):"number"==typeof t?S["double"].fromNumber(t):void n(t,"double")}},decimal:{name:"decimal",fromString:function(t){return t=_.trim(t),/^(\+|-)?([0-9]+(\.[0-9]*)?|\.[0-9]+)$/.test(t)?new v(new Big(t)):(/INF|NaN/.test(t)&&i(t,"decimal"),void o(t,"decimal"))},fromBig:function(t){return new v(t)},fromNumber:function(t){if(isNaN(t)||!isFinite(t))throw new r("Cannot convert NaN or INF to a decimal","FOCA0002");return new v(new Big(t))},matches:function(t){return t instanceof v||t instanceof d},cast:function(t){return S.decimal.matches(t)?new v(t.value,"decimal"):S.string.matches(t)||S.untypedAtomic.matches(t)?S.decimal.fromString(t.toString()):S.numeric.matches(t)?S.decimal.fromNumber(t.toNumber()):S["boolean"].matches(t)?S.decimal.fromString(t.toBoolean()?"1":"0"):void n(t,"decimal")}},"float":{name:"float",fromString:function(t){return new g(u(t,!0),"float")},fromNumber:function(t){return Math.fround&&(t=Math.fround(t)),new g(t,"float")},matches:function(t){return"float"==t.type},cast:function(t){return S["float"].fromNumber(S["double"].cast(t).toNumber())}},"boolean":{name:"boolean",fromString:function(t){switch(_.trim(t)){case"true":case"1":return new y(!0);case"false":case"0":return new y(!1);default:o(t,"boolean")}},fromBoolean:function(t){return new y(t)},matches:function(t){return t instanceof y},cast:function(t){return S.string.matches(t)||S.untypedAtomic.matches(t)?S["boolean"].fromString(t.toString()):S.numeric.matches(t)?S["boolean"].fromBoolean(0!==t.toNumber()&&!isNaN(t.toNumber())):S["boolean"].matches(t)?t:"boolean"==typeof t?S["boolean"].fromBoolean(t):void n(t,"boolean")}},integer:{name:"integer",base:"decimal",matches:function(t){return e(t.type,"integer")},fromString:function(t){return/^\s*(\-|\+)?[0-9]+\s*$/.test(t)?t.length>9?new v(t,"integer"):new d(parseInt(t,10)):(/INF|NaN/.test(t)&&i(t,"integer"),void o(t,"integer"))},fromNumber:function(t){if(isNaN(t)||t==Number.NEGATIVE_INFINITY||t==Number.POSITIVE_INFINITY)throw new r("Cannot convert NaN or INF to an integer","FOCA0002");return new d(Math.trunc(t))},fromBig:function(t){return new v(t,"integer")},valid:function(t){return 0===t.value.mod(1)},cast:function(t){return S.string.matches(t)||S.untypedAtomic.matches(t)?S.integer.fromString(t.toString()):S.numeric.matches(t)?S.integer.fromNumber(t.toNumber()):S["boolean"].matches(t)?S.integer.fromNumber(t.toBoolean()?1:0):void n(t,"integer")},convertFromJS:function(t){return"number"==typeof t?S.integer.fromNumber(t):"boolean"==typeof t?S.integer.fromNumber(t?1:0):"string"==typeof t?S.integer.fromString(t):S.integer.fromString(t.toString())}},numeric:{name:"numeric",members:["double","decimal","float"],matches:function(t){return t instanceof g||t instanceof d||t instanceof v},cast:function(t){return S.string.matches(t)||S.untypedAtomic.matches(t)?S["double"].fromString(t.toString()):S.numeric.matches(t)?t:S["boolean"].matches(t)?S["double"].fromNumber(t.toBoolean()?1:0):void n(t,"numeric")},numberFn:function(t){var e=S["double"];if(null===t)return e.fromNumber(Number.NaN);if(S["boolean"].matches(t))return e.fromNumber(t.toBoolean()?1:0);if(S.numeric.matches(t))return e.cast(t);try{return e.fromString(t.toString())}catch(n){return e.fromNumber(Number.NaN)}}},QName:{name:"QName",matches:function(t){return t instanceof x},fromParts:function(t,e,n){return new x(t,e,n)},fromString:function(t,e){if(t=_.trim(t),"Q{"==t.substring(0,2))return S.QName.fromEQName(t);_.isQName(t)||o(t,"QName");var n=t.split(":");if(1==n.length)return S.QName.fromParts("",e(""),n[0]);var i=e(n[0]);if(null===i)throw r("Undeclared prefix: "+n[0],"FONS0004");return S.QName.fromParts(n[0],i,n[1])},fromEQName:function(t){var e=t.indexOf("{"),n=t.indexOf("}"),o=C.wsCollapse(t.substring(e+1,n));if("http://www.w3.org/2000/xmlns/"==o)throw r("Use of reserved namespace: "+o,"XQST0070");return new x("",o,t.substring(n+1))},cast:function(t,e){if(S.string.matches(t)||S.untypedAtomic.matches(t)){if(e)return S.QName.fromString(t.toString(),e);throw r("Casting to QName requires a namespace resolver","FORG0001")}return S.QName.matches(t)?t:void n(t,"QName")}},dateTime:{name:"dateTime",matches:function(t){return e(t.type,"dateTime")},fromString:function(t){return I(t,"dateTime")},fromDate:function(t,e){return new b(t,e,"dateTime")},cast:function(t){return S.dateTime.matches(t)?t:S.date.matches(t)?S.dateTime.fromDate(t.UTCdate,t.timezoneOffset):S.string.matches(t)||S.untypedAtomic.matches(t)?S.dateTime.fromString(t.toString()):void n(t,"dateTime")}},date:{name:"date",matches:function(t){return t instanceof b&&"date"==t.type},fromString:function(t){return I(t,"date")},fromDate:function(t,e){var n=new b(t,e,"date"),r=n.toString(),o="-"==r.charAt(0)?11:10,i=S.dateTime.fromString(r.substring(0,o)+"T00:00:00"+r.substring(o));return new b(i.UTCdate,e,"date")},cast:function(t){return S.date.matches(t)?t:S.dateTime.matches(t)?S.date.fromDate(t.UTCdate,t.timezoneOffset):S.string.matches(t)||S.untypedAtomic.matches(t)?S.date.fromString(t.toString()):void n(t,"date")}},time:{name:"time",matches:function(t){return t instanceof b&&"time"==t.type},fromString:function(t){return I(t,"time")},fromDate:function(t,e){var n=new b(t,e,"time"),r=S.dateTime.fromString("1972-01-01T"+n.toString());return new b(r.UTCdate,e,"time")},cast:function(t){return S.time.matches(t)?t:S.dateTime.matches(t)?S.time.fromDate(t.UTCdate,t.timezoneOffset):S.string.matches(t)||S.untypedAtomic.matches(t)?S.time.fromString(t.toString()):void n(t,"time")}},dateTimeStamp:{name:"dateTimeStamp",matches:function(t){return t instanceof b&&"dateTimeStamp"==t.type},fromString:function(t){return I(t,"dateTimeStamp")},fromDate:function(t,e){return new b(t,e,"dateTimeStamp")},cast:function(t){return S.dateTimeStamp.matches(t)?t:S.dateTime.matches(t)||S.date.matches(t)?S.dateTimeStamp.fromDate(t.UTCdate,t.timezoneOffset):S.string.matches(t)||S.untypedAtomic.matches(t)?S.dateTimeStamp.fromString(t.toString()):void n(t,"dateTimeStamp")}},duration:{name:"duration",matches:function(t){return e(t.type,"duration")},fromString:function(t){return P(t,"duration")},fromMonthsMilliseconds:function(t,e){return new E(t,e,"duration")},cast:function(t){return S.duration.matches(t)?t:S.string.matches(t)||S.untypedAtomic.matches(t)?S.duration.fromString(t.toString()):void n(t,"duration")}},hexBinary:{name:"hexBinary",matches:function(t){return"hexBinary"===t.type},fromString:function(t){return new h(m(t),"hexBinary")},cast:function(t){return t instanceof h?new h(t.value,"hexBinary"):S.string.matches(t)||S.untypedAtomic.matches(t)?new h(m(t.toString()),"hexBinary"):void n(t,"hexBinary")}},base64Binary:{name:"base64Binary",matches:function(t){return"base64Binary"===t.type},fromString:function(t){return new h(l(t),"base64Binary")},encodeFromString:function(t){return new h(t,"base64Binary")},cast:function(t){return t instanceof h?new h(t.value,"base64Binary"):S.string.matches(t)||S.untypedAtomic.matches(t)?new h(l(t.toString()),"base64Binary"):void n(t,"base64Binary")}}};O("gYearMonth"),O("gYear"),O("gMonthDay"),O("gMonth"),O("gDay");var J={dateTime:/^\s*(-?(?:[1-9][0-9]{4,}|[0-9]{4})-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}(?:\.[0-9]+)?)(Z|(\+|-)[0-9]{2}:[0-9]{2})?\s*$/,date:/^\s*(-?(?:[1-9][0-9]{4,}|[0-9]{4})-[0-9]{2}-[0-9]{2})(Z|(\+|-)[0-9]{2}:[0-9]{2})?\s*$/,time:/^\s*([0-9]{2}:[0-9]{2}:[0-9]{2}(?:\.[0-9]+)?)(Z|(\+|-)[0-9]{2}:[0-9]{2})?\s*$/,dateTimeStamp:/^\s*(-?[0-9]+-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}(?:\.[0-9]+)?)(Z|(\+|-)[0-9]{2}:[0-9]{2})\s*$/,gYearMonth:/^\s*(-?(?:[1-9][0-9]{4,}|[0-9]{4})-[0-9]{2})(Z|(\+|-)[0-9]{2}:[0-9]{2})?\s*$/,gYear:/^\s*(-?[1-9][0-9]{4,}|-?[0-9]{4})(Z|(\+|-)[0-9]{2}:[0-9]{2})?\s*$/,gMonthDay:/^\s*--([0-9]{2}-[0-9]{2})(Z|(\+|-)[0-9]{2}:[0-9]{2})?\s*$/,gMonth:/^\s*--([0-9]{2})(Z|(\+|-)[0-9]{2}:[0-9]{2})?\s*$/,gDay:/^\s*---([0-9]{2})(Z|(\+|-)[0-9]{2}:[0-9]{2})?\s*$/,duration:/^\s*\-?P(?:([0-9]+)Y)?(?:([0-9]+)M)?(?:([0-9]+)D)?(?:T(?:([0-9]+)H)?(?:([0-9]+)M)?(?:([0-9]+(?:\.[0-9]*)?)S)?)?\s*$/,dayTimeDuration:/^\s*\-?P(?:([0-9]+)D)?(?:T(?:([0-9]+)H)?(?:([0-9]+)M)?(?:([0-9]+(?:\.[0-9]*)?)S)?)?\s*$/,yearMonthDuration:/^\s*\-?P(?:([0-9]+)Y)?(?:([0-9]+)M)?\s*$/},L={dateTime:function(t){return A(t)},date:function(t){return t+"T00:00:00"},time:function(t){return"1972-01-01T"+A(t)},dateTimeStamp:function(t){return A(t)},gYearMonth:function(t){return t+"-01T00:00:00"},gYear:function(t){return t+"-01-01T00:00:00"},gMonthDay:function(t){return"1972-"+t+"T00:00:00"},gMonth:function(t){return"1972-"+t+"-01T00:00:00"},gDay:function(t){return"1972-01-"+t+"T00:00:00"}},$=function(t,e){return e*(void 0===t?0:parseInt(t,10))},z=function(t,e){return e*(void 0===t?0:Math.round(1e3*parseFloat(t)))},G=function(t,e){return e?-t:t},q=[function(t,e){return G($(t[1],12)+$(t[2],1),e.match(/^\s*\-.*/))},function(t,e){return G($(t[3],864e5)+$(t[4],36e5)+$(t[5],6e4)+z(t[6],1),e.match(/^\s*\-.*/))},function(t,e){return G($(t[1],864e5)+$(t[2],36e5)+$(t[3],6e4)+z(t[4],1),e.match(/^\s*\-.*/))},function(){return 0}],Q={duration:[0,1],dayTimeDuration:[3,2],yearMonthDuration:[0,3]};return X._init=U,X}(),N=function(){"use strict";function t(t,e,n,r){for(var o,i,a=S.numeric.matches,u=S.untypedAtomic.matches;null!==(o=t.next());)for(var s=A.ForArray(e);null!==(i=s.next());){var c=u(o)?u(i)?S.string.cast(o):a(i)?S["double"].cast(o):S[i.type].cast(o):o,l=u(i)?u(o)?S.string.cast(i):a(o)?S["double"].cast(i):S[o.type].cast(i):i;if(!(a(c)&&isNaN(c.value)||a(l)&&isNaN(l.value))){var f="="==n?r.equals(c,l):"!="==n?!r.equals(c,l):_(n,r.compare(c,l));if(f)return A.oneBoolean(!0)}}return A.oneBoolean(!1)}function e(t){return{equals:function(e,n){var r=S.numeric.matches,o=function(t){return S.numeric.numberFn(t).toNumber()};S.untypedAtomic.matches;return r(e)||r(n)?o(e)===o(n):t.equals(e,n)},compare:t.compare}}function n(e,n,r){var o=C,i=o.evalChild1(e,n),a=o.evalChild2(e,n).expand(),u=y(e.getAttribute("comp"),n);return r||(r=e.getAttribute("op")),t(i,a,r,u)}function o(t,e){return t.equals(e)}function i(t,e){return t.compareTo(e)}function a(t){return null===t}function u(t){return(S["double"].matches(t)||S["float"].matches(t))&&isNaN(t.toNumber())}function s(t,e){return function(n,r){return e(n)||e(r)?e(n)?e(r):!1:t(n,r)}}function c(t,e){return function(n,r){return e(n)||e(r)?e(n)?e(r)?0:-1:1:t(n,r)}}function l(t){return c(t,a)}function f(t){return c(t,u)}function m(t,e){return null===t?NaN:S.numeric.matches(t)?t.toNumber():e?S["double"].fromString(t.toString()).toNumber():S["double"].fromStringUnfailing(t.toString()).toNumber()}function p(t){return function(e,n){var r=m(e,t),o=m(n,t);return isNaN(r)?isNaN(o)?0:-1:isNaN(o)?1:r-o}}function h(t){return function(e,n){var r=m(e,t),o=m(n,t);return isNaN(r)?isNaN(o):isNaN(o)?!1:r-o===0}}function g(t,e){return function(n,r){var o=n.toString(),i=r.toString(),a=o.toLowerCase(),u=i.toLowerCase(),s=t(a,u);if(0===s){for(var c=0;ce;case">":case"gt":return e>0;case">=":case"ge":return e>=0;case"<=":case"le":return 0>=e;case"!=":case"ne":return 0!==e;default:throw new r("Unknown operator "+t,"SXJS0003")}}function F(t,e){switch(t){case"=":case"eq":return e;case"!=":case"ne":return!e;case"<":case"lt":case">":case"gt":case">=":case"ge":case"<=":case"le":throw new r("Operator "+t+" not allowed for unordered types","SXJS0003");default:throw new r("Unknown operator "+t,"SXJS0003")}}function I(t,e,n){var r=t.expand(),o=e.expand();t=A.ForArray(r),e=A.ForArray(o);for(var i,a;;){if(i=t.next(),a=e.next(),null===i)return null===a;if(null===a)return!1;if(!M(i,a,n))return!1}}function M(t,e,n){var o=T;if(t===e)return!0;if(o.isNode(t)){if(!o.isNode(e)||!o.isSameNodeType(t.nodeType,e.nodeType))return!1;switch(t.nodeType){case o.DOCUMENT_NODE:case o.DOCUMENT_FRAGMENT_NODE:return I(E.child(t),E.child(e));case o.ELEMENT_NODE:if(!o.nameOfNode(t).equals(o.nameOfNode(e)))return!1;var i=E.attribute(t).expand();if(i.length!=E.attribute(e).count())return!1;var a;for(a=0;a0){var l=A.Tracker(A.ForArray(s)),f=e.newContext(!1);f.focus=l;var m=c.map(function(t){return b(t,e)});l.forEachItem(function(t,e){t.sortKeys=c.map(function(n){var r=f.focus;return r.current=t.group[0],r.position=e+1,f.currentGroup=t.group,f.currentGroupingKey=t.key,C.evalChild1(n,f).next()})}),s.sort(function(t,e){for(var n=0;nr)return-1;if(r>0)return 1}return 0})}var p=e.newContext(!1);p.focus=A.Tracker(A.ForArray(s));for(var h,g=C.argRole(t,"content"),d=[],v=0;null!==(h=p.focus.next());){var y=s[v++],x=p.focus;x.current=y.group[0],x.position=v,p.currentGroup=y.group,p.currentGroupingKey=y.key,Array.prototype.push.apply(d,C.evaluate(g,p).expand())}return A.ForArray(d)}function B(t,e){for(var n=C,r=n.stringToCodepoints(t.toString()),o=n.stringToCodepoints(e.toString()),i=0;;){if(i==r.length)return i==o.length?0:-1;if(i==o.length)return 1;if(r[i]!=o[i])return r[i]-o[i];i++}}function X(t,e){if(C.isAstral(t)||C.isAstral(e)){var n=B(t,e);return 0>n?-1:0===n?0:1}return e>t?-1:t==e?0:1}function J(t,e){return t.substring(0,e.length)===e}function L(t,e){return t.substring(t.length-e.length)===e}function $(t,e,n){return G(z(t,e),n)}function z(t,e){return e?e.next().toString():T.getAttribute(t,"collation")}function G(t,e){var n=t&&!J(t,W)?e.fixed.options.collations[t]:Q();if(!n)throw r("Unrecognized collation "+t,"FOCH0002");return n}function q(t,e){if(!t.hasOwnProperty("compare")||!t.hasOwnProperty("compare"))throw r("Collation "+e+" cannot be used for sorting","XTDE1035")}function Q(){return{equals:function(t,e){return t===e},compare:function(t,e){return X(t,e)},contains:function(t,e){return-1!=t.indexOf(e)},startsWith:function(t,e){return J(t,e)},endsWith:function(t,e){return L(t,e)},indexOf:function(t,e){return t.indexOf(e)},collationKey:function(t){return t}}}function K(){function t(t){return t?(t+"").toUpperCase():""}return{equals:function(e,n){return t(e)===t(n)},compare:function(e,n){return X(t(e),t(n))},contains:function(e,n){return-1!=t(e).indexOf(t(n))},startsWith:function(e,n){return J(t(e),t(n))},endsWith:function(e,n){return L(t(e),t(n))},indexOf:function(e,n){return t(e).indexOf(t(n))},collationKey:function(e){return t(e)}}}function V(t){var e=new w,n=t.collationKey;if(!n)throw new r("Collation is unsuitable for keys and grouping","XTDE1110");var o=function(t){return S.string.isStringLike(t)?n(t.matchKey()):t.matchKey()};return e.options={sameKey:function(t,e){return o(t)===o(e)},hash:function(t){return o(t)}},e}function j(t,e,n,o){var i=z(t,e),a=G(i,o),u=a[n];if(!u)throw r("Collation "+i+" has no "+n+" method","FOCH0002",t);return u}var Y="http://www.w3.org/2005/xpath-functions/collation/html-ascii-case-insensitive",H="http://www.w3.org/2005/xpath-functions/collation/codepoint",W="http://www.w3.org/2013/collation/UCA",Z="http://www.w3.org/2010/09/qt-fots-catalog/collation/caseblind",tt="http://www.w3.org/xslts/collation/caseblind";return{allocateCodedComparer:y,allocateCompareFn:b,caseblindCollation:K,cmpFn:v,codepointCollation:Q,codepointCollationUri:H,codepointComparison:X,compareFnWithProps:O,deepEqualItems:M,deepEqualSequences:I,eqFn:d,fotsCaseblindCollationUri:Z,gc:t,gc10comparer:e,generalComparison:n,getCollation:$,getCollatingFn:j,getConverters:P,grouping:R,htmlCaseInsensitiveCollationUri:Y,itemIsNaN:u,lexicographicCompare:k,sortKeyProps:x,sortSequence:U,testComparison:_,testEquality:F,trieWithCollation:V,xsltsCaseblindCollationUri:tt}}(),x=13;e.prototype={prefix:null,uri:null,parentNode:null,nodeType:x};var b=2;n.prototype={qname:null,value:null,parent:null,nodeType:b};var T=function(){"use strict";var t=1;return{ELEMENT_NODE:1,ATTRIBUTE_NODE:2,TEXT_NODE:3,CDATA_SECTION:4,PROCESSING_INSTRUCTION_NODE:7,COMMENT_NODE:8,DOCUMENT_NODE:9,DOCUMENT_TYPE_NODE:10,DOCUMENT_FRAGMENT_NODE:11,NAMESPACE_NODE:13,shallowCopy:function(t,o,i,a){if(T.isNode(t)){var u,s;switch(t.nodeType){case T.DOCUMENT_NODE:case T.DOCUMENT_FRAGMENT_NODE:u=o.resultDocument.createDocumentFragment();var c=o.newContext(!1);C.makeComplexContent(u,a(c),o);break;case T.ELEMENT_NODE:s=T.nameOfNode(t),u=o.createElement(s.uri,s.toString()),i&&i.indexOf("c")>=0&&!(SaxonJS.getPlatform().inBrowser&&u instanceof HTMLElement)&&T.inScopeNamespaces(t).forEach(function(t){T.declareNS(u,t.prefix,t.uri)}),u._saxonBaseUri=T.baseURI(t),C.makeComplexContent(C.markLocal(u,i),a(o),o);break;case T.ATTRIBUTE_NODE:u=new n(T.nameOfNode(t),t.value,null);break;case T.TEXT_NODE:u=o.resultDocument.createTextNode(t.textContent);break;case T.COMMENT_NODE:u=o.resultDocument.createComment(t.textContent);break;case T.PROCESSING_INSTRUCTION_NODE:u=o.resultDocument.createProcessingInstruction(t.target,t.textContent);break;case T.NAMESPACE_NODE:u=new e(t.prefix,t.uri);break;default:throw r("Unknown node type "+t.nodeType,"SXJS0003")}return A.Singleton(C.markLocal(u,i))}return A.Singleton(t)},copyItem:function(t,r,o){if(!T.isNode(t))return t;var i,a,u,s=function(t,e){o&&o.indexOf("m")>=0&&(e._saxonOriginal=t)};switch(t.nodeType){case T.DOCUMENT_NODE:case T.DOCUMENT_FRAGMENT_NODE:var c=r.resultDocument.createDocumentFragment();return i=T.obtainDocumentNumber(c),i._saxonBaseUri=t._saxonBaseUri,C.makeComplexContent(i,E.child(t).mapOneToOne(function(t){return T.copyItem(t,r,o)}),r),s(t,i),C.markLocal(i,o);case T.NAMESPACE_NODE:return new e(t.prefix,t.uri);case T.ELEMENT_NODE:return u=T.nameOfNode(t),a=r.createElement(u.uri,u.toString()),o&&o.indexOf("c")>=0&&!(SaxonJS.getPlatform().inBrowser&&a instanceof HTMLElement)&&T.inScopeNamespaces(t).forEach(function(t){T.declareNS(a,t.prefix,t.uri)}),E.attribute(t).forEachItem(function(t){var e=""===t.namespaceURI?null:t.namespaceURI;a.setAttributeNS(e,t.name,t.value)}),E.child(t).forEachItem(function(t){var e=T.copyItem(t,r,o);e.nodeType==T.ELEMENT_NODE&&""===T.nameOfNode(e).uri&&""!==u.uri&&T.declareNS(e,"",""),a.appendChild(e)}),a._saxonBaseUri=T.baseURI(t),s(t,a),C.markLocal(a,o);case T.DOCUMENT_TYPE_NODE:return null;case T.ATTRIBUTE_NODE:return new n(T.nameOfNode(t),t.value,null);default:return a=SaxonJS.getPlatform().inBrowser?window.document.importNode(t,!0):cloneNode(r.resultDocument,t,!0),s(t,a),C.markLocal(a,o)}},ownerDocument:function(t){return E.ancestorOrSelf(t).expand().pop()},obtainDocumentNumber:function(e){return"_saxonDocumentNumber"in e||(e._saxonDocumentNumber=t++),e},documentNumber:function(t){return T.obtainDocumentNumber(t)._saxonDocumentNumber},nameOfNode:function(t){if(!t||!t.nodeType)return null;switch(t.nodeType){case T.ELEMENT_NODE:return SaxonJS.getPlatform().inBrowser&&t instanceof HTMLElement&&"http://www.w3.org/1999/xhtml"==t.namespaceURI?S.QName.fromParts("","",t.localName):S.QName.fromParts(t.prefix,t.namespaceURI,t.localName);case T.ATTRIBUTE_NODE:return"xml"==t.prefix?S.QName.fromParts(t.prefix,C.KNOWN_URI.xml,t.localName):t.qname;case T.PROCESSING_INSTRUCTION_NODE:return S.QName.fromParts("","",t.target);case T.NAMESPACE_NODE:return t.prefix?S.QName.fromParts("","",t.prefix):null; -default:return null}},getChildElements:function(t,e){for(var n=[],r=t.firstChild;null!==r;)r.nodeType!=T.ELEMENT_NODE||e&&e!=r.tagName||n.push(r),r=r.nextSibling;return n},firstElementChild:function(t,e){for(var n=t.firstChild;null!==n;){if(n.nodeType==T.ELEMENT_NODE&&(!e||e==n.tagName))return n;n=n.nextSibling}return null},inDocumentOrder:function(t){var e=t.expand();return e.sort(T.compareDocumentOrder),A.ForArray(e).mapOneToOne(function(t,n){return n>0&&T.isSameNode(t,e[n-1])?null:t})},compareDocumentOrder:function(t,e){function n(t){return E.ancestor(t).count()}if(T.isSameNode(t,e))return 0;var o=T.xdmParentNode(t),i=T.xdmParentNode(e);if(null===o){if(null===i){var a=T.obtainDocumentNumber;return a(t)._saxonDocumentNumbers?T.compareDocumentOrder(o,e):T.compareDocumentOrder(t,i)}var c=t.nodeType,l=e.nodeType;if(c==T.ATTRIBUTE_NODE){if(l==T.ATTRIBUTE_NODE){var f,m=o.attributes;for(f=0;f2?n:null},getAttributeAsEQName:function(t,e,n){var r=T.getAttributeAsQName(t,e,n);return null===r?null:"Q{"+r.uri+"}"+r.local},getAttributeAsQName:function(t,e,n){return t.hasAttribute(e)?T.resolveLexicalQName(t,t.getAttribute(e),n):null},resolveLexicalQName:function(t,e,n){var r=S.QName;if(/^Q\{/.test(e))return r.fromEQName(e);if(/:/.test(e)){var o=function(e){return"xml"==e?C.KNOWN_URI.xml:t.lookupNamespaceURI(e)};return r.fromString(e,o)}var i=n?t.lookupNamespaceURI(null)||"":"";return r.fromParts("",i,e)},isAttr:function(t){return t instanceof n},isNSNode:function(t){return t instanceof e},isNode:function(t){return t instanceof Node&&!(t.nodeType==T.PROCESSING_INSTRUCTION_NODE&&"xml"==t.target)||T.isAttr(t)||T.isNSNode(t)},isSameNode:function(t,e){return t===e||T.isNSNode(t)&&T.isNSNode(e)&&t.parentNode&&e.parentNode&&t.parentNode==e.parentNode&&t.prefix==e.prefix||T.isAttr(t)&&T.isAttr(e)&&t.parent&&e.parent&&t.parent==e.parent&&T.nameOfNode(t).equals(T.nameOfNode(e))},isSameNodeType:function(t,e){return t==e||t==T.DOCUMENT_NODE&&e==T.DOCUMENT_FRAGMENT_NODE||e==T.DOCUMENT_NODE&&t==T.DOCUMENT_FRAGMENT_NODE},isAbsoluteURI:function(t){return/^(?:[a-z]+:)?\/\//i.test(t)},baseURI:function(t){function e(t){var e=T.xdmParentNode(t);return e?T.baseURI(e):t._saxonBaseUri?t._saxonBaseUri:null}if(null===t||T.isNSNode(t))return null;if(t.nodeType==T.ELEMENT_NODE&&t.hasAttribute("xml:base")){var n=t.getAttribute("xml:base");return T.isAbsoluteURI(n)?n:SaxonJS.getPlatform().resolveUri(n.toString(),e(t)).toString()}return e(t)},xmlToString:function(t,e){function n(t){return t.replace(/&/g,"&").replace(/i&&(S+="\n"+e+l,y=S.length)}var m,p,h,g,d=a,v=c,y=0,S="",N=!1,x=!1,b=!1;switch(t.nodeType){case T.DOCUMENT_NODE:for(p=t.childNodes,g=0;g0?"\n":"")+o(h,"");break;case T.DOCUMENT_FRAGMENT_NODE:for(p=t.childNodes,g=0;g";else{for(S+=">",g=0;g"}break;case T.ATTRIBUTE_NODE:m=T.nameOfNode(t).toString(),S+=m+'="'+n(t.value)+'"';break;case T.TEXT_NODE:S=t.nodeValue.replace(/&/g,"&").replace(/";break;case T.PROCESSING_INSTRUCTION_NODE:S+="";break;case T.DOCUMENT_TYPE_NODE:S+="';break;case T.NAMESPACE_NODE:break;case T.CDATA_SECTION:return t.data;default:throw r("Unknown node type "+t.nodeType,"SXJS0003")}return S}for(var i=e["saxon:line-length"],a=e["saxon:indent-spaces"],u=!0,s="",c=a;c-->0;)s+=" ";var l=" ";return o(t,"",[],"")}}}(),w=function(){"use strict";function e(t,n){if(""===n)return t.leafKVPs;var r=n.charAt(0);return t.subTries.hasOwnProperty(r)?e(t.subTries[r],n.substring(1)):[]}function n(t,n){for(var r=e(t,t.options.hash(n)),o=0;o0&&a("Subtrie "+r),n.leafKVPs.forEach(function(e){a(t(e.k)+": "+t(e.v))});for(var o in n.subTries)n.subTries.hasOwnProperty(o)&&e(n.subTries[o],r+1)}a("HashTrie:"),e(this,0)},keys:function(){var t=[];return this.forAllPairs(function(e){t.push(e.k)}),t},conforms:function(t,e,n){var r=this;return A.ForArray(r.keys()).every(function(o){var i=r.get(o);return t(o)&&n(i.length)&&A.ForArray(i).every(e)})}},u}(),E=function(){"use strict";var t=T,r={ancestor:function(e){var n;switch(e.nodeType){case t.DOCUMENT_NODE:case t.DOCUMENT_FRAGMENT_NODE:return A.Empty;case t.ATTRIBUTE_NODE:return e.parent?A.Stepping(e.parent,function(t){return t.parentNode}):A.Empty;default:return n=e.parentNode,n?A.Stepping(n,function(t){return t.parentNode}):A.Empty}},ancestorOrSelf:function(t){return A.Join([A.Singleton(t),E.ancestor(t)])},attribute:function(e){if(e.nodeType==t.ELEMENT_NODE){var r,o,i=e.attributes,a=[];for(r=0;rc||u.index==c&&i)&&s.push({matching:!1,string:S.string.fromString(t.substring(c,u.index))}),s.push({matching:!0,groups:u,string:S.string.fromString(u[0])}),c=a.lastIndex,0===u[0].length&&a.lastIndex++,l++>1e3)throw r("looping???","SXJS0004");return t.length>c&&s.push({matching:!1,string:S.string.fromString(t.substring(c,t.length))}),s}function s(t){return t.replace(/[ \n\r\t]+/g," ").replace(/^[ ]|[ ]$/g,"")}function c(t){if(gt.isNode(t))return A.Singleton(l(t));if(ut(t))return A.Join(t.value.map(function(t){return A.ForArray(t)})).mapOneToMany(c);if(st(t))throw r("Cannot atomize a map","FOTY0013");return A.Singleton(t)}function l(t){var e=S.string.fromString,n=S.untypedAtomic.fromString;switch(t.nodeType){case gt.DOCUMENT_NODE:return n(t.documentElement.textContent);case gt.DOCUMENT_FRAGMENT_NODE:case gt.ELEMENT_NODE:case gt.TEXT_NODE:return n(t.textContent||"");case gt.ATTRIBUTE_NODE:return n(t.value);case gt.COMMENT_NODE:return e(t.textContent);case gt.PROCESSING_INSTRUCTION_NODE:return e(t.data);case gt.NAMESPACE_NODE:return e(t.uri);default:throw r("Unknown node type "+t.nodeType,"SXJS0003")}}function f(t){function e(t){throw r("Effective boolean value is not defined for "+t,"FORG0006")}function n(){return null===t.next()?!0:void e("an atomic sequence of length > 1")}var o=t.next();if(null===o)return!1;if(gt.isNode(o))return!0;if(S["boolean"].matches(o))return n()&&o.toBoolean();if(S.numeric.matches(o)){var i=o.toNumber();return n()&&!isNaN(i)&&0!==i}return S.string.matches(o)||S.untypedAtomic.matches(o)||S.anyURI.matches(o)?n()&&0!==o.toString().length:void e("type "+o.type)}function m(t){return"untypedAtomic"===t.type?S["double"].cast(t):t}function p(t,e){var n=M["i+i"],r=S.integer.fromNumber(1);return A.Stepping(t,function(t){var o=n(t,r);return o.compareTo(e)>0?null:o})}function h(t,e,n){var r=gt.getChildElements(t,"withParam"),o=[{},{}];for(var i in e.tunnelParams)e.tunnelParams.hasOwnProperty(i)&&(o[1][i]=e.tunnelParams[i]);var a=e.tempOutputState;e.tempOutputState="template parameter",r.forEach(function(t){var n=gt.getAttributeAsEQName(t,"name"),r=X(t,"t")?1:0;o[r][n]=P(t,e).expand()}),e.tempOutputState=a,n.localParams=o[0],n.tunnelParams=o[1]}function g(t,e){return e&&e.indexOf("l")>=0&&(t._saxonIsLocal=!0),t}function d(t,e,n){var o,i,a="compAtt"==t.tagName,u=_.trim(St(R(t,"name"),e).next().toString()),s=R(t,"namespace");if(null===s){if(a&&"xmlns"==u)throw r("Attribute must not be named xmlns","XTDE0855",t);i=$(t,u,!a),o=i.uri}else if(o=St(s,e).next().value,a)if(""===o&&u.includes(":"))u=u.replace(/^.*:/,""),i=S.QName.fromParts("",o,u);else if(u.includes(":")){var c=u.split(":");if(""==c[0]||""==c[1])throw r((a?"Attribute":"Element")+" name '"+u+"' is not a lexical QName",a?"XTDE0850":"XTDE0820",t);i=S.QName.fromParts(c[0],o,c[1])}else i=S.QName.fromParts("",o,u);if("http://www.w3.org/2000/xmlns/"==o)throw r("Disallowed namespace "+o,"XTDE0835",t);return a?A.Singleton(n(i)):A.Singleton(n(o,u))}function v(t,e,n){var r=P(t,e).next(),o=U(t,e).next();return null===r||null===o?null:n(r,o)}function y(t){if("xs:"==t.substring(0,3)){var e=S[t.substring(3)];if(!e)throw r("Unimplemented type "+t,"SXJS0002");return e}throw r("Unknown type "+t,"SXJS0003")}function x(t,e){if(null!==e.fixed.staticBaseURI)return e.fixed.staticBaseURI;for(var n=t;;){if(n.hasAttribute("baseUri"))return n.getAttribute("baseUri");if(n=gt.xdmParentNode(n),null===n||n.nodeType!=gt.ELEMENT_NODE)return null}}function b(t,e,n){var r=e.resultDocument.createDocumentFragment(),o=gt.obtainDocumentNumber(r);o._saxonBaseUri=x(t,e);var i=e.newContext(!1);return n&&(i.resultDocument=window.document),ot(o,St(t,i),i),o}function O(t,e){throw r("The "+t+" construct is not implemented in Saxon-JS","SXJS0002",e)}function D(t,e){throw r("The SEF is out of date, regenerate using Saxon-EE "+t+" or later","SXJS0002",e)}function P(t,e){var n=gt.getChildElements(t)[0];if(!n)throw r("Expr has no children","SXJS0004",t);return St(n,e)}function U(t,e){return St(gt.getChildElements(t)[1],e)}function R(t,e){var n,r=t.childNodes;for(n=0;n=0}function J(t){var e={},n=gt.getInheritedAttribute(t,"ns");if(null!==n)for(var r=n.split(" "),o=0;o0){var r=gt.getAttribute(t,e);return null!==r&&""!==r?r:G(t.parentNode,e,n-1)}return void 0}function q(t){throw a("*** Internal error: "+t),Error.dumpStack&&Error.dumpStack(),r("Internal error: "+t,"SXJS0004")}function Q(t,e,n){var o,i,a=t.getAttribute("bSlot");if(a?(a=parseInt(a),i=e.currentComponent.bindings[a],o=e.fixed.components[i]):(i=t.getAttribute("coId"),i?o=e.fixed.components[parseInt(i)]:q("No binding slot or component Id for component")),o||q("Target component not found"),"ABSENT"===o.visibility)throw r("Cannot invoke absent component "+o.actor.tagName+" "+o.actor.getAttribute("name"),"XTDE3052");return n&&o.actor.tagName!=n&&q("Expected "+n+", found "+o.actor.tagName),o}function K(t,e){for(var n=t.parentNode;"package"!=n.tagName;)n=n.parentNode;return e.fixed.packages[n.getAttribute("name")]}function V(t,e){var n=vt[t.tagName];n||q("Unknown expr: "+t.tagName);try{return n(t,e)}catch(o){throw o instanceof r?(e.currentError=o,null===o.compiledLineNr&&null===o.xsltLineNr&&(o.setExpr(t),null!==o.xsltLineNr),o):o}}function j(t){var e=vt[t.tagName];return e||q("Unknown expr: "+t.tagName),function(n){try{return e(t,n)}catch(o){throw o instanceof r&&(n.currentError=o,null===o.compiledLineNr&&o.setExpr(t)),o}}}function Y(t){return j(gt.getChildElements(t)[1])}function H(t,e){return null===t?A.Empty:St(t,e)}function W(t){if(1>t||t>55295&&57344>t||t>65533&&65536>t||t>1114111)throw r("Invalid XML character 0x"+t.toString(16),"FOCH0001")}function Z(t){for(var e=0;e=55296&&56319>=n)return!0}return!1}function tt(t){var e="";return t.forEach(function(t){return W(t),e+=65536>t?String.fromCharCode(t):String.fromCharCode((t-65536>>10)+55296)+String.fromCharCode((t-65536&1023)+56320)}),e}function et(t){for(var e=[],n=0;n=55296&&56319>=r?1024*(r-55296)+(t.charCodeAt(++n)-56320)+65536:r)}return e}function nt(t,e){function n(t,e){return S.decimal.matches(t)?"decimal"==e||"float"==e||"double"==e:S["float"].matches(t)?"float"==e||"double"==e:!1}if(S[e].matches(t))return t;if(n(t,e))return S[e].cast(t);throw r("Incompatible operands: "+t.type+" and "+e,"XPTY0004")}function rt(t){var e="";return t.forEachItem(function(t){""!==e&&(e+=" "),e+=t.toString()}),e}function ot(n,o,i){function a(t,o){function i(t){return t instanceof e?"a namespace":"an attribute"}if(o)throw r("Cannot create "+i(t)+" node after creating children","XTDE0410");if(n.nodeType==gt.DOCUMENT_FRAGMENT_NODE||n.nodeType==gt.DOCUMENT_NODE)throw r("Cannot add "+i(t)+" to a document node","XTDE0410")}function u(t,e){var n=e._saxonIsLocal?e._saxonIsLocal:!1,o=!1;if(ut(e))e.value.forEach(function(e){e.forEach(function(e){u(t,e)})});else{if(st(e))throw r("A map can't be a child of an XML node","XPTY0004");if(gt.isNode(e)?(c=!1,o=e.nodeType==gt.TEXT_NODE):(e=i.resultDocument.createTextNode((c?" ":"")+e.toString()),c=!0),t.nodeType==gt.ELEMENT_NODE||t.nodeType==gt.DOCUMENT_FRAGMENT_NODE)if(gt.isNSNode(e))if(SaxonJS.getPlatform().inBrowser&&t instanceof HTMLElement)t.appendChild(t.ownerDocument.importNode(e,!0));else{if(a(e,s),e.prefix==t.prefix&&e.uri!=t.namespaceURI)throw r("Saxon-JS restriction: namespace nodes in content clash with the element prefix","SXJS0002");if(""===e.prefix){if(""===t.namespaceURI)throw r("Cannot add a default namespace to a no-namespace element","XTDE0440");if(t.hasAttributeNS("","xmlns")){if(t.getAttributeNS("","xmlns")!=e.uri)throw r("Cannot have two different default namespaces","XTDE0430")}else SaxonJS.getPlatform().inBrowser&&t instanceof HTMLElement||t.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns",e.uri)}else{var f="http://www.w3.org/2000/xmlns/",m="xmlns:"+e.prefix,p=e.uri;if("~"==e.uri&&null!=yt[e.prefix]&&(p=yt[e.prefix]),t.hasAttributeNS(f,e.prefix)&&t.getAttributeNS(f,e.prefix)!=p)throw r("Cannot have two namespaces with the same prefix '"+e.prefix+"'","XTDE0430");t.setAttributeNS(f,m,p)}}else if(e.nodeType==gt.ATTRIBUTE_NODE){if(a(e,s),""!==e.namespaceURI){var h=e.name.split(":");if(2!=h.length||t.lookupNamespaceURI(h[0])!=e.namespaceURI)if(2==h.length&&null===t.lookupNamespaceURI(h[0]))t.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:"+h[0],e.namespaceURI);else for(var g=2==h.length?h[0]:"ns";;){if(null===t.lookupNamespaceURI(g)){t.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:"+g,e.namespaceURI),e.name=g+":"+h[h.length-1];break}g+="_1"}}var d=""===e.namespaceURI?null:e.namespaceURI;t.setAttributeNS(d,e.name,e.value)}else if(e.nodeType==gt.TEXT_NODE){if(e.nodeValue&&""!=e.nodeValue){var v=t.lastChild;v&&v.nodeType==gt.TEXT_NODE?v.nodeValue=v.nodeValue+e.nodeValue:t.appendChild(gt.copyItem(e,i,""))}l=o}else if(e.nodeType==gt.DOCUMENT_NODE||e.nodeType==gt.DOCUMENT_FRAGMENT_NODE)E.child(e).forEachItem(function(e){u(t,e)});else{if(s=!0,!(SaxonJS.getPlatform().inBrowser&&i.resultDocument==window.document||e.nodeType!=gt.ELEMENT_NODE||SaxonJS.getPlatform().inBrowser&&e instanceof HTMLElement)){var y=e.prefix||"",S=e.lookupNamespaceURI(y)||"",N=e.namespaceURI||"";S!==N&>.declareNS(e,y,N),!e.lookupNamespaceURI(null)&&t.lookupNamespaceURI(null)&>.declareNS(e,"","")}if(!n||SaxonJS.getPlatform().inBrowser&&t instanceof HTMLElement!=e instanceof HTMLElement){var x=gt.copyItem(e,i,"c");e=x}t.appendChild(e),e._saxonIsLocal=!1}else{if(t.nodeType!=gt.DOCUMENT_NODE)throw r("Unknown parent node type "+t.nodeType,"SXJS0003");null!==e&&(t.documentElement=e)}}}i||q("No context in makeComplexContent for "+t(n));var s=!1,c=!1,l=!1;o.forEachItem(function(t){u(n,t)})}function it(t,e){function n(e){return"Context item for template "+t.getAttribute("name")+" must be "+e}if(e.noCurrentFocus()&&-1==t.getAttribute("flags").indexOf("o"))throw r(n("supplied"),"XTTE3090",t);e.noCurrentFocus()||-1!=t.getAttribute("flags").indexOf("s")||(e.focus={});var o=t.getAttribute("jsTest");if(o&&!e.noCurrentFocus()&&!new Function("item",o)(e.getCurrentFocus()))throw r(n("instance of "+t.getAttribute("cxt")),"XTTE0590",t)}function at(t){this.value=t}function ut(t){return t instanceof at}function st(t){return t instanceof w||t instanceof lt}function ct(t,e,n,o){function i(t){return gt.isNode(t)||S.untypedAtomic.matches(t)||S.string.matches(t)||S["boolean"].matches(t)||S["double"].matches(t)}function a(t,e){return null===t||i(t)?t:ft(t,e)}if(void 0===n)return t;if(Array.isArray(t)){if(!e(t.length))throw r("Supplied value for parameter "+o+" has wrong cardinality","XTTE0590");return t.map(function(t){return a(n(t),!0)})}return a(n(t))}function lt(t){this.value=t}function ft(t,e){if(S.anyAtomicType.matches(t))return t;switch(typeof t){case"undefined":return[];case"string":return S.string.fromString(t);case"number":return S["double"].fromNumber(t);case"boolean":return S["boolean"].fromBoolean(t);case"function":return new lt(t);case"object":if(T.isNode(t))return t;if(t instanceof Date)return S.dateTime.fromString(t.toISOString());if(Array.isArray(t)){var n=[];return e?(t.forEach(function(t){var e=ft(t,!0),r=Array.isArray(e)?e:[e];n.push(r)}),new C.XdmArray(n)):(t.forEach(function(t){n.push(ft(t,!0))}),n)}return null===t?[]:new lt(t);default:return t}}function mt(e){if(S.string.matches(e)||S.anyURI.matches(e)||S.duration.matches(e)||S.hexBinary.matches(e)||S.base64Binary.matches(e)||S.untypedAtomic.matches(e))return e.toString();if(S.numeric.matches(e))return e.toNumber();if(S["boolean"].matches(e))return e.toBoolean();if(S.dateTime.matches(e)||S.date.matches(e)||S.dateTimeStamp.matches(e))return e.toString();if(S.time.matches(e)||S.gYearMonth.matches(e)||S.gYear.matches(e)||S.gMonthDay.matches(e)||S.gMonth.matches(e)||S.gDay.matches(e))return e.toString();if(S.QName.matches(e))return e.toEQName();var n;if(gt.isNode(e))return e;if(e instanceof C.XdmArray)return n=[],0===e.value.length||e.value.forEach(function(t){n.push(mt(t))}),n;if(Array.isArray(e))return n=[],0===e.length?null:1==e.length?mt(e[0]):(e.forEach(function(t){n.push(mt(t))}),n);if(e instanceof w){var o={};return e.forAllPairs(function(t){o[t.k.toString()]=mt(t.v)}),o}if(e instanceof lt)return e.value;throw r("convertToJS() not implemented for "+t(e)+", "+typeof e+", "+e.constructor.name,"SXJS0004")}function pt(t){return t.mapOneToMany(function(t){return ut(t)?A.Join(t.value.map(function(t){return pt(A.ForArray(t))})):A.Singleton(t)})}function ht(e,n){function r(e){if(ut(e)){var n="[";return e.value.forEach(function(t){"["!=n&&(n+=","),n+=o(t)}),n+"]"}if(st(e)){var i="{";return e.forAllPairs(function(t){"{"!=i&&(i+=",\n"),i+=r(t.k)+":",i+=o(t.v)}),i+"}"}return gt.isNode(e)?gt.xmlToString(e,a):S.string.matches(e)||S.untypedAtomic.matches(e)?'"'+e.toString().replace(/""/g,'"').replace(/''/g,"'")+'"':S.integer.matches(e)||S.numeric.matches(e)||S["boolean"].matches(e)?e.toString():e instanceof A.Singleton?r(e.next()):t(e)}function o(t){if(void 0===t)return"(undefined)";if(1==t.length)return r(t[0]);var e="(";return t.forEach(function(t){"("!=e&&(e+=","),e+=r(t)}),e+")"}var i={},a={"saxon:line-length":80,"saxon:indent-spaces":3,indent:" "};n&&(i=n instanceof A.AnyIterator?SaxonJS.U.convertToJS(n.next()):n);for(var u in i)a[u]=i[u];return o(e.expand())}var gt=T,dt=function(){},vt={among:function(t,e){var n=P(t,e).next(),r=U(t,e);return r.filter(function(t){return t===n})},analyzeString:function(t,e){var n=St(R(t,"select"),e).next();if(null===n)return A.Empty;n=n.toString();var r=St(R(t,"regex"),e).next().toString(),o=St(R(t,"flags"),e).next().toString(),i=R(t,"matching"),a=R(t,"nonMatching"),s=u(n,r,o,!0,!1),c=e.newContext(!1),l=s.map(function(t){return t.string});return c.focus=A.Tracker(A.ForArray(l)),c.focus.mapOneToMany(function(t){var e=s[c.focus.position-1];return e.matching?(c.focus.regexGroups=e.groups,i?St(i,c):A.Empty):(c.focus.regexGroups=[],a?St(a,c):A.Empty)})},and:function(t,e){return A.oneBoolean(f(P(t,e))&&f(U(t,e)))},applyImports:function(t,e){var n=e.currentMode.mode;if(!n)throw r("applyImports: no current mode","XTDE0560",t);if(e.noCurrentFocus())throw r("applyImports: no context item","XTDE0560",t);var o=e.newContext(!0);return o.currentComponent=e.currentMode,h(t,e,o),o.focus=A.Solo(e.getCurrentFocus()),o.focus.regexGroups=e.focus.regexGroups,n.applyImports(o)},applyT:function(t,e){var n,o=e.newContext(!0);if(X(t,"c")){var i=e.currentComponent.actor.tagName,a="function"===i||"globalVariable"===i||"globalParam"===i;n=a?e.fixed.modes[""]:e.currentMode.mode}else{var u=Q(t,e,"mode");if(n=u.mode,n.mustBeTyped)throw r("Mode "+T.getAttribute(n._expr,"name")+" only handles typed nodes","XTTE3100",t);o.currentComponent=u}return h(t,e,o),o.focus=A.Tracker(P(t,e)),o.focus.regexGroups=e.focus?e.focus.regexGroups:null,n.applyTemplates(o)},arith:function(t,e){var n=M[t.getAttribute("calc")];return n||O("arithmetic ("+t.getAttribute("calc")+")",t),A.Singleton(v(t,e,n))},arith10:function(t,e){function n(t){var e=t.next();return null===e?S["double"].fromNumber(NaN):S["double"].cast(e)}var r=M[t.getAttribute("calc")];return A.Singleton(r(n(P(t,e)),n(U(t,e))))},array:function(t,e){var n=gt.getChildElements(t).map(function(t){return St(t,e).expand()});return A.Singleton(new at(n))},arrayBlock:function(t,e){var n=gt.getChildElements(t).map(function(t){return St(t,e).expand()});return A.Singleton(new at(n))},atomic:function(t){var e=t.getAttribute("val"),n=t.getAttribute("type").substring(3);return S[n]||q("Unknown type: "+n,t),A.Singleton(S[n].fromString(e))},atomSing:function(t,e){var n=P(t,e).mapOneToMany(c);if(!t.hasAttribute("card")&&(n=A.LookAhead(n),null===n.peek())){var o=i(t.getAttribute("diag"));throw r("The "+o.required+" is empty",o.code,t)}return n},att:function(t,e){var n=P(t,e),o=rt(n),i=gt.getAttributeAsQName(t,"name");if(null===i)throw r("Invalid attribute name "+t.getAttribute("name"),"XTDE0850",t);var a=e.createAttributeFromQName(i);a.value=o;var u=t.hasAttribute("flags")?t.getAttribute("flags"):"";return A.Singleton(g(a,u))},attVal:function(t,e){var n=gt.getAttributeAsQName(t,"name");if(e.noCurrentFocus())throw r("attVal: no context item","XPDY0002",t);var o=e.getCurrentFocus();if(!gt.isNode(o))throw r("Context item for 'attVal' must be a node","XPTY0020",t);if(o.nodeType!=gt.ELEMENT_NODE)return A.Empty;var i;return i=""===n.uri?o.hasAttribute(n.local)?o.getAttribute(n.local):null:n.uri===yt.xml?o.hasAttribute("xml:"+n.local)?o.getAttribute("xml:"+n.local):null:o.hasAttributeNS(n.uri,n.local)?o.getAttributeNS(n.uri,n.local):null,null===i?A.Empty:A.Singleton(S.untypedAtomic.fromString(i))},axis:function(t,e){var n=new Function("item",t.getAttribute("jsTest")),o=t.getAttribute("name");if(e.noCurrentFocus())throw r("Context item is absent for "+o+" axis","XPDY0002",t);var i=e.getCurrentFocus();if(!gt.isNode(i))throw r("Context item for "+o+" axis is not a node","XPTY0020",t);return E[o](i).filter(n)},"break":function(t,e){var r=new n;return null!==t.firstChild&&(r.content=P(t,e).expand()),A.Join([A.Empty,A.Singleton(r)])},callT:function(t,e){var n=Q(t,e,"template"),r=e.newContext(!0);return r.currentMergeGroup=null,r.currentComponent=n,it(n.actor,r),h(t,e,r),P(n.actor,r)},cast:function(t,e){var n=P(t,e),o=n.next(),i=t.getAttribute("as");if(null===o){if("?"==i.slice(-1)||"1"==t.getAttribute("emptiable"))return A.Empty;throw r("Empty sequence casting to "+i,"XPTY0004",t)}if(null!==n.next())throw r("Multiple sequence casting to "+i,"XPTY0004",t);try{i=i.replace(/(\?|\*)$/,"");var a=y(i),u="QName"==a.name?L(t,!0):null;return A.Singleton(a.cast(o,u))}catch(s){if(null!==s.code)throw s;throw r("Failed to cast to type "+i,"XPTY0004",t)}},castable:function(t,e){var n,r=P(t,e).mapOneToMany(c).expand();if(0===r.length)n="1"==t.getAttribute("emptiable");else if(r.length>1)n=!1;else try{ -var o=y(t.getAttribute("as")),i="QName"==o.name?L(t,!0):null;o.cast(r[0],i),n=!0}catch(a){n=!1}return A.oneBoolean(n)},cfn:function(t,e){var n,r=t.getAttribute("name");return"_format-number_1"==r?(n=[P(t,e),A.oneString(t.getAttribute("pic"))],t.hasAttribute("format")&&n.push(A.oneString(t.getAttribute("format"))),F["format-number"](n,e,t)):"_translate_1"==r?(n=[P(t,e),A.oneString(t.getAttribute("a1")),A.oneString(t.getAttribute("a2"))],F.translate(n,e)):void q("Unimplemented: cfn "+r,t)},check:function(e,n){function o(t){var n=i(e.getAttribute("diag"));throw r("Required cardinality of "+n.required+" is "+u[a]+"; supplied value "+t,n.code,e)}var a=e.getAttribute("card"),u={"*":"zero or more","+":"one or more","?":"zero or one","°":"zero",1:"exactly one"},s=P(e,n);if("*"==a)return s;var c=A.LookAhead(s),l=c.peek();if(null===l){if("?"==a||"°"==a)return A.Empty;o("is empty")}else"°"==a&&o("is not empty (first item "+t(l)+")");if("+"==a)return c;c.next();var f=c.next();if(null!==f){var m=c.count()+2;o("contains "+m+" items ("+t(l)+", "+t(f)+(m>2?",... )":")"))}return A.Singleton(l)},choose:function(t,e){var n,r=gt.getChildElements(t);for(n=0;n0:""!=S.string.cast(t);switch(t.nodeType){case gt.DOCUMENT_NODE:case gt.DOCUMENT_FRAGMENT_NODE:case gt.ELEMENT_NODE:return t.hasChildNodes();default:return""!=l(t)}})},condSeq:function(t,e){function n(t){if(t instanceof Node){if(t.nodeType==gt.DOCUMENT_NODE||t.nodeType==gt.DOCUMENT_FRAGMENT_NODE)return!t.hasChildNodes();if(t.nodeType==gt.TEXT_NODE)return""==t.nodeValue}else{if(t.isAtomic)return""==S.string.cast(t);if(ut(t))return!pt(A.Singleton(t)).some(function(t){!n(t)})}return!1}var r=[],o=[],i=!0,a=gt.getChildElements(t);a.map(function(t){if("onEmpty"==t.tagName)i&&(r=St(t,e).expand());else if("onNonEmpty"==t.tagName){var a=r.length;o.unshift(function(){r.splice.apply(r,[a,0].concat(St(t,e).expand()))})}else St(t,e).forEachItem(function(t){n(t)||(i=!1),r.push(t)})});return i||o.forEach(function(t){t()}),A.ForArray(r)},conditionalSort:function(t,e){return f(P(t,e))?U(t,e):P(gt.getChildElements(t)[1],e)},convert:function(t,e){var n=y(t.getAttribute("to"));return P(t,e).mapOneToOne(X(t,"p")?function(t){return nt(t,n.name)}:n.cast)},copy:function(t,e){if(e.noCurrentFocus())throw r("copy: no context item","XTTE0945",t);var n=e.getCurrentFocus(),o=t.getAttribute("flags");return gt.shallowCopy(n,e,o,function(e){return P(t,e)})},copyOf:function(t,e){var n=t.getAttribute("flags");return P(t,e).mapOneToOne(function(t){return gt.copyItem(t,e,n)})},currentGroup:function(t,e){if(e&&e.currentGroup)return A.ForArray(e.currentGroup);throw r("There is no current group","XTDE1061",t)},currentGroupingKey:function(t,e){if(e&&e.currentGroupingKey)return A.ForArray(e.currentGroupingKey);throw r("There is no current grouping key","XTDE1071",t)},cvUntyped:function(t,e){var n=P(t,e),r=t.getAttribute("to"),o=y(r).cast,i="xs:string"==r;return n.mapOneToOne(function(t){return S.untypedAtomic.matches(t)||i&&S.anyURI.matches(t)?o(t):t})},data:function(t,e){return P(t,e).mapOneToMany(c)},dbl:function(t){var e=t.getAttribute("val");return A.Singleton(S["double"].fromString(e))},dec:function(t){var e=t.getAttribute("val");return A.oneDecimal(Big(e))},doc:function(t,e){var n=b(gt.getChildElements(t)[0],e),r=t.hasAttribute("flags")?t.getAttribute("flags"):"";return A.Singleton(g(n,r))},docOrder:function(t,e){return gt.inDocumentOrder(P(t,e))},dot:function(t,e){if(e.noCurrentFocus())throw r("dot: no context item","XPDY0002",t);return A.Singleton(e.getCurrentFocus())},elem:function(t,e){var n=!1,o=t.getAttribute("name"),i=o.split(":"),a=null;if(t.hasAttribute("nsuri")&&(a=t.getAttribute("nsuri"),n=!0),2==i.length&&null===a&&(a=t.lookupNamespaceURI(i[0]),null===a&&(a=L(t,!0)(i[0])),n=!0),null===a&&(a=""),"http://www.w3.org/2000/xmlns/"==a)throw r("Disallowed namespace "+a,"XTDE0835",t);var u;try{u=e.createElement(a,o)}catch(s){throw r("Element name '"+o+"' is not a lexical QName","XTDE0820",t)}if(t.hasAttribute("namespaces")){var c,l=t.getAttribute("namespaces").toString().split(" ");for(c=0;c0)}))},"for":function(t,e){var n=parseInt(t.getAttribute("slot"),10),r=Y(t);return P(t,e).mapOneToMany(function(t){return e.localVars[n]=[t],r(e)})},forEach:function(t,e){var n=e.newContext(!1);n.focus=A.Tracker(P(t,e)),n.currentTemplate=null;var r=Y(t),o=function(){return r(n)};return n.focus.mapOneToMany(o)},forEachGroup:function(t,e){return N.grouping(t,e)},fork:o,fn:function(t,e){var n=F[t.getAttribute("name")];n||O(t.getAttribute("name")+"()",t);var r=gt.getChildElements(t).map(function(t){return St(t,e)});return n(r,e,t)},functionCall:function(t){O(t.getAttribute("name")+"()",t)},gc:N.generalComparison,gc10:function(t,e){function n(t){return 1==t.length&&S["boolean"].matches(t[0])}function r(t){return[S["boolean"].fromBoolean(f(A.ForArray(t)))]}function o(t){return A.ForArray(t).mapOneToMany(c).expand()}function i(t){return A.ForArray(t).mapOneToOne(S.numeric.numberFn).expand()}var a=P(t,e).expand(),u=U(t,e).expand();n(a)?u=r(u):n(u)?a=r(a):(a=o(a),u=o(u));var s=N.allocateCodedComparer(t.getAttribute("comp"),e),l=t.getAttribute("op");return"="!==l&&"!="!==l?(a=i(a),u=i(u)):s=N.gc10comparer(s),N.gc(A.ForArray(a),u,l,s)},gcEE:N.generalComparison,gVarRef:function(t,e){var n=Q(t,e),o=n.actor,i=o.getAttribute("name");if(n.value===dt){var a=r("Circularity in global variable "+i,"XTDE0640");throw a.isGlobal=!0,a}if(null===n.value||void 0===n.value){if("globalParam"==o.tagName){var u=e.fixed.options.stylesheetParams[i];if(void 0===u&&/^Q\{\}/.test(i)&&(u=e.fixed.options.stylesheetParams[S.QName.fromEQName(i).local]),void 0!==u){null===u&&(u=[]);var s=new Function("val",o.getAttribute("jsAcceptor")),c=new Function("n",o.getAttribute("jsCardCheck")+" return c(n);"),l=ct(u,c,s,i);n.value=Array.isArray(l)?l:[l]}else{if(X(o,"r"))throw r("Parameter "+i+" is required","XTDE0050",o);if(X(o,"i"))throw r("Parameter "+i+" cannot be empty","XTDE0700",o);0===gt.getChildElements(o).length&&(n.value=[])}}if(null===n.value||void 0===n.value){var f=e.newContext(!0);f.tempOutputState="variable",f.currentMode={},f.currentTemplate=null,f.currentComponent=n,f.focus=A.Solo(e.fixed.globalContextItem);try{n.value=dt,n.value=P(o,f).expand()}catch(m){throw m instanceof r&&S.QName.fromEQName(i).uri!=yt.saxon+"generated-variable"&&(m.isGlobal=!0),m}}}return A.ForArray(n.value)},homCheck:function(t,e){var n=new A.LookAhead(P(t,e)),o=n.peek();if(null===o)return A.Empty;var i=gt.isNode(o),a=n.filter(function(e){if(gt.isNode(e)!=i)throw r("Cannot mix nodes and atomic values in the result of a path expression","XPTY0018",t);return!0});return i?gt.inDocumentOrder(a):a},ifCall:function(t,e){var n,o,i,a,u,s=gt.getAttributeAsQName(t,"name",!1);if("schedule-action"==s.local){var c=2==gt.getChildElements(t).length,l=4==gt.getChildElements(t).length,f=gt.getChildElements(t).length>4;if(f)throw r("Only attributes @wait, @document and @http-request are available on ixsl:schedule-action in this version of Saxon-JS","SXJS0002",t);n=P(t,e).next().toNumber(),a=c?null:U(t,e).next(),u=l?St(gt.getChildElements(t)[3],e).next():null,o=e.newContext(!0),o.clearGrouping();var m=gt.getChildElements(t)[c?1:2],p=Q(m,e,"template"),g=p.actor;if(null===u&&(e.noCurrentFocus()||(o.focus=new A.Tracker(new A.Singleton(e.getCurrentFocus())),o.focus.next()),o.currentMergeGroup=null,o.currentComponent=p,it(p.actor,o),h(m,e,o)),i=function(){P(g,o).expand()},null!==u){var d=function(t){o.focus=new A.Tracker(new A.Singleton(ft(t))),o.focus.next(),o.currentMergeGroup=null,o.currentComponent=p,it(p.actor,o),h(m,e,o),i()};SaxonJS.getPlatform().makeHttpRequest(mt(u),d)}else if(null!==a){var v=a.toString().split(" "),y=v.map(function(n){return SaxonJS.getPlatform().resolveUri(n,C.staticBaseUri(t,e))});SaxonJS.getPlatform().addMultipleXml(y,e.fixed.documentPool,i)}else 0!==n&&setTimeout(i,n);return A.Empty}var S=gt.getChildElements(t).map(function(t,n){return St(t,e)});return I(s.uri,s.local,S,e,t)},indexedFilter:function(t,e){var n=e.newContext(!1);n.focus=A.Tracker(P(t,e));var r=Y(t),o=function(){return f(r(n))};return n.focus.filter(o)},indexedLookup:function(t,e){return N.generalComparison(t,e,"=")},inlineFn:function(t){O("inline function",t)},instance:function(t,e){var n={"*":{min:0,max:1/0},"+":{min:1,max:1/0},"?":{min:0,max:1},"°":{min:0,max:0},1:{min:1,max:1}},r=P(t,e),o=t.getAttribute("of");if("empty-sequence()"==o)return A.oneBoolean(null===r.next());var i=o.charAt(o.length-1),a="*+?°".indexOf(i)>=0,u=n[a?i:"1"];a&&(o=o.substring(0,o.length-1));for(var s,c=new Function("item",t.getAttribute("jsTest")),l=0;null!==(s=r.next());)if(++l>u.max||!c(s))return A.oneBoolean(!1);return A.oneBoolean(l>=u.min)},"int":function(t){var e=t.getAttribute("val");return A.Singleton(S.integer.fromString(e))},intersect:function(t,e){var n=P(t,e),r=U(t,e);return A.Intersect(n,r,gt.compareDocumentOrder)},intRangeTest:function(t,e){var n=P(t,e),r=gt.getChildElements(t),o=St(r[1],e).next(),i=St(r[2],e).next();if(!o||!i)return A.oneBoolean(!1);var a=o.toNumber(),u=i.toNumber(),s=n.some(function(t){var e=t.value;return e>=a&&u>=e});return A.oneBoolean(s)},is:function(t,e){return A.Singleton(v(t,e,function(t,e){return S["boolean"].fromBoolean(gt.isSameNode(t,e))}))},isLast:function(t,e){return A.oneBoolean(e.focus.position==e.focus.last()==("1"==t.getAttribute("test")))},iterate:function(t,e){var r=gt.getChildElements(gt.getChildElements(t)[1]);r.forEach(function(t){St(t,e)});var o=e.newContext(!1);o.focus=A.Tracker(P(t,e)),o.currentTemplate=null;for(var i,a=R(t,"action"),u=R(t,"on-completion"),s=[],c=!1;null!==(i=o.focus.next());){var l=o.newContext(!1);l.focus.current=i;var f=C.evaluate(a,l);if(Array.prototype.push.apply(s,f.expand()),s[s.length-1]instanceof n){var m=s.pop();Array.prototype.push.apply(s,m.content),c=!0;break}o.localVars=l.localVars}return c||null===u||Array.prototype.push.apply(s,C.evaluate(u,o).expand()),A.ForArray(s)},lastOf:function(t,e){var n=A.LookAhead(P(t,e));return n.filter(function(){return null===n.peek()})},let:function(t,e){var n=e.tempOutputState;e.tempOutputState="variable";var r=P(t,e).expand();e.tempOutputState=n;var o=parseInt(t.getAttribute("slot"),10);return e.localVars[o]=r,U(t,e)},literal:o,map:function(t,e){var n=new w,r=null;return gt.getChildElements(t).forEach(function(t){null===r?r=St(t,e).next():(n.inSituPut(r,St(t,e).expand()),r=null)}),A.Singleton(n)},merge:function(t,e){return B.merge(t,e)},mergeAdj:function(t,e){function n(t){return t instanceof Node&&t.nodeType==gt.TEXT_NODE}for(var r,o=[],i=P(t,e),a=!1;null!==(r=i.next());){var u=n(r);u&&""===r.nodeValue||(a&&u?o.push(e.resultDocument.createTextNode(o.pop().nodeValue+r.nodeValue)):(a=u,o.push(r)))}return A.ForArray(o)},message:function(t,e){var n="",o=e.tempOutputState;e.tempOutputState="variable",P(t,e).mapOneToMany(c).forEachItem(function(t){n+=" "+t.toString()});var i=St(R(t,"terminate"),e).next(),a=St(R(t,"error"),e).next();if("yes"==i||"true"==i||"1"==i)throw r("Terminated with "+n,a.toString(),t);return e.fixed.options.deliverMessage&&e.fixed.options.deliverMessage(n),e.tempOutputState=o,A.Empty},minus:function(t,e){return P(t,e).mapOneToOne(function(t){return t.negate()})},namespace:function(t,n){var o=P(t,n).next().toString(),i=U(t,n).next().toString();if(""!==o&&!_.isNCName(o))throw r("Prefix "+o+" is not an NCName","XTDE0920",t);if(""==i)throw r("Namespace is zero-length","XTDE0930",t);if("xmlns"==o||"http://www.w3.org/2000/xmlns/"==i)throw r("Disallowed prefix/namespace "+i,"XTDE0835",t);return A.Singleton(new e(o,i))},nextIteration:function(t,e){var n,r=gt.getChildElements(t,"withParam"),o=[];r.forEach(function(t){n=parseInt(t.getAttribute("slot"),10),o[n]=P(t,e).expand()});for(n in o)e.localVars[n]=o[n];return A.Empty},nextMatch:function(t,e){var n=e.currentMode.mode;if(!n)throw r("next-match: no current mode","XTDE0560",t);var o=e.currentTemplate;if(!o)throw r("next-match: no current template","XTDE0560",t);var i=e.newContext(!0);return i.currentComponent=e.currentMode,h(t,e,i),n.nextMatch(i)},nodeNum:function(t,e){return k.nodeNum(t,e)},numSeqFmt:function(t,e){return k.numSeqFmt(t,e)},onEmpty:o,onNonEmpty:o,or:function(t,e){return A.oneBoolean(f(P(t,e))||f(U(t,e)))},param:function(t,e){var n=gt.getAttributeAsEQName(t,"name"),o=parseInt(t.getAttribute("slot"),10),i=X(t,"t"),a=i?e.tunnelParams:e.localParams,u=a[n];if(!u){var s=R(t,"select");if(!s||X(t,"r"))throw r("Required parameter $"+n+" not supplied","XTDE0700",t);var c=e.tempOutputState;e.tempOutputState="xsl:param",u=St(s,e).expand(),e.tempOutputState=c}if(!("object"==typeof u&&"length"in u))throw r("Param value of $"+n+" is not an array","SXJS0004",t);e.localVars[o]=u;var l=R(t,"conversion");return null!==l&&(e.localVars[o]=St(l,e).expand()),A.Empty},precedes:function(t,e){return A.Singleton(v(t,e,function(t,e){return S["boolean"].fromBoolean(gt.compareDocumentOrder(t,e)<0)}))},procInst:function(t,e){var n=P(t,e).next().value,r=U(t,e),o=e.resultDocument.createProcessingInstruction(n,rt(r).replace(/\?>/g,"? >").replace(/^\s+/,""));return A.Singleton(o)},qName:function(t){var e=t.getAttribute("pre"),n=t.getAttribute("uri"),r=t.getAttribute("loc");return A.Singleton(S.QName.fromParts(e,n,r))},range:function(t){var e=S.integer.fromString(t.getAttribute("from")),n=S.integer.fromString(t.getAttribute("to"));return p(e,n)},resultDoc:function(t,e){if(e.tempOutputState)throw r("Cannot call xsl:result-document while evaluating "+e.tempOutputState,"XTDE1480",t);var n=R(t,"href"),o=null===n?"":St(n,e).next().toString(),i=!1;t.getAttribute("local").split(/\r?\n/).forEach(function(t){/^method=/.test(t)&&(i=/interactiveXSLT\}replace-content$/.test(t))});var u,s="#"==o.charAt(0)||"?."==o,c=b(R(t,"content"),e,s),l=function(t,e){E.child(t).forEachItem(function(t){e.appendChild(t)})};if(""===o)return A.Singleton(c);if(s)return(u="?."==o?e.getCurrentFocus():window.document.getElementById(o.substring(1)))?(i&&(u.innerHTML=""),l(c,u),A.Empty):(a("Result document href="+o+": no such node"),A.Empty);if(e.fixed.resultDocUris[o])throw r("A result document with URI "+o+" has already been created","XTDE1490",t);return e.fixed.resultDocUris[o]=!0,e.fixed.options.deliverResultDocument(o,c),A.Empty},root:function(t,e){if(e.noCurrentFocus())throw r("Focus is absent","XPDY0002",t);var n=e.getCurrentFocus();if(!gt.isNode(n))throw r("Context item for '/' must be a node","XPTY0020",t);var o=gt.ownerDocument(n);if(o.nodeType!=gt.DOCUMENT_NODE&&o.nodeType!=gt.DOCUMENT_FRAGMENT_NODE)throw r("Root node for '/' must be a document node","XPDY0050",t);return A.Singleton(gt.ownerDocument(n))},sequence:o,slash:function(t,e){var n=e.newContext(!1);n.focus=A.Tracker(P(t,e));var r=Y(t),o=function(){return r(n)};return n.focus.mapOneToMany(o)},some:function(t,e){var n=parseInt(t.getAttribute("slot"),10),r=P(t,e),o=Y(t);return A.oneBoolean(r.some(function(t){return e.localVars[n]=[t],f(o(e))}))},sort:N.sortSequence,str:function(t){var e=t.getAttribute("val");return A.oneString(e)},subscript:function(t,e){var n=P(t,e),r=U(t,e).next().value;if(n instanceof A.ForArray){var o=n.expand()[r-1];return void 0===o&&(o=null),A.Singleton(o)}var i=n.mapOneToOne(function(t,e){return e+1==r?t:null}).next();return A.Singleton(i)},supplied:function(t,e){var n=parseInt(t.getAttribute("slot"),10),r=e.localVars[n];return A.ForArray(r)},"switch":function(t,e){var n=e.fixed.options.saxonVersion;n&&"9.7.0"==n.substring(0,5)&&parseInt(n.split(".")[3],10)<15&&D("9.7.0.15",t);var r=P(t,e).next();if(null===r)return A.oneBoolean(!1);r=S.base64Binary.cast(r);for(var o=gt.getChildElements(t,"case"),i=0;i0?A.Empty:p(n,r)},treat:function(e,n){var o=new Function("item",e.getAttribute("jsTest"));return P(e,n).mapOneToOne(function(n){if(o(n))return n;var a=i(e.getAttribute("diag"));throw r("Required item type of "+a.required+" is "+e.getAttribute("as")+"; supplied value is "+t(n),a.code,e)})},"true":function(){return A.oneBoolean(!0)},"try":function(t,e){var n=!0;if(!n)return P(t,e);try{return A.ForArray(P(t,e).expand())}catch(o){if(o instanceof r&&!o.isGlobal){e.currentError=o,null===o.compiledLineNr&&o.setExpr(t);for(var i,a=S.QName.fromParts("","http://www.w3.org/2005/xqt-errors",o.code),u=A.ForArray(gt.getChildElements(t,"catch"));null!==(i=u.next());){var s=new Function("q","return "+i.getAttribute("test")+";");if(s(a))return P(i,e)}throw o}throw o instanceof r?o:(Error.dumpStack&&Error.dumpStack(),o)}},ufCall:function(t,e){var n=Q(t,e,"function"),r=n.actor,o=gt.getChildElements(t),i=e.newContext(!0);return i.currentComponent=n,i.clearGrouping(),i.tempOutputState="function",i.currentMode={},i.currentTemplate=null,i.focus=null,i.localVars=o.map(function(t){return St(t,e).expand()}),i.localParams={},St(R(r,"body"),i)},union:function(t,e){var n=P(t,e),r=U(t,e);return A.Union(n,r,gt.compareDocumentOrder)},useAS:function(t,e){var n=Q(t,e,"attributeSet"),r=n.actor,o=e.newContext(!0);return o.tempOutputState="attribute set",o.currentComponent=n,P(r,o)},valueOf:function(t,e){var n=P(t,e),r=e.resultDocument.createTextNode(rt(n)),o=t.hasAttribute("flags")?t.getAttribute("flags"):"";return A.Singleton(g(r,o))},varRef:function(t,e){var n=parseInt(t.getAttribute("slot"),10),r=e.localVars[n];return A.ForArray(r)},vc:function(t,e){function n(t){return null===t?null:S.untypedAtomic.matches(t)?S.string.cast(t):t}var o=t.getAttribute("op"),i=t.getAttribute("onEmpty"),a=P(t,e),u=U(t,e),s=n(a.next()),c=n(u.next());if(null===s||null===c)return i?A.oneBoolean("1"==i):A.Empty;if(null!==a.next()||null!==u.next())throw r("Value comparison only applicable to single values","XPTY0004",t);if(S.isSubtype(s.type,"numeric")&&isNaN(s.value)||S.isSubtype(c.type,"numeric")&&isNaN(c.value))return A.oneBoolean("ne"==o);var l=N.allocateCodedComparer(t.getAttribute("comp"),e);return"="==o||"eq"==o||"!="==o||"ne"==o?A.oneBoolean(N.testEquality(o,l.equals(s,c))):A.oneBoolean(N.testComparison(o,l.compare(s,c)))},xslNumber:function(t,e){return k.xslNumber(t,e)}},yt={xsl:"http://www.w3.org/1999/XSL/Transform",fn:"http://www.w3.org/2005/xpath-functions",math:"http://www.w3.org/2005/xpath-functions/math",map:"http://www.w3.org/2005/xpath-functions/map",array:"http://www.w3.org/2005/xpath-functions/array",xml:"http://www.w3.org/XML/1998/namespace",xs:"http://www.w3.org/2001/XMLSchema",xsi:"http://www.w3.org/2001/XMLSchema-instance",ixsl:"http://saxonica.com/ns/interactiveXSLT",js:"http://saxonica.com/ns/globalJS",saxon:"http://saxon.sf.net/"},St=V;return at.prototype={value:[],get:function(t){if("number"!=typeof t)throw r("Array subscript is not numeric","XPTY0004");if(1>t||t>=this.value.length)throw r("Array index ("+t+") out of bounds (1 to "+this.value.length+")","FOAY0001");return this.value[t-1]}},lt.prototype={value:null,containsKey:function(t){return null!==this.value[t]},get:function(t){var e=ft(this.value[t]);return Array.isArray(e)?e:[e]},inSituPut:function(t,e){throw r("inSituPut() not allowed for JSValue","SXJS0005")},put:function(t,e){throw r("put() not allowed for JSValue","SXJS0005")},remove:function(t){throw r("remove() not allowed for JSValue","SXJS0005")},keys:function(){var t=[];for(var e in this.value)this.value.hasOwnProperty(e)&&t.push(S.string.fromString(e));return t},forAllPairs:function(t){var e=this;e.keys().forEach(function(n){t({k:n,v:e.get(n)})})},conforms:function(t,e,n){var r=this;return A.ForArray(r.keys()).every(function(o){var i=r.get(o);return t(o)&&n(i.length)&&A.ForArray(i).every(e)})}},{analyze:u,argRole:R,atomize:c,checkTemplateFocus:it,codepointsToString:tt,convertFromJS:ft,convertToJS:mt,declaringPackage:K,ebv:f,evalChild1:P,evalChild2:U,evaluate:St,evaluateIfPresent:H,flatten:pt,getSourceLoc:z,hasFlag:X,internalError:q,isArray:ut,isAstral:Z,isMap:st,JSValue:lt,makeComplexContent:ot,markLocal:g,notImplemented:O,promote:nt,roleDiagnostic:i,serialize:ht,staticBaseUri:x,stringToCodepoints:et,stylesheetResolver:L,untypedToDouble:m,wsCollapse:s,XdmArray:at,KNOWN_URI:yt}}(),O=function(){"use strict";function e(t,e){return t.prec==e.prec?t.prio==e.prio?t.seq-e.seq:t.prio-e.prio:t.prec-e.prec}function n(t,e){return t.prec==e.prec?t.prio==e.prio?0:t.prio-e.prio:t.prec-e.prec}function o(t){return JSON.stringify({prec:t.prec,prio:t.prio,seq:t.seq,line:t.line,match:t.pattern})}function i(t){return D(C.argRole(t,"match"))}function a(t){this._expr=t,this.onNoMatch=t.getAttribute("onNo"),this.mustBeTyped=C.hasFlag(t,"t"),C.hasFlag(t,"F")&&(this.failOnMultipleMatch=!0),this._rules=T.getChildElements(t).map(function(t){return{rule:t,prec:parseInt(t.getAttribute("prec"),10),prio:parseFloat(t.getAttribute("prio")),seq:parseInt(t.getAttribute("seq"),10),minImp:parseInt(t.getAttribute("minImp"),10),pattern:i(t),action:C.argRole(t,"action")}}).sort(e).reverse()}var u={TC:function(t,e,n){if(!T.isNode(t))return S.anyAtomicType.matches(t)?A.Singleton(n.resultDocument.createTextNode(t.toString())):A.Singleton(t);switch(t.nodeType){case T.DOCUMENT_NODE:case T.DOCUMENT_FRAGMENT_NODE:case T.ELEMENT_NODE:var r=n.newContext(!1);return r.focus=A.Tracker(E.child(t)),e.applyTemplates(r);case T.TEXT_NODE:case T.CDATA_SECTION:return A.Singleton(T.copyItem(t,n));case T.ATTRIBUTE_NODE:return A.Singleton(n.resultDocument.createTextNode(t.value));default:return A.Empty}},SC:function(t,e,n){function r(n){var r=n.newContext(!1),o=[];return o[0]=A.Tracker(E.attribute(t)),o[1]=A.Tracker(E.child(t)),r.focus=A.Join(o),e.applyTemplates(r)}return T.shallowCopy(t,n,"c",r)},DC:function(t,e,n){return A.Singleton(T.copyItem(t,n,"c"))},DS:function(t,e,n){return A.Empty},SS:function(t,e,n){if(!T.isNode(t))return A.Singleton(t);switch(t.nodeType){case T.DOCUMENT_NODE:case T.DOCUMENT_FRAGMENT_NODE:case T.ELEMENT_NODE:var r=n.newContext(!1),o=[];return o[0]=A.Tracker(E.attribute(t)),o[1]=A.Tracker(E.child(t)),r.focus=A.Join(o),e.applyTemplates(r);default:return A.Empty}},bubble:function(t,e,n){if(!T.isNode(t))return A.Singleton(t);switch(t.nodeType){case T.ELEMENT_NODE:var r=n.newContext(!1);return r.focus=A.Tracker(E.parent(t)),e.applyTemplates(r);default:return A.Empty}}};return a.prototype={_expr:null,_rules:null,onNoMatch:"TC",mustBeTyped:!1,failOnMultipleMatch:!1,applyTemplates:function(t){var e=this;return t.focus.mapOneToMany(function(n){return e._processItem(n,t)})},applyImports:function(t){var e=t.currentTemplate;if(!e)throw r("No current template rule","XTDE0560");return this._processItem(t.getCurrentFocus(),t,function(t){return t.prec>=e.minImp&&t.prec=0)){var a=!1;try{a=e.pattern(t,o)}catch(s){}if(a){if(null!==u&&0==n(e,u)){var c="Multiple templates matched item:";throw c+=C.serialize(A.Singleton(t)),c+="\n "+u.rule.getAttribute("module"),c+="\nand "+e.rule.getAttribute("module"),r(c,"XTDE0540")}u=e}}}):a.forEach(function(n){if((!i||i(n))&&(!u||e(n,u)>0)){var r=!1;try{r=n.pattern(t,o)}catch(a){}r&&(u=n)}}),u},isNonDOMmode:function(t){return null!==this.findBestRule(C.JSValue(window),t)},_processItem:function(e,n,o){var i=this.findBestRule(e,n,o);if(null!==i)return C.checkTemplateFocus(i.rule,n),n.currentTemplate=i,n.currentMode=n.currentComponent,C.evaluate(i.action,n);var a,s=T.getAttribute(this._expr,"name");a=null!==s&&s.split("}")[0]=="Q{"+C.KNOWN_URI.ixsl?"bubble":this.onNoMatch.split("+")[0];var c=u[a];if(c)return c(e,this,n);throw r("No matching template rule for "+t(e)+" onNoMatch = "+this.onNoMatch,"XTDE0555")},printRules:function(){var t=this._rules,e="";return t.forEach(function(t){e+=o(t)}),e}},a}(),A=function(){"use strict";function t(){}function n(e){return this instanceof n?(t.call(this),void(this._item=e)):new n(e)}function r(e){return this instanceof r?(t.call(this),Array.isArray(e)||C.internalError("ForArray expects array"),void(this._array=e)):new r(e)}function o(e,n){return this instanceof o?(t.call(this),this._base=e,this._predicate=n,void(n||C.internalError("Filter iterator undefined predicate"))):new o(e,n)}function i(e,n){return this instanceof i?(t.call(this),this._base=e,void(this._mapper=n)):new i(e,n)}function u(e,n){return this instanceof u?(t.call(this),this._base=e,"object"==typeof e&&"next"in e||C.internalError("Base not an iterator"),void(this._mapper=n)):new u(e,n)}function s(e,n){return this instanceof s?(t.call(this),this._next=e,void(this._step=n)):new s(e,n)}function c(e){return this instanceof c?(t.call(this),Array.isArray(e)||C.internalError("Join iterator expects array"),void(this._iterators=e)):new c(e)}function l(e,n,r){return this instanceof l?(t.call(this),this._iter1=A.LookAhead(e),this._iter2=A.LookAhead(n),void(this._compare=r)):new l(e,n,r)}function f(e,n,r){return this instanceof f?(t.call(this),this._iter1=A.LookAhead(e),this._iter2=A.LookAhead(n),void(this._compare=r)):new f(e,n,r)}function m(e,n,r){return this instanceof m?(t.call(this),this._iter1=A.LookAhead(e),this._iter2=A.LookAhead(n),void(this._compare=r)):new m(e,n,r)}function p(e){return"peek"in e?e:this instanceof p?(t.call(this),this._base=e,void(this._nextButOne=e.next())):new p(e)}function h(e){return this instanceof h?(t.call(this),void(this._base=e)):new h(e)}function g(e){return this instanceof g?(t.call(this),void(this.current=e)):new g(e)}function d(e,n){return this instanceof d?(t.call(this),Array.isArray(e)||C.internalError("Block iterator expects array"),this._instructions=e,this._currentIterator=null,void(this._context=n)):new d(e,n)}t.prototype={filter:function(t){return o(this,t)},mapOneToOne:function(t){return u(this,t)},mapOneToMany:function(t){return new i(this,t)},forEachItem:function(t){for(var e;null!==(e=this.next());)t(e)},some:function(t){for(var e;null!==(e=this.next());)if(t(e))return!0;return!1},every:function(t){for(var e;null!==(e=this.next());)if(!t(e))return!1;return!0},count:function(){var t=0;return this.forEachItem(function(){t++}),t},expand:function(){var t=[];return this.forEachItem(function(e){t.push(e)}),t}},n.prototype=Object.create(t.prototype),n.prototype.constructor=n,n.prototype._item=null,n.prototype.next=function(){var t=this._item;return this._item=null,t},n.prototype.peek=function(){return this._item},n.prototype.expand=function(){return null===this._item?[]:[this._item]};var v={next:function(){return null},peek:function(){return null},expand:function(){return[]},count:function(){return 0},filter:function(){return v},mapOneToOne:function(){return v},mapOneToMany:function(){return v},forEachItem:function(){},some:function(){return!1}};return r.prototype=Object.create(t.prototype),r.prototype.constructor=r,r.prototype._array=null,r.prototype._index=0,r.prototype.next=function(){return this._index"),A.ForArray(i)},oneString:function(t){return A.Singleton(S.string.fromString(t))},oneInteger:function(t){return A.Singleton(S.integer.fromNumber(t))},oneDouble:function(t){return A.Singleton(S["double"].fromNumber(t))},oneFloat:function(t){return A.Singleton(S["float"].fromNumber(t))},oneDecimal:function(t){return A.Singleton(S.decimal.fromBig(t))},oneBoolean:function(t){return A.Singleton(S["boolean"].fromBoolean(t))}}}(),D=function(t){"use strict";var e={"p.any":function(t){return function(){return!0}},"p.booleanExp":function(t){return function(e,n){var r=n.newContext();return r.focus=A.Solo(e),C.ebv(C.evalChild1(t,r))}},"p.genNode":function(t){var e=T.getChildElements(t)[0];return function(t,n){if(!T.isNode(t))return!1;for(var r,o=E.ancestorOrSelf(t);null!==(r=o.next());){var i=n.newContext(!1);i.focus=A.Solo(r);for(var a,u=C.evaluate(e,i);null!==(a=u.next());)if(T.isSameNode(a,t))return!0}return!1}},"p.genPos":function(t){var e=new Function("item",t.getAttribute("jsTest"));return function(n,r){if(!e(n))return!1;var o=E["preceding-sibling"](r.getCurrentFocus()).filter(e).expand(),i=r.newContext(!1);return i.focus=A.Solo(n),i.focus.position=o.length+1,C.ebv(C.evalChild1(t,i))}},"p.nodeSet":function(t){return function(e,n){for(var r,o=C.evalChild1(t,n);null!==(r=o.next());)if(r==e)return!0;return!1}},"p.nodeTest":function(t){return new Function("item",t.getAttribute("jsTest"))},"p.simPos":function(t){var e=new Function("item",t.getAttribute("jsTest")),n=parseInt(t.getAttribute("pos"),10);return function(t,r){return e(t)&&E.precedingSibling(t).filter(e).count()==n-1}},"p.venn":function(t){var e=T.getChildElements(t),n=D(e[0]),o=D(e[1]),i=t.getAttribute("op");switch(i){case"union":return function(t,e){return n(t,e)||o(t,e)};case"intersect":return function(t,e){return n(t,e)&&o(t,e)};case"except":return function(t,e){return n(t,e)&&!o(t,e)};default:throw r("unknown op "+i,"SXJS0003")}},"p.withCurrent":function(t){var e=D(T.getChildElements(t)[0]);return function(t,n){var r=n.newContext(!0);return r.localVars[0]=[t],e(t,r)}},"p.withPredicate":function(t){var e=T.getChildElements(t),n=D(e[0]),r=e[1];return function(t,e){if(!n(t,e))return!1;var o=e.newContext(!1);return o.focus=A.Solo(t),C.ebv(C.evaluate(r,o))}},"p.withUpper":function(t){var e=T.getChildElements(t),n=D(e[0]),r=D(e[1]),o=t.getAttribute("axis");return"parent"==o?"true"==t.getAttribute("upFirst")?function(t,e){var o=T.xdmParentNode(t);return o&&r(o,e)&&n(t,e)}:function(t,e){var o=T.xdmParentNode(t);return o&&n(t,e)&&r(o,e)}:function(t,e){if(!n(t,e))return!1;for(var i,a=E[o](t);null!==(i=a.next());)if(r(i,e))return!0;return!1}}},n=e[t.tagName];if(n)return n(t);throw r("Unimplemented pattern "+t.tagName,"SXJS0002")},_=function(){"use strict";function t(){if(null===o){a("Loading categories.json");var t=SaxonJS.getPlatform().readResource("opt/categories.json");o=JSON.parse(t),a("Finished loading categories.json")}return o}function e(e,n,o){function u(e,n){function r(t){for(var e=t.toString(16);e.length<4;)e="0"+e;return"\\u"+(i&&e.length>4?"{"+e+"}":e)}function o(t){for(var e="",n=0;nt[n]&&(e+="-"+r(t[n+1])));return e}function u(t){var e=[];0!==t[0]&&(e.push(0),e.push(t[0]-1));for(var n=2;nr)&&(e.push(r+1),e.push(i?1114111:65535)),e}function f(t,e,n){n&&(t=u(t));var r=o(t);return e||(r="["+r+"]"),r}function m(t,e,n){var r=[];return t.forEach(function(t){r.push(parseInt(t[0],16)),r.push(parseInt(t[1],16))}),f(r,e,n)}var d=e.charAt(n+1);if(l&&"nrt\\|.-^?*+{}()[]pPsSiIcCdDwW$".indexOf(d)<0&&(0!==S||!/[0-9]/.test(d))&&c("\\"+d+" is not allowed in XPath regular expressions"),"p"==d||"P"==d){var y=e.indexOf("}",n),N=e.substring(n+3,y);s("x")&&(N=N.replace(/[ \n\r\t]+/g,""));var x=t(),b=x[N];b||c("Unknown category "+N);var T;1==N.length?(T=[],b.split("|").forEach(function(t){T=T.concat(x[t])})):T=b,p+=m(T,S>0,"P"==d),n=y}else"d"==d?(p+=m(t().Nd,S>0,!1),n++):"i"==d?(p+=f(h,S>0,!1),n++):"c"==d?(p+=f(g,S>0,!1),n++):"I"==d?(p+=f(h,S>0,!0),n++):"C"==d?(p+=f(g,S>0,!0),n++):/[0-9]/.test(d)?S>0?c("Numeric escape within charclass"):(v[parseInt(d,10)]?a("Capture #"+d+" ok"):c("No capturing expression #"+d),p+="\\"+d,n++):"-"==d||"$"==d?(p+=d,n++):(p+="\\"+d,n++);return{output:p,i:n}}function s(t){return n.indexOf(t)>=0}function c(t){throw new r("Invalid XPath regular expression: "+t,"FORX0002")}var l=!0;if(n=n?n.toString():"",!i&&o&&C.isAstral(o))throw new r("Cannot handle non-BMP characters with regular expressions in this browser","SXJS0002");var f=(s("i")?"i":"")+(s("m")?"m":"")+(s("g")?"g":"")+(i?"u":"");if(s("j"))return new RegExp(e,n.replace("j",""));if(s("q"))return new RegExp(e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),f);var m,p="",h=[58,58,65,90,95,95,97,122,192,214,216,246,248,767,880,893,895,8191,8204,8205,8304,8591,11264,12271,12289,55295,63744,64975,65008,65533,65536,983039],g=[45,46,48,58,65,90,95,95,97,122,183,183,192,214,216,246,248,893,895,8191,8204,8205,8255,8256,8304,8591,11264,12271,12289,55295,63744,64975,65008,65533,65536,983039],d=[],v=[],y=1,S=0,N=[];for(m=0;m0&&c("Nested square brackets");var b,T=!1,w=!1;for(b=m+2;b0&&(v[F]=!0),p+=x;break;case".":p+=0===S&&s("s")?"[^]":x;break;case"{":if(l&&","==e.charAt(m+1))throw r("{,x} not allowed in XPath regex dialect","FORX0002");p+=x;break;case" ":case"\n":case"\r":case" ":(!s("x")||S>0)&&(p+=x);break;case"\\":if(s("q"))p+="\\\\";else{if(!(m+10&&c("Unmatched '['"),0!==d.length&&c("Unmatched '(");try{return new RegExp(p,f)}catch(M){throw/^[imsxjqg]*$/.test(n)?new r("Invalid regular expression /"+e+"/: "+M.message,"FORX0002"):new r("Invalid regex flags: "+n,"FORX0001")}}function n(t,e){if(e=e.toString(),/j/.test(e))return t;if(/q/.test(e))return/\$['`]/.test(t)&&(t=t.replace(/\$'/g,"$$$$'").replace(/\$`/g,"$$$$`")),t.replace(/\$/g,"$$");if(/(^|[^\\])\$([^0-9]|$)/.test(t)||/(^|[^\\])\\([^\\\$]|$)/.test(t))throw new r("Invalid replacement string: "+t,"FORX0004");return t.replace(/\\\\/g,"\\").replace(/\\\$/g,"$$$$").replace(/\$0/g,"$$&")}var o=null,i=!1;try{i=1=="🚀".match(new RegExp(".","gu")).length}catch(u){i=!1}var s=e("^\\i\\c*$",""),c=e("^\\c+$","");return{obtainCategoryEscapes:t,prepareRegex:e,convertReplacement:n,isNCName:function(t){return s.test(t)&&!/:/.test(t)},isName:function(t){return s.test(t)},isNMTOKEN:function(t){return c.test(t)},isQName:function(t){return s.test(t)&&/^[^:]+(:[^:]+)?$/.test(t)},trim:function(t){return t.replace(/^[ \t\r\n]+|[ \t\r\n]+$/g,"")}}}(),F=function(){"use strict";function n(t,e,n){var o=e.fixed.documentPool[t];if(!o){try{o=n()}catch(i){o=i}e.fixed.documentPool[t]=o}if(o instanceof r)throw o;return o}function o(t,e){if(t.indexOf("#")>=0)throw r("Fragments not supported in external document URIs","FODC0002");return n(t,e,function(){var e=SaxonJS.getPlatform().readFile(t),n=I.obtainDocumentNumber(SaxonJS.getPlatform().parseXmlFromString(e));return n._saxonBaseUri=t,n})}function i(t,e){if(t.indexOf("#")>=0)throw r("Fragments not supported in external document URIs","FODC0002");return n(t,e,function(){return SaxonJS.getPlatform().readFile(t,"utf-8")})}function u(t,e,n){var r=F.staticBaseUri(n,e),o=t[0].next();return null===o?null:SaxonJS.getPlatform().resolveUri(o.toString(),r)}function s(t,e,o){var i;try{i=u(t,e,o)}catch(a){throw r(a.message,"FOUT1170",o)}if(i.match(/#/))throw r("Fragment identifier for unparsed-text"+i.toString(),"FOUT1170",o);var s="";if(t[1]&&(s=h(t[1]).toLowerCase(),"utf-8"!=s&&"utf-16"!=s))throw r("Unrecognized encoding "+s,"FOUT1190");return null===i?null:n(i,e,function(){try{return SaxonJS.getPlatform().readFile(i,s)}catch(t){throw r("Cannot retrieve unparsed-text "+i.toString(),"FOUT1170",o)}})}function c(t){try{return t(),A.oneBoolean(!0)}catch(e){return A.oneBoolean(!1)}}function l(t,e,n,o){var i=t.next();if(i){var a=_.trim(i.toString());if(o&&_.isNCName(a))return"Q{"+o+"}"+a;var u=S.QName.fromString(a,F.stylesheetResolver(e,!1));if(null===u)throw new r("Invalid QName "+a,n,e);return"Q{"+u.uri+"}"+u.local}return null}function f(t,e){var n=h(t[0]),r="";return C.stringToCodepoints(n).forEach(function(t){var n=C.codepointsToString([t]);r+=e(t,n)?encodeURIComponent(n):n}),A.oneString(r)}function m(t,e){if(2!=e.length&&5!=e.length)throw new r("Wrong number of arguments ("+e.length+") for "+t,"XPST0017")}function p(t){var e=t[0].next(),n=t[1].next(),r=C.atomize(n.value[0][0]).next();return e instanceof C.XdmArray&&(r=S.numeric.matches(r)?r.toNumber():S["double"].cast(r).toNumber()),A.ForArray(e.get(r))}function h(t){var e=t.next();return e?e.value:""}function g(t){return F.stringToCodepoints(h(t))}function d(t,e,n){var r=Math.round(e.next().toNumber()),o=n?r+Math.round(n.next().toNumber()):t.length+1;return t.filter(function(t,e){return e+1>=r&&o>e+1})}function v(t,e,n){var r=e;return t.forEachItem(function(t){r=n(t,r)}),r}function y(t){function e(t){throw new r(t,"FORG0006")}var n="max"==t?function(t){return t>0}:function(t){return 0>t};return function(r,o,i){var a=r[0];F.hasFlag(i,"i")&&(a=a.filter(function(t){return!N.itemIsNaN(t)}));var u=N.getCollatingFn(i,r[1],"compare",o),s=N.cmpFn(u),c=S.untypedAtomic.matches,l=S.numeric.matches,f=S["double"].matches,m=S["float"].matches,p=S.anyURI.matches,h=S.string.matches,g=S.duration.matches,d=S.yearMonthDuration.matches,y=S.dayTimeDuration.matches,x=S.QName.matches,b=S["double"].cast,T=S["float"].cast,w=S.string.cast;a=a.mapOneToOne(function(t){return c(t)?b(t):t});var E=a.next();return null===E?A.Empty:(x(E)&&e(t+"() not defined over QName"),!g(E)||d(E)||y(E)||e(t+"() not defined over mixed duations"),A.Singleton(v(a,E,function(t,r){return(h(t)&&l(r)||h(r)&&l(t))&&e("Cannot compare string with numeric"),(d(t)&&!d(r)||y(t)&&!y(r))&&e("Cannot compare mixed duations"),N.itemIsNaN(r)?f(t)?b(r):r:N.itemIsNaN(t)?f(r)?b(t):t:(f(r)&&!h(t)?t=b(t):f(t)&&!h(r)?r=b(r):m(r)&&!h(t)?t=T(t):m(t)&&!h(r)&&(r=T(r)),p(r)&&h(t)?r=w(r):p(t)&&h(r)&&(t=w(t)),n(s(t,r))?t:r)})))}}function x(t,e){var n=t[0].next();if(null===n)return A.Empty;if("timezone"==e)return null===n.timezoneOffset?A.Empty:A.Singleton(S.dayTimeDuration.fromNumberOfMinutes(n.timezoneOffset));if("seconds"==e){var r=n.proxy();return A.oneDecimal(r.getUTCSeconds()+r.getUTCMilliseconds()/1e3)}var o=n.proxy()[e]();return"getUTCMonth"==e&&o++,A.oneInteger(o)}function b(t,e){var n=t[0].next();return null===n?A.Empty:5!=e?A.oneInteger(n.parts()[e]*n.signum()):A.oneDecimal(n.parts()[e]*n.signum())}function O(t,e,n){function o(t,n){return A.Singleton(S[e].fromDate(t,n))}var i=t[0].next();if(!i)return A.Empty;var a,u=n.fixed.currentDate.getTimezoneOffset();if(t[1]){var s=t[1].next();if(a=null!==s?s.milliseconds/6e4:null,null!==a&&(-840>a||a>840))throw new r("timezone out of bounds "+s,"FODT0003")}else a=-u;var c=i.timezoneOffset;return null===c&&null===a?A.Singleton(i):null===c&&null!==a?o(i.adjustByMinutes(-u-a).UTCdate,a):null!==c&&null===a?o(i.adjustByMinutes(u+c).UTCdate,null):null!==c&&null!==a?o(i.UTCdate,a):void 0}var F=C,I=T,P={version:"3.0",vendor:"Saxonica","vendor-url":"http://www.saxonica.com/","product-name":"Saxon-JS","product-version":"1.0.0","is-schema-aware":"no","supports-serialization":"no","supports-backwards-compatibility":"yes","supports-namespace-axis":"yes","supports-streaming":"no","supports-dynamic-evaluation":"yes","supports-higher-order-functions":"no","xpath-version":"3.1","xsd-version":"1.1"};return{abs:function(t){var e=t[0].next();return null===e?A.Empty:A.Singleton(e.abs())},"accumulator-after":function(t,e,n){var r=l(t[0],n,"XTDE3340");return A.ForArray(R.accumAfter(r,e.getCurrentFocus(),e))},"accumulator-before":function(t,e,n){var r=l(t[0],n,"XTDE3340");return A.ForArray(R.accumBefore(r,e.getCurrentFocus(),e))},"adjust-date-to-timezone":function(t,e){return O(t,"date",e)},"adjust-dateTime-to-timezone":function(t,e){return O(t,"dateTime",e)},"adjust-time-to-timezone":function(t,e){return O(t,"time",e)},"analyze-string":function(t,e){var n=h(t[0]),r=e.resultDocument.createDocumentFragment(),o=C.KNOWN_URI.fn,i=e.resultDocument.createElementNS(o,"analyze-string-result");if(r.appendChild(i),""===n)return A.Singleton(i);var a=t[1].next().toString(),u=t[2]?t[2].next().toString():"",s=C.analyze(n,a,u,!1,!1);return s.forEach(function(t){var n,r;if(t.matching){var a,u=t.groups;n=e.resultDocument.createElementNS(o,"match");var s,c=0;for(s=1;sc&&(r=e.resultDocument.createTextNode(u[0].substring(c,a)),n.appendChild(r));var l=e.resultDocument.createElementNS(o,"group");l.setAttribute("nr",s);var f=e.resultDocument.createTextNode(u[s]);l.appendChild(f),n.appendChild(l),c=a+u[s].length}c=0)return A.oneBoolean(!0);return A.oneBoolean(!1)},count:function(t){return A.oneInteger(t[0].count())},"current-date":function(t,e){return A.Singleton(S.date.fromDate(e.fixed.currentDate,-e.fixed.currentDate.getTimezoneOffset()))},"current-dateTime":function(t,e){return A.Singleton(S.dateTimeStamp.fromDate(e.fixed.currentDate,-e.fixed.currentDate.getTimezoneOffset()))},"current-merge-group":function(t,e){if(null==e.currentMergeGroup)throw r("There is no current merge group","XTDE3480");if(t[0]){var n=t[0].next().value,o=e.currentMergeGroup.groups[n];if(o)return A.ForArray(o);throw r("Unknown merge source "+n,"XTDE3490")}return A.ForArray(e.currentMergeGroup.items)},"current-merge-key":function(t,e){if(null==e.currentMergeGroup)throw r("There is no current merge group","XTDE3510");return A.ForArray(e.currentMergeGroup.keys)},"current-time":function(t,e){return A.Singleton(S.time.fromDate(e.fixed.currentDate,-e.fixed.currentDate.getTimezoneOffset()))},data:function(t){return t[0].mapOneToOne(F.atomize)},dateTime:function(t){var e=t[0].next(),n=t[1].next();if(null===e||null===n)return A.Empty;var o="";if(null!==e.timezoneOffset)if(null===n.timezoneOffset)o=e.tzOffsetToString();else if(null!==n.timezoneOffset&&e.timezoneOffset!=n.timezoneOffset)throw new r("timezones are incompatible ","FORG0005");return A.Singleton(S.dateTime.fromString(e.toString().substring(0,10)+"T"+n.toString()+o))},"day-from-date":function(t){return x(t,"getUTCDate")},"day-from-dateTime":function(t){return x(t,"getUTCDate")},"days-from-duration":function(t){return b(t,2)},"deep-equal":function(t,e,n){var r=N.getCollatingFn(n,t[2],"equals",e);return A.oneBoolean(N.deepEqualSequences(t[0],t[1],r))},"default-collation":function(){return A.oneString(N.codepointCollationUri)},"default-language":function(){return A.Singleton(S.language.fromString("en"))},"distinct-values":function(t,e,n){var r=N.getCollation(n,t[1],e),o=N.trieWithCollation(r);return t[0].filter(function(t){return o.containsKey(t)?!1:(o.inSituPut(t,!0),!0)})},doc:function(t,e,n){var r=u(t,e,n);if(null===r)return A.Singleton(null);var i=o(r,e),a=e.fixed.spaceStripper;return null!==a&&(i=a(i)),A.Singleton(i)},"doc-available":function(t,e,n){var r=u(t,e,n);return null===r?A.oneBoolean(!1):c(function(){o(r,e)})},document:function(t,e,n){var i;if(t[1]){var a=I.baseURI(t[1].next());a&&(i=a)}return i||(i=F.staticBaseUri(n,e)),t[0].mapOneToMany(function(t){var n=I.isNode(t)?I.baseURI(t):i;return F.atomize(t).mapOneToOne(function(t){if(null===n)throw new r("No base URI for document('"+t+"')","XTDE1162");return o(SaxonJS.getPlatform().resolveUri(t.toString(),n),e)})})},"document-uri":function(t){var e=t[0].next();return null!==e&&e.nodeType==I.DOCUMENT_NODE&&e._saxonBaseUri?A.Singleton(S.anyURI.fromString(e._saxonBaseUri)):A.Empty},"element-available":function(t,e,n){l(t[0],n,"XTDE1440").split("}");return A.oneBoolean(!0)},"element-with-id":function(t,e){var n=h(t[0]);if(e.noCurrentFocus())throw new r("No context item for element-with-id()","XPDY0002");return A.Singleton(I.ownerDocument(e.getCurrentFocus()).getElementById(n))},empty:function(t){return A.oneBoolean(null===t[0].next())},"encode-for-uri":function(t){var e=encodeURIComponent(h(t[0])).replace(/[!'()*]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()});return A.oneString(e)},"ends-with":function(t,e,n){var r=h(t[0]),o=h(t[1]),i=N.getCollatingFn(n,t[2],"endsWith",e);return A.oneBoolean(i(r,o))},"environment-variable":function(){return A.Empty},error:function(t){if(void 0===t[0])throw new r("fn:error() invoked","FOER0000");var e=t[0].next();e=e?e.local:"FOER0000";var n=t[1]?h(t[1]):"";throw new r(n,e)},"escape-html-uri":function(t){return f(t,function(t){return 32>t||t>126})},"exactly-one":function(t){var e=t[0].expand();if(1!=e.length)throw new r("Required length 1, actual length "+e.length,"FORG0005");return A.Singleton(e[0])},exists:function(t){return A.oneBoolean(null!==t[0].next())},"false":function(){return A.oneBoolean(!1)},floor:function(t){return t[0].mapOneToOne(function(t){return t.floor()})},"format-date":function(t){return m("format-date",t),t[2]?A.oneString(k.formatDateTime("date",t[0].next(),t[1].next().toString(),t[2].next(),t[3].next(),t[4].next())):A.oneString(k.formatDateTime("date",t[0].next(),t[1].next().toString()))},"format-dateTime":function(t){return m("format-dateTime",t),t[2]?A.oneString(k.formatDateTime("dateTime",t[0].next(),t[1].next().toString(),t[2].next(),t[3].next(),t[4].next())):A.oneString(k.formatDateTime("dateTime",t[0].next(),t[1].next().toString()))},"format-integer":function(t){var e=t[0].next();return null===e?A.oneString(""):A.oneString(k.formatInteger(e,t[1].next().toString()))},"format-number":function(t,e,n){var o=t[2]?l(t[2],n,"XTDE1260"):"Q{}",i=C.declaringPackage(n,e),a=i.decimalFormats[null!==o?o:"Q{}"];if(!a)throw r("Unknown decimal format "+o,"FODF1280");var u=t[0].next();return u=null===u?Number.NaN:u.toDouble().value,A.oneString(k.formatNumber(u,t[1].next().toString(),a,e))},"format-time":function(t){return m("format-time",t),t[2]?A.oneString(k.formatDateTime("time",t[0].next(),t[1].next().toString(),t[2].next(),t[3].next(),t[4].next())):A.oneString(k.formatDateTime("time",t[0].next(),t[1].next().toString()))},"function-available":function(t,e,n){var r=!1,o=l(t[0],n,"XTDE1400",C.KNOWN_URI.fn),i=t[1]?t[1].next().toNumber():-1;if(e.fixed.userFunctions[o+"#"+i])r=!0;else{var a=S.QName.fromEQName(o),u=SaxonJS.getPlatform().readResource("opt/functions.json"),s=JSON.parse(u),c=s[a.uri];r=c&&c[a.local]?i>=0?c[a.local].indexOf(i)>=0:!0:!1}return A.oneBoolean(r)},"generate-id":function(t,n){var r=t[0].next();if(null===r)return A.oneString("");var o,i=E.ancestorOrSelf(r).expand().reverse(),a="";for(o=0;o0&&E.ancestor(t).some(function(t){return t==e[e.length-1]})&&e.pop(),e.push(t)}),A.ForArray(e)},"in-scope-prefixes":function(t){var e=t[0].next();return A.ForArray(I.inScopeNamespaces(e).map(function(t){return S.string.fromString(t.prefix)}))},"insert-before":function(t){var e=t[1].next().value,n=t[2],r=A.Tracker(t[0]);return 1>e?A.Join([n,r]):e>r.last()?A.Join([r,n]):r.mapOneToMany(function(n){return r.position==e?A.Join([t[2],A.Singleton(n)]):A.Singleton(n)})},"iri-to-uri":function(t){return f(t,function(t,e){return 32>=t||t>126||/[<>"{}|\\\^`]/.test(e)})},"json-doc":function(t,e,n){var r=u(t,e,n);if(!r)return A.Empty;var o=i(r,e),a=t[1]?t[1].next():null;return A.Singleton(U.parseToMap(o,a))},"json-to-xml":function(t,e,n){var r=t[0].next();if(!r)return A.Empty;var o=t[1]?t[1].next():null,i=U.parseToXml(r.toString(),o,e),a=e.resultDocument.createDocumentFragment();return a.appendChild(i),a._saxonBaseUri=F.staticBaseUri(n,e),A.Singleton(a)},key:function(t,e,n){function o(t){return{visibility:"PRIVATE",decl:t,pack:a,actor:t,bindings:t.getAttribute("binds").split(" ").map(function(t){return parseInt(t)})}}var i=l(t[0],n,"XTDE1260"),a=C.declaringPackage(n,e),u=a.keys[i];if(!u)throw r("Unknown key "+i,"XTDE1280");var s,c;if(t[2])s=t[2].next(),I.isNode(s)&&(c=I.ownerDocument(s));else{var f=e.getCurrentFocus();I.isNode(f)&&(s=I.ownerDocument(f),c=s)}if(!c||c.nodeType!==I.DOCUMENT_NODE&&c.nodeType!==I.DOCUMENT_FRAGMENT_NODE)throw new r("No containing document for key()","XTDE1270",n);"_saxonIndexes"in c||(c._saxonIndexes={});var m=c._saxonIndexes,p=m[i];if(!p){var h=N.getCollation(u[0],null,e);p=N.trieWithCollation(h),m[i]=p;for(var g=0;g1&&p.get(U).sort(T.compareDocumentOrder))}else p.inSituPut(U,[P])}}}var X=t[1];return X.mapOneToMany(function(t){if(p.containsKey(t)){var e=A.ForArray(p.get(t));return c==s?e:e.filter(function(t){return null!==E.ancestorOrSelf(t).filter(function(t){return t==s}).next()})}return A.Empty})},lang:function(t,e){var n=t[1]?t[1].next():e.getCurrentFocus();if(!n)throw new r("No context item for lang()","XPDY0002");if(!I.isNode(n))throw new r("Context item is not a node in lang()","XPTY0004");var o=h(t[0]).toLowerCase(),i=E.ancestorOrSelf(n).filter(function(t){return t.nodeType==I.ELEMENT_NODE&&t.hasAttribute("xml:lang")}),a=i.next();if(!a)return A.oneBoolean(!1);var u=a.getAttribute("xml:lang").toLowerCase(),s=o==u||u.length>o.length+1&&u.substring(0,o.length)==o&&"-"==u.charAt(o.length);return A.oneBoolean(s)},last:function(t,e){if(e.noCurrentFocus())throw new r("No context item for last()","XPDY0002");return A.oneInteger(e.focus.last())},"load-xquery-module":function(){throw new r("No XQuery processor available","FOQM0006")},"local-name":function(t){var e=I.nameOfNode(t[0].next());return A.oneString(e?e.local:"")},"local-name-from-QName":function(t){var e=t[0].next();return null===e?A.Empty:A.Singleton(S.NCName.fromString(e.local))},"lower-case":function(t){return A.oneString(h(t[0]).toLowerCase())},matches:function(t){var e=h(t[0]),n=t[1].next().toString(),o=t[2]?t[2].next().toString():"";if(!o.match(/^[smijxq]*$/))throw new r("Illegal flags for regular expression: "+o,"FORX0001"); -var i=_.prepareRegex(n,o,e);return A.oneBoolean(e.search(i)>=0)},max:y("max"),min:y("min"),"minutes-from-dateTime":function(t){return x(t,"getUTCMinutes")},"minutes-from-duration":function(t){return b(t,4)},"minutes-from-time":function(t){return x(t,"getUTCMinutes")},"month-from-date":function(t){return x(t,"getUTCMonth")},"month-from-dateTime":function(t){return x(t,"getUTCMonth")},"months-from-duration":function(t){return b(t,1)},name:function(t){var e=I.nameOfNode(t[0].next());return A.oneString(e?e.toString():"")},"namespace-uri":function(t){var e=I.nameOfNode(t[0].next());return A.Singleton(S.anyURI.fromString(e?e.uri:""))},"namespace-uri-for-prefix":function(t){var e=h(t[0]),n=t[1].next(),r="xml"==e?C.KNOWN_URI.xml:n.lookupNamespaceURI(""==e?null:e);return r?A.Singleton(S.anyURI.fromString(r)):A.Empty},"namespace-uri-from-QName":function(t){var e=t[0].next();return null===e?A.Empty:A.Singleton(S.anyURI.fromString(e.uri))},nilled:function(t){var e=t[0].next();return e&&e.nodeType==I.ELEMENT_NODE?A.oneBoolean(!1):A.Empty},"node-name":function(t){return A.Singleton(I.nameOfNode(t[0].next()))},"normalize-space":function(t){var e=h(t[0]);return A.oneString(C.wsCollapse(e))},"normalize-unicode":function(t){if(String.prototype.normalize){var e=h(t[0]),n=t[1].next().toString().toUpperCase().trim();if("NFC"==n||"NFD"==n||"NFKC"==n||"NFKD"==n)return A.oneString(e.normalize(n));if(""===n)return A.oneString(e)}throw new r("normalize-unicode(): not supported on this Javascript platform","FOCH0003")},not:function(t){return A.oneBoolean(!F.ebv(t[0]))},number:function(t){return A.Singleton(S.numeric.numberFn(t[0].next()))},"one-or-more":function(t){var e=A.LookAhead(t[0]);if(null===e.peek())throw new r("Required length >= 1, actual length zero","FORG0004");return e},outermost:function(t,e,n){var r=F.hasFlag(n,"p"),o=t[0];r||(o=I.inDocumentOrder(o));var i=null;return o.filter(function(t){return null===i?(i=t,!0):null===E.ancestor(t).filter(function(t){return t===i}).next()?(i=t,!0):!1})},"parse-ietf-date":function(t){return t[0].mapOneToOne(function(t){var e=function(){throw new r("Invalid IETF date/time "+t.toString(),"FORG0010")},n=function(t){return 1==t.length?"0"+t:t},o=t.toString().trim().toLowerCase();o=o.replace(/^(monday|tuesday|wednesday|thursday|friday|saturday|sunday|mon|tue|wed|thu|fri|sat|sun),?\s+/,"");var i,a,u,s,c,l,f;/^[a-z]/.test(o)?(i=/^([a-z]{3})(?:\s*\-\s*|\s+)(\d\d\d?\d?)\s+([\d:\.]+)\s*([a-z]+|[+\-]\d\d?:?(?:\d\d)?(?:\s*\(\s*[a-z]+\s*\))?)?\s+(\d+)$/,a=i.exec(o),null!==a?(u=a[1],s=a[2],l=a[3],f=a[4],c=a[5]):e()):(i=/^(\d+)(?:\s*\-\s*|\s+)([a-z]{3})(?:\s*\-\s*|\s+)(\d\d\d?\d?)\s+([\d:\.]+)\s*([a-z]+|[+\-]\d\d?:?(?:\d\d)?(?:\s*\(\s*[a-z]+\s*\))?)?$/,a=i.exec(o),null!==a?(s=a[1],u=a[2],c=a[3],l=a[4],f=a[5]):e()),2==c.length&&(c="19"+c);var m="jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec".indexOf(u);0>m&&e();var p={ut:"Z",utc:"Z",gmt:"Z",est:"-05:00",edt:"-04:00",cst:"-06:00",cdt:"-05:00",mst:"-07:00",mdt:"-06:00",pst:"-08:00",pdt:"-07:00"};if(/^[0-9]:/.test(l)&&(l="0"+l),5==l.length&&(l+=":00"),f){var h=/([a-z]+)|([+\-]\d\d?:?(?:\d\d)?)(?:\s*\(\s*([a-z]+)\s*\))?$/.exec(f);(h[3]&&!(h[3]in p)||h[1]&&!(h[1]in p))&&e(),f=h[1]?h[1]:h[2],/^[+\-][0-9]((:|$)|[0-9]{2}$)/.test(f)&&(f=f.substring(0,1)+"0"+f.substring(1)),f in p?f=p[f]:3==f.length?f+=":00":4==f.length?f+="00":5==f.length&&(f=f.substring(0,3)+":"+f.substring(3))}var g=c+"-"+n((m/4+1).toString())+"-"+n(s)+"T"+l+(f||"Z");return S.dateTime.fromString(g)})},"parse-json":function(t){var e=t[0].next().toString(),n=t[1]?t[1].next():null;return A.Singleton(U.parseToMap(e,n))},"parse-xml":function(t,e,n){var o=t[0].next().toString();try{var i=SaxonJS.getPlatform().parseXmlFromString(o);return i._saxonBaseUri=F.staticBaseUri(n,e),A.Singleton(i)}catch(a){throw new r("Misplaced or malformed XML:","FODC0006")}},"parse-xml-fragment":function(t,e,n){return t[0].mapOneToOne(function(t){var r=/^<\?xml(?:\s+version\s*=\s*(['"])1.[0-9]+['"])?\s+encoding\s*=\s*(['"][A-Za-z](?:[A-Za-z0-9._\-])*)['"]\s*\?>/,o=t.toString().replace(r,""),i=SaxonJS.getPlatform().parseXmlFromString(""+o+""),a=e.resultDocument.createDocumentFragment();return E.child(i.documentElement).forEachItem(function(t){a.appendChild(t)}),a._saxonBaseUri=F.staticBaseUri(n,e),a})},path:function(t){return t[0].mapOneToOne(function(t){var e="";return E.ancestorOrSelf(t).forEachItem(function(t){var n,r=function(t){return E.precedingSibling(t).filter(function(e){return t.nodeType==e.nodeType})},o=function(t){return 1+r(t).count()};switch(t.nodeType){case I.DOCUMENT_NODE:case I.DOCUMENT_FRAGMENT_NODE:break;default:break;case I.ELEMENT_NODE:n=I.nameOfNode(t),e="/"+n.toEQName()+"["+(1+r(t).filter(function(t){return I.nameOfNode(t).equals(n)}).count())+"]"+e;break;case I.TEXT_NODE:e="/text()["+o(t)+"]";break;case I.COMMENT_NODE:e="/comment()["+o(t)+"]";break;case I.PROCESSING_INSTRUCTION_NODE:e="/processing-instruction("+t.target+")["+(1+r(t).filter(function(e){return t.target==e.target}).count())+"]";break;case I.ATTRIBUTE_NODE:e="/@"+(t.name.indexOf(":")<0?t.name:I.nameOfNode(t).toEQName());break;case I.NAMESPACE_NODE:e="/namespace::"+(""!==t.prefix?t.prefix:"*[Q{"+C.KNOWN_URI.fn+'}local-name()=""]')}}),""===e&&(e="/"),S.string.fromString(e)})},"prefix-from-QName":function(t){return t[0].mapOneToOne(function(t){return""===t.prefix?null:S.NCName.fromString(t.prefix)})},position:function(t,e){if(e.noCurrentFocus())throw new r("No context item for position()","XPDY0002");return A.oneInteger(e.focus.position)},QName:function(t){var e=t[1].next().value.split(":"),n=2==e.length?e[0]:"",o=h(t[0]);if(""!==n&&""===o)throw new r("Prefix but no URI for QName()","FOCA0002");if(2==e.length&&""===n||""!==n&&!_.isNCName(n))throw new r("$paramQName not valid for QName()","FOCA0002");var i=2==e.length?e[1]:e[0];if(!_.isNCName(i))throw new r("$paramQName not valid for QName()","FOCA0002");return A.Singleton(S.QName.fromParts(n,o,i))},"regex-group":function(t,e){var n=t[0].next().toNumber();try{return A.oneString(e.focus.regexGroups[n]||"")}catch(r){return A.oneString("")}},remove:function(t){var e=t[1].next().toNumber(),n=A.Tracker(t[0]);return n.filter(function(t){return n.position!=e})},replace:function(t){var e=h(t[0]),n=t[3]?t[3].next().toString():"";if(!n.match(/^[smijxq]*$/))throw new r("Illegal flags for regular expression: "+n,"FORX0001");var o=_.prepareRegex(t[1].next().toString(),n+"g");if(o.test(""))throw new r("Regular expression matches zero-length string","FORX0003");var i=_.convertReplacement(t[2].next().toString(),n);return A.oneString(e.replace(o,i))},"resolve-QName":function(t){var e=t[1].next();return t[0].mapOneToOne(function(t){try{return I.resolveLexicalQName(e,t.toString(),!0)}catch(n){throw n instanceof r&&"FORG0001"==n.code&&(n.code=_.isQName(t)?"FONS0004":"FOCA0002"),n}})},"resolve-uri":function(t,e,n){var o=t[1]?t[1].next().toString():F.staticBaseUri(n,e),i=t[0].next();if(null===i)return A.Empty;o=o.replace(/^file:\/(?!\/)/,"file:///"),i=i.toString();var a=T.isAbsoluteURI(i);if(!a&&!T.isAbsoluteURI(o))throw new r("resolve-uri: invalid URI (base="+o+", relative="+i+")","FORG0002");if(!SaxonJS.getPlatform().inBrowser&&/#/.test(o))throw new r("Base URI "+o+" contains a fragment identifier","FORG0002");var u;try{u=a?i:SaxonJS.getPlatform().resolveUri(i,o).toString()}catch(s){throw s}return A.Singleton(S.anyURI.fromString(u))},reverse:function(t){return A.ForArray(t[0].expand().slice().reverse())},root:function(t){return t[0].mapOneToMany(function(t){return E.ancestorOrSelf(t)}).filter(function(t){return null===I.xdmParentNode(t)})},round:function(t){return t[0].mapOneToOne(function(e){return e.round(t[1]?t[1].next().value:0)})},"round-half-to-even":function(t){return t[0].mapOneToOne(function(e){return e.roundHalfToEven(t[1]?t[1].next().value:0)})},"seconds-from-dateTime":function(t){return x(t,"seconds")},"seconds-from-duration":function(t){return b(t,5)},"seconds-from-time":function(t){return x(t,"seconds")},serialize:function(t){return A.oneString(F.serialize(t[0],t[1]?t[1]:void 0))},snapshot:function(t,e,n){return t[0].mapOneToOne(function(t){var n=I.copyItem(t,e,"cm"),r=n;return E.ancestor(t).forEachItem(function(t){var n=I.shallowCopy(t,e,"c",function(){return A.Empty}).next();E.attribute(t).forEachItem(function(t){var e=""===t.namespaceURI?null:t.namespaceURI;n.setAttributeNS(e,t.name,t.value)}),n._saxonOriginal=t,n.appendChild(r),r=n}),n})},"starts-with":function(t,e,n){var r=h(t[0]),o=h(t[1]),i=N.getCollatingFn(n,t[2],"startsWith",e);return A.oneBoolean(i(r,o))},"static-base-uri":function(t,e,n){return A.oneString(F.staticBaseUri(n,e))},"stream-available":function(){return A.oneBoolean(!1)},string:function(t){var e=t[0].next();if(!e)return A.oneString("");if(F.isArray(e)||F.isMap(e))throw new r("Input to string() is a function item ","FOTY0014");return F.atomize(e).mapOneToOne(function(t){return S.string.cast(t)})},"string-join":function(t){for(var e,n="",r=t[1]?t[1].next().value:"",o=!0;null!==(e=t[0].next());)o||(n+=r),n+=e.toString(),o=!1;return A.oneString(n)},"string-length":function(t){return A.oneInteger(g(t[0]).length)},"string-to-codepoints":function(t){return A.ForArray(g(t[0]).map(S.integer.fromNumber))},subsequence:function(t){return A.ForArray(d(t[0].expand(),t[1],t[2]))},substring:function(t){var e=g(t[0]);return A.oneString(F.codepointsToString(d(e,t[1],t[2])))},"substring-after":function(t,e,n){var r,o="",i=h(t[0]),a=h(t[1]),u=N.getCollatingFn(n,t[2],"indexOf",e);return-1!=(r=u(i,a))&&(o=i.substring(r+a.length)),A.oneString(o)},"substring-before":function(t,e,n){var r,o="",i=h(t[0]),a=h(t[1]),u=N.getCollatingFn(n,t[2],"indexOf",e);return-1!=(r=u(i,a))&&(o=i.substring(0,r)),A.oneString(o)},sum:function(t){var e=t[0].mapOneToOne(F.untypedToDouble),n=e.next();return null===n?1==t.length?A.oneInteger(0):t[1]:(M["a+a"](n,n),A.Singleton(v(e,n,M["a+a"])))},"system-property":function(t,e,n){var r,o=S.QName.fromEQName(l(t[0],n,"XTDE1390"));return o.uri==C.KNOWN_URI.xsl&&(r=P[o.local]),A.oneString(r||"")},tail:function(t){var e=A.Tracker(t[0]);return e.filter(function(){return 1!=e.position})},"timezone-from-date":function(t){return x(t,"timezone")},"timezone-from-dateTime":function(t){return x(t,"timezone")},"timezone-from-time":function(t){return x(t,"timezone")},tokenize:function(t){var e=h(t[0]);if(t[1]||(e=C.wsCollapse(e)),""===e)return A.Empty;var n=t[1]?t[1].next().toString():"[ \\n\\r\\t]+",r=C.analyze(e,n,t[2]?t[2].next().toString():"",!1,!0),o=t[1]&&r[0].matching,i=r[r.length-1],a=t[1]&&i.matching,u=r.filter(function(t){return!t.matching}),s=u.map(function(t){return t.string});return o&&s.unshift(S.string.fromString("")),a&&s.push(S.string.fromString("")),A.ForArray(s)},trace:function(e){var n=e[0].expand();return a((e[1]?e[1].next().toString()+": ":"")+t(n)),A.ForArray(n)},transform:function(t,e,n){var r,o=t[0].next(),i=A.oneString("stylesheet-node"),a=A.oneString("source-node"),u=A.oneString("initial-template"),s=A.oneString("initial-mode"),c=A.oneString("stylesheet-parameters"),l=document.implementation.createDocument(null,null,null);r=A.ForArray(o.get(i.next())).peek().cloneNode(!0),r instanceof XMLDocument&&(r=r.documentElement),l.appendChild(r);var f=null,m=A.ForArray(o.get(a.next())).peek();if(null!=m)if(f=document.implementation.createDocument(null,null,null),f._saxonBaseUri=m._saxonBaseUri,m instanceof XMLDocument)for(var p=m.childNodes,h=0;h0&&""==o[o.length-1]&&(o.length-=1),A.ForArray(o).mapOneToOne(function(t){return S.string.fromString(t)})},"upper-case":function(t){return A.oneString(h(t[0]).toUpperCase())},"uri-collection":function(){return A.Empty},"xml-to-json":function(t){var e=t[1]?t[1].next():new w;return t[0].mapOneToOne(function(t){return S.string.fromString(U.xmlToJson(t,e))})},"year-from-date":function(t){return x(t,"getUTCFullYear")},"year-from-dateTime":function(t){return x(t,"getUTCFullYear")},"years-from-duration":function(t){return b(t,0)},"zero-or-one":function(t){var e=t[0].expand();if(e.length>1)throw new r("Required length 0-1, actual length "+e.length,"FORG0003");return A.Singleton(e[0]?e[0]:null)}}}(),I=function(){"use strict";var t=function(t,e,n,o){function i(t){return null===t?(c=!0,Number.NaN):t.toNumber()}function a(){return i(C.evalChild1(o,n).next())}function u(){return i(C.evalChild2(o,n).next())}function s(){switch(t){case"pi":return Math.PI;case"exp":return Math.exp(a());case"exp10":return Math.pow(10,a());case"log":return Math.log(a());case"log10":return Math.log(a())/Math.LN10;case"pow":var e=a(),n=u();return-1==e&&(n==1/0||n==-(1/0))||1==e?1:Math.pow(e,n);case"sqrt":return Math.sqrt(a());case"sin":return Math.sin(a());case"cos":return Math.cos(a());case"tan":return Math.tan(a());case"asin":return Math.asin(a());case"acos":return Math.acos(a());case"atan":return Math.atan(a());case"atan2":return Math.atan2(a(),u());default:throw r("Unknown math function "+o.getAttribute("name"),"XPST0017",o)}}var c=!1,l=s();return c?A.Empty:A.oneDouble(l)},e=function(t,e,n,o){var i={contains:function(t){var e=t[0].next(),n=t[1].next();return A.oneBoolean(e.containsKey(n))},create:function(t){var e=new w;return t[0].forEachItem(function(t){t.forAllPairs(function(t){e.inSituPut(t.k,t.v)})}),A.Singleton(e)},entry:function(t){var e=new w;return e.inSituPut(t[0].next(),t[1].expand()),A.Singleton(e)},find:function(t){function e(t){C.isArray(t)?t.value.forEach(n):C.isMap(t)&&(t.containsKey(o)&&r.push(t.get(o)),t.keys().forEach(function(e){n(t.get(e))}))}function n(t){t.forEach(e)}var r=[],o=t[1].next();return n(t[0].expand()),A.Singleton(new C.XdmArray(r))},get:function(t){var e=t[0].next(),n=t[1].next();return A.ForArray(e.get(n))},keys:function(t){var e=t[0].next();return A.ForArray(e.keys())},merge:function(t){var e=new w,n=t[1]?t[1].next():null;return t[0].forEachItem(function(t){t.forAllPairs(function(t){var i=S.string.fromString("duplicates"),a=n&&n.containsKey(i)?n.get(i).toString():"use-first";if(e.containsKey(t.k)&&"use-last"!=a&&"unspecified"!=a&&"use-any"!=a){if("reject"==a){var u=S.string.fromString("duplicates-error-code"),s=n.containsKey(u)?n.get(u).toString():"FOJS0003";throw r("Duplicate key value '"+t.k.toString()+"'",s,o)}if("combine"==a){var c=e.get(t.k);t.v.forEach(function(t){c.push(t)}),e.inSituPut(t.k,c)}}else e.inSituPut(t.k,t.v)})}),A.Singleton(e)},_new:function(t){var e=new w;return t[0]&&t[0].forEachItem(function(t){t.forAllPairs(function(t){if(e.containsKey(t.k))throw r("Duplicate key value '"+t.k.toString()+"'","XQDY0137",o);e.inSituPut(t.k,t.v)})}),A.Singleton(e)},put:function(t){var e=t[0].next(),n=t[1].next(),r=t[2].expand();return A.Singleton(e.put(n,r))},remove:function(t){var e=t[0].next();return t[1].forEachItem(function(t){e=e.remove(t)}),A.Singleton(e)},size:function(t){var e=t[0].next(),n=0;return e.forAllPairs(function(){n++}),A.oneInteger(n)},"untyped-contains":function(t){var e=t[0].next(),n=t[1].next();return A.oneBoolean(e.containsKey(n))}};if(!i[t])throw r("Unknown map function: "+t,"SXJS0003",o);return i[t](e,n,o)},n=function(t,e,n,o){function i(t,e){if(1>t||t>e)throw r("Array index ("+t+") out of bounds (1 to "+e+")","FOAY0001",o)}function a(t){return t[0].next().value}function u(t){return t[1].next().toNumber()}function s(t){return A.Singleton(new C.XdmArray(t))}var c={append:function(t){return s(a(t).concat([t[1].expand()]))},flatten:function(t){return C.flatten(t[0])},"_from-sequence":function(t){var e=[];return t[0].forEachItem(function(t){e.push([t])}),s(e)},get:function(t){var e=a(t),n=u(t);return i(n,e.length),A.ForArray(e[n-1])},head:function(t){var e=a(t);return i(1,e.length),A.ForArray(e[0])},"insert-before":function(t){var e=a(t),n=u(t);i(n,e.length+1);var r=t[2].expand();return s(e.slice(0,n-1).concat([r]).concat(e.slice(n-1)))},join:function(t){var e=[];return t[0].forEachItem(function(t){t.value.forEach(function(t){e.push(t)})}),s(e)},put:function(t){var e=a(t),n=u(t);i(n,e.length);var r=t[2].expand();return s(e.slice(0,n-1).concat([r]).concat(e.slice(n)))},remove:function(t){var e=a(t),n=[];return t[1].forEachItem(function(t){var r=t.toNumber();i(r,e.length),n.push(r-1)}),s(e.filter(function(t,e){return n.indexOf(e)<0}))},reverse:function(t){return s(a(t).slice().reverse())},size:function(t){return A.oneInteger(a(t).length)},sort:function(t){function e(e,n){var o=function(t){return A.ForArray(t).mapOneToMany(C.atomize)};return t[1]?N.lexicographicCompare(o(e),o(n),r):N.lexicographicCompare(o(e),o(n))}var r=N.getCollation(o,t[1],n);return s(a(t).slice().sort(e))},subarray:function(t){var e=a(t),n=u(t);i(n,e.length+1);var o=t[2]?t[2].next().toNumber():e.length-n+1;return r.test(0>o,"Length is negative","FOAY0002"),i(n+o,e.length+1),s(e.slice(n-1,n+o-1))},tail:function(t){var e=a(t);return i(1,e.length),s(e.slice(1))},"_to-sequence":function(t){var e=[];return a(t).forEach(function(t){t.forEach(function(t){e.push(t)})}),A.ForArray(e)}};if(!c[t])throw r("Unknown array function: "+t,"SXJS0003",o);return c[t](e,n,o)},o=function(t,e,n,o){function i(t,e){for(var n=t,i=0;i1&&(e=t[1].next(),e=null!=e?C.convertToJS(e):{}),t.length>2&&(r=t[2]);var a=SaxonJS.XPath.compile(i,e,r,o,n);return a},doc:F.doc,"dynamic-error-info":function(t){var e=n.currentError;if(null===e)return A.Empty;var o=t[0].next().toString();switch(o){case"description":return A.oneString(e.message);case"code":return A.Singleton(S.QName.fromParts("err","http://www.w3.org/2005/xqt-errors",e.code));case"value":return A.Empty;case"module":return A.oneString(e.xsltModule);case"line-number":return A.oneInteger(e.xsltLineNr);case"column-number":return A.oneInteger(-1);default:throw r("unknown error info field "+o,"SXJS0003")}},"parse-XPath":function(t){var e,n=t[0].next().toString(),r="parse";t.length>1&&(r=t[1].next().toString()),t.length>2&&(e=t[2]);var o=SaxonJS.XPath.parse(n,r,e);return o}};if(!i[t])throw r("Unknown saxon function: "+t,"SXJS0003",o);return i[t](e,n,o)};return function(a,u,s,c,l){switch(a){case C.KNOWN_URI.fn+"/math":return t(u,s,c,l);case C.KNOWN_URI.fn+"/map":return e(u,s,c,l);case C.KNOWN_URI.fn+"/array":return n(u,s,c,l);case C.KNOWN_URI.ixsl:return o(u,s,c,l);case C.KNOWN_URI.saxon:return i(u,s,c,l);default:throw r("Unknown namespace "+a,"SXJS0003",l)}}}(),M=function(){"use strict";function t(t){return Math.abs(t)=0});var x=d.count();return 0===x?A.Empty:A.oneInteger(x);default:C.internalError("unknown xsl:number/@level "+t)}}function n(t,e){var n=L.argRole(t,"value"),r=L.argRole(t,"format"),a=L.evaluateIfPresent(L.argRole(t,"gpSep"),e).next(),u=L.evaluateIfPresent(L.argRole(t,"gpSize"),e).next(),s=L.evaluateIfPresent(L.argRole(t,"ordinal"),e).next(),c=L.evaluateIfPresent(L.argRole(t,"lang"),e).next(),l=t.getAttribute("flags")||"",f=L.argRole(t,"startAt"),m=/1/.test(l),p=L.evaluate(n,e),h=i(p,m,f,!0,e);return null===h?A.oneString("NaN"):o(h,r,a,u,s,c,e)}function o(t,e,n,o,i,a,u){function s(t){var e,n;if(""===t&&(t="1"), -/^[\x01-\x7f]*$/.test(t))e=t.split(/\b/),n=function(t,e){return/\w+/.test(t)};else{if(t.length!=L.stringToCodepoints(t).length)throw r("Cannot handle non-BMP characters in format-number picture","SXJS0002");var o=L.analyze(t,"[\\p{Nd}\\p{Nl}\\p{No}\\p{Lu}\\p{Ll}\\p{Lt}\\p{Lm}\\p{Lo}]+","",!0,!1);n=function(t,e){return o[e].matching},e=o.map(function(t){return t.string.toString()})}var i,a={prefix:"",fTokens:[],suffix:""},u=".";for(i=0;i=a.fTokens.length?a.fTokens[a.fTokens.length-1]:a.fTokens[e];0!==e&&(c+=r.sep);var u=r.chars;"yes"==i&&(u+=";o");var s=k.formatInteger(t,u);null!==n&&null!==o&&(s=k.addGroupingSeparators(s,n,o)),c+=s}),c+=a.suffix,A.oneString(c)}if(null!==a)try{S.language.cast(a)}catch(l){throw r("@lang="+a+": invalid language code","XTDE0030")}return c(t.expand())}function i(t,e,n,o,i){var a=[1];if(null!==n&&(a=L.evaluate(n,i).next().toString().split(/\s+/).map(function(t){if(!/^-?[0-9]+$/.test(t))throw r("xsl:number/@start-at must be a sequence of integers.Offending value: "+t,"XTSE0020");return parseInt(t,10)})),e&&o){var u=t.next();if(null===u)return null;try{u=S.integer.cast(u.round(0))}catch(s){return null}t=A.ForArray([u])}var c=function(t,e){if(t=S.numeric.matches(t)?t.toDouble():S["double"].fromStringUnfailing(t.toString()),t.toNumber()<0)throw r("xsl:number/@value is less than zero","XTDE0980");try{t=S.integer.cast(t.round(0))}catch(n){throw n.code="XTDE0980",n}var o=e>=a.length?a[a.length-1]:a[e];return 1!=o&&(t=S.integer.fromNumber(t.toNumber()+(o-1))),t};return t.mapOneToOne(c)}function a(t,n){var r,a,u=L.argRole(t,"value"),s=L.argRole(t,"format"),c=L.evaluateIfPresent(L.argRole(t,"gpSep"),n).next(),l=L.evaluateIfPresent(L.argRole(t,"gpSize"),n).next(),f=L.evaluateIfPresent(L.argRole(t,"ordinal"),n).next(),m=L.evaluateIfPresent(L.argRole(t,"lang"),n).next(),p=t.getAttribute("flags")||"",h=/1/.test(p),g=L.argRole(t,"startAt");if(u)r=L.evaluate(u,n),a=i(r,h,g,!0,n);else{var d=t.getAttribute("level"),v=L.argRole(t,"select"),y=L.argRole(t,"count"),S=L.argRole(t,"from");r=e(d,v,y,S,n),a=i(r,h,g,!1,n)}return null===a?A.oneString("NaN"):o(a,s,c,l,f,m,n)}function u(t){if(1>t||t>4999)return t.toString();var e,n="",r=["m","cm","d","cd","c","xc","l","xl","x","ix","v","iv","i"],o=[1e3,900,500,400,100,90,50,40,10,9,5,4,1];for(e=0;e=o[e];)n+=r[e],t-=o[e];return n}function s(t,e){function n(t){return(t>r?n(Math.floor((t-1)/r)):"")+e.charAt((t-1)%r)}if(1>t)return t.toString();var r=e.length;return n(t)}function c(t,e){return tn?n.toString():Big(n).toFixed();r.lengtht&&(r="-"+r),r}function f(t){var e,n,o=C,i=o.stringToCodepoints(t),a={},u=!0,s=0,c=_.prepareRegex("\\p{Nd}",null),l=t.search(c);if(0>l)u=!1;else{var f=_.obtainCategoryEscapes().Nd;for(n=0;n=128){var p=String.fromCharCode(i[n]);if(c.test(p)){if(e>i[n]||i[n]>e+10)throw r("Picture string mixes digits from different digit families: "+t,"FODF1310")}else{var h=_.prepareRegex("\\p{N}\\p{L}",null);if(h.test(p))throw r("Picture string is invalid: "+t,"FODF1310")}}var g=[];s=e-48,i.forEach(function(t){t>=e&&e+10>=t?g.push(48):g.push(t)}),t=o.codepointsToString(g)}return a.isDecimalDigitPattern=u,a.format=t,a.diff=s,a.zeroDigit=e,a}function m(t,e){var n=[];return C.stringToCodepoints(t).forEach(function(t){t>=48&&57>=t?n.push(t+e):n.push(t)}),C.codepointsToString(n)}function p(t,e,n,r,o){var i,a=0,u=t;for(i=0;i0&&(u=u.substring(0,s)+(n?n[o?a:n.length-a-1]:r)+u.substring(s)),a++}return u}function h(t,e){function n(t,e){if(!/^(([0-9]|#|[^A-Za-z0-9])+?)$/.test(e))throw r("The decimal digit pattern in the picture string is invalid: "+e,"FODF1310");var n,o,i=e,a=!0;if(/[^0-9A-Za-z#]/.test(i)){if(n=i.match(/[^0-9A-Za-z#]/g),n.length>1)for(o=1;of[0]&&(m=!1),m)for(o=1;ot?e[t]:100>t?n[Math.floor(t/10)]+(t%10===0?"":" "+e[t%10]):1e3>t?g(Math.floor(t/100))+" Hundred"+(t%100===0?"":" and "+g(t%100)):1e6>t?g(Math.floor(t/1e3))+" Thousand"+(t%1e3===0?"":(100>t%1e3?" and ":" ")+g(t%1e3)):1e9>t?g(Math.floor(t/1e6))+" Million"+(t%1e3===0?"":(100>t%1e3?" and ":" ")+g(t%1e6)):t.toString()}function d(t){var e=["Zeroth","First","Second","Third","Fourth","Fifth","Sixth","Seventh","Eighth","Ninth","Tenth","Eleventh","Twelfth","Thirteenth","Fourteenth","Fifteenth","Sixteenth","Seventeenth","Eighteenth","Nineteenth"],n=["","","Twent","Thirt","Fort","Fift","Sixt","Sevent","Eight","Ninet"];return 20>t?e[t]:100>t?n[Math.floor(t/10)]+(t%10===0?"ieth":"y "+e[t%10]):1e3>t?g(Math.floor(t/100))+" Hundred"+(t%100===0?"th":" and "+d(t%100)):1e6>t?g(Math.floor(t/1e3))+" Thousand"+(t%1e3===0?"th":(100>t%1e3?" and ":" ")+d(t%1e3)):1e9>t?g(Math.floor(t/1e6))+" Million"+(t%1e3===0?"th":(100>t%1e3?" and ":" ")+d(t%1e6)):t.toString()}function v(t){return t%10==1&&t%100!=11?"st":t%10==2&&t%100!=12?"nd":t%10==3&&t%100!=13?"rd":"th"}function y(t,e){function n(t,e){for(var n="",r=t.charCodeAt(0),o=0;e>o;r++,o++)n+=String.fromCharCode(r);return n}var o,i=null;if(-1!=(o=e.lastIndexOf(";"))){if(i=e.substring(o+1),!/^([co](\(.+\))?)?[at]?$/.test(i))throw r("Invalid format modifier in picture string: "+i,"FODF1310");i=i.charAt(0),e=e.substring(0,o)}if(""===e)throw r("In the picture string, the picture cannot be empty","FODF1310");var a=0>t?"-":"";if("o"==i)switch(e.toString()){case"a":case"A":case"i":case"I":break;case"Ww":return a+d(Math.abs(t));case"W":return a+d(Math.abs(t)).toUpperCase();case"w":return a+d(Math.abs(t)).toLowerCase();default:return h(t,e)+v(Math.abs(t))}switch(e.toString()){case"a":return s(t,n("a",26));case"A":return s(t,n("A",26));case"α":return s(t,n("α",25));case"Α":return s(t,n("Α",25));case"i":return u(t);case"I":return u(t).toUpperCase();case"Ww":return a+g(Math.abs(t));case"W":return a+g(Math.abs(t)).toUpperCase();case"w":return a+g(Math.abs(t)).toLowerCase();case"①":return c(t,"⓪"+n("①",20)+n("㉑",15)+n("㊱",15));case"⑴":return c(t,"0"+n("⑴",20));case"⒈":return 0==t?"🄀":c(t,"0"+n("⒈",20));case"❶":return c(t,"⓿"+n("❶",10)+n("⓫",10));case"➀":return 0==t?"🄋":c(t,"0"+n("➀",10));case"➊":return 0==t?"🄌":c(t,"0"+n("➊",10));case"⓵":return c(t,"0"+n("⓵",10));case"㈠":return c(t,"0"+n("㈠",10));case"㊀":return c(t,"0"+n("㊀",10));default:return h(t,e)}}function N(t,e,n){var r,o="";for(r=0;ra?o+=i:a=0,l=e.zeroDigit.charCodeAt(0),f=0,m=0,p=[],h=[],g=[],d=-1,v=-1,y=!1,S=!1,N=-1,x=0,b=c?s:t.length;for(o=0;b>o;o++)a=t.charCodeAt(o),a>=l&&l+10>a?(v>0&&n("digit follows $pc"),y?x++:(1>f&&0>d&&(d=o),f++,m++)):a==e.digit.charCodeAt(0)?(v>0&&n("digit follows $pc"),y&&n("$od follows $es"),f>0&&n("$od follows $md in $ip"),0>d&&(d=o,S=!0),m++):a==e.groupingSeparator.charCodeAt(0)?(0>d&&n("$gs before any digit"),g.length>0&&n("$gs follows $pc"),y&&n("$gs follows $es"),p.push(o)):a==e.percent.charCodeAt(0)||a==e.permille.charCodeAt(0)?c?n("$pp before $ds"):(0>d&&n("$pp before any digit"),v>0&&n("$pp follows $pc"),y&&n("$pp follows $es"),g.push(a),0>v&&(v=o),a==e.percent.charCodeAt(0)?u.percent=!0:u.permille=!0):!c&&d>=0&&a==e.exponentSeparator.charCodeAt(0)&&0>v?y?(g.push(a),x>0?0>v&&(v=o):(g.push(a),y=!1,N=-1,0>v&&(v=o-1))):(y=!0,N=o):d>=0&&c?n("$pc before $ds"):y&&0===x?(y=!1,N=-1,g.push(e.exponentSeparator.charCodeAt(0)),g.push(a),0>v&&(v=o-1)):d>=0?(g.push(a),0>v&&(v=o)):h.push(a);if(p.length>0){var T=c?s:y?N:v>0?v:t.length,w=p.map(function(t){return T-t-1});p=w.reverse()}if(0!==p.length)for(0===p[0]&&n("$gs at end of $ip"),i=0;i=l&&l+10>a?y&&0>v?x++:A>=0||v>=0?n("$md follows $od or $pc in $fp"):(E++,C++):a==e.digit.charCodeAt(0)?((v>=0||y)&&n("$od follows $pc or $es"),0>A&&(A=o),C++):a==e.groupingSeparator.charCodeAt(0)?((v>=0||y)&&n("$gs follows $pc or $es"),O.push(o-s+1)):a==e.decimalSeparator.charCodeAt(0)?n("more than one $ds"):a==e.percent.charCodeAt(0)||a==e.permille.charCodeAt(0)?((v>=0||y)&&n("$pp follows $pc or $es"),g.push(a),v=o,a==e.percent.charCodeAt(0)?u.percent=!0:u.permille=!0):a==e.exponentSeparator.charCodeAt(0)&&0>v?y?(g.push(a),x>0?0>v&&(v=o):(g.push(a),y=!1,N=-1,0>v&&(v=o-1))):(y=!0,N=o):y&&0===x?(y=!1,N=-1,g.push(e.exponentSeparator.charCodeAt(0)),g.push(a),0>v&&(v=o-1)):(g.push(a),0>v&&(v=o))}if(0>d&&0===C&&n("mantissa contains no digits"),0!==O.length)for(0===O[0]&&n("$gs at beginning of $fp"),i=0;i4&&8>=o+n)return F(new Date(r.getTime()-864e5),e);var i=5>o?1:0;return Math.floor((n+o-2)/7)+i}function I(t){return F(t,!0)}function M(t){return F(t,!1)}function P(t){return t.getUTCHours()<13?0===t.getUTCHours()?12:t.getUTCHours():t.getUTCHours()-12}function U(t){return t.getUTCHours()<12?"Am":"Pm"}function R(t,e,n,o,i,a,u){if(""===t)return"Z"==n?"J":"";var s="z"==e?"GMT":"";if("t"==o&&"+00:00"==t&&"Z"!=n&&"N"!=n)return"Z";if(""===n)return s+t;var c,l=t.match(/^([+\-])([0-9])([0-9]):([0-9]{2})$/);if("Z"==n||"N"==n){if("Z"==n){var p=parseInt(l[1]+l[2]+l[3],10);c=-12>p||p>12||"00"!=l[4]?t:"YXWVUTSRQPONZABCDEFGHIKLM".charAt(p+12)}else if("N"==n)throw r("Timezone names not implemented","SXJS0002")}else{u&&!/[0-9]+/.test(n)&&(n="00:00");var h=function(t,e){return"0"==e[2]&&1==t.length?e[3]:e[2]+e[3]},g=function(t,e){var n="0"!=e[2]||1!=t.length&&3!=t.length?e[2]+e[3]:e[3],r=t.length>2?e[4]:"00"!=e[4]?":"+e[4]:"";return n+r},d=0;if(!u){var v=f(n);n=v.format,d=v.diff}var y;/[^0-9A-Za-z]/.test(n)?(y=n.match(/^([0-9]+)([^0-9A-Za-z])([0-9]+)$/),c=l[1]+h(y[1],l)+y[2]+l[4]):(y=n.match(/^[0-9]+$/),c=l[1]+g(y[0],l)),u||(c=m(c,d))}return s+c}function B(t,e,n,o,i,a){function u(t,e,n,r,o){var i,a=0;if(!o){var u=f(e);e=u.format,a=u.diff}for(var s=t.toString();s.length<3;)s="0"+s;var c=C.stringToCodepoints(s),l=parseInt(C.codepointsToString(c.reverse()),10);if(!n&&!r&&/^[0-9]$/.test(e))for(;c.length>e.length;)e+="#";if(n&&"*"!=n){for(var p=/^([0-9]*)(#*)$/.exec(e),h=p[1]?p[1]:"",g=p[2]?p[2]:"";n>h.length;)h+="0",g=g.slice(0,-1);e=h+g}if(r)for("*"==r&&(r=c.length);e.lengthe.length;)i=i.slice(0,-1);return n&&"*"!=n||0!==parseInt(i,10)||(i="0"),o||(i=m(i,a)),i}var s,c=n.match(/^([YMDdWwFHhmsfZzPCE])(.*)$/);if(null===c)throw r("Date/time component ["+n+"] not recognised","FOFD1340");var l=c[1],p=c[2]||"";if("date"==t&&/[HhPmsf]/.test(l)||"time"==t&&/[YMDdFWwCE]/.test(l))throw r("Date/time component ["+n+"] not available in "+t,"FOFD1350");var h,g,d;if(-1!=(h=p.lastIndexOf(","))){var v=p.substring(h+1).split("-");if(p=p.substring(0,h),g=v[0],d=v[1]||"*","*"!=g&&1>g||"*"!=d&&1>d||"*"!=g&&"*"!=d&&g>d)throw r("Invalid width modifier in date/time formatting picture","FOFD1340")}var S,N=null;p.length>1&&/[atco]/.test(p.charAt(p.length-1))?(S=p.substring(0,p.length-1),N=p.charAt(p.length-1)):S=p;var x=!0;if(/^[\x01-\x7f]*$/.test(S));else{if(S.length!=C.stringToCodepoints(S).length)throw r("Cannot handle non-BMP characters in date/time formatting picture","SXJS0002");x=!1}if(/[Zz]/.test(l)){var b="Z"==e.tzOffsetToString()?"+00:00":e.tzOffsetToString();return R(b,l,S,N,g,d,x)}var T=e.proxy(),E=G[l]?T[G[l]]():q[l]?q[l](T):null;if(null===E)throw r("Component specifier not implemented: ["+l+"]","SXJS0002");if("M"==l?E++:"F"==l&&0===E&&(E=7),""===S&&(S=/[FPCE]/.test(l)?"n":/[ms]/.test(l)?"01":"1"),"f"==l)return u(E,S,g,d,x);if(/[nN]/.test(S))s=w(E,l),"n"==S?s=s.toLowerCase():"N"==S&&(s=s.toUpperCase()),d&&"*"!=d&&s.length>d&&(s=s.substring(0,d));else{var O=/;/.test(S)?S+";":S;if(N&&(O+=(";"==O.charAt(O.length-1)?"":";")+N),s=y(E,O),"Y"==l&&/[^iIwWnN]/.test(S.charAt(S.length-1))&&(!g&&2==S.length||2==d))for(;s.length>2;)s=s.substring(1);if(g){var A="*"==g?0:parseInt(g,10);if(A>0&&s.lengtht?!0:0===t?0>1/t:!1,a={decimalSeparator:x(n,"decimal-separator"),groupingSeparator:x(n,"grouping-separator"),digit:x(n,"digit"),minusSign:x(n,"minus-sign"),percent:x(n,"percent"),permille:x(n,"per-mille"),zeroDigit:x(n,"zero-digit"),exponentSeparator:x(n,"exponent-separator"),patternSeparator:x(n,"pattern-separator"),infinity:$.getAttribute(n,"infinity",z.infinity),nan:$.getAttribute(n,"NaN",z.NaN)};if(isNaN(t))return a.nan;var u=e.includes(a.patternSeparator)?e.split(a.patternSeparator):[e];if(u.length>2)throw r("Invalid picture: multiple pattern separators","FODF1310");var s,c,l=u.length>1&&0>t?u[1]:u[0],f=b(l,a);if(isFinite(t)){var m;if(f.expPartSize>0)m=J(t,f);else{var h=Math.abs(t);f.percent&&(h=Math.abs(100*t)),f.permille&&(h=Math.abs(1e3*t)),m=h+""=="Infinity"?h+"":999999>h?h.toString():Big(h).toFixed();var g=m.indexOf(".");0>g&&(g=m.length,f.minimumFractionalPartSize>0&&(m+=".")),f.maximumFractionalPartSize>=0&&"."!=m.substring(g)&&g!=m.length&&(f.maximumFractionalPartSize>0?(m=Big(m).round(f.maximumFractionalPartSize,1).toString(),m.indexOf(".")<0&&(m+=".0")):m=Big(m).round(0,1).toString());var d=m.length-1-g;if(f.minimumFractionalPartSize>0)for(;d0&&0===f.minimumIntegerPartSize&&"0"==m.substring(0,g)&&(m=m.substring(g)),"0"==m&&0===f.minimumIntegerPartSize&&0===f.minimumFractionalPartSize&&f.maximumFractionalPartSize>0&&(m=".0")}var v,y="";for(v=0;10>v;v++)y+=String.fromCharCode(a.zeroDigit.charCodeAt(0)+v);if(y+=a.decimalSeparator,s=N(m,"0123456789.",y),f.intGpPos.length>0||f.fracGpPos.length>0){var S=s.indexOf(a.decimalSeparator);0>S&&(S=s.length);var T=s.substring(0,S);if(c=s.substring(S),f.intGpPos.length>0){for(var w=!0,E=1;Ef.intGpPos[0]&&(w=!1),T=w?k.addGroupingSeparators(T,a.groupingSeparator,f.intGpPos[0]):p(T,f.intGpPos,null,a.groupingSeparator)}f.fracGpPos.length>0&&(c=p(c,f.fracGpPos,null,a.groupingSeparator,!0)),s=T+c}}else s=a.infinity;return f.prefix.length>0&&(s=C.codepointsToString(f.prefix)+s),f.suffix.length>0&&(s+=C.codepointsToString(f.suffix)),i&&1==u.length&&(s=a.minusSign+s),s}function J(t,e){var n=e.minimumIntegerPartSize,o=e.minimumFractionalPartSize,i=e.maximumFractionalPartSize,a=e.exponentSeparator,u=1==n&&e.picIntPartContainsOptDigit;u&&(n=0,0===o&&(o=1,0===i&&(i=1)));var s=e.expPartSize,c=Big(t),f=c.c,m=0!==n?n+i:i,p=c.e;f.length>m&&(c=Big(c.toPrecision(m)));var h=p!=c.e;h&&(n+=1),n>1?c=c.div(Big(10).pow(n-1)):0===n&&(c=c.times(Big(10)));var g=0!==n?n+o:o;for(f=c.c;f.length0))throw r("Empty mantissa","SXJS0004");if(0===n&&e.picIntPartContainsOptDigit)d+="0";else for(var v=0;n>v;v++)d+=f[v];if(i>0&&f.length>n&&(!u||!h)){var y=f.join("").slice(n);d+="."+y}return d+a+l(c.e,s)}var L=C,$=T,z={"decimal-separator":"46","grouping-separator":"44",digit:"35","minus-sign":"45",percent:"37","per-mille":"8240","zero-digit":"48","exponent-separator":"101","pattern-separator":"59",infinity:"Infinity",NaN:"NaN"},G={Y:"getUTCFullYear",M:"getUTCMonth",D:"getUTCDate",F:"getUTCDay",H:"getUTCHours",m:"getUTCMinutes",s:"getUTCSeconds",f:"getUTCMilliseconds"},q={d:O,W:I,w:M,h:P,P:U,E:function(){return"AD"}};return{xslNumber:a,nodeNum:t,numSeqFmt:n,formatInteger:y,addGroupingSeparators:function(t,e,n){var r,o="";for(r=0;r++e&&o(t,i,r.RM),a[0]?n?i=e:(a=t.c,i=t.e+i+1):++i;a.length=e||i<=r.E_NEG)?(t.s<0&&a[0]?"-":"")+(a.length>1?a[0]+"."+a.join("").slice(1):a[0])+(0>i?"e":"e+")+i:t.toString()}function r(t,e){var n,r,o;for(0===e&&0>1/e?e="-0":h.test(e+="")||i(NaN),t.s="-"==e.charAt(0)?(e=e.slice(1),-1):1,(n=e.indexOf("."))>-1&&(e=e.replace(".","")),(r=e.search(/e/i))>0?(0>n&&(n=r),n+=+e.slice(r+1),e=e.substring(0,r)):0>n&&(n=e.length),r=0;"0"==e.charAt(r);r++);if(r==(o=e.length))t.c=[t.e=0];else{for(;"0"==e.charAt(--o););for(t.e=n-r-1,t.c=[],n=0;o>=r;t.c[n++]=+e.charAt(r++));}return t}function o(t,e,n,r){var o,a=t.c,u=t.e+e+1;if(1===n?r=a[u]>=5:2===n?r=a[u]>5||5==a[u]&&(r||0>u||a[u+1]!==o||1&a[u-1]):3===n?r=r||a[u]!==o||0>u:(r=!1,0!==n&&i("!Big.RM!")),1>u||!a[0])r?(t.e=-e,t.c=[1]):t.c=[t.e=0];else{if(a.length=u--,r)for(;++a[u]>9;)a[u]=0,u--||(++t.e,a.unshift(1));for(u=a.length;!a[--u];a.pop());}return t}function i(t){var e=new Error(t);throw e.name="BigError",e}var a,u=20,s=1,c=1e6,l=1e6,f=-7,m=21,p={},h=/^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i;p.abs=function(){var t=new this.constructor(this);return t.s=1,t},p.cmp=function(t){var e,n=this,r=n.c,o=(t=new n.constructor(t)).c,i=n.s,a=t.s,u=n.e,s=t.e;if(!r[0]||!o[0])return r[0]?i:o[0]?-a:0;if(i!=a)return i;if(e=0>i,u!=s)return u>s^e?1:-1;for(i=-1,a=(u=r.length)<(s=o.length)?u:s;++io[i]^e?1:-1;return u==s?0:u>s^e?1:-1},p.div=function(t){var e=this,n=e.constructor,r=e.c,a=(t=new n(t)).c,u=e.s==t.s?1:-1,s=n.DP;if((s!==~~s||0>s||s>c)&&i("!Big.DP!"),!r[0]||!a[0])return r[0]==a[0]&&i(NaN),a[0]||i(u/0),new n(0*u);var l,f,m,p,h,g,d=a.slice(),v=l=a.length,y=r.length,S=r.slice(0,l),N=S.length,x=t,b=x.c=[],T=0,w=s+(x.e=e.e-t.e)+1;for(x.s=u,u=0>w?0:w,d.unshift(0);N++m;m++){if(l!=(N=S.length))p=l>N?1:-1;else for(h=-1,p=0;++hS[h]?1:-1;break}if(!(0>p))break;for(f=N==l?a:d;N;){if(S[--N]w&&o(x,s,n.RM,S[0]!==g),x},p.eq=function(t){return!this.cmp(t)},p.gt=function(t){return this.cmp(t)>0},p.gte=function(t){return this.cmp(t)>-1},p.lt=function(t){return this.cmp(t)<0},p.lte=function(t){return this.cmp(t)<1},p.sub=p.minus=function(t){var e,n,r,o,i=this,a=i.constructor,u=i.s,s=(t=new a(t)).s;if(u!=s)return t.s=-s,i.plus(t);var c=i.c.slice(),l=i.e,f=t.c,m=t.e;if(!c[0]||!f[0])return f[0]?(t.s=-s,t):new a(c[0]?i:0);if(u=l-m){for((o=0>u)?(u=-u,r=c):(m=l,r=f),r.reverse(),s=u;s--;r.push(0));r.reverse()}else for(n=((o=c.lengths;s++)if(c[s]!=f[s]){o=c[s]0)for(;s--;c[e++]=0);for(s=e;n>u;){if(c[--n]0?(s=a,e=c):(o=-o,e=u),e.reverse();o--;e.push(0));e.reverse()}for(u.length-c.length<0&&(e=c,c=u,u=e),o=c.length,i=0;o;)i=(u[--o]=u[o]+c[o]+i)/10|0,u[o]%=10;for(i&&(u.unshift(i),++s),o=u.length;0===u[--o];u.pop());return t.c=u,t.e=s,t},p.pow=function(t){var e=this,n=new e.constructor(1),r=n,o=0>t;for((t!==~~t||-l>t||t>l)&&i("!pow!"),t=o?-t:t;1&t&&(r=r.times(e)),t>>=1,t;)e=e.times(e);return o?n.div(r):r},p.round=function(t,e){var n=this,r=n.constructor;return null==t?t=0:(t!==~~t||0>t||t>c)&&i("!round!"),o(n=new r(n),t,null==e?r.RM:e),n},p.sqrt=function(){var t,e,n,r=this,a=r.constructor,u=r.c,s=r.s,c=r.e,l=new a("0.5");if(!u[0])return new a(r);0>s&&i(NaN),s=Math.sqrt(r.toString()),0===s||s===1/0?(t=u.join(""),t.length+c&1||(t+="0"),e=new a(Math.sqrt(t).toString()),e.e=((c+1)/2|0)-(0>c||1&c)):e=new a(s.toString()),s=e.e+(a.DP+=4);do n=e,e=l.times(n.plus(r.div(n)));while(n.c.slice(0,s).join("")!==e.c.slice(0,s).join(""));return o(e,a.DP-=4,a.RM),e},p.mul=p.times=function(t){var e,n=this,r=n.constructor,o=n.c,i=(t=new r(t)).c,a=o.length,u=i.length,s=n.e,c=t.e;if(t.s=n.s==t.s?1:-1,!o[0]||!i[0])return new r(0*t.s);for(t.e=s+c,u>a&&(e=o,o=i,i=e,c=a,a=u,u=c),e=new Array(c=a+u);c--;e[c]=0);for(s=u;s--;){for(u=0,c=a+s;c>s;)u=e[c]+i[s]*o[c-s-1]+u,e[c--]=u%10,u=u/10|0;e[c]=(e[c]+u)%10}for(u&&++t.e,e[0]||e.shift(),s=e.length;!e[--s];e.pop());return t.c=e,t},p.toString=p.valueOf=p.toJSON=function(){var t=this,e=t.constructor,n=t.e,r=t.c.join(""),o=r.length;if(n<=e.E_NEG||n>=e.E_POS)r=r.charAt(0)+(o>1?"."+r.slice(1):"")+(0>n?"e":"e+")+n;else if(0>n){for(;++n;r="0"+r);r="0."+r}else if(n>0)if(++n>o)for(n-=o;n--;r+="0");else o>n&&(r=r.slice(0,n)+"."+r.slice(n));else o>1&&(r=r.charAt(0)+"."+r.slice(1));return t.s<0&&t.c[0]?"-"+r:r},p.toExponential=function(t){return null==t?t=this.c.length-1:(t!==~~t||0>t||t>c)&&i("!toExp!"),n(this,t,1)},p.toFixed=function(t){var e,r=this,o=r.constructor,a=o.E_NEG,u=o.E_POS;return o.E_NEG=-(o.E_POS=1/0),null==t?e=r.toString():t===~~t&&t>=0&&c>=t&&(e=n(r,r.e+t),r.s<0&&r.c[0]&&e.indexOf("-")<0&&(e="-"+e)),o.E_NEG=a,o.E_POS=u,e||i("!toFix!"),e},p.toPrecision=function(t){return null==t?this.toString():((t!==~~t||1>t||t>c)&&i("!toPre!"),n(this,t-1,2))},a=e(),"function"==typeof define&&define.amd?define(function(){return a}):"undefined"!=typeof module&&module.exports?module.exports=a:t.Big=a}(this);var P,U=function(){"use strict";function t(t,e,n,o,i){var a=S.string.fromString(e);if(t&&t.containsKey(a)){var u=t.get(a);if("function"==n)throw r("Option "+a+" must be a function","XPTY0004");if(1==u.length&&S[n].matches(u[0])){if(i&&i.indexOf(u[0].value)<0)throw r("Invalid value "+a+"="+u[0],"FOJS0005");return u[0].value}throw r("Invalid option: "+e+": must be "+n,"XPTY0004")}return o}function e(t,e,n){function o(t){throw r(t,"FOJS0001")}function i(){return g=a()}function a(){var e,n;for(g="";;){if(h>=t.length)return["eof"];if(n=t.charAt(h++),!/[ \n\r\t]/.test(n))break}switch(n){case"[":case"{":case"]":case"}":case":":case",":return[n];case'"':for(var r=!1;;){if(e=t.charAt(h++),'"'==e&&!r)return["string",g];g+=e,r="\\"==e&&!r,h>=t.length&&o("Unclosed quotes in string literal")}return["string",g];case"-":case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(g+=n;h="a"&&"z">=e))break;if(g+=e,++h>=t.length)break}if(/^(true|false|null)$/.test(g))return[g];o("Unknown constant "+g);break;default:return o("Unexpected character '"+n+"' ("+C.stringToCodepoints(n)+") at position "+h),-1}}function u(t){return/^-?(0|[1-9][0-9]*)(\.[0-9]+)?([eE][+-]?[0-9]+)?$/.test(t)?t:o("Invalid JSON number "+t)}function s(t){g[0]!==t&&o("Expected "+t+", found "+g[0])}function c(t){return g[0]===t?(i(),!0):!1}function l(t){return g[0]===t?(i(),!0):","===g[0]?(i(),!1):void o("Expected ',' or '"+t+"', found '"+g[0]+"'")}function f(){switch(g[0]){case"[":i(),m();break;case"{":i(),p();break;case"string":n.emitString(g[1]),i();break;case"number":n.emitNumber(g[1]),i();break;case"true":case"false":n.emitBoolean(g[0]),i();break;case"null":n.emitNull(),i();break;default:o("Unexpected token "+g[0])}}function m(){if(n.startArray(),!c("]"))do f();while(!l("]"));n.endArray()}function p(){if(n.startMap(),!c("}"))do s("string"),n.emitKey(g[1]),i(),s(":"),i(),f();while(!l("}"));n.endMap()}var h=0,g=i();return f(),s("eof"),n.result()}function n(t){try{return JSON.parse('"'+t+'"')}catch(e){throw r(e.toString(),"FOJS0001")}}function o(t){return t.replace(l,"�").replace(/[\uD800-\uDFFF]+/g,function(t){for(var e="",n=0;nr||n==t.length-1&&"�">r?"�":r}return e})}function i(t){for(var e=t.charCodeAt(0).toString(16);e.length<4;)e="0"+e;return"\\u"+e.toUpperCase()}function a(e){this._valStack=[],this._keyStack=[],t(e,"liberal","boolean",!1),this._escape=t(e,"escape","boolean",!1),this._duplicates=t(e,"duplicates","string","use-first",["reject","use-first","use-last"])}function u(e,n){this._valStack=[],this._keyStack=[],this._mapStack=[],this._context=n,t(e,"liberal","boolean",!1),t(e,"validate","boolean",!1),t(e,"fallback","function"),this._escape=t(e,"escape","boolean",!1),this._duplicates=t(e,"duplicates","string","use-first",["reject","use-first","retain"])}function s(e,o){function a(t){throw new r("Invalid input to xml-to-json(): "+t,"FOJS0006")}function u(t){0!==p.getChildElements(t).length&&a("node "+t.tagName+" must have no element children")}function s(t){E.child(t).filter(function(t){return t.nodeType==p.TEXT_NODE&&t.nodeValue&&""!==_.trim(t.nodeValue)}).next()&&a("node "+t.tagName+" must have no text content")}function l(t){try{return S["boolean"].fromString(t).toBoolean()}catch(e){a("invalid boolean: '"+t+"'")}}function f(t){try{JSON.parse('"'+t+'"')}catch(e){throw r("invalid escape sequence: "+e.toString(),"FOJS0007")}}function m(t){if(t.nodeType==p.DOCUMENT_NODE||t.nodeType==p.DOCUMENT_FRAGMENT_NODE){var e=p.getChildElements(t);return 1!=e.length&&a("document node has "+e.length+" element children"),m(e[0])}if(t.nodeType==p.ELEMENT_NODE){var r=!1;if(t.namespaceURI==c)switch(E.attribute(t).forEachItem(function(e){if(e.name.indexOf(":")<0||e.namespaceURI==c)if("key"==e.name||"escaped-key"==e.name)if("escaped-key"==e.name){p.xdmParentNode(t)&&"map"==p.xdmParentNode(t).localName||a("@escaped-key is allowed only on children of map");var n=l(e.value);n&&f(t.getAttribute("key"))}else p.xdmParentNode(t)&&"map"===p.xdmParentNode(t).localName||a("@key is allowed only on children of map");else"escaped"==e.name?("string"!=t.localName&&a("@escaped is allowed only on string"),r=l(e.value)):a("invalid attribute "+e.name)}),!t.hasAttribute("escaped-key")||p.xdmParentNode&&"map"!=p.xdmParentNode.localName||a("escaped-key is allowed only on children of map"),t.localName){case"null":return E.child(t).filter(function(t){return t.nodeType!=p.COMMENT_NODE&&t.nodeType!=p.PROCESSING_INSTRUCTION_NODE}).next()&&a("null element must have no content"),"null";case"string":u(t);var o=t.textContent;return r?(o=o.replace(/^"/g,'\\"').replace(/^[\b]/g,"\\b").replace(/^\f/g,"\\f").replace(/^\n/g,"\\n").replace(/^\r/g,"\\r").replace(/^\t/g,"\\t").replace(/^\//g,"\\/").replace(/([^\\])"/g,'$1\\"').replace(/([^\\])[\b]/g,"$1\\b").replace(/([^\\])\f/g,"$1\\f").replace(/([^\\])\n/g,"$1\\n").replace(/([^\\])\r/g,"$1\\r").replace(/([^\\])\t/g,"$1\\t").replace(/([^\\])\//g,"$1\\/").replace(/[\u0001-\u001F\u007F-\u009F]/g,i),f(o),'"'+o+'"'):JSON.stringify(o).replace(/\//g,"\\/");case"number":u(t);var h;try{h=S["double"].fromString(t.textContent)}catch(g){a("invalid number")}return isFinite(h.toNumber())||a("NaN and INF not allowed"),h.toString();case"boolean":return u(t),l(t.textContent),S["boolean"].fromString(t.textContent).toString();case"array":s(t);var d="[",v="";return p.getChildElements(t).forEach(function(t){d+=v+m(t),v=","}),d+"]";case"map":s(t);var y="{",N="",x={};return p.getChildElements(t).forEach(function(t){t.hasAttribute("key")||a("child element of map must have a key");var e=p.getAttribute(t,"key"),r=e,o=p.getAttribute(t,"escaped-key"),i=!1;o&&l(o)&&(i=!0,r=n(e)),x[r]&&a("duplicate key '"+e+"'"),x[r]=!0,y+=N+(i?'"'+e+'"':JSON.stringify(e).replace(/\//g,"\\/"))+":"+m(t),N=","}),y+"}";default:a("unknown local name "+t.localName)}else a("wrong namespace "+t.namespaceURI)}else p.isNode(t)||a("not a node"),Error.dumpStack&&Error.dumpStack(),a("wrong node kind "+t.nodeType)}var p=T;return t(o,"indent","boolean",!1),m(e)}var c=C.KNOWN_URI.fn,l=/[\x00-\x08\x0B\x0C\x0E-\x0F\x80-\x9F]/;return a.prototype={_valStack:[],_keyStack:[],_optionsMap:{},_escape:!1,_duplicates:"use-first",reEscape:function(t){return this._escape?JSON.stringify(t).replace(/^"|"$/g,"").replace(/\\"/g,'"').replace(/[\uD800-\uDFFF]/g,i):o(t)},peek:function(){return this._valStack[this._valStack.length-1]},writeItem:function(t){if(0===this._valStack.length)this._valStack.push(t);else if(this.peek()instanceof C.XdmArray)this.peek().value.push(t);else{var e=this.peek(),n=S.string.fromString(this._keyStack.pop());if(e.containsKey(n))switch(this._duplicates){ -case"reject":throw r("json-to-xml: duplicate key '"+n.toString()+"'","FOJS0003");case"use-first":return}e.inSituPut(n,t)}},emitNull:function(){this.writeItem([])},emitBoolean:function(t){this.writeItem([S["boolean"].fromString(t)])},emitNumber:function(t){this.writeItem([S["double"].fromNumber(parseFloat(t))])},emitString:function(t){this.writeItem([S.string.fromString(this.reEscape(n(t)))])},emitKey:function(t){this._keyStack.push(this.reEscape(n(t)))},startArray:function(){this._valStack.push(new C.XdmArray([]))},endArray:function(){this.writeItem([this._valStack.pop()])},startMap:function(){this._valStack.push(new w)},endMap:function(){this.writeItem([this._valStack.pop()])},result:function(){return void 0!==this.peek()[0]?this.peek()[0]:null}},u.prototype={_valStack:[],_keyStack:[{}],_mapStack:[],_context:null,_optionsMap:{},_escape:!1,_duplicates:"use-first",reEscape:function(t){return this._escape?JSON.stringify(t).replace(/^"|"$/g,"").replace(/\\"/g,'"').replace(/[\uD800-\uDFFF]/g,i):o(t)},peek:function(){return this._valStack[this._valStack.length-1]},writeItem:function(t){if(0===this._valStack.length)t.setAttribute("xmlns",c),this._valStack.push(t);else{var e=this.peek();if("map"==e.tagName){var n=this._keyStack.pop(),o=this._mapStack[this._mapStack.length-1];if(n in o)switch(this._duplicates){case"reject":throw r("parse-json: duplicate key '"+n.toString()+"'","FOJS0003");case"use-first":return}o[n]=t,t.setAttribute("key",n),this._escape&&/\\/.test(n.toString())&&t.setAttribute("escaped-key","true")}e.appendChild(t)}},emitNull:function(){var t=this._context.resultDocument.createElementNS(c,"null");this.writeItem(t)},emitBoolean:function(t){var e=this._context.resultDocument.createElementNS(c,"boolean"),n=this._context.resultDocument.createTextNode(t.toString());e.appendChild(n),this.writeItem(e)},emitNumber:function(t){var e=this._context.resultDocument.createElementNS(c,"number"),n=this._context.resultDocument.createTextNode(t.toString());e.appendChild(n),this.writeItem(e)},emitString:function(t){var e=this._context.resultDocument.createElementNS(c,"string");if(""!==t){var r=this.reEscape(n(t)),o=this._context.resultDocument.createTextNode(r);this._escape&&/\\/.test(r)&&e.setAttribute("escaped","true"),e.appendChild(o)}this.writeItem(e)},emitKey:function(t){this._keyStack.push(this.reEscape(n(t)))},startArray:function(){var t=this._context.resultDocument.createElementNS(c,"array");this._valStack.push(t)},endArray:function(){this.writeItem(this._valStack.pop())},startMap:function(){var t=this._context.resultDocument.createElementNS(c,"map");this._valStack.push(t),this._mapStack.push({})},endMap:function(){this._mapStack.pop(),this.writeItem(this._valStack.pop())},result:function(){return this.peek()}},{parseToMap:function(t,n){return e(t,n,new a(n))},parseToXml:function(t,n,r){return e(t,n,new u(n,r))},xmlToJson:s}}(),R=function(){"use strict";function t(t,e,n){function o(t){for(var e=[],n=t.length-1;n>=0;n--)e.push({rule:t[n],action:T.getChildElements(t[n])[1],pattern:D(T.getChildElements(t[n])[0])});return e}function i(t){t._saxonAccumulators||(t._saxonAccumulators={}),t._saxonAccumulators[e]={};var n=a(f,t);n&&(p=u(n,t)),t._saxonAccumulators[e].pre=p,E.child(t).forEachItem(i),n=a(m,t),n&&(p=u(n,t)),t._saxonAccumulators[e].post=p}function a(t,e){for(var n=0,r=t.length;r>n;n++)if(t[n].pattern(e))return t[n];return null}function u(t,e){var r=n.newContext(!0);return r.focus=A.Solo(e),r.localVars=[p],C.evaluate(t.action,r).expand()}var s=n.fixed.accumulators[e];if(!s)throw r("Unknown accumulator "+e,"XTDE3340");var c=T.getChildElements(s,"pre")[0],l=T.getChildElements(s,"post")[0],f=o(T.getChildElements(c,"accRule")),m=o(T.getChildElements(l,"accRule")),p=C.evaluate(C.argRole(s,"init"),n).expand();i(t)}function e(n,o,i,a){if(o.nodeType==T.ATTRIBUTE_NODE||o.nodeType==T.NAMESPACE_NODE)throw r("Accumulators are not available on attribute or namespace nodes","XTTE3360");return o._saxonOriginal?e(n,o._saxonOriginal,i,a):(o._saxonAccumulators&&o._saxonAccumulators.hasOwnProperty(n)||t(T.ownerDocument(o),n,i),o._saxonAccumulators[n][a])}return{accumBefore:function(t,n,r){return e(t,n,r,"pre")},accumAfter:function(t,n,r){return e(t,n,r,"post")}}}(),B=function(){"use strict";function t(t,n,o){var i=e(n),a=T.getChildElements(n,"sortKey"),u=N.getConverters(a,o),s=[],c=o.newContext(!1);c.focus=A.Tracker(t);for(var l;null!=(l=c.focus.next());){var f=a.map(function(t,e){var n=C.evalChild1(t,c),o=n.next();if(o&&n.next())throw r("Multiple values in merge key","XTTE1020");return u[e](o)});s.push({item:l,keys:f,ms:i})}return s}function e(t){return t.hasAttribute("name")?t.getAttribute("name"):"#unnamed"}function n(t,e,n){for(var r=[],o=0,i=0;;){if(o>=t.length){for(;i=e.length){for(;o=a&&r.push(t[o++]),a>=0&&r.push(e[i++])}return r}function o(t,e){var n=T.getChildElements(t,"sortKey");return n.map(function(t){return N.sortKeyProps(t,e)})}function i(t){return function(e,n){for(var r=0;r",C:[{N:"first",C:[{N:"sequence",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}version"},{N:"slash",C:[{N:"axis",name:"parent",nodeTest:"N u[NE,ND]"},{N:"axis",name:"attribute",nodeTest:"NA nQ{}version"}]}]}]}]},{N:"dec",val:"3"}]}]},{N:"fn",ns:"doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions t=MyTypes xs=~ xsl=~ xml=~",line:"647",name:"not",C:[{N:"filter",flags:"b",C:[{N:"gVarRef",name:"Q{}top-level-declarations", +bSlot:"0"},{N:"vc",op:"eq",comp:"CCC",C:[{N:"fn",name:"local-name",C:[{N:"dot",type:"1NE"}]},{N:"fn",name:"local-name",C:[{N:"treat",as:"N",diag:"0|0||fn:local-name",C:[{N:"varRef",name:"Q{http://www.w3.org/2005/xpath-functions}current",slot:"0"}]}]}]}]}]}]}]},{N:"message",role:"action",ns:"doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions t=MyTypes xs=~ xsl=~ xml=~",line:"648",C:[{N:"valueOf",role:"select",C:[{N:"fn",name:"concat",C:[{N:"str",val:"IGNORING "}, +{N:"fn",name:"name",C:[{N:"dot",type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}*"}]}]}]},{N:"str",role:"terminate",val:"no"},{N:"str",role:"error",val:"Q{http://www.w3.org/2005/xqt-errors}XTMM9000"}]}]},{N:"templateRule",prec:"0",prio:"3.5",seq:"359",rank:"8",minImp:"0",slots:"2",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}*",flags:"s",line:"132",module:"attributes.xsl",C:[{N:"p.withPredicate",role:"match",C:[{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}*"},{N:"axis", +ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"132",name:"attribute",nodeTest:"NA nQ{}extension-element-prefixes"}]},{N:"sequence",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"133",C:[{N:"param",name:"Q{}attr",slot:"0",as:"*NA",C:[{N:"empty",role:"select"}, +{N:"treat",role:"conversion",as:"NA",diag:"8|0|XTTE0590|attr",C:[{N:"supplied",slot:"0"}]}]},{N:"param",line:"134",name:"Q{}extension-element-prefixes",slot:"1",flags:"t",as:"*AS",C:[{N:"empty",role:"select"},{N:"treat",role:"conversion",as:"AS",diag:"8|0|XTTE0590|extension-element-prefixes",C:[{N:"cvUntyped",to:"AS",diag:"8|0|XTTE0590|extension-element-prefixes",C:[{N:"data",diag:"8|0|XTTE0590|extension-element-prefixes",C:[{N:"supplied",slot:"1"}]}]}]}]},{N:"nextMatch",line:"135",flags:"t",C:[{N:"withParam", +name:"Q{}attr",as:"*NA",C:[{N:"varRef",line:"138",name:"Q{}attr",slot:"0"}]},{N:"withParam",name:"Q{}extension-element-prefixes",flags:"t",as:"*AS",C:[{N:"sequence",line:"137",C:[{N:"varRef",name:"Q{}extension-element-prefixes",slot:"1"},{N:"fn",name:"tokenize",C:[{N:"cvUntyped",to:"AS",C:[{N:"attVal",name:"Q{}extension-element-prefixes",chk:"0"}]}]}]}]}]}]}]},{N:"templateRule",prec:"0",prio:"3.2",seq:"20",rank:"7",minImp:"0",slots:"7",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}*",flags:"s", +line:"960",module:"static.xsl",C:[{N:"p.withPredicate",role:"match",C:[{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}*"},{N:"sequence",ns:"doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions saxon=~ t=MyTypes xs=~ xsl=~ xml=~",line:"960",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}use-when"},{N:"axis",name:"attribute",nodeTest:"NA nQ{}_use-when"}]}]},{N:"sequence",role:"action",ns:"doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions saxon=~ t=MyTypes xs=~ xsl=~ xml=~", +line:"961",C:[{N:"param",name:"Q{}static-vars",slot:"0",flags:"t",as:"1FM",C:[{N:"map",role:"select",size:"0"},{N:"treat",role:"conversion",as:"FM",diag:"8|0|XTTE0590|static-vars",C:[{N:"check",card:"1",diag:"8|0|XTTE0590|static-vars",C:[{N:"supplied",slot:"0"}]}]}]},{N:"param",line:"962",name:"Q{}xpath-default-namespace",slot:"1",flags:"t",as:"?NA",C:[{N:"empty",role:"select"},{N:"treat",role:"conversion",as:"NA",diag:"8|0|XTTE0590|xpath-default-namespace",C:[{N:"check",card:"?",diag:"8|0|XTTE0590|xpath-default-namespace", +C:[{N:"supplied",slot:"1"}]}]}]},{N:"let",line:"964","var":"Q{}use-expression",as:"1AS",slot:"2",eval:"16",C:[{N:"choose",line:"966",C:[{N:"fn",name:"exists",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}_use-when"}]},{N:"treat",line:"967",as:"AS",diag:"3|0|XTTE0570|use-expression",C:[{N:"check",card:"1",diag:"3|0|XTTE0570|use-expression",C:[{N:"cvUntyped",to:"AS",diag:"3|0|XTTE0570|use-expression",C:[{N:"data",diag:"3|0|XTTE0570|use-expression",C:[{N:"applyT",flags:"c",bSlot:"-1",C:[{N:"axis",role:"select", +name:"attribute",nodeTest:"NA nQ{}_use-when"}]}]}]}]}]},{N:"true"},{N:"check",line:"970",card:"1",diag:"3|0|XTTE0570|use-expression",C:[{N:"cvUntyped",to:"AS",diag:"3|0|XTTE0570|use-expression",C:[{N:"attVal",name:"Q{}use-when",chk:"0"}]}]}]},{N:"let",line:"974","var":"Q{}nsContext",as:"1NE c~untyped",slot:"3",eval:"9",C:[{N:"let",line:"975","var":"Q{}dot",as:"1",slot:"4",eval:"16",C:[{N:"dot",type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}*"},{N:"compElem",line:"976",C:[{N:"str",role:"name",val:"dummy"}, +{N:"fn",role:"namespace",name:"string",C:[{N:"convert",from:"AZ",to:"AS",C:[{N:"data",C:[{N:"varRef",name:"Q{}xpath-default-namespace",slot:"1"}]}]}]},{N:"forEach",role:"content",line:"977",C:[{N:"filter",flags:"b",C:[{N:"fn",name:"in-scope-prefixes",C:[{N:"dot",type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}*"}]},{N:"fn",name:"boolean",C:[{N:"dot",type:"1AS"}]}]},{N:"compAtt",line:"979",flags:"l",C:[{N:"fn",role:"name",name:"concat",C:[{N:"dot",type:"1AS"},{N:"str",val:":d"}]},{N:"fn",role:"namespace", +name:"string",C:[{N:"convert",from:"AU",to:"AS",C:[{N:"fn",name:"namespace-uri-for-prefix",C:[{N:"dot",type:"1AS"},{N:"varRef",name:"Q{}dot",slot:"4"}]}]}]},{N:"str",role:"select",val:""}]}]}]}]},{N:"let",line:"984","var":"Q{}use",as:"1AB",slot:"5",eval:"16",C:[{N:"treat",line:"987",as:"AB",diag:"3|0|XTTE0570|use",C:[{N:"check",card:"1",diag:"3|0|XTTE0570|use",C:[{N:"cvUntyped",to:"AB",diag:"3|0|XTTE0570|use",C:[{N:"data",diag:"3|0|XTTE0570|use",C:[{N:"try",flags:"r",C:[{N:"evaluate",dxns:"",C:[{N:"varRef", +role:"xpath",name:"Q{}use-expression",slot:"2"},{N:"empty",role:"cxt"},{N:"fn",role:"baseUri",name:"string",C:[{N:"convert",from:"AU",to:"AS",C:[{N:"fn",name:"base-uri",C:[{N:"dot",type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}*"}]}]}]},{N:"varRef",role:"nsCxt",name:"Q{}nsContext",slot:"3"},{N:"str",role:"sa",val:"no"},{N:"map",role:"options",size:"1",C:[{N:"str",val:"allow-xslt-functions"},{N:"true"}]},{N:"withParam",name:"Q{}compileSyntax",as:"1AB",C:[{N:"false"}]},{N:"withParam",name:"Q{}errorsAsMessages", +as:"1AB",C:[{N:"false"}]},{N:"withParam",name:"Q{}testHOF",as:"1AB",C:[{N:"false"}]},{N:"varRef",role:"wp",name:"Q{}static-vars",slot:"0"}]},{N:"catch",errors:"Q{http://www.w3.org/2005/xqt-errors}XPDY0050",C:[{N:"fn",line:"996",name:"error",C:[{N:"qName",pre:"",uri:"http://www.w3.org/2005/xqt-errors",loc:"XTDE0050Y"},{N:"treat",as:"AS",diag:"0|1||fn:error",C:[{N:"check",card:"1",diag:"0|1||fn:error",C:[{N:"cvUntyped",to:"AS",C:[{N:"data",diag:"0|1||fn:error",C:[{N:"ifCall",name:"Q{http://saxon.sf.net/}dynamic-error-info", +type:"*",C:[{N:"str",val:"description"}]}]}]}]}]}]}]},{N:"catch",errors:"Q{http://www.w3.org/2005/xqt-errors}XTDE3160",C:[{N:"let",line:"1001","var":"Q{}possibleCode",as:"1AS",slot:"6",eval:"8",C:[{N:"fn",name:"substring-before",C:[{N:"treat",as:"AS",diag:"0|0||fn:substring-before",C:[{N:"check",card:"?",diag:"0|0||fn:substring-before",C:[{N:"cvUntyped",to:"AS",C:[{N:"data",diag:"0|0||fn:substring-before",C:[{N:"ifCall",name:"Q{http://saxon.sf.net/}dynamic-error-info",type:"*",C:[{N:"str",val:"description"}]}]}]}]}]}, +{N:"str",val:" "}]},{N:"choose",line:"1008",C:[{N:"castable",flags:"a",as:"1AQ",C:[{N:"varRef",name:"Q{}possibleCode",slot:"6"}]},{N:"fn",name:"error",C:[{N:"cast",flags:"a",as:"1AQ",C:[{N:"varRef",name:"Q{}possibleCode",slot:"6"}]},{N:"fn",name:"substring-after",C:[{N:"treat",as:"AS",diag:"0|0||fn:substring-after",C:[{N:"check",card:"?",diag:"0|0||fn:substring-after",C:[{N:"cvUntyped",to:"AS",C:[{N:"data",diag:"0|0||fn:substring-after",C:[{N:"ifCall",name:"Q{http://saxon.sf.net/}dynamic-error-info", +type:"*",C:[{N:"str",val:"description"}]}]}]}]}]},{N:"str",val:" "}]}]},{N:"true"},{N:"fn",name:"error",C:[{N:"treat",as:"AQ",diag:"0|0||fn:error",C:[{N:"check",card:"?",diag:"0|0||fn:error",C:[{N:"cvUntyped",to:"AQ",C:[{N:"data",diag:"0|0||fn:error",C:[{N:"ifCall",name:"Q{http://saxon.sf.net/}dynamic-error-info",type:"*",C:[{N:"str",val:"code"}]}]}]}]}]},{N:"treat",as:"AS",diag:"0|1||fn:error",C:[{N:"check",card:"1",diag:"0|1||fn:error",C:[{N:"cvUntyped",to:"AS",C:[{N:"data",diag:"0|1||fn:error", +C:[{N:"ifCall",name:"Q{http://saxon.sf.net/}dynamic-error-info",type:"*",C:[{N:"str",val:"description"}]}]}]}]}]}]}]}]}]}]}]}]}]}]},{N:"choose",line:"1013",C:[{N:"varRef",name:"Q{}use",slot:"5"},{N:"sequence",line:"1014",C:[{N:"choose",C:[{N:"fn",name:"exists",C:[{N:"filter",flags:"b",C:[{N:"axis",name:"self",nodeTest:"NE nQ{http://www.w3.org/1999/XSL/Transform}*"},{N:"fn",name:"exists",C:[{N:"sequence",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{http://www.w3.org/1999/XSL/Transform}use-when"}, +{N:"axis",name:"attribute",nodeTest:"NA nQ{http://www.w3.org/1999/XSL/Transform}_use-when"}]}]}]}]},{N:"fn",line:"1015",name:"error",C:[{N:"qName",pre:"",uri:"http://www.w3.org/2005/xqt-errors",loc:"XTSE0090"},{N:"fn",name:"concat",C:[{N:"str",val:"@xsl:use-when cannot be used on XSL element "},{N:"fn",name:"name",C:[{N:"dot",type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}*"}]}]}]}]},{N:"nextMatch",line:"1017",flags:"t"}]},{N:"fn",line:"1019",name:"exists",C:[{N:"axis",name:"self",nodeTest:"NE u[NE u[NE nQ{http://www.w3.org/1999/XSL/Transform}stylesheet,NE nQ{http://www.w3.org/1999/XSL/Transform}transform],NE nQ{http://www.w3.org/1999/XSL/Transform}package]"}]}, +{N:"applyT",line:"1025",flags:"ct",bSlot:"-1",C:[{N:"copy",role:"select",line:"1022",flags:"cin",sit:"1NE nQ{http://www.w3.org/1999/XSL/Transform}*",C:[{N:"axis",role:"content",name:"attribute",nodeTest:"NA d[NA,NA u[NA nQ{}use-when,NA nQ{}_use-when]]"}]}]}]}]}]}]}]}]},{N:"templateRule",prec:"0",prio:"3.2",seq:"5",rank:"7",minImp:"0",slots:"1",matches:"NE",flags:"s",line:"652",module:"static.xsl",C:[{N:"p.withPredicate",role:"match",C:[{N:"p.nodeTest",test:"NE"},{N:"vc",ns:"doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions t=MyTypes xs=~ xsl=~ xml=~", +line:"652",op:"eq",onEmpty:"0",comp:"CCC",C:[{N:"cast",flags:"ae",as:"?AS",C:[{N:"attVal",name:"Q{http://www.w3.org/XML/1998/namespace}space",chk:"0"}]},{N:"str",val:"preserve"}]}]},{N:"sequence",role:"action",ns:"doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions t=MyTypes xs=~ xsl=~ xml=~",line:"653",C:[{N:"param",name:"Q{}attr",slot:"0",as:"*NA",C:[{N:"empty",role:"select"},{N:"treat",role:"conversion",as:"NA",diag:"8|0|XTTE0590|attr",C:[{N:"supplied", +slot:"0"}]}]},{N:"nextMatch",line:"654",flags:"t",C:[{N:"withParam",name:"Q{}attr",as:"*NA",C:[{N:"varRef",line:"656",name:"Q{}attr",slot:"0"}]},{N:"withParam",name:"Q{}xml-space-preserve",flags:"t",as:"1AB",C:[{N:"true"}]}]}]}]},{N:"templateRule",prec:"0",prio:"3.1",seq:"19",rank:"6",minImp:"0",slots:"0",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}*",flags:"s",line:"955",module:"static.xsl",C:[{N:"p.withPredicate",role:"match",C:[{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}*"}, +{N:"sequence",ns:"doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions t=MyTypes xs=~ xsl=~ xml=~",line:"955",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{http://www.w3.org/1999/XSL/Transform}use-when"},{N:"axis",name:"attribute",nodeTest:"NA nQ{http://www.w3.org/1999/XSL/Transform}_use-when"}]}]},{N:"fn",role:"action",ns:"doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions t=MyTypes xs=~ xsl=~ xml=~",line:"956", +name:"error",C:[{N:"qName",pre:"",uri:"http://www.w3.org/2005/xqt-errors",loc:"XTSE0090"},{N:"fn",name:"concat",C:[{N:"str",val:"@xsl:use-when cannot be used on XSL element "},{N:"fn",name:"name",C:[{N:"dot",type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}*"}]}]}]}]},{N:"templateRule",prec:"0",prio:"3.0",seq:"21",rank:"5",minImp:"0",slots:"6",matches:"NE",flags:"s",line:"1083",module:"static.xsl",C:[{N:"p.withPredicate",role:"match",C:[{N:"p.nodeTest",test:"NE"},{N:"sequence",ns:"doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions saxon=~ t=MyTypes xs=~ xsl=~ xml=~", +line:"1083",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{http://www.w3.org/1999/XSL/Transform}use-when"},{N:"axis",name:"attribute",nodeTest:"NA nQ{http://www.w3.org/1999/XSL/Transform}_use-when"}]}]},{N:"sequence",role:"action",ns:"doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions saxon=~ t=MyTypes xs=~ xsl=~ xml=~",line:"1084",C:[{N:"param",name:"Q{}static-vars",slot:"0",flags:"t",as:"1FM",C:[{N:"map",role:"select",size:"0"},{N:"treat",role:"conversion", +as:"FM",diag:"8|0|XTTE0590|static-vars",C:[{N:"check",card:"1",diag:"8|0|XTTE0590|static-vars",C:[{N:"supplied",slot:"0"}]}]}]},{N:"param",line:"1085",name:"Q{}xpath-default-namespace",slot:"1",flags:"t",as:"?NA",C:[{N:"empty",role:"select"},{N:"treat",role:"conversion",as:"NA",diag:"8|0|XTTE0590|xpath-default-namespace",C:[{N:"check",card:"?",diag:"8|0|XTTE0590|xpath-default-namespace",C:[{N:"supplied",slot:"1"}]}]}]},{N:"let",line:"1087","var":"Q{}use-expression",as:"1AS",slot:"2",eval:"16",C:[{N:"choose", +line:"1089",C:[{N:"fn",name:"exists",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{http://www.w3.org/1999/XSL/Transform}_use-when"}]},{N:"treat",line:"1090",as:"AS",diag:"3|0|XTTE0570|use-expression",C:[{N:"check",card:"1",diag:"3|0|XTTE0570|use-expression",C:[{N:"cvUntyped",to:"AS",diag:"3|0|XTTE0570|use-expression",C:[{N:"data",diag:"3|0|XTTE0570|use-expression",C:[{N:"applyT",flags:"c",bSlot:"-1",C:[{N:"axis",role:"select",name:"attribute",nodeTest:"NA nQ{http://www.w3.org/1999/XSL/Transform}_use-when"}]}]}]}]}]}, +{N:"true"},{N:"check",line:"1093",card:"1",diag:"3|0|XTTE0570|use-expression",C:[{N:"cvUntyped",to:"AS",diag:"3|0|XTTE0570|use-expression",C:[{N:"attVal",name:"Q{http://www.w3.org/1999/XSL/Transform}use-when",chk:"0"}]}]}]},{N:"let",line:"1097","var":"Q{}nsContext",as:"1NE c~untyped",slot:"3",eval:"9",C:[{N:"let",line:"1098","var":"Q{}dot",as:"1",slot:"4",eval:"16",C:[{N:"dot",type:"1NE"},{N:"compElem",line:"1099",C:[{N:"str",role:"name",val:"dummy"},{N:"fn",role:"namespace",name:"string",C:[{N:"convert", +from:"AZ",to:"AS",C:[{N:"data",C:[{N:"varRef",name:"Q{}xpath-default-namespace",slot:"1"}]}]}]},{N:"forEach",role:"content",line:"1100",C:[{N:"filter",flags:"b",C:[{N:"fn",name:"in-scope-prefixes",C:[{N:"dot",type:"1NE"}]},{N:"fn",name:"boolean",C:[{N:"dot",type:"1AS"}]}]},{N:"compAtt",line:"1101",flags:"l",C:[{N:"fn",role:"name",name:"concat",C:[{N:"dot",type:"1AS"},{N:"str",val:":d"}]},{N:"fn",role:"namespace",name:"string",C:[{N:"convert",from:"AU",to:"AS",C:[{N:"fn",name:"namespace-uri-for-prefix", +C:[{N:"dot",type:"1AS"},{N:"varRef",name:"Q{}dot",slot:"4"}]}]}]},{N:"str",role:"select",val:""}]}]}]}]},{N:"let",line:"1105","var":"Q{}use",as:"1AB",slot:"5",eval:"16",C:[{N:"treat",line:"1108",as:"AB",diag:"3|0|XTTE0570|use",C:[{N:"check",card:"1",diag:"3|0|XTTE0570|use",C:[{N:"cvUntyped",to:"AB",diag:"3|0|XTTE0570|use",C:[{N:"data",diag:"3|0|XTTE0570|use",C:[{N:"try",flags:"r",C:[{N:"evaluate",dxns:"",C:[{N:"varRef",role:"xpath",name:"Q{}use-expression",slot:"2"},{N:"empty",role:"cxt"},{N:"fn", +role:"baseUri",name:"string",C:[{N:"convert",from:"AU",to:"AS",C:[{N:"fn",name:"base-uri",C:[{N:"dot",type:"1NE"}]}]}]},{N:"varRef",role:"nsCxt",name:"Q{}nsContext",slot:"3"},{N:"str",role:"sa",val:"no"},{N:"map",role:"options",size:"1",C:[{N:"str",val:"allow-xslt-functions"},{N:"true"}]},{N:"varRef",role:"wp",name:"Q{}static-vars",slot:"0"}]},{N:"catch",errors:"Q{http://www.w3.org/2005/xqt-errors}XPDY0050",C:[{N:"fn",line:"1110",name:"error",C:[{N:"qName",pre:"",uri:"http://www.w3.org/2005/xqt-errors", +loc:"XTDE0050Z"},{N:"treat",as:"AS",diag:"0|1||fn:error",C:[{N:"check",card:"1",diag:"0|1||fn:error",C:[{N:"cvUntyped",to:"AS",C:[{N:"data",diag:"0|1||fn:error",C:[{N:"ifCall",name:"Q{http://saxon.sf.net/}dynamic-error-info",type:"*",C:[{N:"str",val:"description"}]}]}]}]}]}]}]},{N:"catch",errors:"Q{http://www.w3.org/2005/xqt-errors}XTDE3160",C:[{N:"fn",line:"1113",name:"error",C:[{N:"cast",flags:"a",as:"1AQ",C:[{N:"fn",name:"substring-before",C:[{N:"treat",as:"AS",diag:"0|0||fn:substring-before", +C:[{N:"check",card:"?",diag:"0|0||fn:substring-before",C:[{N:"cvUntyped",to:"AS",C:[{N:"data",diag:"0|0||fn:substring-before",C:[{N:"ifCall",name:"Q{http://saxon.sf.net/}dynamic-error-info",type:"*",C:[{N:"str",val:"description"}]}]}]}]}]},{N:"str",val:" "}]}]},{N:"fn",name:"substring-after",C:[{N:"treat",as:"AS",diag:"0|0||fn:substring-after",C:[{N:"check",card:"?",diag:"0|0||fn:substring-after",C:[{N:"cvUntyped",to:"AS",C:[{N:"data",diag:"0|0||fn:substring-after",C:[{N:"ifCall",name:"Q{http://saxon.sf.net/}dynamic-error-info", +type:"*",C:[{N:"str",val:"description"}]}]}]}]}]},{N:"str",val:" "}]}]}]}]}]}]}]}]},{N:"choose",line:"1117",C:[{N:"varRef",name:"Q{}use",slot:"5"},{N:"nextMatch",line:"1118",flags:"t"}]}]}]}]}]}]},{N:"templateRule",prec:"0",prio:"3.0",seq:"6",rank:"5",minImp:"0",slots:"1",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}*",flags:"s",line:"660",module:"static.xsl",C:[{N:"p.withPredicate",role:"match",C:[{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}*"},{N:"axis",ns:"doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions t=MyTypes xs=~ xsl=~ xml=~", +line:"660",name:"attribute",nodeTest:"NA nQ{}version"}]},{N:"let",role:"action",ns:"doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions t=MyTypes xs=~ xsl=~ xml=~",line:"661","var":"Q{}version",as:"1AD",slot:"0",eval:"9",C:[{N:"callT",line:"662",name:"Q{}XSLT-version",bSlot:"1"},{N:"nextMatch",line:"664",flags:"t",C:[{N:"withParam",name:"Q{}XSLT-version",flags:"t",as:"1AD",C:[{N:"varRef",line:"665",name:"Q{}version",slot:"0"}]}]}]}]},{N:"templateRule", +prec:"0",prio:"1.0",seq:"16",rank:"4",minImp:"0",slots:"6",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}*",flags:"s",line:"917",module:"static.xsl",C:[{N:"p.withPredicate",role:"match",C:[{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}*"},{N:"filter",ns:"doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions t=MyTypes xs=~ xsl=~ xml=~",line:"917",flags:"b",C:[{N:"axis",name:"parent",nodeTest:"N u[NE,ND]"},{N:"fn",name:"exists",C:[{N:"axis", +name:"self",nodeTest:"NE u[NE u[NE nQ{http://www.w3.org/1999/XSL/Transform}stylesheet,NE nQ{http://www.w3.org/1999/XSL/Transform}transform],NE nQ{http://www.w3.org/1999/XSL/Transform}package]"}]}]}]},{N:"sequence",role:"action",ns:"doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions t=MyTypes xs=~ xsl=~ xml=~",line:"918",C:[{N:"param",name:"Q{}xml-space-preserve",slot:"0",flags:"t",C:[{N:"false",role:"select"},{N:"supplied",role:"conversion",slot:"0"}]}, +{N:"param",line:"919",name:"Q{}import-precedence",slot:"1",flags:"t",C:[{N:"int",role:"select",val:"1"},{N:"supplied",role:"conversion",slot:"1"}]},{N:"param",line:"920",name:"Q{}moduleLabel",slot:"2",flags:"t",as:"1AS",C:[{N:"str",role:"select",val:"A"},{N:"treat",role:"conversion",as:"AS",diag:"8|0|XTTE0590|moduleLabel",C:[{N:"check",card:"1",diag:"8|0|XTTE0590|moduleLabel",C:[{N:"cvUntyped",to:"AS",diag:"8|0|XTTE0590|moduleLabel",C:[{N:"data",diag:"8|0|XTTE0590|moduleLabel",C:[{N:"supplied",slot:"2"}]}]}]}]}]}, +{N:"param",line:"921",name:"Q{}precLabel",slot:"3",flags:"t",as:"1AS",C:[{N:"str",role:"select",val:"A"},{N:"treat",role:"conversion",as:"AS",diag:"8|0|XTTE0590|precLabel",C:[{N:"check",card:"1",diag:"8|0|XTTE0590|precLabel",C:[{N:"cvUntyped",to:"AS",diag:"8|0|XTTE0590|precLabel",C:[{N:"data",diag:"8|0|XTTE0590|precLabel",C:[{N:"supplied",slot:"3"}]}]}]}]}]},{N:"param",line:"922",name:"Q{}stylesheet-properties",slot:"4",flags:"t",as:"*NA",C:[{N:"empty",role:"select"},{N:"treat",role:"conversion", +as:"NA",diag:"8|0|XTTE0590|stylesheet-properties",C:[{N:"supplied",slot:"4"}]}]},{N:"copy",line:"925",flags:"cin",sit:"1NE nQ{http://www.w3.org/1999/XSL/Transform}*",C:[{N:"sequence",role:"content",C:[{N:"att",name:"ex:ns",nsuri:"http://ns.saxonica.com/xslt/export",flags:"l",C:[{N:"let",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~","var":"Q{}context",as:"1NE",slot:"5",eval:"16",C:[{N:"dot", +ns:"doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions t=MyTypes xs=~ xsl=~ xml=~",type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}*"},{N:"choose",module:"namespaces.xsl",line:"47",C:[{N:"fn",name:"exists",C:[{N:"slash",simple:"1",C:[{N:"varRef",name:"Q{}context",slot:"5"},{N:"axis",name:"attribute",nodeTest:"NA nQ{http://ns.saxonica.com/xslt/export}ns"}]}]},{N:"check",line:"48",card:"1",diag:"5|0|XTTE0780|f:encode-namespaces#1",C:[{N:"cvUntyped",to:"AS", +diag:"5|0|XTTE0780|f:encode-namespaces#1",C:[{N:"data",diag:"5|0|XTTE0780|f:encode-namespaces#1",C:[{N:"slash",simple:"1",C:[{N:"varRef",name:"Q{}context",slot:"5"},{N:"axis",name:"attribute",nodeTest:"NA nQ{http://ns.saxonica.com/xslt/export}ns"}]}]}]}]},{N:"true"},{N:"fn",line:"58",name:"string-join",C:[{N:"forEach",C:[{N:"slash",simple:"1",C:[{N:"varRef",name:"Q{}context",slot:"5"},{N:"axis",name:"namespace",nodeTest:"NN"}]},{N:"fn",name:"concat",C:[{N:"fn",name:"name",C:[{N:"dot",type:"1NN"}]}, +{N:"str",val:"="},{N:"choose",C:[{N:"vc",op:"eq",onEmpty:"0",comp:"CCC",C:[{N:"ifCall",name:"Q{http://www.w3.org/2005/xpath-functions/map}get",type:"*",C:[{N:"gVarRef",name:"Q{}known-namespaces",bSlot:"2"},{N:"fn",name:"name",C:[{N:"dot",type:"1NN"}]}]},{N:"data",diag:"1|1||eq",C:[{N:"dot",type:"1NN"}]}]},{N:"str",val:"~"},{N:"true"},{N:"data",diag:"0|2||fn:concat",C:[{N:"dot",type:"1NN"}]}]}]}]},{N:"str",val:" "}]}]}]}]},{N:"att",line:"927",name:"ex:baseUri",nsuri:"http://ns.saxonica.com/xslt/export", +flags:"l",C:[{N:"convert",from:"AU",to:"AS",C:[{N:"fn",name:"base-uri",C:[{N:"dot",type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}*"}]}]}]},{N:"att",line:"928",name:"ex:precLabel",nsuri:"http://ns.saxonica.com/xslt/export",flags:"l",C:[{N:"varRef",name:"Q{}precLabel",slot:"3"}]},{N:"choose",line:"929",C:[{N:"fn",name:"empty",C:[{N:"axis",name:"self",nodeTest:"NE u[NE u[NE nQ{http://www.w3.org/1999/XSL/Transform}decimal-format,NE nQ{http://www.w3.org/1999/XSL/Transform}import],NE nQ{http://www.w3.org/1999/XSL/Transform}include]"}]}, +{N:"varRef",line:"930",name:"Q{}stylesheet-properties",slot:"4"}]},{N:"att",line:"932",name:"ex:lineNr",nsuri:"http://ns.saxonica.com/xslt/export",flags:"l",C:[{N:"fn",name:"string",C:[{N:"ufCall",name:"Q{MyFunctions}line-number",tailCall:"false",bSlot:"3",eval:"16",C:[{N:"dot",type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}*"}]}]}]},{N:"choose",line:"933",C:[{N:"fn",name:"exists",C:[{N:"filter",flags:"b",C:[{N:"axis",name:"attribute",nodeTest:"NA"},{N:"vc",op:"eq",comp:"CCC",C:[{N:"fn",name:"namespace-uri", +C:[{N:"dot",type:"1NA"}]},{N:"str",val:"http://www.w3.org/1999/XSL/Transform"}]}]}]},{N:"ufCall",line:"938",name:"Q{MyFunctions}syntax-error-at",tailCall:"false",bSlot:"4",eval:"0 16 16",C:[{N:"str",val:"XTSE0090"},{N:"fn",name:"concat",C:[{N:"str",val:"An XSLT element cannot have attribute(s) "},{N:"fn",name:"string-join",C:[{N:"slash",C:[{N:"filter",flags:"b",C:[{N:"axis",name:"attribute",nodeTest:"NA"},{N:"vc",op:"eq",comp:"CCC",C:[{N:"fn",name:"namespace-uri",C:[{N:"dot",type:"1NA"}]},{N:"str", +val:"http://www.w3.org/1999/XSL/Transform"}]}]},{N:"fn",name:"name",C:[{N:"dot",type:"1NA"}]}]},{N:"str",val:","}]},{N:"str",val:" in the XSLT namespace"}]},{N:"dot",type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}*"}]}]},{N:"applyT",line:"942",flags:"c",bSlot:"-1",C:[{N:"filter",role:"select",flags:"b",C:[{N:"axis",name:"attribute",nodeTest:"NA"},{N:"gc",op:"=",card:"N:1",comp:"CCC",C:[{N:"literal",count:"4",C:[{N:"str",val:""},{N:"str",val:"http://saxon.sf.net/"},{N:"str",val:"http://ns.saxonica.com/xslt/export"}, +{N:"str",val:"http://www.w3.org/XML/1998/namespace"}]},{N:"fn",name:"namespace-uri",C:[{N:"dot",type:"1NA"}]}]}]}]},{N:"callT",line:"943",name:"Q{}staticText",bSlot:"5",C:[{N:"withParam",name:"Q{}has-uniform-static-context",flags:"t",as:"1AB",C:[{N:"ufCall",line:"944",name:"Q{MyFunctions}has-uniform-static-context",tailCall:"false",bSlot:"6",eval:"16",C:[{N:"dot",type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}*"}]}]}]}]}]}]}]},{N:"templateRule",prec:"0",prio:"0.9",seq:"17",rank:"3",minImp:"0", +slots:"0",matches:"NE",flags:"s",line:"949",module:"static.xsl",C:[{N:"p.withPredicate",role:"match",C:[{N:"p.nodeTest",test:"NE"},{N:"filter",ns:"doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions t=MyTypes xs=~ xsl=~ xml=~",line:"949",flags:"b",C:[{N:"axis",name:"parent",nodeTest:"N u[NE,ND]"},{N:"fn",name:"exists",C:[{N:"axis",name:"self",nodeTest:"NE u[NE u[NE nQ{http://www.w3.org/1999/XSL/Transform}stylesheet,NE nQ{http://www.w3.org/1999/XSL/Transform}transform],NE nQ{http://www.w3.org/1999/XSL/Transform}package]"}]}]}]}, +{N:"empty",role:"action"}]},{N:"templateRule",prec:"0",prio:"-0.5",seq:"14",rank:"0",minImp:"0",slots:"18",matches:"NE",flags:"s",line:"766",module:"static.xsl",C:[{N:"p.nodeTest",role:"match",test:"NE"},{N:"sequence",role:"action",ns:"doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions t=MyTypes xs=~ xsl=~ xml=~",line:"767",C:[{N:"param",name:"Q{}required-version",slot:"0",as:"?AD",C:[{N:"empty",role:"select"},{N:"treat",role:"conversion",as:"AD",diag:"8|0|XTTE0590|required-version", +C:[{N:"check",card:"?",diag:"8|0|XTTE0590|required-version",C:[{N:"cvUntyped",to:"AD",diag:"8|0|XTTE0590|required-version",C:[{N:"data",diag:"8|0|XTTE0590|required-version",C:[{N:"supplied",slot:"0"}]}]}]}]}]},{N:"param",line:"768",name:"Q{}has-uniform-static-context",slot:"1",flags:"ti",as:"1AB",C:[{N:"treat",role:"conversion",as:"AB",diag:"8|0|XTTE0590|has-uniform-static-context",C:[{N:"check",card:"1",diag:"8|0|XTTE0590|has-uniform-static-context",C:[{N:"cvUntyped",to:"AB",diag:"8|0|XTTE0590|has-uniform-static-context", +C:[{N:"data",diag:"8|0|XTTE0590|has-uniform-static-context",C:[{N:"supplied",slot:"1"}]}]}]}]}]},{N:"param",line:"769",name:"Q{}extension-element-namespaces",slot:"2",flags:"t",as:"*AS",C:[{N:"empty",role:"select"},{N:"treat",role:"conversion",as:"AS",diag:"8|0|XTTE0590|extension-element-namespaces",C:[{N:"cvUntyped",to:"AS",diag:"8|0|XTTE0590|extension-element-namespaces",C:[{N:"data",diag:"8|0|XTTE0590|extension-element-namespaces",C:[{N:"supplied",slot:"2"}]}]}]}]},{N:"choose",line:"774",C:[{N:"varRef", +name:"Q{}has-uniform-static-context",slot:"1"},{N:"copy",line:"776",flags:"in",sit:"1NE",C:[{N:"let",role:"content","var":"Q{}lineNo",slot:"3",eval:"16",C:[{N:"ufCall",name:"Q{MyFunctions}line-number",tailCall:"false",bSlot:"7",eval:"16",C:[{N:"dot",type:"1NE"}]},{N:"sequence",line:"777",C:[{N:"choose",C:[{N:"and",op:"and",C:[{N:"vc",op:"ne",onEmpty:"0",comp:"GAC|http://www.w3.org/2005/xpath-functions/collation/codepoint",C:[{N:"varRef",name:"Q{}lineNo",slot:"3"},{N:"int",val:"-1"}]},{N:"vc",op:"ne", +onEmpty:"1",comp:"GAC|http://www.w3.org/2005/xpath-functions/collation/codepoint",C:[{N:"varRef",name:"Q{}lineNo",slot:"3"},{N:"ufCall",name:"Q{MyFunctions}line-number",tailCall:"false",bSlot:"8",eval:"16",C:[{N:"check",card:"1",diag:"0|0||f:line-number",C:[{N:"axis",name:"parent",nodeTest:"N u[NE,ND]"}]}]}]}]},{N:"att",line:"778",name:"ex:lineNr",nsuri:"http://ns.saxonica.com/xslt/export",flags:"l",C:[{N:"fn",name:"string",C:[{N:"varRef",name:"Q{}lineNo",slot:"3"}]}]}]},{N:"choose",line:"780",C:[{N:"vc", +op:"ne",onEmpty:"0",comp:"CCC",C:[{N:"fn",name:"base-uri",C:[{N:"dot",type:"1NE"}]},{N:"fn",name:"base-uri",C:[{N:"check",card:"?",diag:"0|0||fn:base-uri",C:[{N:"axis",name:"parent",nodeTest:"N u[NE,ND]"}]}]}]},{N:"att",line:"781",name:"ex:baseUri",nsuri:"http://ns.saxonica.com/xslt/export",flags:"l",C:[{N:"convert",from:"AU",to:"AS",C:[{N:"fn",name:"base-uri",C:[{N:"dot",type:"1NE"}]}]}]}]},{N:"choose",line:"783",C:[{N:"fn",name:"empty",C:[{N:"axis",name:"self",nodeTest:"NE nQ{http://www.w3.org/1999/XSL/Transform}*"}]}, +{N:"att",line:"784",name:"ex:exclude",nsuri:"http://ns.saxonica.com/xslt/export",flags:"l",C:[{N:"fn",name:"string-join",C:[{N:"forEach",line:"841",C:[{N:"docOrder",intra:"1",C:[{N:"slash",C:[{N:"slash",C:[{N:"dot",line:"784",type:"1NE"},{N:"fn",name:"reverse",C:[{N:"axis",name:"ancestor-or-self",nodeTest:"NE"}]}]},{N:"choose",C:[{N:"fn",name:"exists",C:[{N:"axis",name:"self",nodeTest:"NE nQ{http://www.w3.org/1999/XSL/Transform}*"}]},{N:"sequence",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}exclude-result-prefixes"}, +{N:"axis",name:"attribute",nodeTest:"NA nQ{}extension-element-prefixes"}]},{N:"true"},{N:"sequence",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{http://www.w3.org/1999/XSL/Transform}exclude-result-prefixes"},{N:"axis",name:"attribute",nodeTest:"NA nQ{http://www.w3.org/1999/XSL/Transform}extension-element-prefixes"}]}]}]}]},{N:"let",line:"842","var":"Q{}owner",as:"*N u[NE,ND]",slot:"4",eval:"4",C:[{N:"axis",name:"parent",nodeTest:"N u[NE,ND]"},{N:"choose",line:"844",C:[{N:"vc",op:"eq",onEmpty:"0", +comp:"CCC",C:[{N:"fn",name:"normalize-space",C:[{N:"fn",name:"string",C:[{N:"dot",type:"1NA"}]}]},{N:"str",val:"#all"}]},{N:"forEach",line:"845",C:[{N:"slash",simple:"2",C:[{N:"varRef",name:"Q{}owner",slot:"4"},{N:"axis",name:"namespace",nodeTest:"NN"}]},{N:"fn",name:"string",C:[{N:"dot",type:"1NN"}]}]},{N:"true"},{N:"let",line:"855","var":"Q{http://saxon.sf.net/generated-variable}v0",as:"1NE i[NE,N u[NE,ND]]",slot:"5",eval:"13",C:[{N:"check",card:"1",diag:"0|1||fn:namespace-uri-for-prefix",C:[{N:"varRef", +name:"Q{}owner",slot:"4"}]},{N:"forEach",C:[{N:"forEach",C:[{N:"fn",name:"tokenize",C:[{N:"cvUntyped",to:"AS",C:[{N:"data",diag:"0|0||fn:tokenize",C:[{N:"dot",type:"1NA"}]}]}]},{N:"fn",name:"namespace-uri-for-prefix",C:[{N:"choose",C:[{N:"vc",op:"eq",onEmpty:"0",comp:"CCC",C:[{N:"dot",type:"1AS"},{N:"str",val:"#default"}]},{N:"str",val:""},{N:"true"},{N:"dot",type:"1AS"}]},{N:"varRef",name:"Q{http://saxon.sf.net/generated-variable}v0",slot:"5"}]}]},{N:"fn",name:"string",C:[{N:"dot",type:"1AU"}]}]}]}]}]}]}, +{N:"str",val:" "}]}]}]},{N:"forEach",line:"786",C:[{N:"union",op:"|",C:[{N:"slash",simple:"1",C:[{N:"axis",name:"self",nodeTest:"NE nQ{http://www.w3.org/1999/XSL/Transform}*"},{N:"axis",name:"attribute",nodeTest:"NA nQ{}xpath-default-namespace"}]},{N:"slash",simple:"2",C:[{N:"filter",flags:"b",C:[{N:"axis",name:"child",nodeTest:"NE"},{N:"fn",name:"empty",C:[{N:"axis",name:"self",nodeTest:"NE nQ{http://www.w3.org/1999/XSL/Transform}*"}]}]},{N:"axis",name:"attribute",nodeTest:"NA nQ{http://www.w3.org/1999/XSL/Transform}xpath-default-namespace"}]}]}, +{N:"att",line:"787",name:"ex:defaultElementNS",nsuri:"http://ns.saxonica.com/xslt/export",flags:"l",C:[{N:"convert",from:"AZ",to:"AS",C:[{N:"data",C:[{N:"dot",type:"1NA"}]}]}]}]},{N:"let",line:"789","var":"Q{}shadows",as:"*NA",slot:"6",eval:"4",C:[{N:"filter",flags:"b",C:[{N:"axis",name:"attribute",nodeTest:"NA"},{N:"fn",name:"starts-with",C:[{N:"fn",name:"local-name",C:[{N:"dot",type:"1NA"}]},{N:"str",val:"_"}]}]},{N:"sequence",line:"790",C:[{N:"applyT",flags:"c",bSlot:"-1",C:[{N:"except",role:"select", +op:"except",C:[{N:"axis",name:"attribute",nodeTest:"NA"},{N:"docOrder",intra:"0",C:[{N:"varRef",name:"Q{}shadows",slot:"6"}]}]}]},{N:"applyT",line:"791",flags:"c",bSlot:"-1",C:[{N:"varRef",role:"select",name:"Q{}shadows",slot:"6"}]},{N:"callT",line:"792",name:"Q{}staticText",bSlot:"9"}]}]}]}]}]},{N:"true"},{N:"copy",line:"798",flags:"cin",sit:"1NE",C:[{N:"sequence",role:"content",C:[{N:"choose",C:[{N:"or",op:"or",C:[{N:"fn",name:"exists",C:[{N:"axis",name:"parent",nodeTest:"NE nQ{http://www.w3.org/1999/XSL/Transform}fallback"}]}, +{N:"fn",name:"not",C:[{N:"let",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~","var":"Q{}n1",as:"1NE",slot:"7",eval:"16",C:[{N:"dot",ns:"doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions t=MyTypes xs=~ xsl=~ xml=~",type:"1NE"},{N:"let","var":"Q{}n2",as:"1NE",slot:"8",eval:"16",C:[{N:"treat",ns:"doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions t=MyTypes xs=~ xsl=~ xml=~", +as:"NE",diag:"0|1||f:has-same-namespaces",C:[{N:"check",card:"1",diag:"0|1||f:has-same-namespaces",C:[{N:"axis",name:"parent",nodeTest:"N u[NE,ND]"}]}]},{N:"let",module:"namespaces.xsl",line:"94","var":"Q{}n1.prefixes",as:"*AS",slot:"9",eval:"4",C:[{N:"fn",name:"in-scope-prefixes",C:[{N:"varRef",name:"Q{}n1",slot:"7"}]},{N:"let",line:"95","var":"Q{}n2.prefixes",as:"*AS",slot:"10",eval:"4",C:[{N:"fn",name:"in-scope-prefixes",C:[{N:"varRef",name:"Q{}n2",slot:"8"}]},{N:"and",line:"101",op:"and",C:[{N:"vc", +op:"eq",onEmpty:"0",comp:"CAVC",C:[{N:"fn",name:"count",C:[{N:"varRef",name:"Q{}n1.prefixes",slot:"9"}]},{N:"fn",name:"count",C:[{N:"varRef",name:"Q{}n2.prefixes",slot:"10"}]}]},{N:"every","var":"Q{}p",slot:"11",C:[{N:"varRef",name:"Q{}n1.prefixes",slot:"9"},{N:"and",op:"and",C:[{N:"gc",op:"=",card:"N:1",comp:"CCC",C:[{N:"varRef",name:"Q{}n2.prefixes",slot:"10"},{N:"varRef",name:"Q{}p",slot:"11"}]},{N:"vc",op:"eq",onEmpty:"0",comp:"CCC",C:[{N:"fn",name:"namespace-uri-for-prefix",C:[{N:"varRef",name:"Q{}p", +slot:"11"},{N:"varRef",name:"Q{}n1",slot:"7"}]},{N:"fn",name:"namespace-uri-for-prefix",C:[{N:"varRef",name:"Q{}p",slot:"11"},{N:"varRef",name:"Q{}n2",slot:"8"}]}]}]}]}]}]}]}]}]}]}]},{N:"att",line:"799",name:"ex:ns",nsuri:"http://ns.saxonica.com/xslt/export",flags:"l",C:[{N:"let",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~","var":"Q{}context",as:"1NE",slot:"12",eval:"16",C:[{N:"dot", +ns:"doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions t=MyTypes xs=~ xsl=~ xml=~",type:"1NE"},{N:"choose",module:"namespaces.xsl",line:"47",C:[{N:"fn",name:"exists",C:[{N:"slash",simple:"1",C:[{N:"varRef",name:"Q{}context",slot:"12"},{N:"axis",name:"attribute",nodeTest:"NA nQ{http://ns.saxonica.com/xslt/export}ns"}]}]},{N:"check",line:"48",card:"1",diag:"5|0|XTTE0780|f:encode-namespaces#1",C:[{N:"cvUntyped",to:"AS",diag:"5|0|XTTE0780|f:encode-namespaces#1", +C:[{N:"data",diag:"5|0|XTTE0780|f:encode-namespaces#1",C:[{N:"slash",simple:"1",C:[{N:"varRef",name:"Q{}context",slot:"12"},{N:"axis",name:"attribute",nodeTest:"NA nQ{http://ns.saxonica.com/xslt/export}ns"}]}]}]}]},{N:"true"},{N:"fn",line:"58",name:"string-join",C:[{N:"forEach",C:[{N:"slash",simple:"1",C:[{N:"varRef",name:"Q{}context",slot:"12"},{N:"axis",name:"namespace",nodeTest:"NN"}]},{N:"fn",name:"concat",C:[{N:"fn",name:"name",C:[{N:"dot",type:"1NN"}]},{N:"str",val:"="},{N:"choose",C:[{N:"vc", +op:"eq",onEmpty:"0",comp:"CCC",C:[{N:"ifCall",name:"Q{http://www.w3.org/2005/xpath-functions/map}get",type:"*",C:[{N:"gVarRef",name:"Q{}known-namespaces",bSlot:"10"},{N:"fn",name:"name",C:[{N:"dot",type:"1NN"}]}]},{N:"data",diag:"1|1||eq",C:[{N:"dot",type:"1NN"}]}]},{N:"str",val:"~"},{N:"true"},{N:"data",diag:"0|2||fn:concat",C:[{N:"dot",type:"1NN"}]}]}]}]},{N:"str",val:" "}]}]}]}]}]},{N:"let",line:"801","var":"Q{}base",as:"?AU",slot:"13",eval:"8",C:[{N:"fn",name:"base-uri",C:[{N:"dot",type:"1NE"}]}, +{N:"sequence",line:"802",C:[{N:"choose",C:[{N:"vc",op:"ne",onEmpty:"1",comp:"CCC",C:[{N:"varRef",name:"Q{}base",slot:"13"},{N:"fn",name:"base-uri",C:[{N:"check",card:"?",diag:"0|0||fn:base-uri",C:[{N:"axis",name:"parent",nodeTest:"N u[NE,ND]"}]}]}]},{N:"att",line:"803",name:"ex:baseUri",nsuri:"http://ns.saxonica.com/xslt/export",flags:"l",C:[{N:"convert",from:"AU",to:"AS",C:[{N:"varRef",name:"Q{}base",slot:"13"}]}]}]},{N:"choose",line:"805",C:[{N:"fn",name:"empty",C:[{N:"axis",name:"self",nodeTest:"NE nQ{http://www.w3.org/1999/XSL/Transform}*"}]}, +{N:"att",line:"806",name:"ex:exclude",nsuri:"http://ns.saxonica.com/xslt/export",flags:"l",C:[{N:"fn",name:"string-join",C:[{N:"forEach",line:"841",C:[{N:"docOrder",intra:"1",C:[{N:"slash",C:[{N:"slash",C:[{N:"dot",line:"806",type:"1NE"},{N:"fn",name:"reverse",C:[{N:"axis",name:"ancestor-or-self",nodeTest:"NE"}]}]},{N:"choose",C:[{N:"fn",name:"exists",C:[{N:"axis",name:"self",nodeTest:"NE nQ{http://www.w3.org/1999/XSL/Transform}*"}]},{N:"sequence",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}exclude-result-prefixes"}, +{N:"axis",name:"attribute",nodeTest:"NA nQ{}extension-element-prefixes"}]},{N:"true"},{N:"sequence",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{http://www.w3.org/1999/XSL/Transform}exclude-result-prefixes"},{N:"axis",name:"attribute",nodeTest:"NA nQ{http://www.w3.org/1999/XSL/Transform}extension-element-prefixes"}]}]}]}]},{N:"let",line:"842","var":"Q{}owner",as:"*N u[NE,ND]",slot:"14",eval:"4",C:[{N:"axis",name:"parent",nodeTest:"N u[NE,ND]"},{N:"choose",line:"844",C:[{N:"vc",op:"eq",onEmpty:"0", +comp:"CCC",C:[{N:"fn",name:"normalize-space",C:[{N:"fn",name:"string",C:[{N:"dot",type:"1NA"}]}]},{N:"str",val:"#all"}]},{N:"forEach",line:"845",C:[{N:"slash",simple:"2",C:[{N:"varRef",name:"Q{}owner",slot:"14"},{N:"axis",name:"namespace",nodeTest:"NN"}]},{N:"fn",name:"string",C:[{N:"dot",type:"1NN"}]}]},{N:"true"},{N:"let",line:"855","var":"Q{http://saxon.sf.net/generated-variable}v0",as:"1NE i[NE,N u[NE,ND]]",slot:"15",eval:"13",C:[{N:"check",card:"1",diag:"0|1||fn:namespace-uri-for-prefix",C:[{N:"varRef", +name:"Q{}owner",slot:"14"}]},{N:"forEach",C:[{N:"forEach",C:[{N:"fn",name:"tokenize",C:[{N:"cvUntyped",to:"AS",C:[{N:"data",diag:"0|0||fn:tokenize",C:[{N:"dot",type:"1NA"}]}]}]},{N:"fn",name:"namespace-uri-for-prefix",C:[{N:"choose",C:[{N:"vc",op:"eq",onEmpty:"0",comp:"CCC",C:[{N:"dot",type:"1AS"},{N:"str",val:"#default"}]},{N:"str",val:""},{N:"true"},{N:"dot",type:"1AS"}]},{N:"varRef",name:"Q{http://saxon.sf.net/generated-variable}v0",slot:"15"}]}]},{N:"fn",name:"string",C:[{N:"dot",type:"1AU"}]}]}]}]}]}]}, +{N:"str",val:" "}]}]}]},{N:"forEach",line:"808",C:[{N:"union",op:"|",C:[{N:"slash",simple:"1",C:[{N:"axis",name:"self",nodeTest:"NE nQ{http://www.w3.org/1999/XSL/Transform}*"},{N:"axis",name:"attribute",nodeTest:"NA nQ{}xpath-default-namespace"}]},{N:"slash",simple:"2",C:[{N:"filter",flags:"b",C:[{N:"axis",name:"child",nodeTest:"NE"},{N:"fn",name:"empty",C:[{N:"axis",name:"self",nodeTest:"NE nQ{http://www.w3.org/1999/XSL/Transform}*"}]}]},{N:"axis",name:"attribute",nodeTest:"NA nQ{http://www.w3.org/1999/XSL/Transform}xpath-default-namespace"}]}]}, +{N:"att",line:"809",name:"ex:defaultElementNS",nsuri:"http://ns.saxonica.com/xslt/export",flags:"l",C:[{N:"convert",from:"AZ",to:"AS",C:[{N:"data",C:[{N:"dot",type:"1NA"}]}]}]}]},{N:"let",line:"811","var":"Q{}lineNo",slot:"16",eval:"16",C:[{N:"ufCall",name:"Q{MyFunctions}line-number",tailCall:"false",bSlot:"11",eval:"16",C:[{N:"dot",type:"1NE"}]},{N:"sequence",line:"812",C:[{N:"choose",C:[{N:"and",op:"and",C:[{N:"vc",op:"ne",onEmpty:"0",comp:"GAC|http://www.w3.org/2005/xpath-functions/collation/codepoint", +C:[{N:"varRef",name:"Q{}lineNo",slot:"16"},{N:"int",val:"-1"}]},{N:"vc",op:"ne",onEmpty:"1",comp:"GAC|http://www.w3.org/2005/xpath-functions/collation/codepoint",C:[{N:"varRef",name:"Q{}lineNo",slot:"16"},{N:"ufCall",name:"Q{MyFunctions}line-number",tailCall:"false",bSlot:"12",eval:"16",C:[{N:"check",card:"1",diag:"0|0||f:line-number",C:[{N:"axis",name:"parent",nodeTest:"N u[NE,ND]"}]}]}]}]},{N:"att",line:"813",name:"ex:lineNr",nsuri:"http://ns.saxonica.com/xslt/export",flags:"l",C:[{N:"fn",name:"string", +C:[{N:"varRef",name:"Q{}lineNo",slot:"16"}]}]}]},{N:"let",line:"815","var":"Q{}shadows",as:"*NA",slot:"17",eval:"4",C:[{N:"filter",flags:"b",C:[{N:"axis",name:"attribute",nodeTest:"NA"},{N:"fn",name:"starts-with",C:[{N:"fn",name:"local-name",C:[{N:"dot",type:"1NA"}]},{N:"str",val:"_"}]}]},{N:"sequence",line:"816",C:[{N:"applyT",flags:"c",bSlot:"-1",C:[{N:"except",role:"select",op:"except",C:[{N:"axis",name:"attribute",nodeTest:"NA"},{N:"docOrder",intra:"0",C:[{N:"varRef",name:"Q{}shadows",slot:"17"}]}]}]}, +{N:"applyT",line:"817",flags:"c",bSlot:"-1",C:[{N:"varRef",role:"select",name:"Q{}shadows",slot:"17"}]},{N:"callT",line:"818",name:"Q{}staticText",bSlot:"13"}]}]}]}]}]}]}]}]}]}]}]},{N:"templateRule",prec:"0",prio:"1.0",seq:"9",rank:"4",minImp:"0",slots:"0",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}package",flags:"s",line:"711",module:"static.xsl",C:[{N:"p.withUpper",role:"match",axis:"parent",upFirst:"false",C:[{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}package"},{N:"p.nodeTest", +test:"NE"}]},{N:"ufCall",role:"action",ns:"doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions t=MyTypes xs=~ xsl=~ xml=~",line:"712",name:"Q{MyFunctions}syntax-error-at",tailCall:"false",bSlot:"14",eval:"0 16 16",C:[{N:"str",val:"XTSE0010"},{N:"fn",name:"concat",C:[{N:"fn",name:"name",C:[{N:"dot",type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}package"}]},{N:"str",val:" must be a the root element of a document"}]},{N:"dot",type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}package"}]}]}, +{N:"templateRule",prec:"0",prio:"0.0",seq:"8",rank:"1",minImp:"0",slots:"0",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}text",flags:"s",line:"700",module:"static.xsl",C:[{N:"p.nodeTest",role:"match",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}text"},{N:"choose",role:"action",ns:"doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions t=MyTypes xs=~ xsl=~ xml=~",line:"708",C:[{N:"fn",name:"exists",C:[{N:"axis",name:"child",nodeTest:"NE"}]},{N:"ufCall", +name:"Q{MyFunctions}syntax-error-at",tailCall:"false",bSlot:"15",eval:"16 16",C:[{N:"fn",name:"concat",C:[{N:"fn",name:"name",C:[{N:"dot",type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}text"}]},{N:"str",val:" cannot contain element "},{N:"slash",C:[{N:"first",C:[{N:"axis",name:"child",nodeTest:"NE"}]},{N:"fn",name:"name",C:[{N:"dot",type:"1NE"}]}]}]},{N:"dot",type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}text"}]},{N:"true"},{N:"dot",type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}text"}]}]}, +{N:"templateRule",prec:"0",prio:"0.5",seq:"18",rank:"2",minImp:"0",slots:"0",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}variable",flags:"s",line:"951",module:"static.xsl",C:[{N:"p.withPredicate",role:"match",C:[{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}variable"},{N:"axis",ns:"doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions t=MyTypes xs=~ xsl=~ xml=~",line:"951",name:"attribute",nodeTest:"NA nQ{}static"}]},{N:"fn",role:"action", +ns:"doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions t=MyTypes xs=~ xsl=~ xml=~",line:"952",name:"error",C:[{N:"qName",pre:"",uri:"http://www.w3.org/2005/xqt-errors",loc:"XTSE0020"},{N:"fn",name:"concat",C:[{N:"str",val:"Non-global "},{N:"fn",name:"name",C:[{N:"dot",type:"1NE"}]},{N:"str",val:" "},{N:"attVal",name:"Q{}name",chk:"0"},{N:"str",val:" cannot be static"}]}]}]},{N:"templateRule",prec:"0",prio:"0.5",seq:"13",rank:"2",minImp:"0",slots:"0",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}import", +flags:"s",line:"734",module:"static.xsl",C:[{N:"p.withPredicate",role:"match",C:[{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}import"},{N:"fn",ns:"doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions t=MyTypes xs=~ xsl=~ xml=~",line:"734",name:"not",C:[{N:"slash",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",module:"normalize.xsl", +line:"795",C:[{N:"dot",ns:"doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions t=MyTypes xs=~ xsl=~ xml=~",module:"static.xsl",line:"734",type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}import"},{N:"fn",name:"exists",C:[{N:"axis",name:"parent",nodeTest:"NE u[NE u[NE nQ{http://www.w3.org/1999/XSL/Transform}stylesheet,NE nQ{http://www.w3.org/1999/XSL/Transform}transform],NE nQ{http://www.w3.org/1999/XSL/Transform}package]"}]}]}]}]},{N:"ufCall",role:"action", +ns:"doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions t=MyTypes xs=~ xsl=~ xml=~",line:"735",name:"Q{MyFunctions}syntax-error-at",tailCall:"false",bSlot:"16",eval:"0 16 16",C:[{N:"str",val:"XTSE0190"},{N:"fn",name:"concat",C:[{N:"fn",name:"name",C:[{N:"dot",type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}import"}]},{N:"str",val:" must be a top-level component"}]},{N:"dot",type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}import"}]}]},{N:"templateRule", +prec:"0",prio:"0.5",seq:"11",rank:"2",minImp:"0",slots:"0",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}import",flags:"s",line:"728",module:"static.xsl",C:[{N:"p.withPredicate",role:"match",C:[{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}import"},{N:"sequence",ns:"doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions t=MyTypes xs=~ xsl=~ xml=~",line:"728",C:[{N:"axis",name:"child",nodeTest:"NE"},{N:"filter",flags:"b",C:[{N:"axis", +name:"child",nodeTest:"NT"},{N:"fn",name:"boolean",C:[{N:"fn",name:"normalize-space",C:[{N:"fn",name:"string",C:[{N:"dot",type:"1NT"}]}]}]}]}]}]},{N:"ufCall",role:"action",ns:"doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions t=MyTypes xs=~ xsl=~ xml=~",line:"729",name:"Q{MyFunctions}syntax-error",tailCall:"false",bSlot:"17",eval:"0 16",C:[{N:"str",val:"XTSE0260"},{N:"fn",name:"concat",C:[{N:"fn",name:"name",C:[{N:"dot",type:"1NE"}]},{N:"str",val:" cannot have any content"}]}]}]}, +{N:"templateRule",prec:"0",prio:"0.5",seq:"12",rank:"2",minImp:"0",slots:"0",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}include",flags:"s",line:"731",module:"static.xsl",C:[{N:"p.withPredicate",role:"match",C:[{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}include"},{N:"fn",ns:"doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions t=MyTypes xs=~ xsl=~ xml=~",line:"731",name:"not",C:[{N:"slash",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~", +module:"normalize.xsl",line:"795",C:[{N:"dot",ns:"doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions t=MyTypes xs=~ xsl=~ xml=~",module:"static.xsl",line:"731",type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}include"},{N:"fn",name:"exists",C:[{N:"axis",name:"parent",nodeTest:"NE u[NE u[NE nQ{http://www.w3.org/1999/XSL/Transform}stylesheet,NE nQ{http://www.w3.org/1999/XSL/Transform}transform],NE nQ{http://www.w3.org/1999/XSL/Transform}package]"}]}]}]}]}, +{N:"ufCall",role:"action",ns:"doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions t=MyTypes xs=~ xsl=~ xml=~",line:"732",name:"Q{MyFunctions}syntax-error-at",tailCall:"false",bSlot:"18",eval:"0 16 16",C:[{N:"str",val:"XTSE0170"},{N:"fn",name:"concat",C:[{N:"fn",name:"name",C:[{N:"dot",type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}include"}]},{N:"str",val:" must be a top-level component"}]},{N:"dot",type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}include"}]}]}, +{N:"templateRule",prec:"0",prio:"0.5",seq:"11",part:"1",rank:"2",minImp:"0",slots:"0",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}include",flags:"s",line:"728",module:"static.xsl",C:[{N:"p.withPredicate",role:"match",C:[{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}include"},{N:"sequence",ns:"doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions t=MyTypes xs=~ xsl=~ xml=~",line:"728",C:[{N:"axis",name:"child",nodeTest:"NE"},{N:"filter", +flags:"b",C:[{N:"axis",name:"child",nodeTest:"NT"},{N:"fn",name:"boolean",C:[{N:"fn",name:"normalize-space",C:[{N:"fn",name:"string",C:[{N:"dot",type:"1NT"}]}]}]}]}]}]},{N:"ufCall",role:"action",ns:"doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions t=MyTypes xs=~ xsl=~ xml=~",line:"729",name:"Q{MyFunctions}syntax-error",tailCall:"false",bSlot:"17",eval:"0 16",C:[{N:"str",val:"XTSE0260"},{N:"fn",name:"concat",C:[{N:"fn",name:"name",C:[{N:"dot",type:"1NE"}]}, +{N:"str",val:" cannot have any content"}]}]}]},{N:"templateRule",prec:"0",prio:"0.5",seq:"18",part:"1",rank:"2",minImp:"0",slots:"0",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}param",flags:"s",line:"951",module:"static.xsl",C:[{N:"p.withPredicate",role:"match",C:[{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}param"},{N:"axis",ns:"doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions t=MyTypes xs=~ xsl=~ xml=~",line:"951",name:"attribute", +nodeTest:"NA nQ{}static"}]},{N:"fn",role:"action",ns:"doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions t=MyTypes xs=~ xsl=~ xml=~",line:"952",name:"error",C:[{N:"qName",pre:"",uri:"http://www.w3.org/2005/xqt-errors",loc:"XTSE0020"},{N:"fn",name:"concat",C:[{N:"str",val:"Non-global "},{N:"fn",name:"name",C:[{N:"dot",type:"1NE"}]},{N:"str",val:" "},{N:"attVal",name:"Q{}name",chk:"0"},{N:"str",val:" cannot be static"}]}]}]},{N:"templateRule",prec:"0",prio:"1.0", +seq:"10",rank:"4",minImp:"0",slots:"1",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}transform",flags:"s",line:"714",module:"static.xsl",C:[{N:"p.withUpper",role:"match",axis:"parent",upFirst:"false",C:[{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}transform"},{N:"p.nodeTest",test:"NE"}]},{N:"sequence",role:"action",ns:"doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions t=MyTypes xs=~ xsl=~ xml=~",line:"715",C:[{N:"param",name:"Q{}XSLT-version", +slot:"0",flags:"t",as:"1AD",C:[{N:"dec",role:"select",val:"3"},{N:"treat",role:"conversion",as:"AD",diag:"8|0|XTTE0590|XSLT-version",C:[{N:"check",card:"1",diag:"8|0|XTTE0590|XSLT-version",C:[{N:"cvUntyped",to:"AD",diag:"8|0|XTTE0590|XSLT-version",C:[{N:"data",diag:"8|0|XTTE0590|XSLT-version",C:[{N:"supplied",slot:"0"}]}]}]}]}]},{N:"choose",line:"717",C:[{N:"or",op:"or",C:[{N:"fn",name:"exists",C:[{N:"axis",name:"parent",nodeTest:"NE nQ{http://www.w3.org/1999/XSL/Transform}package"}]},{N:"vc",op:"gt", +onEmpty:"0",comp:"CAVC",C:[{N:"varRef",name:"Q{}XSLT-version",slot:"0"},{N:"dec",val:"3"}]}]},{N:"nextMatch",line:"718",flags:"t"},{N:"true"},{N:"ufCall",line:"722",name:"Q{MyFunctions}syntax-error-at",tailCall:"false",bSlot:"19",eval:"0 16 16",C:[{N:"str",val:"XTSE0010"},{N:"fn",name:"concat",C:[{N:"fn",name:"name",C:[{N:"dot",type:"1NE"}]},{N:"str",val:" must be the root element of a document, or the child of xsl:package"}]},{N:"dot",type:"1NE"}]}]}]}]},{N:"templateRule",prec:"0",prio:"1.0",seq:"10", +rank:"4",minImp:"0",slots:"1",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}stylesheet",flags:"s",line:"714",module:"static.xsl",C:[{N:"p.withUpper",role:"match",axis:"parent",upFirst:"false",C:[{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}stylesheet"},{N:"p.nodeTest",test:"NE"}]},{N:"sequence",role:"action",ns:"doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions t=MyTypes xs=~ xsl=~ xml=~",line:"715",C:[{N:"param",name:"Q{}XSLT-version", +slot:"0",flags:"t",as:"1AD",C:[{N:"dec",role:"select",val:"3"},{N:"treat",role:"conversion",as:"AD",diag:"8|0|XTTE0590|XSLT-version",C:[{N:"check",card:"1",diag:"8|0|XTTE0590|XSLT-version",C:[{N:"cvUntyped",to:"AD",diag:"8|0|XTTE0590|XSLT-version",C:[{N:"data",diag:"8|0|XTTE0590|XSLT-version",C:[{N:"supplied",slot:"0"}]}]}]}]}]},{N:"choose",line:"717",C:[{N:"or",op:"or",C:[{N:"fn",name:"exists",C:[{N:"axis",name:"parent",nodeTest:"NE nQ{http://www.w3.org/1999/XSL/Transform}package"}]},{N:"vc",op:"gt", +onEmpty:"0",comp:"CAVC",C:[{N:"varRef",name:"Q{}XSLT-version",slot:"0"},{N:"dec",val:"3"}]}]},{N:"nextMatch",line:"718",flags:"t"},{N:"true"},{N:"ufCall",line:"722",name:"Q{MyFunctions}syntax-error-at",tailCall:"false",bSlot:"19",eval:"0 16 16",C:[{N:"str",val:"XTSE0010"},{N:"fn",name:"concat",C:[{N:"fn",name:"name",C:[{N:"dot",type:"1NE"}]},{N:"str",val:" must be the root element of a document, or the child of xsl:package"}]},{N:"dot",type:"1NE"}]}]}]}]},{N:"templateRule",prec:"0",prio:"0.5",seq:"7", +rank:"2",minImp:"0",slots:"7",matches:"NA",flags:"s",line:"669",module:"static.xsl",C:[{N:"p.withUpper",role:"match",axis:"parent",upFirst:"false",C:[{N:"p.withPredicate",C:[{N:"p.nodeTest",test:"NA"},{N:"fn",ns:"doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions saxon=~ t=MyTypes xs=~ xsl=~ xml=~",line:"669",name:"starts-with",C:[{N:"fn",name:"local-name",C:[{N:"dot",type:"1NA"}]},{N:"str",val:"_"}]}]},{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}*"}]}, +{N:"sequence",role:"action",ns:"doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions saxon=~ t=MyTypes xs=~ xsl=~ xml=~",line:"670",C:[{N:"param",name:"Q{}static-vars",slot:"0",flags:"t",as:"1FM",C:[{N:"map",role:"select",size:"0"},{N:"treat",role:"conversion",as:"FM",diag:"8|0|XTTE0590|static-vars",C:[{N:"check",card:"1",diag:"8|0|XTTE0590|static-vars",C:[{N:"supplied",slot:"0"}]}]}]},{N:"param",line:"671",name:"Q{}var-slots",slot:"1",flags:"t",as:"1FM", +C:[{N:"map",role:"select",size:"0"},{N:"treat",role:"conversion",as:"FM",diag:"8|0|XTTE0590|var-slots",C:[{N:"check",card:"1",diag:"8|0|XTTE0590|var-slots",C:[{N:"supplied",slot:"1"}]}]}]},{N:"param",line:"672",name:"Q{}stylesheet-base-uri",slot:"2",flags:"t",as:"1AU",C:[{N:"check",role:"select",card:"1",diag:"8|0|XTTE0600|stylesheet-base-uri",C:[{N:"fn",name:"base-uri",C:[{N:"dot",type:"1NA"}]}]},{N:"treat",role:"conversion",as:"AU",diag:"8|0|XTTE0590|stylesheet-base-uri",C:[{N:"check",card:"1", +diag:"8|0|XTTE0590|stylesheet-base-uri",C:[{N:"cvUntyped",to:"AU",diag:"8|0|XTTE0590|stylesheet-base-uri",C:[{N:"data",diag:"8|0|XTTE0590|stylesheet-base-uri",C:[{N:"supplied",slot:"2"}]}]}]}]}]},{N:"param",line:"673",name:"Q{}xpath-default-namespace",slot:"3",flags:"t",as:"?NA",C:[{N:"empty",role:"select"},{N:"treat",role:"conversion",as:"NA",diag:"8|0|XTTE0590|xpath-default-namespace",C:[{N:"check",card:"?",diag:"8|0|XTTE0590|xpath-default-namespace",C:[{N:"supplied",slot:"3"}]}]}]},{N:"let",line:"675", +"var":"Q{}container",as:"1NE c~untyped",slot:"4",eval:"9",C:[{N:"let",line:"676","var":"Q{}dot",as:"*N u[NE,ND]",slot:"5",eval:"4",C:[{N:"axis",name:"parent",nodeTest:"N u[NE,ND]"},{N:"let",line:"680","var":"Q{http://saxon.sf.net/generated-variable}v0",as:"1NE i[NE,N u[NE,ND]]",slot:"6",eval:"13",C:[{N:"check",card:"1",diag:"0|1||fn:namespace-uri-for-prefix",C:[{N:"varRef",name:"Q{}dot",slot:"5"}]},{N:"compElem",line:"677",C:[{N:"str",role:"name",val:"dummy"},{N:"fn",role:"namespace",name:"string", +C:[{N:"convert",from:"AZ",to:"AS",C:[{N:"data",C:[{N:"varRef",name:"Q{}xpath-default-namespace",slot:"3"}]}]}]},{N:"forEach",role:"content",line:"678",C:[{N:"filter",flags:"b",C:[{N:"fn",name:"in-scope-prefixes",C:[{N:"check",card:"1",diag:"0|0||fn:in-scope-prefixes",C:[{N:"varRef",name:"Q{}dot",slot:"5"}]}]},{N:"fn",name:"boolean",C:[{N:"dot",type:"1AS"}]}]},{N:"compAtt",line:"680",flags:"l",C:[{N:"fn",role:"name",name:"concat",C:[{N:"dot",type:"1AS"},{N:"str",val:":d"}]},{N:"fn",role:"namespace", +name:"string",C:[{N:"convert",from:"AU",to:"AS",C:[{N:"fn",name:"namespace-uri-for-prefix",C:[{N:"dot",type:"1AS"},{N:"varRef",name:"Q{http://saxon.sf.net/generated-variable}v0",slot:"6"}]}]}]},{N:"str",role:"select",val:""}]}]}]}]}]},{N:"compAtt",line:"685",C:[{N:"fn",role:"name",name:"substring",C:[{N:"fn",name:"name",C:[{N:"dot",type:"1NA"}]},{N:"int",val:"2"}]},{N:"fn",role:"select",line:"687",name:"string-join",C:[{N:"convert",from:"A",to:"AS",C:[{N:"data",C:[{N:"mergeAdj",C:[{N:"forEach",line:"688", +C:[{N:"ufCall",line:"687",name:"Q{MyFunctions}parse-value-template",tailCall:"false",bSlot:"20",eval:"16",C:[{N:"cvUntyped",to:"AS",C:[{N:"data",diag:"0|0||f:parse-value-template",C:[{N:"dot",type:"1NA"}]}]}]},{N:"choose",line:"690",C:[{N:"vc",op:"eq",onEmpty:"0",comp:"CCC",C:[{N:"fn",name:"local-name",C:[{N:"dot",type:"1NA"}]},{N:"str",val:"literal"}]},{N:"valueOf",C:[{N:"convert",from:"AZ",to:"AS",C:[{N:"data",C:[{N:"dot",type:"1NA"}]}]}]},{N:"true"},{N:"evaluate",line:"693",dxns:"",C:[{N:"cvUntyped", +role:"xpath",to:"AS",C:[{N:"data",diag:"4|0||xsl:evaluate/xpath",C:[{N:"dot",type:"1NA"}]}]},{N:"empty",role:"cxt"},{N:"convert",role:"baseUri",from:"AU",to:"AS",C:[{N:"varRef",name:"Q{}stylesheet-base-uri",slot:"2"}]},{N:"varRef",role:"nsCxt",name:"Q{}container",slot:"4"},{N:"str",role:"sa",val:"no"},{N:"ifCall",role:"options",name:"Q{http://www.w3.org/2005/xpath-functions/map}merge",type:"1FM",C:[{N:"sequence",C:[{N:"map",size:"1",C:[{N:"str",val:"allow-xslt-functions"},{N:"true"}]},{N:"ifCall", +name:"Q{http://www.w3.org/2005/xpath-functions/map}entry",type:"1FM",C:[{N:"str",val:"var-slots"},{N:"varRef",name:"Q{}var-slots",slot:"1"}]},{N:"map",size:"1",C:[{N:"str",val:"allow-empty"},{N:"true"}]}]},{N:"map",size:"2",C:[{N:"str",val:"duplicates"},{N:"str",val:"reject"},{N:"str",val:"duplicates-error-code"},{N:"str",val:"FOJS0003"}]}]},{N:"varRef",role:"wp",name:"Q{}static-vars",slot:"0"}]}]}]}]}]}]},{N:"str",val:""}]}]}]}]}]},{N:"templateRule",prec:"0",prio:"0.5",seq:"22",part:"1",rank:"2", +minImp:"0",slots:"0",matches:"NA nQ{}use-when",flags:"s",line:"1122",module:"static.xsl",C:[{N:"p.withUpper",role:"match",axis:"parent",upFirst:"false",C:[{N:"p.nodeTest",test:"NA nQ{}use-when"},{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}*"}]},{N:"empty",role:"action"}]},{N:"templateRule",prec:"0",prio:"0.0",seq:"22",rank:"1",minImp:"0",slots:"0",matches:"NA nQ{http://www.w3.org/1999/XSL/Transform}use-when",flags:"s",line:"1122",module:"static.xsl",C:[{N:"p.nodeTest",role:"match", +test:"NA nQ{http://www.w3.org/1999/XSL/Transform}use-when"},{N:"empty",role:"action"}]},{N:"templateRule",prec:"0",prio:"0.0",seq:"15",part:"1",rank:"1",minImp:"0",slots:"1",matches:"NA nQ{http://www.w3.org/1999/XSL/Transform}exclude-result-prefixes",flags:"s",line:"824",module:"static.xsl",C:[{N:"p.nodeTest",role:"match",test:"NA nQ{http://www.w3.org/1999/XSL/Transform}exclude-result-prefixes"},{N:"let",role:"action",ns:"doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions t=MyTypes xs=~ xsl=~ xml=~", +line:"826","var":"Q{}discard",slot:"0",eval:"4",C:[{N:"applyT",line:"827",mode:"Q{}normalize",bSlot:"21",C:[{N:"dot",role:"select",type:"1NA"}]},{N:"subscript",line:"829",C:[{N:"varRef",name:"Q{}discard",slot:"0"},{N:"int",val:"100000"}]}]}]},{N:"templateRule",prec:"0",prio:"0.5",seq:"15",rank:"2",minImp:"0",slots:"1",matches:"NA nQ{}exclude-result-prefixes",flags:"s",line:"824",module:"static.xsl",C:[{N:"p.withUpper",role:"match",axis:"parent",upFirst:"false",C:[{N:"p.nodeTest",test:"NA nQ{}exclude-result-prefixes"}, +{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}*"}]},{N:"let",role:"action",ns:"doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions t=MyTypes xs=~ xsl=~ xml=~",line:"826","var":"Q{}discard",slot:"0",eval:"4",C:[{N:"applyT",line:"827",mode:"Q{}normalize",bSlot:"21",C:[{N:"dot",role:"select",type:"1NA"}]},{N:"subscript",line:"829",C:[{N:"varRef",name:"Q{}discard",slot:"0"},{N:"int",val:"100000"}]}]}]},{N:"templateRule",prec:"0",prio:"-0.5", +seq:"23",rank:"0",minImp:"0",slots:"0",matches:"NC",flags:"s",line:"1123",module:"static.xsl",C:[{N:"p.nodeTest",role:"match",test:"NC"},{N:"empty",role:"action"}]},{N:"templateRule",prec:"0",prio:"-0.5",seq:"23",part:"1",rank:"0",minImp:"0",slots:"0",matches:"NP",flags:"s",line:"1123",module:"static.xsl",C:[{N:"p.nodeTest",role:"match",test:"NP"},{N:"empty",role:"action"}]}]}]},{N:"co",id:"93",binds:"",C:[{N:"globalVariable",name:"Q{}roleKind",as:"1FM k[AS] v[1ADI]",line:"556",module:"XSLT-SEF-compiler.xsl", +visibility:"PRIVATE",flags:"s",C:[{N:"map",size:"18",C:[{N:"str",val:"TEMPLATE_RESULT"},{N:"int",val:"7"},{N:"str",val:"GROUPING_KEY"},{N:"int",val:"11"},{N:"str",val:"EVALUATE_RESULT"},{N:"int",val:"12"},{N:"str",val:"CONTEXT_ITEM"},{N:"int",val:"13"},{N:"str",val:"FUNCTION_RESULT"},{N:"int",val:"5"},{N:"str",val:"UNARY_EXPR"},{N:"int",val:"9"},{N:"str",val:"TYPE_OP"},{N:"int",val:"2"},{N:"str",val:"CHARACTER_MAP_EXPANSION"},{N:"int",val:"16"},{N:"str",val:"ORDER_BY"},{N:"int",val:"6"},{N:"str", +val:"AXIS_STEP"},{N:"int",val:"14"},{N:"str",val:"DOCUMENT_ORDER"},{N:"int",val:"17"},{N:"str",val:"PARAM"},{N:"int",val:"8"},{N:"str",val:"INSTRUCTION"},{N:"int",val:"4"},{N:"str",val:"UPDATING_EXPR"},{N:"int",val:"10"},{N:"str",val:"BINARY_EXPR"},{N:"int",val:"1"},{N:"str",val:"OPTION"},{N:"int",val:"15"},{N:"str",val:"FUNCTION"},{N:"int",val:"0"},{N:"str",val:"VARIABLE"},{N:"int",val:"3"}]}]}]},{N:"co",id:"178",binds:"",C:[{N:"mode",name:"Q{}pattern-with-current",onNo:"SC",flags:"W",patternSlots:"0", +C:[{N:"templateRule",prec:"0",prio:"0.5",seq:"298",rank:"0",minImp:"0",slots:"0",matches:"NE nQ{http://ns.saxonica.com/xslt/export}fn",flags:"s",line:"1532",module:"xpath.xsl",C:[{N:"p.withPredicate",role:"match",C:[{N:"p.nodeTest",test:"NE nQ{http://ns.saxonica.com/xslt/export}fn"},{N:"vc",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions js=~ map=~ saxon=~ t=MyTypes xs=~ xsl=~ xml=~",line:"1532",op:"eq",onEmpty:"0", +comp:"CCC",C:[{N:"cast",flags:"ae",as:"?AS",C:[{N:"attVal",name:"Q{}name",chk:"0"}]},{N:"str",val:"current"}]}]},{N:"elem",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions js=~ map=~ saxon=~ t=MyTypes xs=~ xsl=~ xml=~",line:"1533",name:"varRef",nsuri:"http://ns.saxonica.com/xslt/export",flags:"d",C:[{N:"sequence",C:[{N:"att",name:"name",flags:"l",C:[{N:"str",val:"Q{http://www.w3.org/2005/xpath-functions}current"}]}, +{N:"att",name:"slot",flags:"l",C:[{N:"str",val:"0"}]},{N:"axis",line:"1534",name:"attribute",nodeTest:"NA nQ{}sType"}]}]}]}]}]},{N:"co",id:"196",binds:"4",C:[{N:"function",name:"Q{MyFunctions}not-reserved",line:"81",module:"lib.xsl",eval:"16",flags:"pU",as:"1AS",slots:"2",C:[{N:"arg",name:"Q{}eqName",as:"1AS"},{N:"arg",name:"Q{}location",as:"?N"},{N:"choose",role:"body",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~", +line:"85",C:[{N:"fn",name:"matches",C:[{N:"varRef",name:"Q{}eqName",slot:"0"},{N:"str",val:"^Q\\{http://www.w3.org/(1999/XSL/Transform|2005/xpath-functions(/map|/math|/array)?|XML/1998/namespace|2001/XMLSchema(-instance)?|2005/xqt-errors|2000/xmlns/)\\}"},{N:"str",val:""}]},{N:"treat",line:"86",as:"AS",diag:"5|0|XTTE0780|f:not-reserved#2",C:[{N:"check",card:"1",diag:"5|0|XTTE0780|f:not-reserved#2",C:[{N:"cvUntyped",to:"AS",diag:"5|0|XTTE0780|f:not-reserved#2",C:[{N:"data",diag:"5|0|XTTE0780|f:not-reserved#2", +C:[{N:"ufCall",name:"Q{MyFunctions}syntax-error-at",tailCall:"false",bSlot:"0",eval:"0 16 16",C:[{N:"str",val:"XTSE0080"},{N:"fn",name:"concat",C:[{N:"str",val:"Namespace "},{N:"fn",name:"substring-before",C:[{N:"fn",name:"substring-after",C:[{N:"varRef",name:"Q{}eqName",slot:"0"},{N:"str",val:"Q{"}]},{N:"str",val:"}"}]},{N:"str",val:" is reserved for system use"}]},{N:"check",card:"1",diag:"0|2||f:syntax-error-at",C:[{N:"varRef",name:"Q{}location",slot:"1"}]}]}]}]}]}]},{N:"true"},{N:"varRef",line:"89", +name:"Q{}eqName",slot:"0"}]}]}]},{N:"co",id:"197",binds:"",C:[{N:"globalVariable",name:"Q{}testHOF",as:"1AB",line:"216",module:"XSLT-SEF-compiler.xsl",visibility:"PUBLIC",flags:"s",C:[{N:"false"}]}]},{N:"co",id:"193",binds:"84 4 4 4",C:[{N:"template",name:"Q{}XSLT-version",flags:"os",as:"1AD",line:"37",module:"static.xsl",slots:"2",C:[{N:"let",role:"body",ns:"doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions t=MyTypes xs=~ xsl=~ xml=~",line:"38","var":"Q{}version-attribute", +as:"*NA",slot:"0",eval:"4",C:[{N:"choose",line:"40",C:[{N:"fn",name:"exists",C:[{N:"slash",simple:"1",C:[{N:"treat",as:"N",diag:"14|2|XPTY0020|",C:[{N:"dot",flags:"a"}]},{N:"axis",name:"attribute",nodeTest:"NA nQ{}_version"}]}]},{N:"treat",line:"41",as:"NA",diag:"3|0|XTTE0570|version-attribute",C:[{N:"applyT",mode:"Q{}static",bSlot:"0",C:[{N:"slash",role:"select",simple:"1",C:[{N:"treat",as:"N",diag:"14|2|XPTY0020|",C:[{N:"dot",flags:"a"}]},{N:"axis",name:"attribute",nodeTest:"NA nQ{}_version"}]}]}]}, +{N:"fn",line:"51",name:"exists",C:[{N:"slash",simple:"1",C:[{N:"treat",as:"N",diag:"14|12|XPTY0020|",C:[{N:"dot",flags:"a"}]},{N:"axis",name:"self",nodeTest:"NE nQ{http://www.w3.org/1999/XSL/Transform}*"}]}]},{N:"slash",line:"51",simple:"1",C:[{N:"treat",as:"N",diag:"14|2|XPTY0020|",C:[{N:"dot",flags:"a"}]},{N:"axis",name:"attribute",nodeTest:"NA nQ{}version"}]},{N:"true"},{N:"slash",line:"51",simple:"1",C:[{N:"treat",as:"N",diag:"14|2|XPTY0020|",C:[{N:"dot",flags:"a"}]},{N:"axis",name:"attribute", +nodeTest:"NA nQ{http://www.w3.org/1999/XSL/Transform}version"}]}]},{N:"check",line:"55",card:"1",diag:"7|0|XTTE0505|XSLT-version",C:[{N:"sequence",C:[{N:"choose",C:[{N:"and",op:"and",C:[{N:"fn",name:"exists",C:[{N:"slash",simple:"1",C:[{N:"treat",as:"N",diag:"14|12|XPTY0020|",C:[{N:"dot",flags:"a"}]},{N:"axis",name:"self",nodeTest:"NE nQ{http://www.w3.org/1999/XSL/Transform}*"}]}]},{N:"fn",name:"empty",C:[{N:"varRef",name:"Q{}version-attribute",slot:"0"}]}]},{N:"treat",line:"56",as:"AD",diag:"7|0|XTTE0505|XSLT-version", +C:[{N:"cvUntyped",to:"AD",diag:"7|0|XTTE0505|XSLT-version",C:[{N:"data",diag:"7|0|XTTE0505|XSLT-version",C:[{N:"ufCall",name:"Q{MyFunctions}syntax-error-at",tailCall:"false",bSlot:"1",eval:"0 16 16",C:[{N:"str",val:"XTSE0010"},{N:"fn",name:"concat",C:[{N:"fn",name:"name",C:[{N:"treat",as:"N",diag:"0|0||fn:name",C:[{N:"dot",flags:"a"}]}]},{N:"str",val:" lacks @version"}]},{N:"treat",as:"N",diag:"0|2||f:syntax-error-at",C:[{N:"dot",flags:"a"}]}]}]}]}]}]},{N:"choose",line:"58",C:[{N:"and",op:"and",C:[{N:"fn", +name:"empty",C:[{N:"slash",simple:"1",C:[{N:"treat",as:"N",diag:"14|12|XPTY0020|",C:[{N:"dot",flags:"a"}]},{N:"axis",name:"self",nodeTest:"NE nQ{http://www.w3.org/1999/XSL/Transform}*"}]}]},{N:"fn",name:"empty",C:[{N:"varRef",name:"Q{}version-attribute",slot:"0"}]}]},{N:"sequence",line:"59",C:[{N:"treat",as:"AD",diag:"7|0|XTTE0505|XSLT-version",C:[{N:"cvUntyped",to:"AD",diag:"7|0|XTTE0505|XSLT-version",C:[{N:"data",diag:"7|0|XTTE0505|XSLT-version",C:[{N:"message",C:[{N:"valueOf",role:"select",C:[{N:"fn", +name:"concat",C:[{N:"str",val:"Root element "},{N:"convert",from:"AU",to:"AS",C:[{N:"fn",name:"namespace-uri",C:[{N:"treat",as:"N",diag:"0|0||fn:namespace-uri",C:[{N:"dot",flags:"a"}]}]}]},{N:"str",val:" - "},{N:"fn",name:"local-name",C:[{N:"treat",as:"N",diag:"0|0||fn:local-name",C:[{N:"dot",flags:"a"}]}]},{N:"str",val:"; Version attribute "},{N:"fn",name:"name",C:[{N:"check",card:"?",diag:"0|0||fn:name",C:[{N:"varRef",name:"Q{}version-attribute",slot:"0"}]}]},{N:"str",val:" = "},{N:"fn",name:"string", +C:[{N:"check",card:"?",diag:"0|0||fn:string",C:[{N:"varRef",name:"Q{}version-attribute",slot:"0"}]}]}]}]},{N:"str",role:"terminate",val:"no"},{N:"str",role:"error",val:"Q{http://www.w3.org/2005/xqt-errors}XTMM9000"}]}]}]}]},{N:"treat",line:"60",as:"AD",diag:"7|0|XTTE0505|XSLT-version",C:[{N:"cvUntyped",to:"AD",diag:"7|0|XTTE0505|XSLT-version",C:[{N:"data",diag:"7|0|XTTE0505|XSLT-version",C:[{N:"ufCall",name:"Q{MyFunctions}syntax-error-at",tailCall:"false",bSlot:"2",eval:"0 16 16",C:[{N:"str",val:"XTSE0150"}, +{N:"fn",name:"concat",C:[{N:"str",val:"Simplified stylesheet "},{N:"fn",name:"name",C:[{N:"treat",as:"N",diag:"0|0||fn:name",C:[{N:"dot",flags:"a"}]}]},{N:"str",val:" lacks @xsl:version"}]},{N:"treat",as:"N",diag:"0|2||f:syntax-error-at",C:[{N:"dot",flags:"a"}]}]}]}]}]}]}]},{N:"let",line:"62","var":"Q{}version-string",as:"1AS",slot:"1",eval:"8",C:[{N:"fn",name:"replace",C:[{N:"check",card:"?",diag:"0|0||fn:replace",C:[{N:"cvUntyped",to:"AS",C:[{N:"data",diag:"0|0||fn:replace",C:[{N:"varRef",name:"Q{}version-attribute", +slot:"0"}]}]}]},{N:"str",val:"^\\+"},{N:"str",val:""},{N:"str",val:""}]},{N:"sequence",line:"63",C:[{N:"choose",C:[{N:"fn",name:"not",C:[{N:"castable",flags:"a",as:"1AD",C:[{N:"varRef",name:"Q{}version-string",slot:"1"}]}]},{N:"treat",line:"65",as:"AD",diag:"7|0|XTTE0505|XSLT-version",C:[{N:"cvUntyped",to:"AD",diag:"7|0|XTTE0505|XSLT-version",C:[{N:"data",diag:"7|0|XTTE0505|XSLT-version",C:[{N:"ufCall",name:"Q{MyFunctions}syntax-error-at",tailCall:"false",bSlot:"3",eval:"0 16 16",C:[{N:"str",val:"XTSE0110"}, +{N:"fn",name:"concat",C:[{N:"str",val:"Stylesheet version must be an xs:decimal value. Value is "},{N:"atomSing",card:"?",diag:"0|1||fn:concat",C:[{N:"varRef",name:"Q{}version-attribute",slot:"0"}]}]},{N:"treat",as:"N",diag:"0|2||f:syntax-error-at",C:[{N:"dot",flags:"a"}]}]}]}]}]}]},{N:"choose",line:"76",C:[{N:"castable",flags:"a",as:"1AD",C:[{N:"varRef",name:"Q{}version-string",slot:"1"}]},{N:"cast",flags:"a",as:"1AD",C:[{N:"varRef",name:"Q{}version-string",slot:"1"}]},{N:"true"},{N:"dec",val:"3"}]}]}]}]}]}]}]}]}, +{N:"co",id:"198",binds:"",C:[{N:"globalVariable",name:"Q{}ST.MULTIPLE_ATTRIBUTE",as:"1FM k[AS] v[1AS]",line:"36",module:"sequenceType.xsl",visibility:"PRIVATE",C:[{N:"map",size:"2",C:[{N:"str",val:"o"},{N:"str",val:"*"},{N:"str",val:"p"},{N:"str",val:"NA"}]}]}]},{N:"co",id:"199",binds:"",C:[{N:"function",name:"Q{MyFunctions}has-same-namespaces",line:"91",module:"namespaces.xsl",eval:"16",flags:"pU",as:"1AB",slots:"5",C:[{N:"arg",name:"Q{}n1",as:"1NE"},{N:"arg",name:"Q{}n2",as:"1NE"},{N:"let",role:"body", +ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"94","var":"Q{}n1.prefixes",as:"*AS",slot:"2",eval:"4",C:[{N:"fn",name:"in-scope-prefixes",C:[{N:"varRef",name:"Q{}n1",slot:"0"}]},{N:"let",line:"95","var":"Q{}n2.prefixes",as:"*AS",slot:"3",eval:"4",C:[{N:"fn",name:"in-scope-prefixes",C:[{N:"varRef",name:"Q{}n2",slot:"1"}]},{N:"and",line:"101",op:"and",C:[{N:"vc",op:"eq",onEmpty:"0", +comp:"CAVC",C:[{N:"fn",name:"count",C:[{N:"varRef",name:"Q{}n1.prefixes",slot:"2"}]},{N:"fn",name:"count",C:[{N:"varRef",name:"Q{}n2.prefixes",slot:"3"}]}]},{N:"every","var":"Q{}p",slot:"4",C:[{N:"varRef",name:"Q{}n1.prefixes",slot:"2"},{N:"and",op:"and",C:[{N:"gc",op:"=",card:"N:1",comp:"CCC",C:[{N:"varRef",name:"Q{}n2.prefixes",slot:"3"},{N:"varRef",name:"Q{}p",slot:"4"}]},{N:"vc",op:"eq",onEmpty:"0",comp:"CCC",C:[{N:"fn",name:"namespace-uri-for-prefix",C:[{N:"varRef",name:"Q{}p",slot:"4"},{N:"varRef", +name:"Q{}n1",slot:"0"}]},{N:"fn",name:"namespace-uri-for-prefix",C:[{N:"varRef",name:"Q{}p",slot:"4"},{N:"varRef",name:"Q{}n2",slot:"1"}]}]}]}]}]}]}]}]}]},{N:"co",id:"200",binds:"",C:[{N:"globalVariable",name:"Q{}TypeHierarchy.OVERLAPS",as:"1AS",line:"166",module:"type.xsl",visibility:"PRIVATE",flags:"s",C:[{N:"str",val:"OV"}]}]},{N:"co",id:"201",binds:"104 98 104 98 104 98 104 98 104 98 104 98",C:[{N:"template",name:"Q{}numberFormat",flags:"os",as:"*NE",line:"68",module:"numbering.xsl",slots:"2", +C:[{N:"sequence",role:"body",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~",line:"69",C:[{N:"param",name:"Q{}xpath-default-namespace",slot:"0",flags:"t",as:"?NA",C:[{N:"empty",role:"select"},{N:"treat",role:"conversion",as:"NA",diag:"8|0|XTTE0590|xpath-default-namespace",C:[{N:"check",card:"?",diag:"8|0|XTTE0590|xpath-default-namespace",C:[{N:"supplied",slot:"0"}]}]}]}, +{N:"param",line:"70",name:"Q{}default-collation",slot:"1",flags:"t",as:"?NA",C:[{N:"empty",role:"select"},{N:"treat",role:"conversion",as:"NA",diag:"8|0|XTTE0590|default-collation",C:[{N:"check",card:"?",diag:"8|0|XTTE0590|default-collation",C:[{N:"supplied",slot:"1"}]}]}]},{N:"callT",line:"72",name:"Q{MyFunctions}AVT",bSlot:"0",C:[{N:"withParam",name:"Q{}avt-string",flags:"c",as:"?NA nQ{}format",C:[{N:"slash",line:"73",simple:"1",C:[{N:"treat",as:"N",diag:"14|2|XPTY0020|",C:[{N:"dot",flags:"a"}]}, +{N:"axis",name:"attribute",nodeTest:"NA nQ{}format"}]}]},{N:"withParam",name:"Q{}default",flags:"c",as:"1AS",C:[{N:"str",val:"1"}]},{N:"withParam",name:"Q{}role",flags:"c",as:"?NA",C:[{N:"treat",line:"75",as:"NA",diag:"8|0|XTTE0590|role",C:[{N:"check",card:"?",diag:"8|0|XTTE0590|role",C:[{N:"lookup",C:[{N:"gVarRef",name:"Q{}roles",bSlot:"1"},{N:"str",val:"format"}]}]}]}]}]},{N:"callT",line:"77",name:"Q{MyFunctions}AVT",bSlot:"2",C:[{N:"withParam",name:"Q{}avt-string",flags:"c",as:"?NA nQ{}start-at", +C:[{N:"slash",line:"78",simple:"1",C:[{N:"treat",as:"N",diag:"14|2|XPTY0020|",C:[{N:"dot",flags:"a"}]},{N:"axis",name:"attribute",nodeTest:"NA nQ{}start-at"}]}]},{N:"withParam",name:"Q{}default",flags:"c",as:"1AS",C:[{N:"str",val:"1"}]},{N:"withParam",name:"Q{}role",flags:"c",as:"?NA",C:[{N:"treat",line:"80",as:"NA",diag:"8|0|XTTE0590|role",C:[{N:"check",card:"?",diag:"8|0|XTTE0590|role",C:[{N:"lookup",C:[{N:"gVarRef",name:"Q{}roles",bSlot:"3"},{N:"str",val:"startAt"}]}]}]}]}]},{N:"choose",line:"82", +C:[{N:"fn",name:"exists",C:[{N:"slash",simple:"1",C:[{N:"treat",as:"N",diag:"14|2|XPTY0020|",C:[{N:"dot",flags:"a"}]},{N:"axis",name:"attribute",nodeTest:"NA nQ{}grouping-separator"}]}]},{N:"callT",line:"83",name:"Q{MyFunctions}AVT",bSlot:"4",C:[{N:"withParam",name:"Q{}avt-string",flags:"c",as:"?NA nQ{}grouping-separator",C:[{N:"slash",line:"84",simple:"1",C:[{N:"treat",as:"N",diag:"14|2|XPTY0020|",C:[{N:"dot",flags:"a"}]},{N:"axis",name:"attribute",nodeTest:"NA nQ{}grouping-separator"}]}]},{N:"withParam", +name:"Q{}default",flags:"c",as:"1AS",C:[{N:"str",val:""}]},{N:"withParam",name:"Q{}role",flags:"c",as:"?NA",C:[{N:"treat",line:"86",as:"NA",diag:"8|0|XTTE0590|role",C:[{N:"check",card:"?",diag:"8|0|XTTE0590|role",C:[{N:"lookup",C:[{N:"gVarRef",name:"Q{}roles",bSlot:"5"},{N:"str",val:"gpSep"}]}]}]}]}]}]},{N:"choose",line:"89",C:[{N:"fn",name:"exists",C:[{N:"slash",simple:"1",C:[{N:"treat",as:"N",diag:"14|2|XPTY0020|",C:[{N:"dot",flags:"a"}]},{N:"axis",name:"attribute",nodeTest:"NA nQ{}grouping-size"}]}]}, +{N:"callT",line:"90",name:"Q{MyFunctions}AVT",bSlot:"6",C:[{N:"withParam",name:"Q{}avt-string",flags:"c",as:"?NA nQ{}grouping-size",C:[{N:"slash",line:"91",simple:"1",C:[{N:"treat",as:"N",diag:"14|2|XPTY0020|",C:[{N:"dot",flags:"a"}]},{N:"axis",name:"attribute",nodeTest:"NA nQ{}grouping-size"}]}]},{N:"withParam",name:"Q{}default",flags:"c",as:"1AS",C:[{N:"str",val:"0"}]},{N:"withParam",name:"Q{}role",flags:"c",as:"?NA",C:[{N:"treat",line:"93",as:"NA",diag:"8|0|XTTE0590|role",C:[{N:"check",card:"?", +diag:"8|0|XTTE0590|role",C:[{N:"lookup",C:[{N:"gVarRef",name:"Q{}roles",bSlot:"7"},{N:"str",val:"gpSize"}]}]}]}]}]}]},{N:"choose",line:"96",C:[{N:"fn",name:"exists",C:[{N:"slash",simple:"1",C:[{N:"treat",as:"N",diag:"14|2|XPTY0020|",C:[{N:"dot",flags:"a"}]},{N:"axis",name:"attribute",nodeTest:"NA nQ{}ordinal"}]}]},{N:"callT",line:"97",name:"Q{MyFunctions}AVT",bSlot:"8",C:[{N:"withParam",name:"Q{}avt-string",flags:"c",as:"?NA nQ{}ordinal",C:[{N:"slash",line:"98",simple:"1",C:[{N:"treat",as:"N",diag:"14|2|XPTY0020|", +C:[{N:"dot",flags:"a"}]},{N:"axis",name:"attribute",nodeTest:"NA nQ{}ordinal"}]}]},{N:"withParam",name:"Q{}default",flags:"c",as:"1AS",C:[{N:"str",val:"false"}]},{N:"withParam",name:"Q{}role",flags:"c",as:"?NA",C:[{N:"treat",line:"100",as:"NA",diag:"8|0|XTTE0590|role",C:[{N:"check",card:"?",diag:"8|0|XTTE0590|role",C:[{N:"lookup",C:[{N:"gVarRef",name:"Q{}roles",bSlot:"9"},{N:"str",val:"ordinal"}]}]}]}]}]}]},{N:"choose",line:"103",C:[{N:"fn",name:"exists",C:[{N:"slash",simple:"1",C:[{N:"treat",as:"N", +diag:"14|2|XPTY0020|",C:[{N:"dot",flags:"a"}]},{N:"axis",name:"attribute",nodeTest:"NA nQ{}lang"}]}]},{N:"callT",line:"107",name:"Q{MyFunctions}AVT",bSlot:"10",flags:"t",C:[{N:"withParam",name:"Q{}avt-string",flags:"c",as:"?NA nQ{}lang",C:[{N:"slash",line:"108",simple:"1",C:[{N:"treat",as:"N",diag:"14|2|XPTY0020|",C:[{N:"dot",flags:"a"}]},{N:"axis",name:"attribute",nodeTest:"NA nQ{}lang"}]}]},{N:"withParam",name:"Q{}default",flags:"c",as:"1AS",C:[{N:"str",val:"en"}]},{N:"withParam",name:"Q{}role", +flags:"c",as:"?NA",C:[{N:"treat",line:"110",as:"NA",diag:"8|0|XTTE0590|role",C:[{N:"check",card:"?",diag:"8|0|XTTE0590|role",C:[{N:"lookup",C:[{N:"gVarRef",name:"Q{}roles",bSlot:"11"},{N:"str",val:"lang"}]}]}]}]}]}]}]}]}]},{N:"co",id:"202",binds:"202 202",C:[{N:"function",name:"Q{MyFunctions}is-tail-position",line:"258",module:"lib.xsl",eval:"16",flags:"pU",as:"1AB",slots:"1",C:[{N:"arg",name:"Q{}context",as:"1NE"},{N:"check",role:"body",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~", +line:"260",card:"1",diag:"5|0|XTTE0780|f:is-tail-position#1",C:[{N:"forEach",C:[{N:"varRef",name:"Q{}context",slot:"0"},{N:"and",line:"267",op:"and",C:[{N:"fn",line:"256",name:"empty",C:[{N:"filter",flags:"b",C:[{N:"slash",line:"267",simple:"1",C:[{N:"dot",type:"1NE"},{N:"axis",line:"256",name:"following-sibling",nodeTest:"NE"}]},{N:"fn",name:"empty",C:[{N:"axis",name:"self",nodeTest:"NE u[NE nQ{http://www.w3.org/1999/XSL/Transform}fallback,NE nQ{http://www.w3.org/1999/XSL/Transform}catch]"}]}]}]}, +{N:"or",op:"or",C:[{N:"or",op:"or",C:[{N:"fn",name:"exists",C:[{N:"axis",name:"parent",nodeTest:"NE u[NE u[NE nQ{http://www.w3.org/1999/XSL/Transform}iterate,NE nQ{http://www.w3.org/1999/XSL/Transform}try],NE nQ{http://www.w3.org/1999/XSL/Transform}catch]"}]},{N:"choose",C:[{N:"fn",name:"exists",C:[{N:"axis",name:"parent",nodeTest:"NE nQ{http://www.w3.org/1999/XSL/Transform}if"}]},{N:"ufCall",name:"Q{MyFunctions}is-tail-position",tailCall:"false",bSlot:"0",eval:"16",C:[{N:"treat",as:"NE",diag:"0|0||f:is-tail-position", +C:[{N:"check",card:"1",diag:"0|0||f:is-tail-position",C:[{N:"axis",name:"parent",nodeTest:"N u[NE,ND]"}]}]}]},{N:"true"},{N:"false"}]}]},{N:"choose",C:[{N:"fn",name:"exists",C:[{N:"axis",name:"parent",nodeTest:"NE u[NE nQ{http://www.w3.org/1999/XSL/Transform}when,NE nQ{http://www.w3.org/1999/XSL/Transform}otherwise]"}]},{N:"ufCall",name:"Q{MyFunctions}is-tail-position",tailCall:"false",bSlot:"1",eval:"16",C:[{N:"treat",as:"NE",diag:"0|0||f:is-tail-position",C:[{N:"check",card:"1",diag:"0|0||f:is-tail-position", +C:[{N:"docOrder",intra:"1",C:[{N:"slash",simple:"2",C:[{N:"axis",name:"parent",nodeTest:"N u[NE,ND]"},{N:"axis",name:"parent",nodeTest:"N u[NE,ND]"}]}]}]}]}]},{N:"true"},{N:"false"}]}]}]}]}]}]}]},{N:"co",id:"203",binds:"",C:[{N:"globalVariable",name:"Q{MyTypes}card-values",as:"1FM k[AS] v[1ADI]",line:"120",module:"type.xsl",visibility:"PRIVATE",flags:"s",C:[{N:"map",size:"5",C:[{N:"str",val:"*"},{N:"int",val:"7"},{N:"str",val:"+"},{N:"int",val:"6"},{N:"str",val:"0"},{N:"int",val:"1"},{N:"str",val:"1"}, +{N:"int",val:"2"},{N:"str",val:"?"},{N:"int",val:"3"}]}]}]},{N:"co",id:"204",binds:"",C:[{N:"globalVariable",name:"Q{}group.function-names",as:"*AS",line:"955",module:"xpath.xsl",visibility:"PRIVATE",C:[{N:"forEach",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions js=~ map=~ saxon=~ t=MyTypes xs=~ xsl=~ xml=~",line:"955",C:[{N:"literal",count:"2",C:[{N:"str",val:"group"},{N:"str",val:"grouping-key"}]},{N:"fn", +name:"concat",C:[{N:"str",val:"Q{http://www.w3.org/2005/xpath-functions}current-"},{N:"dot",type:"1AS"}]}]}]}]},{N:"co",id:"205",binds:"",C:[{N:"function",name:"Q{MyFunctions}is-aliased-name",line:"551",module:"creating-new-nodes.xsl",eval:"8",flags:"pU",as:"1AB",slots:"2",C:[{N:"arg",name:"Q{}original-name",as:"1AQ"},{N:"arg",name:"Q{}namespace-aliases",as:"1FM"},{N:"ifCall",role:"body",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~", +line:"556",name:"Q{http://www.w3.org/2005/xpath-functions/map}contains",type:"1AB",C:[{N:"varRef",name:"Q{}namespace-aliases",slot:"1"},{N:"fn",line:"555",name:"namespace-uri-from-QName",C:[{N:"varRef",name:"Q{}original-name",slot:"0"}]}]}]}]},{N:"co",id:"194",binds:"84",C:[{N:"template",name:"Q{}staticText",flags:"os",line:"861",module:"static.xsl",slots:"2",C:[{N:"sequence",role:"body",ns:"doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions t=MyTypes xs=~ xsl=~ xml=~", +line:"862",C:[{N:"param",name:"Q{}xml-space-preserve",slot:"0",flags:"t",C:[{N:"false",role:"select"},{N:"supplied",role:"conversion",slot:"0"}]},{N:"iterate",line:"864",C:[{N:"slash",role:"select",simple:"1",C:[{N:"treat",as:"N",diag:"1|0|XPTY0019|/",C:[{N:"dot",flags:"a"}]},{N:"axis",name:"child",nodeTest:"N u[NT,NP,NE,NC]"}]},{N:"params",role:"params",line:"865",C:[{N:"param",name:"Q{}pending-text",slot:"1",as:"1AS",C:[{N:"str",role:"select",val:""},{N:"treat",role:"conversion",as:"AS",diag:"8|0|XTTE0590|pending-text", +C:[{N:"check",card:"1",diag:"8|0|XTTE0590|pending-text",C:[{N:"cvUntyped",to:"AS",diag:"8|0|XTTE0590|pending-text",C:[{N:"data",diag:"8|0|XTTE0590|pending-text",C:[{N:"supplied",slot:"1"}]}]}]}]}]}]},{N:"choose",role:"on-completion",line:"867",C:[{N:"or",op:"or",C:[{N:"fn",name:"normalize-space",C:[{N:"varRef",name:"Q{}pending-text",slot:"1"}]},{N:"varRef",name:"Q{}xml-space-preserve",slot:"0"}]},{N:"valueOf",line:"868",C:[{N:"varRef",name:"Q{}pending-text",slot:"1"}]}]},{N:"choose",role:"action", +line:"872",C:[{N:"instance",of:"1NE",C:[{N:"dot",type:"1N u[NT,NP,NE,NC]"}]},{N:"sequence",line:"873",C:[{N:"choose",C:[{N:"or",op:"or",C:[{N:"fn",name:"normalize-space",C:[{N:"varRef",name:"Q{}pending-text",slot:"1"}]},{N:"varRef",name:"Q{}xml-space-preserve",slot:"0"}]},{N:"valueOf",line:"874",C:[{N:"varRef",name:"Q{}pending-text",slot:"1"}]}]},{N:"applyT",line:"876",mode:"Q{}static",bSlot:"0",C:[{N:"dot",role:"select",type:"1N u[NT,NP,NE,NC]"}]},{N:"nextIteration",line:"878",C:[{N:"withParam", +name:"Q{}pending-text",as:"1AS",slot:"1",C:[{N:"str",val:""}]}]}]},{N:"instance",line:"881",of:"1NT",C:[{N:"dot",type:"1N u[NT,NP,NE,NC]"}]},{N:"nextIteration",line:"884",C:[{N:"withParam",name:"Q{}pending-text",as:"1AS",slot:"1",C:[{N:"fn",name:"concat",C:[{N:"varRef",name:"Q{}pending-text",slot:"1"},{N:"atomSing",card:"?",diag:"0|1||fn:concat",C:[{N:"dot",type:"1N u[NT,NP,NE,NC]"}]}]}]}]}]}]}]}]}]},{N:"co",id:"206",binds:"36",C:[{N:"globalVariable",name:"Q{}standard.attributes",as:"*NA",line:"301", +module:"XSLT-syntax.xsl",visibility:"PRIVATE",C:[{N:"docOrder",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"301",intra:"0",C:[{N:"filter",flags:"b",C:[{N:"slash",simple:"2",C:[{N:"gVarRef",name:"Q{}xslt.standard.attributes",bSlot:"0"},{N:"axis",name:"attribute",nodeTest:"NA nQ{}name"}]},{N:"fn",name:"not",C:[{N:"fn",name:"starts-with",C:[{N:"cvUntyped",to:"AS",C:[{N:"data",diag:"0|0||fn:starts-with", +C:[{N:"dot",type:"1NA nQ{}name"}]}]},{N:"str",val:"_"}]}]}]}]}]}]},{N:"co",id:"207",binds:"208",C:[{N:"globalVariable",name:"Q{}xslt.schema",as:"1FM",line:"159",module:"XSLT-schema.xsl",visibility:"PRIVATE",C:[{N:"treat",ns:"f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"159",as:"FM",diag:"3|0|XTTE0570|xslt.schema",C:[{N:"check",card:"1",diag:"3|0|XTTE0570|xslt.schema",C:[{N:"fn",name:"parse-json",C:[{N:"gVarRef",name:"Q{}xslt.schema.json",bSlot:"0"}]}]}]}]}]},{N:"co",id:"209",binds:"",C:[{N:"globalVariable", +name:"Q{}FAST_JAVA_XPATH",as:"1AB",line:"103",module:"xpath.xsl",visibility:"PUBLIC",flags:"s",C:[{N:"false"}]}]},{N:"co",id:"210",binds:"",C:[{N:"function",name:"Q{MyTypes}isAtomic",line:"458",module:"type.xsl",eval:"16",flags:"pU",as:"1AB",slots:"2",C:[{N:"arg",name:"Q{}type",as:"1FM"},{N:"let",role:"body",ns:"doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~",line:"460","var":"Q{}alphaCode",slot:"1",eval:"4", +C:[{N:"lookup",C:[{N:"varRef",name:"Q{}type",slot:"0"},{N:"str",val:"p"}]},{N:"or",line:"461",op:"or",C:[{N:"gc",op:"=",card:"N:1",comp:"GAC|http://www.w3.org/2005/xpath-functions/collation/codepoint",C:[{N:"data",diag:"1|0||=",C:[{N:"varRef",name:"Q{}alphaCode",slot:"1"}]},{N:"str",val:""}]},{N:"fn",name:"starts-with",C:[{N:"treat",as:"AS",diag:"0|0||fn:starts-with",C:[{N:"check",card:"?",diag:"0|0||fn:starts-with",C:[{N:"cvUntyped",to:"AS",C:[{N:"data",diag:"0|0||fn:starts-with",C:[{N:"varRef", +name:"Q{}alphaCode",slot:"1"}]}]}]}]},{N:"str",val:"A"}]}]}]}]}]},{N:"co",id:"61",binds:"",C:[{N:"globalVariable",name:"Q{}known-namespaces",as:"1FM k[AS] v[1AS]",line:"573",module:"XSLT-SEF-compiler.xsl",visibility:"PRIVATE",flags:"s",C:[{N:"map",size:"12",C:[{N:"str",val:"err"},{N:"str",val:"http://www.w3.org/2005/xqt-errors"},{N:"str",val:"fn"},{N:"str",val:"http://www.w3.org/2005/xpath-functions"},{N:"str",val:"math"},{N:"str",val:"http://www.w3.org/2005/xpath-functions/math"},{N:"str",val:"ixsl"}, +{N:"str",val:"http://saxonica.com/ns/interactiveXSLT"},{N:"str",val:"js"},{N:"str",val:"http://saxonica.com/ns/globalJS"},{N:"str",val:"saxon"},{N:"str",val:"http://saxon.sf.net/"},{N:"str",val:"xsi"},{N:"str",val:"http://www.w3.org/2001/XMLSchema-instance"},{N:"str",val:"xsl"},{N:"str",val:"http://www.w3.org/1999/XSL/Transform"},{N:"str",val:"xml"},{N:"str",val:"http://www.w3.org/XML/1998/namespace"},{N:"str",val:"array"},{N:"str",val:"http://www.w3.org/2005/xpath-functions/array"},{N:"str",val:"xs"}, +{N:"str",val:"http://www.w3.org/2001/XMLSchema"},{N:"str",val:"map"},{N:"str",val:"http://www.w3.org/2005/xpath-functions/map"}]}]}]},{N:"co",id:"60",binds:"",C:[{N:"function",name:"Q{MyFunctions}has-uniform-static-context",line:"127",module:"namespaces.xsl",eval:"16",flags:"pU",as:"1AB",slots:"2",C:[{N:"arg",name:"Q{}element",as:"1N"},{N:"let",role:"body",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~", +line:"131","var":"Q{http://saxon.sf.net/generated-variable}cc539752098",as:"*NE",slot:"1",eval:"4",C:[{N:"slash",simple:"1",C:[{N:"varRef",name:"Q{}element",slot:"0"},{N:"axis",name:"descendant",nodeTest:"NE"}]},{N:"and",line:"134",op:"and",C:[{N:"and",op:"and",C:[{N:"and",op:"and",C:[{N:"fn",line:"130",name:"empty",C:[{N:"slash",C:[{N:"slash",simple:"1",C:[{N:"varRef",name:"Q{}element",slot:"0"},{N:"axis",name:"descendant",nodeTest:"NE nQ{http://www.w3.org/1999/XSL/Transform}*"}]},{N:"sequence", +C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}version"},{N:"axis",name:"attribute",nodeTest:"NA nQ{}default-collation"}]}]}]},{N:"fn",line:"131",name:"empty",C:[{N:"slash",C:[{N:"varRef",name:"Q{http://saxon.sf.net/generated-variable}cc539752098",slot:"1"},{N:"sequence",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{http://www.w3.org/1999/XSL/Transform}version"},{N:"axis",name:"attribute",nodeTest:"NA nQ{http://www.w3.org/1999/XSL/Transform}default-collation"}]}]}]}]},{N:"ifCall",line:"107",name:"Q{http://saxon.sf.net/}has-uniform-namespaces", +type:"1AB",C:[{N:"treat",as:"NE",diag:"0|0||saxon:has-uniform-namespaces",C:[{N:"varRef",line:"129",name:"Q{}element",slot:"0"}]}]}]},{N:"fn",line:"133",name:"empty",C:[{N:"slash",simple:"2",C:[{N:"varRef",name:"Q{http://saxon.sf.net/generated-variable}cc539752098",slot:"1"},{N:"axis",name:"attribute",nodeTest:"NA nQ{http://ns.saxonica.com/xslt/export}baseUri"}]}]}]}]}]}]},{N:"co",id:"24",binds:"",C:[{N:"globalVariable",name:"Q{MyTypes}card-symbols",as:"1FM k[ADI] v[1]",line:"121",module:"type.xsl", +visibility:"PRIVATE",flags:"s",C:[{N:"map",size:"5",C:[{N:"int",val:"1"},{N:"str",val:"0"},{N:"int",val:"2"},{N:"str",val:"1"},{N:"int",val:"3"},{N:"str",val:"?"},{N:"int",val:"6"},{N:"str",val:"+"},{N:"int",val:"7"},{N:"str",val:"*"}]}]}]},{N:"co",id:"211",binds:"157",C:[{N:"function",name:"Q{MyFunctions}check-sort",line:"244",module:"lib.xsl",eval:"7",flags:"pU",as:"0",slots:"1",C:[{N:"arg",name:"Q{}context",as:"1NE"},{N:"choose",role:"body",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~", +line:"252",C:[{N:"fn",name:"exists",C:[{N:"filter",flags:"b",C:[{N:"slash",simple:"1",C:[{N:"varRef",name:"Q{}context",slot:"0"},{N:"axis",name:"child",nodeTest:"NE nQ{http://www.w3.org/1999/XSL/Transform}sort"}]},{N:"fn",name:"exists",C:[{N:"filter",flags:"b",C:[{N:"axis",name:"preceding-sibling",nodeTest:"NE"},{N:"fn",name:"empty",C:[{N:"axis",name:"self",nodeTest:"NE nQ{http://www.w3.org/1999/XSL/Transform}sort"}]}]}]}]}]},{N:"check",card:"0",diag:"5|0|XTTE0780|f:check-sort#1",C:[{N:"ufCall",name:"Q{MyFunctions}syntax-error", +tailCall:"false",bSlot:"0",eval:"16",C:[{N:"fn",name:"concat",C:[{N:"str",val:"xsl:sort+ must be the first children of "},{N:"slash",C:[{N:"varRef",name:"Q{}context",slot:"0"},{N:"fn",name:"name",C:[{N:"dot",type:"1NE"}]}]}]}]}]}]}]}]},{N:"co",id:"212",binds:"212",C:[{N:"template",name:"Q{}expandCharMapRef",flags:"os",line:"170",module:"output.xsl",slots:"3",C:[{N:"sequence",role:"body",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~", +line:"171",C:[{N:"param",name:"Q{}charMapRef",slot:"0",flags:"i",as:"1AS",C:[{N:"treat",role:"conversion",as:"AS",diag:"8|0|XTTE0590|charMapRef",C:[{N:"check",card:"1",diag:"8|0|XTTE0590|charMapRef",C:[{N:"cvUntyped",to:"AS",diag:"8|0|XTTE0590|charMapRef",C:[{N:"data",diag:"8|0|XTTE0590|charMapRef",C:[{N:"supplied",slot:"0"}]}]}]}]}]},{N:"param",line:"172",name:"Q{}charMaps",slot:"1",as:"*NE",C:[{N:"empty",role:"select"},{N:"treat",role:"conversion",as:"NE",diag:"8|0|XTTE0590|charMaps",C:[{N:"supplied", +slot:"1"}]}]},{N:"let",line:"174","var":"Q{}usedCharMap",as:"*NE",slot:"2",eval:"4",C:[{N:"filter",flags:"",C:[{N:"varRef",name:"Q{}charMaps",slot:"1"},{N:"vc",op:"eq",comp:"CCC",C:[{N:"attVal",name:"Q{}name",chk:"0"},{N:"varRef",name:"Q{}charMapRef",slot:"0"}]}]},{N:"choose",line:"176",C:[{N:"fn",name:"exists",C:[{N:"slash",simple:"2",C:[{N:"varRef",name:"Q{}usedCharMap",slot:"2"},{N:"axis",name:"attribute",nodeTest:"NA nQ{}use-character-maps"}]}]},{N:"sequence",line:"177",C:[{N:"forEach",C:[{N:"fn", +name:"tokenize",C:[{N:"check",card:"?",diag:"0|0||fn:tokenize",C:[{N:"cvUntyped",to:"AS",C:[{N:"data",diag:"0|0||fn:tokenize",C:[{N:"conditionalSort",C:[{N:"fn",name:"exists",C:[{N:"tail",start:"2",C:[{N:"varRef",name:"Q{}usedCharMap",slot:"2"}]}]},{N:"docOrder",intra:"0",C:[{N:"slash",simple:"2",C:[{N:"varRef",name:"Q{}usedCharMap",slot:"2"},{N:"axis",name:"attribute",nodeTest:"NA nQ{}use-character-maps"}]}]}]}]}]}]}]},{N:"callT",line:"178",name:"Q{}expandCharMapRef",bSlot:"0",C:[{N:"withParam", +name:"Q{}charMapRef",flags:"c",as:"1AS",C:[{N:"fn",line:"179",name:"normalize-space",C:[{N:"dot",type:"1AS"}]}]},{N:"withParam",name:"Q{}charMaps",flags:"c",as:"*NE",C:[{N:"varRef",line:"180",name:"Q{}charMaps",slot:"1"}]}]}]},{N:"conditionalSort",line:"183",C:[{N:"fn",name:"exists",C:[{N:"tail",start:"2",C:[{N:"varRef",name:"Q{}usedCharMap",slot:"2"}]}]},{N:"docOrder",intra:"0",C:[{N:"slash",simple:"2",C:[{N:"varRef",name:"Q{}usedCharMap",slot:"2"},{N:"axis",name:"child",nodeTest:"NE n*:m"}]}]}]}]}, +{N:"true"},{N:"conditionalSort",line:"186",C:[{N:"fn",name:"exists",C:[{N:"tail",start:"2",C:[{N:"varRef",name:"Q{}usedCharMap",slot:"2"}]}]},{N:"docOrder",intra:"0",C:[{N:"slash",simple:"2",C:[{N:"varRef",name:"Q{}usedCharMap",slot:"2"},{N:"axis",name:"child",nodeTest:"NE n*:m"}]}]}]}]}]}]}]}]},{N:"co",id:"213",binds:"4",C:[{N:"template",name:"Q{}collect-doc",flags:"os",as:"1ND",line:"894",module:"static.xsl",slots:"2",C:[{N:"check",role:"body",ns:"doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~", +line:"895",card:"1",diag:"7|0|XTTE0505|collect-doc",C:[{N:"sequence",C:[{N:"param",name:"Q{}options",slot:"0",flags:"t",as:"1FM",C:[{N:"map",role:"select",size:"0"},{N:"treat",role:"conversion",as:"FM",diag:"8|0|XTTE0590|options",C:[{N:"check",card:"1",diag:"8|0|XTTE0590|options",C:[{N:"supplied",slot:"0"}]}]}]},{N:"param",line:"896",name:"Q{}uri",slot:"1",C:[{N:"fn",role:"select",name:"resolve-uri",C:[{N:"cvUntyped",to:"AS",C:[{N:"data",diag:"0|0||fn:resolve-uri",C:[{N:"slash",simple:"1",C:[{N:"treat", +as:"N",diag:"14|2|XPTY0020|",C:[{N:"dot",flags:"a"}]},{N:"axis",name:"attribute",nodeTest:"NA nQ{}href"}]}]}]},{N:"check",card:"1",diag:"0|1||fn:resolve-uri",C:[{N:"convert",from:"AU",to:"AS",C:[{N:"fn",name:"base-uri",C:[{N:"treat",as:"N",diag:"0|0||fn:base-uri",C:[{N:"dot",flags:"a"}]}]}]}]}]},{N:"supplied",role:"conversion",slot:"1"}]},{N:"choose",line:"897",C:[{N:"lookup",C:[{N:"varRef",name:"Q{}options",slot:"0"},{N:"str",val:"debugStatic"}]},{N:"sequence",line:"898",C:[{N:"treat",as:"ND",diag:"7|0|XTTE0505|collect-doc", +C:[{N:"message",C:[{N:"sequence",role:"select",C:[{N:"str",val:"href:"},{N:"fn",name:"string",C:[{N:"slash",simple:"1",C:[{N:"treat",as:"N",diag:"14|2|XPTY0020|",C:[{N:"dot",flags:"a"}]},{N:"axis",name:"attribute",nodeTest:"NA nQ{}href"}]}]}]},{N:"str",role:"terminate",val:"no"},{N:"str",role:"error",val:"Q{http://www.w3.org/2005/xqt-errors}XTMM9000"}]}]},{N:"treat",line:"899",as:"ND",diag:"7|0|XTTE0505|collect-doc",C:[{N:"message",C:[{N:"sequence",role:"select",C:[{N:"str",val:"BASE-URI:"},{N:"fn", +name:"base-uri",C:[{N:"treat",as:"N",diag:"0|0||fn:base-uri",C:[{N:"dot",flags:"a"}]}]}]},{N:"str",role:"terminate",val:"no"},{N:"str",role:"error",val:"Q{http://www.w3.org/2005/xqt-errors}XTMM9000"}]}]},{N:"treat",line:"900",as:"ND",diag:"7|0|XTTE0505|collect-doc",C:[{N:"message",C:[{N:"sequence",role:"select",C:[{N:"str",val:"resolved-URI:"},{N:"varRef",name:"Q{}uri",slot:"1"}]},{N:"str",role:"terminate",val:"no"},{N:"str",role:"error",val:"Q{http://www.w3.org/2005/xqt-errors}XTMM9000"}]}]}]}]}, +{N:"treat",line:"903",as:"ND",diag:"7|0|XTTE0505|collect-doc",C:[{N:"try",flags:"r",C:[{N:"fn",name:"doc",C:[{N:"treat",as:"AS",diag:"0|0||fn:doc",C:[{N:"check",card:"?",diag:"0|0||fn:doc",C:[{N:"cvUntyped",to:"AS",C:[{N:"data",diag:"0|0||fn:doc",C:[{N:"varRef",name:"Q{}uri",slot:"1"}]}]}]}]}]},{N:"catch",errors:"*",C:[{N:"sequence",line:"905",C:[{N:"ufCall",name:"Q{MyFunctions}syntax-error-at",tailCall:"false",bSlot:"0",eval:"0 16 16",C:[{N:"str",val:"XTSE0165"},{N:"fn",name:"concat",C:[{N:"fn", +name:"name",C:[{N:"treat",as:"N",diag:"0|0||fn:name",C:[{N:"dot",flags:"a"}]}]},{N:"str",val:" of "},{N:"atomSing",card:"?",diag:"0|2||fn:concat",C:[{N:"varRef",name:"Q{}uri",slot:"1"}]},{N:"str",val:" failed:"},{N:"atomSing",card:"?",diag:"0|4||fn:concat",C:[{N:"ifCall",name:"Q{http://saxon.sf.net/}dynamic-error-info",type:"*",C:[{N:"str",val:"description"}]}]}]},{N:"check",card:"1",diag:"0|2||f:syntax-error-at",C:[{N:"slash",simple:"1",C:[{N:"treat",as:"N",diag:"14|2|XPTY0020|",C:[{N:"dot",flags:"a"}]}, +{N:"axis",name:"attribute",nodeTest:"NA nQ{}href"}]}]}]},{N:"doc",line:"906",C:[{N:"elem",line:"908",name:"xsl:stylesheet",nsuri:"http://www.w3.org/1999/XSL/Transform",flags:"l",C:[{N:"att",line:"909",name:"version",flags:"l",C:[{N:"str",val:"3"}]}]}]}]}]}]}]}]}]}]}]},{N:"co",id:"214",binds:"215 215",C:[{N:"function",name:"Q{MyTypes}isPlain",line:"446",module:"type.xsl",eval:"16",flags:"pU",as:"1AB",slots:"1",C:[{N:"arg",name:"Q{}type",as:"1AS"},{N:"check",role:"body",ns:"doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~", +line:"448",card:"1",diag:"5|0|XTTE0780|t:isPlain#1",C:[{N:"sequence",C:[{N:"choose",C:[{N:"fn",name:"empty",C:[{N:"lookup",C:[{N:"ifCall",name:"Q{http://www.w3.org/2005/xpath-functions/map}get",type:"*",C:[{N:"gVarRef",name:"Q{}types",bSlot:"0"},{N:"varRef",name:"Q{}type",slot:"0"}]},{N:"str",val:"isPlain"}]}]},{N:"false"}]},{N:"treat",line:"451",as:"AB",diag:"5|0|XTTE0780|t:isPlain#1",C:[{N:"cvUntyped",to:"AB",diag:"5|0|XTTE0780|t:isPlain#1",C:[{N:"data",diag:"5|0|XTTE0780|t:isPlain#1",C:[{N:"lookup", +C:[{N:"ifCall",name:"Q{http://www.w3.org/2005/xpath-functions/map}get",type:"*",C:[{N:"gVarRef",name:"Q{}types",bSlot:"1"},{N:"varRef",name:"Q{}type",slot:"0"}]},{N:"str",val:"isPlain"}]}]}]}]}]}]}]}]},{N:"co",id:"216",binds:"",C:[{N:"globalVariable",name:"Q{}StaticProperty.ALLOWS_ZERO",as:"1ADI",line:"105",module:"type.xsl",visibility:"PRIVATE",flags:"s",C:[{N:"int",val:"1"}]}]},{N:"co",id:"217",binds:"",C:[{N:"globalVariable",name:"Q{}ST.OPTIONAL_INTEGER",as:"1FM k[AS] v[1AS]",line:"22",module:"sequenceType.xsl", +visibility:"PRIVATE",C:[{N:"map",size:"2",C:[{N:"str",val:"o"},{N:"str",val:"?"},{N:"str",val:"p"},{N:"str",val:"ADI"}]}]}]},{N:"co",id:"218",binds:"",C:[{N:"globalVariable",name:"Q{}global-variables-as-pairs",as:"*",line:"203",module:"XSLT-SEF-compiler.xsl",visibility:"PUBLIC",flags:"s",C:[{N:"false"}]}]},{N:"co",id:"99",binds:"135 195 183 183 183 219 219",C:[{N:"template",name:"Q{}value-template",flags:"os",as:"?NE",line:"41",module:"value-templates.xsl",slots:"11",C:[{N:"check",role:"body",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ pvt=http://www.saxonica.com/ns/xslt-in-xslt/parse-value-template t=MyTypes xs=~ xsl=~ xml=~", +line:"42",card:"?",diag:"7|0|XTTE0505|value-template",C:[{N:"sequence",C:[{N:"param",name:"Q{}static-context",slot:"0",flags:"ti",as:"1FM",C:[{N:"treat",role:"conversion",as:"FM",diag:"8|0|XTTE0590|static-context",C:[{N:"check",card:"1",diag:"8|0|XTTE0590|static-context",C:[{N:"supplied",slot:"0"}]}]}]},{N:"param",line:"43",name:"Q{}xpath-default-namespace",slot:"1",flags:"t",as:"?NA",C:[{N:"empty",role:"select"},{N:"treat",role:"conversion",as:"NA",diag:"8|0|XTTE0590|xpath-default-namespace",C:[{N:"check", +card:"?",diag:"8|0|XTTE0590|xpath-default-namespace",C:[{N:"supplied",slot:"1"}]}]}]},{N:"param",line:"44",name:"Q{}has-uniform-static-context",slot:"2",flags:"ti",as:"1AB",C:[{N:"treat",role:"conversion",as:"AB",diag:"8|0|XTTE0590|has-uniform-static-context",C:[{N:"check",card:"1",diag:"8|0|XTTE0590|has-uniform-static-context",C:[{N:"cvUntyped",to:"AB",diag:"8|0|XTTE0590|has-uniform-static-context",C:[{N:"data",diag:"8|0|XTTE0590|has-uniform-static-context",C:[{N:"supplied",slot:"2"}]}]}]}]}]},{N:"param", +line:"45",name:"Q{}default-collation",slot:"3",flags:"t",as:"?NA",C:[{N:"empty",role:"select"},{N:"treat",role:"conversion",as:"NA",diag:"8|0|XTTE0590|default-collation",C:[{N:"check",card:"?",diag:"8|0|XTTE0590|default-collation",C:[{N:"supplied",slot:"3"}]}]}]},{N:"param",line:"47",name:"Q{}backward-compatibility",slot:"4",flags:"t",as:"1AB",C:[{N:"false",role:"select"},{N:"treat",role:"conversion",as:"AB",diag:"8|0|XTTE0590|backward-compatibility",C:[{N:"check",card:"1",diag:"8|0|XTTE0590|backward-compatibility", +C:[{N:"cvUntyped",to:"AB",diag:"8|0|XTTE0590|backward-compatibility",C:[{N:"data",diag:"8|0|XTTE0590|backward-compatibility",C:[{N:"supplied",slot:"4"}]}]}]}]}]},{N:"param",line:"48",name:"Q{}attr",slot:"5",as:"*NA",C:[{N:"empty",role:"select"},{N:"treat",role:"conversion",as:"NA",diag:"8|0|XTTE0590|attr",C:[{N:"supplied",slot:"5"}]}]},{N:"let",line:"56","var":"Q{}text.value",as:"1",slot:"6",eval:"16",C:[{N:"choose",C:[{N:"or",op:"or",C:[{N:"or",op:"or",C:[{N:"fn",name:"exists",C:[{N:"slash",simple:"1", +C:[{N:"treat",as:"N",diag:"14|9|XPTY0020|",C:[{N:"dot",flags:"a"}]},{N:"axis",name:"parent",nodeTest:"NE nQ{http://www.w3.org/1999/XSL/Transform}text"}]}]},{N:"fn",name:"exists",C:[{N:"slash",simple:"1",C:[{N:"treat",as:"N",diag:"14|12|XPTY0020|",C:[{N:"dot",flags:"a"}]},{N:"axis",name:"self",nodeTest:"NA"}]}]}]},{N:"fn",name:"exists",C:[{N:"slash",simple:"1",C:[{N:"treat",as:"N",diag:"14|12|XPTY0020|",C:[{N:"dot",flags:"a"}]},{N:"axis",name:"self",nodeTest:"NT"}]}]}]},{N:"dot",flags:"a"},{N:"true"}, +{N:"fn",name:"normalize-space",C:[{N:"treat",as:"AS",diag:"0|0||fn:normalize-space",C:[{N:"check",card:"?",diag:"0|0||fn:normalize-space",C:[{N:"cvUntyped",to:"AS",C:[{N:"data",diag:"0|0||fn:normalize-space",C:[{N:"dot",flags:"a"}]}]}]}]}]}]},{N:"let",line:"57","var":"Q{}lineNr",as:"1ADI",slot:"7",eval:"16",C:[{N:"ufCall",name:"Q{MyFunctions}line-number",tailCall:"false",bSlot:"0",eval:"16",C:[{N:"check",card:"1",diag:"0|0||f:line-number",C:[{N:"first",C:[{N:"slash",simple:"1",C:[{N:"treat",as:"N", +diag:"14|1|XPTY0020|",C:[{N:"dot",flags:"a"}]},{N:"axis",name:"ancestor-or-self",nodeTest:"NE"}]}]}]}]},{N:"let",line:"58","var":"Q{}loc",as:"1AS",slot:"8",eval:"16",C:[{N:"choose",line:"60",C:[{N:"instance",of:"1NA",C:[{N:"dot",flags:"a"}]},{N:"cvUntyped",to:"AS",diag:"3|0|XTTE0570|loc",C:[{N:"cast",flags:"a",as:"1AZ",C:[{N:"fn",name:"concat",C:[{N:"fn",name:"name",C:[{N:"check",card:"?",diag:"0|0||fn:name",C:[{N:"slash",simple:"1",C:[{N:"treat",as:"N",diag:"14|9|XPTY0020|",C:[{N:"dot",flags:"a"}]}, +{N:"axis",name:"parent",nodeTest:"N u[NE,ND]"}]}]}]},{N:"str",val:"/@"},{N:"fn",name:"name",C:[{N:"treat",as:"N",diag:"0|0||fn:name",C:[{N:"dot",flags:"a"}]}]}]}]}]},{N:"instance",line:"61",of:"1NT",C:[{N:"dot",flags:"a"}]},{N:"cvUntyped",line:"61",to:"AS",diag:"3|0|XTTE0570|loc",C:[{N:"cast",flags:"a",as:"1AZ",C:[{N:"fn",name:"concat",C:[{N:"fn",name:"name",C:[{N:"check",card:"?",diag:"0|0||fn:name",C:[{N:"slash",simple:"1",C:[{N:"treat",as:"N",diag:"14|9|XPTY0020|",C:[{N:"dot",flags:"a"}]},{N:"axis", +name:"parent",nodeTest:"N u[NE,ND]"}]}]}]},{N:"str",val:"/text()"}]}]}]},{N:"true"},{N:"cvUntyped",line:"62",to:"AS",diag:"3|0|XTTE0570|loc",C:[{N:"cast",flags:"a",as:"1AZ",C:[{N:"fn",name:"name",C:[{N:"first",C:[{N:"slash",simple:"1",C:[{N:"treat",as:"N",diag:"14|1|XPTY0020|",C:[{N:"dot",flags:"a"}]},{N:"axis",name:"ancestor-or-self",nodeTest:"NE"}]}]}]}]}]}]},{N:"let",line:"65","var":"Q{}parts",as:"*NE",slot:"9",eval:"4",C:[{N:"choose",line:"67",C:[{N:"fn",name:"contains",C:[{N:"treat",as:"AS", +diag:"0|0||fn:contains",C:[{N:"check",card:"?",diag:"0|0||fn:contains",C:[{N:"cvUntyped",to:"AS",C:[{N:"data",diag:"0|0||fn:contains",C:[{N:"varRef",name:"Q{}text.value",slot:"6"}]}]}]}]},{N:"str",val:"{"}]},{N:"forEach",line:"68",C:[{N:"ufCall",name:"Q{MyFunctions}parse-value-template",tailCall:"false",bSlot:"1",eval:"16",C:[{N:"treat",as:"AS",diag:"0|0||f:parse-value-template",C:[{N:"check",card:"1",diag:"0|0||f:parse-value-template",C:[{N:"cvUntyped",to:"AS",C:[{N:"data",diag:"0|0||f:parse-value-template", +C:[{N:"varRef",name:"Q{}text.value",slot:"6"}]}]}]}]}]},{N:"choose",line:"70",C:[{N:"vc",op:"eq",onEmpty:"0",comp:"CCC",C:[{N:"fn",name:"name",C:[{N:"dot",type:"1NA"}]},{N:"str",val:"literal"}]},{N:"elem",line:"71",name:"str",nsuri:"http://ns.saxonica.com/xslt/export",flags:"d",C:[{N:"att",name:"val",flags:"l",C:[{N:"convert",from:"AZ",to:"AS",C:[{N:"data",C:[{N:"dot",type:"1NA"}]}]}]}]},{N:"and",line:"73",op:"and",C:[{N:"vc",op:"eq",onEmpty:"0",comp:"CCC",C:[{N:"fn",name:"name",C:[{N:"dot",type:"1NA"}]}, +{N:"str",val:"expression"}]},{N:"fn",name:"matches",C:[{N:"cvUntyped",to:"AS",C:[{N:"data",diag:"0|0||fn:matches",C:[{N:"dot",type:"1NA"}]}]},{N:"str",val:"\\S+"},{N:"str",val:""}]}]},{N:"elem",line:"74",name:"fn",nsuri:"http://ns.saxonica.com/xslt/export",flags:"d",C:[{N:"sequence",C:[{N:"att",name:"name",flags:"l",C:[{N:"str",val:"string-join"}]},{N:"att",name:"sType",flags:"l",C:[{N:"gVarRef",name:"Q{}SJ.SINGLE_STRING",bSlot:"2"}]},{N:"let",line:"75","var":"Q{}content",as:"1NE",slot:"10",eval:"9", +C:[{N:"elem",line:"76",name:"convert",nsuri:"http://ns.saxonica.com/xslt/export",flags:"d",C:[{N:"sequence",C:[{N:"att",name:"from",flags:"l",C:[{N:"str",val:"AZ"}]},{N:"att",name:"to",flags:"l",C:[{N:"str",val:"AS"}]},{N:"elem",line:"77",name:"data",nsuri:"http://ns.saxonica.com/xslt/export",flags:"dl",C:[{N:"elem",line:"78",name:"mergeAdj",nsuri:"http://ns.saxonica.com/xslt/export",flags:"dl",C:[{N:"elem",line:"79",name:"xpath",nsuri:"http://ns.saxonica.com/xslt/export",flags:"dl",C:[{N:"sequence", +C:[{N:"att",name:"xpath",flags:"l",C:[{N:"convert",from:"AZ",to:"AS",C:[{N:"data",C:[{N:"dot",type:"1NA"}]}]}]},{N:"att",name:"loc",flags:"l",C:[{N:"varRef",name:"Q{}loc",slot:"8"}]},{N:"att",name:"line",flags:"l",C:[{N:"convert",from:"ADI",to:"AS",C:[{N:"varRef",name:"Q{}lineNr",slot:"7"}]}]},{N:"att",name:"allow-empty",flags:"l",C:[{N:"str",val:"true"}]},{N:"choose",line:"80",C:[{N:"varRef",name:"Q{}backward-compatibility",slot:"4"},{N:"att",line:"81",name:"BC",flags:"l",C:[{N:"str",val:"true"}]}]}, +{N:"choose",line:"83",C:[{N:"fn",name:"not",C:[{N:"varRef",name:"Q{}has-uniform-static-context",slot:"2"}]},{N:"sequence",line:"84",C:[{N:"varRef",name:"Q{}xpath-default-namespace",slot:"1"},{N:"varRef",name:"Q{}default-collation",slot:"3"}]}]}]}]}]}]}]}]},{N:"sequence",line:"92",C:[{N:"choose",C:[{N:"varRef",name:"Q{}backward-compatibility",slot:"4"},{N:"elem",line:"93",name:"first",nsuri:"http://ns.saxonica.com/xslt/export",flags:"dl",C:[{N:"varRef",line:"94",name:"Q{}content",slot:"10"}]},{N:"true"}, +{N:"varRef",line:"98",name:"Q{}content",slot:"10"}]},{N:"elem",line:"101",name:"str",nsuri:"http://ns.saxonica.com/xslt/export",flags:"dl",C:[{N:"att",name:"val",flags:"l",C:[{N:"str",val:" "}]}]}]}]}]}]},{N:"true"},{N:"elem",line:"105",name:"empty",nsuri:"http://ns.saxonica.com/xslt/export",flags:"d",C:[{N:"empty"}]}]}]},{N:"true"},{N:"elem",line:"111",name:"str",nsuri:"http://ns.saxonica.com/xslt/export",flags:"d",C:[{N:"att",name:"val",flags:"l",C:[{N:"fn",name:"replace",C:[{N:"treat",as:"AS", +diag:"0|0||fn:replace",C:[{N:"check",card:"?",diag:"0|0||fn:replace",C:[{N:"cvUntyped",to:"AS",C:[{N:"data",diag:"0|0||fn:replace",C:[{N:"varRef",name:"Q{}text.value",slot:"6"}]}]}]}]},{N:"str",val:"\\}\\}"},{N:"str",val:"}"},{N:"str",val:""}]}]}]}]},{N:"choose",line:"116",C:[{N:"fn",name:"exists",C:[{N:"slash",simple:"1",C:[{N:"treat",as:"N",diag:"14|12|XPTY0020|",C:[{N:"dot",flags:"a"}]},{N:"axis",name:"self",nodeTest:"NA"}]}]},{N:"choose",line:"118",C:[{N:"fn",name:"empty",C:[{N:"varRef",name:"Q{}parts", +slot:"9"}]},{N:"elem",line:"119",name:"str",nsuri:"http://ns.saxonica.com/xslt/export",flags:"d",C:[{N:"sequence",C:[{N:"att",name:"val",flags:"l",C:[{N:"str",val:""}]},{N:"att",name:"sType",flags:"l",C:[{N:"gVarRef",name:"Q{}SJ.SINGLE_STRING",bSlot:"3"}]},{N:"varRef",line:"120",name:"Q{}attr",slot:"5"}]}]},{N:"vc",line:"123",op:"lt",onEmpty:"0",comp:"CAVC",C:[{N:"fn",name:"count",C:[{N:"varRef",name:"Q{}parts",slot:"9"}]},{N:"int",val:"2"}]},{N:"forEach",line:"124",C:[{N:"varRef",name:"Q{}parts", +slot:"9"},{N:"copy",line:"126",flags:"cin",sit:"1NE",C:[{N:"sequence",role:"content",C:[{N:"axis",name:"attribute",nodeTest:"NA"},{N:"varRef",name:"Q{}attr",slot:"5"},{N:"axis",name:"child",nodeTest:"NE"}]}]}]},{N:"true"},{N:"elem",line:"131",name:"fn",nsuri:"http://ns.saxonica.com/xslt/export",flags:"d",C:[{N:"sequence",C:[{N:"att",name:"name",flags:"l",C:[{N:"str",val:"concat"}]},{N:"att",name:"sType",flags:"l",C:[{N:"gVarRef",name:"Q{}SJ.SINGLE_STRING",bSlot:"4"}]},{N:"varRef",line:"132",name:"Q{}attr", +slot:"5"},{N:"varRef",line:"134",name:"Q{}parts",slot:"9"},{N:"elem",line:"136",name:"str",nsuri:"http://ns.saxonica.com/xslt/export",flags:"dl",C:[{N:"att",name:"val",flags:"l",C:[{N:"str",val:""}]}]}]}]}]},{N:"fn",line:"143",name:"empty",C:[{N:"varRef",name:"Q{}parts",slot:"9"}]},{N:"empty"},{N:"vc",line:"144",op:"lt",onEmpty:"0",comp:"CAVC",C:[{N:"fn",name:"count",C:[{N:"varRef",name:"Q{}parts",slot:"9"}]},{N:"int",val:"2"}]},{N:"elem",line:"145",name:"valueOf",nsuri:"http://ns.saxonica.com/xslt/export", +flags:"d",C:[{N:"sequence",C:[{N:"att",name:"sType",flags:"l",C:[{N:"gVarRef",name:"Q{}SJ.SINGLE_TEXT",bSlot:"5"}]},{N:"varRef",line:"146",name:"Q{}attr",slot:"5"},{N:"varRef",line:"147",name:"Q{}parts",slot:"9"}]}]},{N:"true"},{N:"elem",line:"151",name:"valueOf",nsuri:"http://ns.saxonica.com/xslt/export",flags:"d",C:[{N:"sequence",C:[{N:"att",name:"sType",flags:"l",C:[{N:"gVarRef",name:"Q{}SJ.SINGLE_TEXT",bSlot:"6"}]},{N:"varRef",line:"152",name:"Q{}attr",slot:"5"},{N:"elem",line:"153",name:"fn", +nsuri:"http://ns.saxonica.com/xslt/export",flags:"dl",C:[{N:"sequence",C:[{N:"att",name:"name",flags:"l",C:[{N:"str",val:"string-join"}]},{N:"elem",line:"154",name:"sequence",nsuri:"http://ns.saxonica.com/xslt/export",flags:"dl",C:[{N:"varRef",line:"155",name:"Q{}parts",slot:"9"}]},{N:"elem",line:"157",name:"str",nsuri:"http://ns.saxonica.com/xslt/export",flags:"dl",C:[{N:"att",name:"val",flags:"l",C:[{N:"str",val:""}]}]}]}]}]}]}]}]}]}]}]}]}]}]}]},{N:"co",id:"185",binds:"220 220 185 185 185 6",C:[{N:"function", +name:"Q{MyTypes}displayType",line:"125",module:"sequenceType.xsl",eval:"8",flags:"pU",as:"1AS",slots:"4",C:[{N:"arg",name:"Q{}type",as:"1FM"},{N:"let",role:"body",ns:"err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ saxon=~ t=MyTypes xs=~ xsl=~ xml=~",line:"128","var":"Q{}alphaCode",slot:"1",eval:"4",C:[{N:"lookup",C:[{N:"varRef",name:"Q{}type",slot:"0"},{N:"str",val:"p"}]},{N:"cvUntyped",line:"131",to:"AS",diag:"5|0|XTTE0780|t:displayType#1",C:[{N:"cast",flags:"a",as:"1AZ",C:[{N:"fn", +name:"string-join",C:[{N:"convert",from:"A",to:"AS",C:[{N:"data",C:[{N:"mergeAdj",C:[{N:"sequence",C:[{N:"choose",C:[{N:"vc",op:"eq",onEmpty:"0",comp:"GAC|http://www.w3.org/2005/xpath-functions/collation/codepoint",C:[{N:"atomSing",card:"?",diag:"1|0||eq",C:[{N:"lookup",C:[{N:"varRef",name:"Q{}type",slot:"0"},{N:"str",val:"o"}]}]},{N:"str",val:"0"}]},{N:"valueOf",flags:"S",C:[{N:"str",val:"empty-sequence()"}]},{N:"vc",line:"132",op:"eq",onEmpty:"0",comp:"GAC|http://www.w3.org/2005/xpath-functions/collation/codepoint", +C:[{N:"atomSing",card:"?",diag:"1|0||eq",C:[{N:"varRef",name:"Q{}alphaCode",slot:"1"}]},{N:"str",val:""}]},{N:"valueOf",line:"132",flags:"S",C:[{N:"str",val:"item()"}]},{N:"fn",line:"133",name:"starts-with",C:[{N:"treat",as:"AS",diag:"0|0||fn:starts-with",C:[{N:"check",card:"?",diag:"0|0||fn:starts-with",C:[{N:"cvUntyped",to:"AS",C:[{N:"data",diag:"0|0||fn:starts-with",C:[{N:"varRef",name:"Q{}alphaCode",slot:"1"}]}]}]}]},{N:"str",val:"A"}]},{N:"let",line:"135","var":"Q{http://saxon.sf.net/generated-variable}v0", +as:"*A",slot:"2",eval:"4",C:[{N:"data",diag:"1|1||=",C:[{N:"varRef",name:"Q{}alphaCode",slot:"1"}]},{N:"slash",C:[{N:"filter",flags:"b",C:[{N:"gVarRef",name:"Q{http://saxon.sf.net/generated-variable}gg98264771",bSlot:"0"},{N:"gc",op:"=",card:"N:1",comp:"GAC|http://www.w3.org/2005/xpath-functions/collation/codepoint",C:[{N:"varRef",name:"Q{http://saxon.sf.net/generated-variable}v0",slot:"2"},{N:"attVal",name:"Q{}p",chk:"0"}]}]},{N:"fn",name:"name",C:[{N:"dot",type:"1NE"}]}]}]},{N:"fn",line:"137",name:"starts-with", +C:[{N:"treat",as:"AS",diag:"0|0||fn:starts-with",C:[{N:"check",card:"?",diag:"0|0||fn:starts-with",C:[{N:"cvUntyped",to:"AS",C:[{N:"data",diag:"0|0||fn:starts-with",C:[{N:"varRef",name:"Q{}alphaCode",slot:"1"}]}]}]}]},{N:"str",val:"N"}]},{N:"let",line:"146","var":"Q{http://saxon.sf.net/generated-variable}v1",as:"*A",slot:"3",eval:"4",C:[{N:"data",diag:"1|1||=",C:[{N:"varRef",name:"Q{}alphaCode",slot:"1"}]},{N:"fn",name:"concat",C:[{N:"check",card:"?",diag:"0|0||fn:concat",C:[{N:"slash",C:[{N:"filter", +flags:"b",C:[{N:"gVarRef",name:"Q{http://saxon.sf.net/generated-variable}gg98264771",bSlot:"1"},{N:"gc",op:"=",card:"N:1",comp:"GAC|http://www.w3.org/2005/xpath-functions/collation/codepoint",C:[{N:"varRef",name:"Q{http://saxon.sf.net/generated-variable}v1",slot:"3"},{N:"attVal",name:"Q{}p",chk:"0"}]}]},{N:"fn",name:"name",C:[{N:"dot",type:"1NE"}]}]}]},{N:"str",val:"("},{N:"choose",C:[{N:"instance",of:"1FM",C:[{N:"lookup",C:[{N:"varRef",name:"Q{}type",slot:"0"},{N:"str",val:"n"}]}]},{N:"atomSing", +card:"?",diag:"0|2||fn:concat",C:[{N:"lookup",C:[{N:"lookup",C:[{N:"varRef",name:"Q{}type",slot:"0"},{N:"str",val:"n"}]},{N:"str",val:"code"}]}]},{N:"true"},{N:"atomSing",card:"?",diag:"0|2||fn:concat",C:[{N:"lookup",C:[{N:"varRef",name:"Q{}type",slot:"0"},{N:"str",val:"n"}]}]}]},{N:"str",val:")"}]}]},{N:"and",line:"148",op:"and",C:[{N:"vc",op:"eq",onEmpty:"0",comp:"GAC|http://www.w3.org/2005/xpath-functions/collation/codepoint",C:[{N:"atomSing",card:"?",diag:"1|0||eq",C:[{N:"varRef",name:"Q{}alphaCode", +slot:"1"}]},{N:"str",val:"FA"}]},{N:"fn",name:"empty",C:[{N:"lookup",C:[{N:"varRef",name:"Q{}type",slot:"0"},{N:"str",val:"v"}]}]}]},{N:"str",val:"array(*)"},{N:"vc",line:"151",op:"eq",onEmpty:"0",comp:"GAC|http://www.w3.org/2005/xpath-functions/collation/codepoint",C:[{N:"atomSing",card:"?",diag:"1|0||eq",C:[{N:"varRef",name:"Q{}alphaCode",slot:"1"}]},{N:"str",val:"FA"}]},{N:"fn",line:"152",name:"concat",C:[{N:"str",val:"array("},{N:"ufCall",name:"Q{MyTypes}displayType",tailCall:"false",bSlot:"2", +eval:"16",C:[{N:"treat",as:"FM",diag:"0|0||t:displayType",C:[{N:"check",card:"1",diag:"0|0||t:displayType",C:[{N:"lookup",C:[{N:"varRef",name:"Q{}type",slot:"0"},{N:"str",val:"v"}]}]}]}]},{N:"str",val:")"}]},{N:"and",line:"154",op:"and",C:[{N:"vc",op:"eq",onEmpty:"0",comp:"GAC|http://www.w3.org/2005/xpath-functions/collation/codepoint",C:[{N:"atomSing",card:"?",diag:"1|0||eq",C:[{N:"varRef",name:"Q{}alphaCode",slot:"1"}]},{N:"str",val:"FA"}]},{N:"fn",name:"empty",C:[{N:"lookup",C:[{N:"varRef",name:"Q{}type", +slot:"0"},{N:"str",val:"v"}]}]}]},{N:"str",val:"array(*)"},{N:"vc",line:"157",op:"eq",onEmpty:"0",comp:"GAC|http://www.w3.org/2005/xpath-functions/collation/codepoint",C:[{N:"atomSing",card:"?",diag:"1|0||eq",C:[{N:"varRef",name:"Q{}alphaCode",slot:"1"}]},{N:"str",val:"FM"}]},{N:"str",val:"map(*)"},{N:"vc",line:"161",op:"eq",onEmpty:"0",comp:"GAC|http://www.w3.org/2005/xpath-functions/collation/codepoint",C:[{N:"atomSing",card:"?",diag:"1|0||eq",C:[{N:"varRef",name:"Q{}alphaCode",slot:"1"}]},{N:"str", +val:"F"}]},{N:"choose",line:"169",C:[{N:"fn",name:"exists",C:[{N:"lookup",C:[{N:"varRef",name:"Q{}type",slot:"0"},{N:"str",val:"a"}]}]},{N:"fn",name:"concat",C:[{N:"str",val:"(function("},{N:"fn",name:"string-join",C:[{N:"forEach",C:[{N:"lookup",C:[{N:"varRef",name:"Q{}type",slot:"0"},{N:"str",val:"a"}]},{N:"ufCall",name:"Q{MyTypes}displayType",tailCall:"false",bSlot:"3",eval:"16",C:[{N:"treat",as:"FM",diag:"0|0||t:displayType",C:[{N:"dot"}]}]}]},{N:"str",val:","}]},{N:"str",val:") as "},{N:"ufCall", +name:"Q{MyTypes}displayType",tailCall:"false",bSlot:"4",eval:"16",C:[{N:"treat",as:"FM",diag:"0|0||t:displayType",C:[{N:"check",card:"1",diag:"0|0||t:displayType",C:[{N:"lookup",C:[{N:"varRef",name:"Q{}type",slot:"0"},{N:"str",val:"r"}]}]}]}]},{N:"str",val:")"}]},{N:"true"},{N:"str",val:"function(*)"}]},{N:"vc",line:"171",op:"eq",onEmpty:"0",comp:"GAC|http://www.w3.org/2005/xpath-functions/collation/codepoint",C:[{N:"atomSing",card:"?",diag:"1|0||eq",C:[{N:"varRef",name:"Q{}alphaCode",slot:"1"}]}, +{N:"str",val:"E"}]},{N:"str",val:"empty-sequence()"},{N:"true"},{N:"ufCall",line:"176",name:"Q{MyTypes}unmarshalType",tailCall:"false",bSlot:"5",eval:"6",C:[{N:"varRef",name:"Q{}type",slot:"0"}]}]},{N:"valueOf",line:"179",C:[{N:"fn",name:"string-join",C:[{N:"convert",from:"A",to:"AS",C:[{N:"data",C:[{N:"mergeAdj",C:[{N:"filter",flags:"b",C:[{N:"lookup",C:[{N:"varRef",name:"Q{}type",slot:"0"},{N:"str",val:"o"}]},{N:"and",op:"and",C:[{N:"vc",op:"ne",onEmpty:"0",comp:"GAC|http://www.w3.org/2005/xpath-functions/collation/codepoint", +C:[{N:"atomSing",card:"?",diag:"1|0||ne",C:[{N:"dot"}]},{N:"str",val:"1"}]},{N:"vc",op:"ne",onEmpty:"0",comp:"GAC|http://www.w3.org/2005/xpath-functions/collation/codepoint",C:[{N:"atomSing",card:"?",diag:"1|0||ne",C:[{N:"dot"}]},{N:"str",val:"0"}]}]}]}]}]}]},{N:"str",val:" "}]}]}]}]}]}]},{N:"str",val:""}]}]}]}]}]}]},{N:"co",id:"221",binds:"",C:[{N:"function",name:"Q{MyTypes}isNode",line:"453",module:"type.xsl",eval:"16",flags:"pU",as:"1AB",slots:"2",C:[{N:"arg",name:"Q{}type",as:"1FM"},{N:"let", +role:"body",ns:"doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~",line:"455","var":"Q{}alphaCode",slot:"1",eval:"4",C:[{N:"lookup",C:[{N:"varRef",name:"Q{}type",slot:"0"},{N:"str",val:"p"}]},{N:"or",line:"456",op:"or",C:[{N:"gc",op:"=",card:"N:1",comp:"GAC|http://www.w3.org/2005/xpath-functions/collation/codepoint",C:[{N:"data",diag:"1|0||=",C:[{N:"varRef",name:"Q{}alphaCode",slot:"1"}]},{N:"str",val:""}]},{N:"fn", +name:"starts-with",C:[{N:"treat",as:"AS",diag:"0|0||fn:starts-with",C:[{N:"check",card:"?",diag:"0|0||fn:starts-with",C:[{N:"cvUntyped",to:"AS",C:[{N:"data",diag:"0|0||fn:starts-with",C:[{N:"varRef",name:"Q{}alphaCode",slot:"1"}]}]}]}]},{N:"str",val:"N"}]}]}]}]}]},{N:"co",id:"140",binds:"",C:[{N:"globalVariable",name:"Q{}html-ascii-case-insensitive.collation",as:"1AU",line:"28",module:"sorting.xsl",visibility:"PRIVATE",flags:"s",C:[{N:"atomic",val:"http://www.w3.org/2005/xpath-functions/collation/html-ascii-case-insensitive", +type:"AU"}]}]},{N:"co",id:"174",binds:"",C:[{N:"globalParam",name:"Q{}options",as:"1FM",line:"207",module:"XSLT-SEF-compiler.xsl",visibility:"PUBLIC",C:[{N:"map",size:"0"}]}]},{N:"co",id:"222",binds:"",C:[{N:"globalVariable",name:"Q{}nodeTypeMap",as:"1FM k[AS] v[1ADI]",line:"597",module:"XSLT-SEF-compiler.xsl",visibility:"PRIVATE",flags:"s",C:[{N:"map",size:"11",C:[{N:"str",val:"text"},{N:"int",val:"3"},{N:"str",val:"processing-instruction"},{N:"int",val:"7"},{N:"str",val:"document_fragment"},{N:"int", +val:"11"},{N:"str",val:"namespace-node"},{N:"int",val:"13"},{N:"str",val:"document-node"},{N:"int",val:"9"},{N:"str",val:"document"},{N:"int",val:"9"},{N:"str",val:"namespace"},{N:"int",val:"13"},{N:"str",val:"attribute"},{N:"int",val:"2"},{N:"str",val:"element"},{N:"int",val:"1"},{N:"str",val:"document_type"},{N:"int",val:"10"},{N:"str",val:"comment"},{N:"int",val:"8"}]}]}]},{N:"co",id:"83",binds:"46 46",C:[{N:"globalVariable",name:"Q{}defaultHTML5",as:"1AB",line:"219",module:"XSLT-SEF-compiler.xsl", +visibility:"PRIVATE",C:[{N:"and",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ saxon=~ t=MyTypes xs=~ xsl=~ xml=~",line:"219",op:"and",C:[{N:"fn",name:"exists",C:[{N:"gVarRef",name:"Q{}ns",bSlot:"0"}]},{N:"vc",op:"eq",onEmpty:"0",comp:"CCC",C:[{N:"gVarRef",name:"Q{}ns",bSlot:"1"},{N:"str",val:"##html5"}]}]}]}]},{N:"co",id:"177",binds:"",C:[{N:"mode",name:"Q{}exportNS",onNo:"SC",flags:"W",patternSlots:"0", +C:[{N:"templateRule",prec:"0",prio:"-0.5",seq:"300",rank:"0",minImp:"0",slots:"0",matches:"NE",flags:"s",line:"1556",module:"xpath.xsl",C:[{N:"p.nodeTest",role:"match",test:"NE"},{N:"compElem",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions js=~ map=~ saxon=~ t=MyTypes xs=~ xsl=~ xml=~",line:"1557",C:[{N:"fn",role:"name",name:"local-name",C:[{N:"dot",type:"1NE"}]},{N:"str",role:"namespace",val:"http://ns.saxonica.com/xslt/export"}, +{N:"applyT",role:"content",line:"1558",flags:"c",bSlot:"-1",C:[{N:"sequence",role:"select",C:[{N:"axis",name:"attribute",nodeTest:"NA"},{N:"axis",name:"namespace",nodeTest:"NN"},{N:"axis",name:"child",nodeTest:"N u[NT,NP,NE,NC]"}]}]}]}]},{N:"templateRule",prec:"0",prio:"0.5",seq:"301",part:"3",rank:"1",minImp:"0",slots:"0",matches:"NA nQ{}ns",flags:"s",line:"1561",module:"xpath.xsl",C:[{N:"p.withUpper",role:"match",axis:"parent",upFirst:"false",C:[{N:"p.nodeTest",test:"NA nQ{}ns"},{N:"p.nodeTest", +test:"NE nQ{}gVarRef"}]},{N:"empty",role:"action"}]},{N:"templateRule",prec:"0",prio:"0.5",seq:"301",part:"2",rank:"1",minImp:"0",slots:"0",matches:"NA nQ{}ns",flags:"s",line:"1561",module:"xpath.xsl",C:[{N:"p.withUpper",role:"match",axis:"parent",upFirst:"false",C:[{N:"p.nodeTest",test:"NA nQ{}ns"},{N:"p.nodeTest",test:"NE nQ{http://ns.saxonica.com/xslt/export}gVarRef"}]},{N:"empty",role:"action"}]},{N:"templateRule",prec:"0",prio:"0.5",seq:"301",part:"1",rank:"1",minImp:"0",slots:"0",matches:"NA nQ{}ns", +flags:"s",line:"1561",module:"xpath.xsl",C:[{N:"p.withUpper",role:"match",axis:"parent",upFirst:"false",C:[{N:"p.nodeTest",test:"NA nQ{}ns"},{N:"p.nodeTest",test:"NE nQ{http://ns.saxonica.com/xslt/export}str"}]},{N:"empty",role:"action"}]},{N:"templateRule",prec:"0",prio:"0.5",seq:"301",rank:"1",minImp:"0",slots:"0",matches:"NA nQ{}ns",flags:"s",line:"1561",module:"xpath.xsl",C:[{N:"p.withUpper",role:"match",axis:"parent",upFirst:"false",C:[{N:"p.nodeTest",test:"NA nQ{}ns"},{N:"p.nodeTest",test:"NE nQ{http://ns.saxonica.com/xslt/export}int"}]}, +{N:"empty",role:"action"}]}]}]},{N:"co",id:"223",binds:"",C:[{N:"function",name:"Q{MyFunctions}innermostExNs",line:"137",module:"namespaces.xsl",eval:"7",flags:"pU",as:"?NA",slots:"1",C:[{N:"arg",name:"Q{}node",as:"1N"},{N:"check",role:"body",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"139",card:"?",diag:"5|0|XTTE0780|f:innermostExNs#1",C:[{N:"forEach",C:[{N:"forEach",C:[{N:"varRef", +name:"Q{}node",slot:"0"},{N:"first",C:[{N:"filter",flags:"b",C:[{N:"axis",name:"ancestor-or-self",nodeTest:"NE"},{N:"fn",name:"exists",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{http://ns.saxonica.com/xslt/export}ns"}]}]}]}]},{N:"axis",name:"attribute",nodeTest:"NA nQ{http://ns.saxonica.com/xslt/export}ns"}]}]}]}]},{N:"co",id:"224",binds:"155",C:[{N:"function",name:"Q{MyTypes}cvUntyped",line:"909",module:"type.xsl",eval:"9",flags:"pU",as:"1NE",slots:"3",C:[{N:"arg",name:"Q{}expression",as:"1NE"}, +{N:"arg",name:"Q{}type",as:"1FM"},{N:"arg",name:"Q{}diag",as:"1AS"},{N:"elem",role:"body",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~",line:"915",name:"cvUntyped",nsuri:"http://ns.saxonica.com/xslt/export",flags:"d",C:[{N:"sequence",C:[{N:"att",name:"to",flags:"l",C:[{N:"fn",name:"string-join",C:[{N:"convert",from:"A",to:"AS",C:[{N:"data",C:[{N:"mergeAdj",C:[{N:"lookup", +C:[{N:"varRef",name:"Q{}type",slot:"1"},{N:"str",val:"p"}]}]}]}]},{N:"str",val:" "}]}]},{N:"att",name:"sType",flags:"l",C:[{N:"gVarRef",name:"Q{}SJ.MULTIPLE_ATOMIC",bSlot:"0"}]},{N:"att",name:"diag",flags:"l",C:[{N:"varRef",name:"Q{}diag",slot:"2"}]},{N:"slash",line:"916",simple:"1",C:[{N:"varRef",name:"Q{}expression",slot:"0"},{N:"axis",name:"attribute",nodeTest:"NA nQ{}role"}]},{N:"varRef",line:"916",name:"Q{}expression",slot:"0"}]}]}]}]},{N:"co",id:"225",binds:"",C:[{N:"globalVariable",name:"Q{}support-XSLT4", +as:"1AB",line:"195",module:"XSLT-SEF-compiler.xsl",visibility:"PUBLIC",flags:"s",C:[{N:"true"}]}]},{N:"co",id:"226",binds:"",C:[{N:"function",name:"Q{MyTypes}isNumeric",line:"436",module:"type.xsl",eval:"16",flags:"pU",as:"1AB",slots:"1",C:[{N:"arg",name:"Q{}alphaCode",as:"1AS"},{N:"or",role:"body",ns:"doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~",line:"438",op:"or",C:[{N:"or",op:"or",C:[{N:"fn",name:"starts-with", +C:[{N:"varRef",name:"Q{}alphaCode",slot:"0"},{N:"str",val:"AD"}]},{N:"fn",name:"starts-with",C:[{N:"varRef",name:"Q{}alphaCode",slot:"0"},{N:"str",val:"AO"}]}]},{N:"fn",name:"starts-with",C:[{N:"varRef",name:"Q{}alphaCode",slot:"0"},{N:"str",val:"AF"}]}]}]}]},{N:"co",id:"227",binds:"118 119 120",C:[{N:"function",name:"Q{MyFunctions}literalType",line:"1010",module:"type.xsl",eval:"16",flags:"pU",as:"1FM",slots:"2",C:[{N:"arg",name:"Q{}inst",as:"1NE"},{N:"let",role:"body",ns:"doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~", +line:"1012","var":"Q{}name",as:"1AS",slot:"1",eval:"8",C:[{N:"fn",name:"local-name",C:[{N:"varRef",name:"Q{}inst",slot:"0"}]},{N:"choose",line:"1022",C:[{N:"vc",op:"eq",onEmpty:"0",comp:"CCC",C:[{N:"varRef",name:"Q{}name",slot:"1"},{N:"str",val:"atomic"}]},{N:"check",card:"1",diag:"5|0|XTTE0780|f:literalType#1",C:[{N:"ifCall",name:"Q{http://www.w3.org/2005/xpath-functions/map}get",type:"*",C:[{N:"gVarRef",name:"Q{}atomicTypes",bSlot:"0"},{N:"atomSing",diag:"0|1||map:get",C:[{N:"slash",simple:"1", +C:[{N:"varRef",name:"Q{}inst",slot:"0"},{N:"axis",name:"attribute",nodeTest:"NA nQ{}type"}]}]}]}]},{N:"gc",op:"=",card:"N:1",comp:"CCC",C:[{N:"literal",count:"2",C:[{N:"str",val:"true"},{N:"str",val:"false"}]},{N:"varRef",name:"Q{}name",slot:"1"}]},{N:"gVarRef",name:"Q{}ST.SINGLE_BOOLEAN",bSlot:"1"},{N:"true"},{N:"treat",as:"FM",diag:"5|0|XTTE0780|f:literalType#1",C:[{N:"check",card:"1",diag:"5|0|XTTE0780|f:literalType#1",C:[{N:"ifCall",name:"Q{http://www.w3.org/2005/xpath-functions/map}get",type:"*", +C:[{N:"gVarRef",name:"Q{}literalTypes",bSlot:"2"},{N:"varRef",name:"Q{}name",slot:"1"}]}]}]}]}]}]}]},{N:"co",id:"228",binds:"",C:[{N:"function",name:"Q{MyFunctions}string-map",line:"438",module:"lib.xsl",eval:"8",flags:"pU",as:"1FM",slots:"1",C:[{N:"arg",name:"Q{}input",as:"*FM"},{N:"ifCall",role:"body",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~",line:"446",name:"Q{http://www.w3.org/2005/xpath-functions/map}merge", +type:"1FM",C:[{N:"varRef",name:"Q{}input",slot:"0"},{N:"map",size:"2",C:[{N:"str",val:"duplicates"},{N:"str",val:"use-any"},{N:"str",val:"duplicates-error-code"},{N:"str",val:"FOJS0003"}]}]}]}]},{N:"co",id:"229",binds:"",C:[{N:"globalVariable",name:"Q{}on-no-match",as:"1FM k[AS] v[1AS]",line:"27",module:"rules.xsl",visibility:"PRIVATE",flags:"s",C:[{N:"map",size:"6",C:[{N:"str",val:"deep-skip"},{N:"str",val:"DS"},{N:"str",val:"shallow-copy"},{N:"str",val:"SC"},{N:"str",val:"text-only-copy"},{N:"str", +val:"TC"},{N:"str",val:"deep-copy"},{N:"str",val:"DC"},{N:"str",val:"shallow-skip"},{N:"str",val:"SS"},{N:"str",val:"fail"},{N:"str",val:"FF"}]}]}]},{N:"co",id:"131",binds:"",C:[{N:"globalVariable",name:"Q{}compiler.version",as:"1ND",line:"222",module:"XSLT-SEF-compiler.xsl",visibility:"PRIVATE",C:[{N:"doc",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ saxon=~ t=MyTypes xs=~ xsl=~ xml=~",line:"222", +flags:"t",text:"1.0.9",C:[{N:"valueOf",flags:"Sl",C:[{N:"str",val:"1.0.9"}]}]}]}]},{N:"co",id:"230",binds:"70",C:[{N:"function",name:"Q{MyTypes}allowsZeroOrOne",line:"135",module:"type.xsl",eval:"16",flags:"pU",as:"1AB",slots:"1",C:[{N:"arg",name:"Q{}cardinality",as:"*"},{N:"check",role:"body",ns:"doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~",line:"137",card:"1",diag:"5|0|XTTE0780|t:allowsZeroOrOne#1",C:[{N:"vc", +op:"ne",comp:"GAC|http://www.w3.org/2005/xpath-functions/collation/codepoint",C:[{N:"arith",op:"mod",calc:"a%a",C:[{N:"cvUntyped",to:"AO",C:[{N:"atomSing",card:"?",diag:"1|0||mod",C:[{N:"varRef",name:"Q{}cardinality",slot:"0"}]}]},{N:"gVarRef",name:"Q{}StaticProperty.ALLOWS_MANY",bSlot:"0"}]},{N:"int",val:"0"}]}]}]}]},{N:"co",id:"195",vis:"PUBLIC",binds:"231 232 231 232 27 233 233 29 234 235 234 234 235 235",C:[{N:"function",name:"Q{MyFunctions}parse-value-template",line:"51",module:"XSLT-value-template.xsl", +eval:"4",flags:"pU",as:"*NA",slots:"12",C:[{N:"arg",name:"Q{}in",as:"1AS"},{N:"let",role:"body",ns:"doc=http://www.saxonica.com/ns/documentation f=MyFunctions xs=~ xsl=~ xml=~",line:"54","var":"Q{}codepoints-in",as:"*ADI",slot:"8",eval:"4",C:[{N:"fn",name:"string-to-codepoints",C:[{N:"varRef",name:"Q{}in",slot:"0"}]},{N:"treat",line:"55",as:"NA",diag:"5|0|XTTE0780|f:parse-value-template#1",C:[{N:"iterate",C:[{N:"to",role:"select",C:[{N:"int",val:"1"},{N:"fn",name:"count",C:[{N:"varRef",name:"Q{}codepoints-in", +slot:"8"}]}]},{N:"params",role:"params",line:"56",C:[{N:"param",name:"Q{}in-expression",slot:"1",as:"1AB",C:[{N:"false",role:"select"},{N:"treat",role:"conversion",as:"AB",diag:"8|0|XTTE0590|in-expression",C:[{N:"check",card:"1",diag:"8|0|XTTE0590|in-expression",C:[{N:"cvUntyped",to:"AB",diag:"8|0|XTTE0590|in-expression",C:[{N:"data",diag:"8|0|XTTE0590|in-expression",C:[{N:"supplied",slot:"1"}]}]}]}]}]},{N:"param",line:"57",name:"Q{}comment-depth",slot:"2",as:"1ADI",C:[{N:"int",role:"select",val:"0"}, +{N:"treat",role:"conversion",as:"ADI",diag:"8|0|XTTE0590|comment-depth",C:[{N:"check",card:"1",diag:"8|0|XTTE0590|comment-depth",C:[{N:"cvUntyped",to:"ADI",diag:"8|0|XTTE0590|comment-depth",C:[{N:"data",diag:"8|0|XTTE0590|comment-depth",C:[{N:"supplied",slot:"2"}]}]}]}]}]},{N:"param",line:"58",name:"Q{}in-single-quotes",slot:"3",as:"1AB",C:[{N:"false",role:"select"},{N:"treat",role:"conversion",as:"AB",diag:"8|0|XTTE0590|in-single-quotes",C:[{N:"check",card:"1",diag:"8|0|XTTE0590|in-single-quotes", +C:[{N:"cvUntyped",to:"AB",diag:"8|0|XTTE0590|in-single-quotes",C:[{N:"data",diag:"8|0|XTTE0590|in-single-quotes",C:[{N:"supplied",slot:"3"}]}]}]}]}]},{N:"param",line:"59",name:"Q{}in-double-quotes",slot:"4",as:"1AB",C:[{N:"false",role:"select"},{N:"treat",role:"conversion",as:"AB",diag:"8|0|XTTE0590|in-double-quotes",C:[{N:"check",card:"1",diag:"8|0|XTTE0590|in-double-quotes",C:[{N:"cvUntyped",to:"AB",diag:"8|0|XTTE0590|in-double-quotes",C:[{N:"data",diag:"8|0|XTTE0590|in-double-quotes",C:[{N:"supplied", +slot:"4"}]}]}]}]}]},{N:"param",line:"60",name:"Q{}brace-depth",slot:"5",as:"1ADI",C:[{N:"int",role:"select",val:"0"},{N:"treat",role:"conversion",as:"ADI",diag:"8|0|XTTE0590|brace-depth",C:[{N:"check",card:"1",diag:"8|0|XTTE0590|brace-depth",C:[{N:"cvUntyped",to:"ADI",diag:"8|0|XTTE0590|brace-depth",C:[{N:"data",diag:"8|0|XTTE0590|brace-depth",C:[{N:"supplied",slot:"5"}]}]}]}]}]},{N:"param",line:"61",name:"Q{}start-of-part",slot:"6",as:"1ADI",C:[{N:"int",role:"select",val:"1"},{N:"treat",role:"conversion", +as:"ADI",diag:"8|0|XTTE0590|start-of-part",C:[{N:"check",card:"1",diag:"8|0|XTTE0590|start-of-part",C:[{N:"cvUntyped",to:"ADI",diag:"8|0|XTTE0590|start-of-part",C:[{N:"data",diag:"8|0|XTTE0590|start-of-part",C:[{N:"supplied",slot:"6"}]}]}]}]}]},{N:"param",line:"62",name:"Q{}skip-char",slot:"7",as:"1AB",C:[{N:"false",role:"select"},{N:"treat",role:"conversion",as:"AB",diag:"8|0|XTTE0590|skip-char",C:[{N:"check",card:"1",diag:"8|0|XTTE0590|skip-char",C:[{N:"cvUntyped",to:"AB",diag:"8|0|XTTE0590|skip-char", +C:[{N:"data",diag:"8|0|XTTE0590|skip-char",C:[{N:"supplied",slot:"7"}]}]}]}]}]}]},{N:"choose",role:"on-completion",line:"65",C:[{N:"varRef",name:"Q{}in-expression",slot:"1"},{N:"fn",line:"66",name:"error",C:[{N:"qName",pre:"",uri:"http://www.w3.org/2005/xqt-errors",loc:"XTSE0350"},{N:"fn",name:"concat",C:[{N:"str",val:"Missing closing brace after expression:"},{N:"varRef",name:"Q{}in",slot:"0"}]},{N:"varRef",name:"Q{}in",slot:"0"}]},{N:"vc",line:"69",op:"le",onEmpty:"0",comp:"CAVC",C:[{N:"varRef", +name:"Q{}start-of-part",slot:"6"},{N:"fn",name:"count",C:[{N:"varRef",name:"Q{}codepoints-in",slot:"8"}]}]},{N:"att",line:"26",name:"literal",C:[{N:"fn",line:"76",name:"replace",C:[{N:"fn",name:"replace",C:[{N:"fn",name:"substring",C:[{N:"varRef",name:"Q{}in",slot:"0"},{N:"varRef",name:"Q{}start-of-part",slot:"6"}]},{N:"str",val:"{{"},{N:"str",val:"{"},{N:"str",val:"q"}]},{N:"str",val:"}}"},{N:"str",val:"}"},{N:"str",val:"q"}]}]}]},{N:"let",role:"action",line:"80","var":"Q{}i",as:"1ADI",slot:"9", +eval:"16",C:[{N:"dot",type:"1ADI"},{N:"let",line:"81","var":"Q{}c1",as:"*ADI",slot:"10",eval:"7",C:[{N:"subscript",C:[{N:"varRef",name:"Q{}codepoints-in",slot:"8"},{N:"varRef",name:"Q{}i",slot:"9"}]},{N:"let",line:"82","var":"Q{}c2",as:"*ADI",slot:"11",eval:"7",C:[{N:"subscript",C:[{N:"varRef",name:"Q{}codepoints-in",slot:"8"},{N:"arith",op:"+",calc:"i+i",C:[{N:"varRef",name:"Q{}i",slot:"9"},{N:"int",val:"1"}]}]},{N:"choose",line:"84",C:[{N:"varRef",name:"Q{}skip-char",slot:"7"},{N:"nextIteration", +line:"86",C:[{N:"withParam",name:"Q{}skip-char",as:"1AB",slot:"7",C:[{N:"false"}]}]},{N:"varRef",line:"89",name:"Q{}in-expression",slot:"1"},{N:"choose",line:"91",C:[{N:"and",op:"and",C:[{N:"varRef",name:"Q{}in-single-quotes",slot:"3"},{N:"vc",op:"eq",onEmpty:"0",comp:"CAVC",C:[{N:"varRef",name:"Q{}c1",slot:"10"},{N:"gVarRef",name:"Q{}APOS",bSlot:"0"}]}]},{N:"nextIteration",line:"93",C:[{N:"withParam",name:"Q{}in-single-quotes",as:"1AB",slot:"3",C:[{N:"false"}]}]},{N:"and",line:"96",op:"and",C:[{N:"varRef", +name:"Q{}in-double-quotes",slot:"4"},{N:"vc",op:"eq",onEmpty:"0",comp:"CAVC",C:[{N:"varRef",name:"Q{}c1",slot:"10"},{N:"gVarRef",name:"Q{}QUOT",bSlot:"1"}]}]},{N:"nextIteration",line:"98",C:[{N:"withParam",name:"Q{}in-double-quotes",as:"1AB",slot:"4",C:[{N:"false"}]}]},{N:"and",line:"101",op:"and",C:[{N:"and",op:"and",C:[{N:"vc",op:"eq",onEmpty:"0",comp:"CAVC",C:[{N:"varRef",name:"Q{}c1",slot:"10"},{N:"gVarRef",name:"Q{}APOS",bSlot:"2"}]},{N:"vc",op:"eq",onEmpty:"0",comp:"CAVC",C:[{N:"varRef",name:"Q{}comment-depth", +slot:"2"},{N:"int",val:"0"}]}]},{N:"fn",name:"not",C:[{N:"varRef",name:"Q{}in-double-quotes",slot:"4"}]}]},{N:"nextIteration",line:"103",C:[{N:"withParam",name:"Q{}in-single-quotes",as:"1AB",slot:"3",C:[{N:"true"}]}]},{N:"and",line:"106",op:"and",C:[{N:"and",op:"and",C:[{N:"vc",op:"eq",onEmpty:"0",comp:"CAVC",C:[{N:"varRef",name:"Q{}c1",slot:"10"},{N:"gVarRef",name:"Q{}QUOT",bSlot:"3"}]},{N:"vc",op:"eq",onEmpty:"0",comp:"CAVC",C:[{N:"varRef",name:"Q{}comment-depth",slot:"2"},{N:"int",val:"0"}]}]}, +{N:"fn",name:"not",C:[{N:"varRef",name:"Q{}in-single-quotes",slot:"3"}]}]},{N:"nextIteration",line:"108",C:[{N:"withParam",name:"Q{}in-double-quotes",as:"1AB",slot:"4",C:[{N:"true"}]}]},{N:"and",line:"111",op:"and",C:[{N:"and",op:"and",C:[{N:"vc",op:"eq",onEmpty:"0",comp:"CAVC",C:[{N:"varRef",name:"Q{}c1",slot:"10"},{N:"gVarRef",name:"Q{}LPAREN",bSlot:"4"}]},{N:"vc",op:"eq",onEmpty:"0",comp:"CAVC",C:[{N:"varRef",name:"Q{}c2",slot:"11"},{N:"gVarRef",name:"Q{}COLON",bSlot:"5"}]}]},{N:"and",op:"and", +C:[{N:"fn",name:"not",C:[{N:"varRef",name:"Q{}in-single-quotes",slot:"3"}]},{N:"fn",name:"not",C:[{N:"varRef",name:"Q{}in-double-quotes",slot:"4"}]}]}]},{N:"nextIteration",line:"113",C:[{N:"withParam",name:"Q{}comment-depth",as:"1ADI",slot:"2",C:[{N:"arith",op:"+",calc:"i+i",C:[{N:"varRef",name:"Q{}comment-depth",slot:"2"},{N:"int",val:"1"}]}]},{N:"withParam",name:"Q{}skip-char",as:"1AB",slot:"7",C:[{N:"true"}]}]},{N:"and",line:"117",op:"and",C:[{N:"and",op:"and",C:[{N:"vc",op:"gt",onEmpty:"0",comp:"CAVC", +C:[{N:"varRef",name:"Q{}comment-depth",slot:"2"},{N:"int",val:"0"}]},{N:"vc",op:"eq",onEmpty:"0",comp:"CAVC",C:[{N:"varRef",name:"Q{}c1",slot:"10"},{N:"gVarRef",name:"Q{}COLON",bSlot:"6"}]}]},{N:"vc",op:"eq",onEmpty:"0",comp:"CAVC",C:[{N:"varRef",name:"Q{}c2",slot:"11"},{N:"gVarRef",name:"Q{}RPAREN",bSlot:"7"}]}]},{N:"nextIteration",line:"119",C:[{N:"withParam",name:"Q{}comment-depth",as:"1ADI",slot:"2",C:[{N:"arith",op:"-",calc:"i-i",C:[{N:"varRef",name:"Q{}comment-depth",slot:"2"},{N:"int",val:"1"}]}]}, +{N:"withParam",name:"Q{}skip-char",as:"1AB",slot:"7",C:[{N:"true"}]}]},{N:"and",line:"123",op:"and",C:[{N:"vc",op:"eq",onEmpty:"0",comp:"CAVC",C:[{N:"varRef",name:"Q{}c1",slot:"10"},{N:"gVarRef",name:"Q{}LBRACE",bSlot:"8"}]},{N:"and",op:"and",C:[{N:"and",op:"and",C:[{N:"fn",name:"not",C:[{N:"varRef",name:"Q{}in-single-quotes",slot:"3"}]},{N:"fn",name:"not",C:[{N:"varRef",name:"Q{}in-double-quotes",slot:"4"}]}]},{N:"vc",op:"le",onEmpty:"1",comp:"CAVC",C:[{N:"varRef",name:"Q{}comment-depth",slot:"2"}, +{N:"int",val:"0"}]}]}]},{N:"nextIteration",line:"125",C:[{N:"withParam",name:"Q{}brace-depth",as:"1ADI",slot:"5",C:[{N:"arith",op:"+",calc:"i+i",C:[{N:"varRef",name:"Q{}brace-depth",slot:"5"},{N:"int",val:"1"}]}]}]},{N:"and",line:"128",op:"and",C:[{N:"vc",op:"eq",onEmpty:"0",comp:"CAVC",C:[{N:"varRef",name:"Q{}c1",slot:"10"},{N:"gVarRef",name:"Q{}RBRACE",bSlot:"9"}]},{N:"and",op:"and",C:[{N:"and",op:"and",C:[{N:"fn",name:"not",C:[{N:"varRef",name:"Q{}in-single-quotes",slot:"3"}]},{N:"fn",name:"not", +C:[{N:"varRef",name:"Q{}in-double-quotes",slot:"4"}]}]},{N:"vc",op:"le",onEmpty:"1",comp:"CAVC",C:[{N:"varRef",name:"Q{}comment-depth",slot:"2"},{N:"int",val:"0"}]}]}]},{N:"choose",line:"130",C:[{N:"vc",op:"eq",onEmpty:"0",comp:"CAVC",C:[{N:"varRef",name:"Q{}brace-depth",slot:"5"},{N:"int",val:"0"}]},{N:"sequence",line:"134",C:[{N:"att",line:"32",name:"expression",C:[{N:"fn",line:"134",name:"substring",C:[{N:"varRef",name:"Q{}in",slot:"0"},{N:"varRef",name:"Q{}start-of-part",slot:"6"},{N:"arith", +op:"-",calc:"i-i",C:[{N:"varRef",name:"Q{}i",slot:"9"},{N:"varRef",name:"Q{}start-of-part",slot:"6"}]}]}]},{N:"nextIteration",line:"136",C:[{N:"withParam",name:"Q{}in-expression",as:"1AB",slot:"1",C:[{N:"false"}]},{N:"withParam",name:"Q{}start-of-part",as:"1ADI",slot:"6",C:[{N:"arith",line:"137",op:"+",calc:"i+i",C:[{N:"varRef",name:"Q{}i",slot:"9"},{N:"int",val:"1"}]}]}]}]},{N:"true"},{N:"nextIteration",line:"142",C:[{N:"withParam",name:"Q{}brace-depth",as:"1ADI",slot:"5",C:[{N:"fn",name:"max",C:[{N:"sequence", +C:[{N:"arith",op:"-",calc:"i-i",C:[{N:"varRef",name:"Q{}brace-depth",slot:"5"},{N:"int",val:"1"}]},{N:"int",val:"0"}]}]}]}]}]}]},{N:"vc",line:"151",op:"eq",onEmpty:"0",comp:"CAVC",C:[{N:"varRef",name:"Q{}c1",slot:"10"},{N:"gVarRef",name:"Q{}LBRACE",bSlot:"10"}]},{N:"choose",line:"153",C:[{N:"vc",op:"eq",onEmpty:"0",comp:"CAVC",C:[{N:"varRef",name:"Q{}c2",slot:"11"},{N:"gVarRef",name:"Q{}LBRACE",bSlot:"11"}]},{N:"nextIteration",line:"155",C:[{N:"withParam",name:"Q{}skip-char",as:"1AB",slot:"7",C:[{N:"true"}]}]}, +{N:"true"},{N:"sequence",line:"159",C:[{N:"choose",C:[{N:"vc",op:"ne",onEmpty:"0",comp:"CAVC",C:[{N:"varRef",name:"Q{}start-of-part",slot:"6"},{N:"varRef",name:"Q{}i",slot:"9"}]},{N:"att",line:"26",name:"literal",C:[{N:"fn",line:"166",name:"replace",C:[{N:"fn",name:"replace",C:[{N:"fn",name:"substring",C:[{N:"varRef",name:"Q{}in",slot:"0"},{N:"varRef",name:"Q{}start-of-part",slot:"6"},{N:"arith",op:"-",calc:"i-i",C:[{N:"varRef",name:"Q{}i",slot:"9"},{N:"varRef",name:"Q{}start-of-part",slot:"6"}]}]}, +{N:"str",val:"{{"},{N:"str",val:"{"},{N:"str",val:"q"}]},{N:"str",val:"}}"},{N:"str",val:"}"},{N:"str",val:"q"}]}]}]},{N:"nextIteration",line:"169",C:[{N:"withParam",name:"Q{}in-expression",as:"1AB",slot:"1",C:[{N:"true"}]},{N:"withParam",name:"Q{}start-of-part",as:"1ADI",slot:"6",C:[{N:"arith",line:"170",op:"+",calc:"i+i",C:[{N:"varRef",name:"Q{}i",slot:"9"},{N:"int",val:"1"}]}]}]}]}]},{N:"vc",line:"175",op:"eq",onEmpty:"0",comp:"CAVC",C:[{N:"varRef",name:"Q{}c1",slot:"10"},{N:"gVarRef",name:"Q{}RBRACE", +bSlot:"12"}]},{N:"choose",line:"177",C:[{N:"vc",op:"eq",onEmpty:"0",comp:"CAVC",C:[{N:"varRef",name:"Q{}c2",slot:"11"},{N:"gVarRef",name:"Q{}RBRACE",bSlot:"13"}]},{N:"nextIteration",line:"179",C:[{N:"withParam",name:"Q{}skip-char",as:"1AB",slot:"7",C:[{N:"true"}]}]},{N:"true"},{N:"fn",line:"183",name:"error",C:[{N:"qName",pre:"",uri:"http://www.w3.org/2005/xqt-errors",loc:"XTSE0370"},{N:"str",val:"Closing brace must be doubled"},{N:"varRef",name:"Q{}in",slot:"0"}]}]}]}]}]}]}]}]}]}]}]},{N:"co",id:"236", +binds:"207 206 168 16 138 237 152 133 238 133 133 133 133 4 4 16 49 49",C:[{N:"template",name:"Q{}check-syntax-primary",flags:"os",as:"*NE",line:"137",module:"XSLT-syntax.xsl",slots:"8",C:[{N:"sequence",role:"body",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"138",C:[{N:"param",name:"Q{}forward-compatibility-mode",slot:"0",flags:"t",as:"1AB",C:[{N:"false",role:"select"},{N:"treat", +role:"conversion",as:"AB",diag:"8|0|XTTE0590|forward-compatibility-mode",C:[{N:"check",card:"1",diag:"8|0|XTTE0590|forward-compatibility-mode",C:[{N:"cvUntyped",to:"AB",diag:"8|0|XTTE0590|forward-compatibility-mode",C:[{N:"data",diag:"8|0|XTTE0590|forward-compatibility-mode",C:[{N:"supplied",slot:"0"}]}]}]}]}]},{N:"let",line:"141","var":"Q{}context",as:"1",slot:"1",eval:"16",C:[{N:"dot",flags:"a"},{N:"let",line:"142","var":"Q{}schema",as:"?FM",slot:"2",eval:"7",C:[{N:"treat",as:"FM",diag:"3|0|XTTE0570|schema", +C:[{N:"check",card:"?",diag:"3|0|XTTE0570|schema",C:[{N:"ifCall",name:"Q{http://www.w3.org/2005/xpath-functions/map}get",type:"*",C:[{N:"gVarRef",name:"Q{}xslt.schema",bSlot:"0"},{N:"fn",name:"local-name",C:[{N:"treat",as:"N",diag:"0|0||fn:local-name",C:[{N:"dot",flags:"a"}]}]}]}]}]},{N:"choose",line:"145",C:[{N:"fn",name:"exists",C:[{N:"varRef",name:"Q{}schema",slot:"2"}]},{N:"let",line:"147","var":"Q{}provided",as:"*AS",slot:"3",eval:"4",C:[{N:"forEach",C:[{N:"slash",simple:"1",C:[{N:"treat",as:"N", +diag:"14|2|XPTY0020|",C:[{N:"dot",flags:"a"}]},{N:"axis",name:"attribute",nodeTest:"NA"}]},{N:"fn",name:"name",C:[{N:"dot",type:"1NA"}]}]},{N:"let",line:"148","var":"Q{}missing-attributes",as:"*AS",slot:"4",eval:"4",C:[{N:"filter",flags:"b",C:[{N:"treat",line:"146",as:"AS",diag:"3|0|XTTE0570|required.attributes",C:[{N:"cvUntyped",to:"AS",diag:"3|0|XTTE0570|required.attributes",C:[{N:"data",diag:"3|0|XTTE0570|required.attributes",C:[{N:"lookup",C:[{N:"varRef",name:"Q{}schema",slot:"2"},{N:"str",val:"required.attributes"}]}]}]}]}, +{N:"fn",name:"not",C:[{N:"gc",op:"=",card:"N:1",comp:"CCC",C:[{N:"varRef",name:"Q{}provided",slot:"3"},{N:"dot",type:"1AS"}]}]}]},{N:"let",line:"150","var":"Q{}pa.names",as:"*AS",slot:"5",eval:"4",C:[{N:"sequence",C:[{N:"treat",as:"AS",diag:"3|0|XTTE0570|pa.names",C:[{N:"cvUntyped",to:"AS",diag:"3|0|XTTE0570|pa.names",C:[{N:"ifCall",name:"Q{http://www.w3.org/2005/xpath-functions/map}keys",type:"*A",C:[{N:"treat",line:"149",as:"FM",diag:"3|0|XTTE0570|permitted.attributes",C:[{N:"check",card:"1",diag:"3|0|XTTE0570|permitted.attributes", +C:[{N:"lookup",C:[{N:"varRef",name:"Q{}schema",slot:"2"},{N:"str",val:"permitted.attributes"}]}]}]}]}]}]},{N:"cvUntyped",to:"AS",diag:"3|0|XTTE0570|pa.names",C:[{N:"data",diag:"3|0|XTTE0570|pa.names",C:[{N:"gVarRef",name:"Q{}standard.attributes",bSlot:"1"}]}]}]},{N:"sequence",line:"153",C:[{N:"choose",C:[{N:"fn",name:"not",C:[{N:"varRef",name:"Q{}forward-compatibility-mode",slot:"0"}]},{N:"treat",line:"154",as:"NE",diag:"7|0|XTTE0505|check-syntax-primary",C:[{N:"homCheck",C:[{N:"slash",C:[{N:"filter", +flags:"b",C:[{N:"forEach",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",module:"normalize.xsl",line:"844",C:[{N:"treat",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",module:"XSLT-syntax.xsl",line:"151",as:"NE",diag:"0|0||f:plainAtt",C:[{N:"varRef",name:"Q{}context", +slot:"1"}]},{N:"filter",flags:"b",C:[{N:"axis",name:"attribute",nodeTest:"NA"},{N:"fn",name:"not",C:[{N:"fn",name:"namespace-uri",C:[{N:"dot",type:"1NA"}]}]}]}]},{N:"fn",name:"not",C:[{N:"gc",op:"=",card:"N:1",comp:"CCC",C:[{N:"varRef",name:"Q{}pa.names",slot:"5"},{N:"fn",name:"name",C:[{N:"dot",type:"1NA"}]}]}]}]},{N:"ufCall",name:"Q{MyFunctions}wrongAttribute",tailCall:"false",bSlot:"2",eval:"8",C:[{N:"dot",type:"1NA"}]}]}]}]}]},{N:"let",line:"168","var":"Q{}permitted.children",as:"*A",slot:"6", +eval:"4",C:[{N:"ifCall",name:"Q{http://www.w3.org/2005/xpath-functions/map}keys",type:"*A",C:[{N:"treat",as:"FM",diag:"0|0||map:keys",C:[{N:"check",card:"1",diag:"0|0||map:keys",C:[{N:"lookup",C:[{N:"varRef",name:"Q{}schema",slot:"2"},{N:"str",val:"permitted.children"}]}]}]}]},{N:"sequence",line:"170",C:[{N:"choose",C:[{N:"choose",line:"161",C:[{N:"ifCall",name:"Q{http://www.w3.org/2005/xpath-functions/map}contains",type:"1AB",C:[{N:"check",card:"1",diag:"0|0||map:contains",C:[{N:"varRef",name:"Q{}schema", +slot:"2"}]},{N:"str",val:"parents"}]},{N:"let","var":"Q{http://saxon.sf.net/generated-variable}v0",as:"*A",slot:"7",eval:"4",C:[{N:"data",diag:"1|1||=",C:[{N:"lookupAll",C:[{N:"lookup",C:[{N:"varRef",name:"Q{}schema",slot:"2"},{N:"str",val:"parents"}]}]}]},{N:"fn",name:"exists",C:[{N:"filter",flags:"b",C:[{N:"fn",name:"local-name",C:[{N:"check",card:"?",diag:"0|0||fn:local-name",C:[{N:"slash",simple:"1",C:[{N:"treat",as:"N",diag:"14|9|XPTY0020|",C:[{N:"dot",flags:"a"}]},{N:"axis",name:"parent",nodeTest:"N u[NE,ND]"}]}]}]}, +{N:"fn",name:"not",C:[{N:"gc",op:"=",card:"N:1",comp:"GAC|http://www.w3.org/2005/xpath-functions/collation/codepoint",C:[{N:"varRef",name:"Q{http://saxon.sf.net/generated-variable}v0",slot:"7"},{N:"dot",type:"1AS"}]}]}]}]}]},{N:"true"},{N:"and",op:"and",C:[{N:"gc",op:"=",card:"N:1",comp:"CCC",C:[{N:"literal",count:"3",C:[{N:"str",val:"stylesheet"},{N:"str",val:"transform"},{N:"str",val:"package"}]},{N:"fn",name:"local-name",C:[{N:"treat",as:"N",diag:"0|0||fn:local-name",C:[{N:"dot",flags:"a"}]}]}]}, +{N:"fn",name:"exists",C:[{N:"slash",simple:"1",C:[{N:"treat",as:"N",diag:"14|9|XPTY0020|",C:[{N:"dot",flags:"a"}]},{N:"axis",name:"parent",nodeTest:"NE"}]}]}]}]},{N:"choose",line:"177",C:[{N:"varRef",name:"Q{}forward-compatibility-mode",slot:"0"},{N:"gVarRef",name:"Q{}XSL-ignore",bSlot:"3"},{N:"true"},{N:"treat",as:"NE",diag:"7|0|XTTE0505|check-syntax-primary",C:[{N:"ufCall",name:"Q{MyFunctions}wrongParent",tailCall:"false",bSlot:"4",eval:"16",C:[{N:"treat",as:"NE",diag:"0|0||f:wrongParent",C:[{N:"varRef", +name:"Q{}context",slot:"1"}]}]}]}]},{N:"varRef",line:"179",name:"Q{}missing-attributes",slot:"4"},{N:"treat",line:"180",as:"NE",diag:"7|0|XTTE0505|check-syntax-primary",C:[{N:"ufCall",name:"Q{MyFunctions}missingAttribute",tailCall:"false",bSlot:"5",eval:"16 16",C:[{N:"treat",as:"NE",diag:"0|0||f:missingAttribute",C:[{N:"varRef",name:"Q{}context",slot:"1"}]},{N:"check",card:"1",diag:"0|1||f:missingAttribute",C:[{N:"first",C:[{N:"varRef",name:"Q{}missing-attributes",slot:"4"}]}]}]}]},{N:"gc",line:"182", +op:"=",card:"N:1",comp:"GAC|http://www.w3.org/2005/xpath-functions/collation/codepoint",C:[{N:"varRef",name:"Q{}permitted.children",slot:"6"},{N:"str",val:"sequence-constructor"}]},{N:"empty"},{N:"fn",line:"183",name:"empty",C:[{N:"varRef",name:"Q{}permitted.children",slot:"6"}]},{N:"choose",line:"190",C:[{N:"fn",name:"has-children",C:[{N:"treat",as:"N",diag:"0|0||fn:has-children",C:[{N:"dot",flags:"a"}]}]},{N:"treat",as:"NE",diag:"7|0|XTTE0505|check-syntax-primary",C:[{N:"ufCall",name:"Q{MyFunctions}syntax-error", +tailCall:"false",bSlot:"6",eval:"0 16",C:[{N:"str",val:"XTSE0260"},{N:"fn",name:"concat",C:[{N:"fn",name:"name",C:[{N:"treat",as:"N",diag:"0|0||fn:name",C:[{N:"dot",flags:"a"}]}]},{N:"str",val:" must be empty"}]}]}]}]},{N:"gc",line:"192",op:"=",card:"N:1",comp:"GAC|http://www.w3.org/2005/xpath-functions/collation/codepoint",C:[{N:"varRef",name:"Q{}permitted.children",slot:"6"},{N:"str",val:"declarations"}]},{N:"sequence",line:"193",C:[{N:"treat",as:"NE",diag:"7|0|XTTE0505|check-syntax-primary",C:[{N:"forEach", +C:[{N:"filter",flags:"b",C:[{N:"slash",simple:"1",C:[{N:"treat",as:"N",diag:"14|3|XPTY0020|",C:[{N:"dot",flags:"a"}]},{N:"axis",name:"child",nodeTest:"NT"}]},{N:"fn",name:"boolean",C:[{N:"fn",name:"normalize-space",C:[{N:"fn",name:"string",C:[{N:"dot",type:"1NT"}]}]}]}]},{N:"ufCall",name:"Q{MyFunctions}wrongChild",tailCall:"false",bSlot:"7",eval:"8",C:[{N:"dot",type:"1NT"}]}]}]},{N:"choose",line:"199",C:[{N:"varRef",name:"Q{}forward-compatibility-mode",slot:"0"},{N:"empty"},{N:"true"},{N:"treat", +as:"NE",diag:"7|0|XTTE0505|check-syntax-primary",C:[{N:"forEach",C:[{N:"filter",flags:"b",C:[{N:"filter",flags:"b",C:[{N:"slash",simple:"1",C:[{N:"treat",as:"N",diag:"14|3|XPTY0020|",C:[{N:"dot",flags:"a"}]},{N:"axis",name:"child",nodeTest:"NE nQ{http://www.w3.org/1999/XSL/Transform}*"}]},{N:"fn",name:"not",C:[{N:"gc",op:"=",card:"N:1",comp:"CCC",C:[{N:"gVarRef",name:"Q{}declaration-names",bSlot:"8"},{N:"fn",name:"local-name",C:[{N:"dot",type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}*"}]}]}]}]}, +{N:"or",op:"or",C:[{N:"fn",name:"empty",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}version"}]},{N:"vc",op:"le",onEmpty:"1",comp:"CAVC",C:[{N:"cast",flags:"ae",as:"?AD",C:[{N:"attVal",name:"Q{}version",chk:"0"}]},{N:"dec",val:"3"}]}]}]},{N:"ufCall",name:"Q{MyFunctions}wrongChild",tailCall:"false",bSlot:"9",eval:"8",C:[{N:"dot",type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}*"}]}]}]}]},{N:"treat",line:"200",as:"NE",diag:"7|0|XTTE0505|check-syntax-primary",C:[{N:"forEach",C:[{N:"filter",flags:"b", +C:[{N:"slash",simple:"1",C:[{N:"treat",as:"N",diag:"14|3|XPTY0020|",C:[{N:"dot",flags:"a"}]},{N:"axis",name:"child",nodeTest:"NE"}]},{N:"fn",name:"not",C:[{N:"fn",name:"namespace-uri",C:[{N:"dot",type:"1NE"}]}]}]},{N:"ufCall",name:"Q{MyFunctions}wrongChild",tailCall:"false",bSlot:"10",eval:"8",C:[{N:"dot",type:"1NE"}]}]}]}]},{N:"gc",line:"202",op:"=",card:"N:1",comp:"GAC|http://www.w3.org/2005/xpath-functions/collation/codepoint",C:[{N:"varRef",name:"Q{}permitted.children",slot:"6"},{N:"str",val:"PCDATA"}]}, +{N:"treat",line:"203",as:"NE",diag:"7|0|XTTE0505|check-syntax-primary",C:[{N:"forEach",C:[{N:"slash",simple:"1",C:[{N:"treat",as:"N",diag:"14|3|XPTY0020|",C:[{N:"dot",flags:"a"}]},{N:"axis",name:"child",nodeTest:"NE"}]},{N:"ufCall",name:"Q{MyFunctions}wrongChild",tailCall:"false",bSlot:"11",eval:"8",C:[{N:"dot",type:"1NE"}]}]}]},{N:"true"},{N:"treat",line:"207",as:"NE",diag:"7|0|XTTE0505|check-syntax-primary",C:[{N:"forEach",C:[{N:"sequence",C:[{N:"filter",flags:"b",C:[{N:"slash",simple:"1",C:[{N:"treat", +as:"N",diag:"14|3|XPTY0020|",C:[{N:"dot",flags:"a"}]},{N:"axis",name:"child",nodeTest:"NE"}]},{N:"fn",name:"not",C:[{N:"gc",op:"=",card:"N:1",comp:"GAC|http://www.w3.org/2005/xpath-functions/collation/codepoint",C:[{N:"varRef",name:"Q{}permitted.children",slot:"6"},{N:"fn",name:"local-name",C:[{N:"dot",type:"1NE"}]}]}]}]},{N:"filter",flags:"b",C:[{N:"slash",simple:"1",C:[{N:"treat",as:"N",diag:"14|3|XPTY0020|",C:[{N:"dot",flags:"a"}]},{N:"axis",name:"child",nodeTest:"NT"}]},{N:"fn",name:"boolean", +C:[{N:"fn",name:"normalize-space",C:[{N:"fn",name:"string",C:[{N:"dot",type:"1NT"}]}]}]}]}]},{N:"ufCall",name:"Q{MyFunctions}wrongChild",tailCall:"false",bSlot:"12",eval:"8",C:[{N:"dot",type:"1N"}]}]}]}]},{N:"choose",line:"211",C:[{N:"and",op:"and",C:[{N:"and",op:"and",C:[{N:"ifCall",name:"Q{http://www.w3.org/2005/xpath-functions/map}contains",type:"1AB",C:[{N:"check",card:"1",diag:"0|0||map:contains",C:[{N:"varRef",name:"Q{}schema",slot:"2"}]},{N:"str",val:"selectAndContent"}]},{N:"fn",name:"exists", +C:[{N:"slash",simple:"1",C:[{N:"treat",as:"N",diag:"14|2|XPTY0020|",C:[{N:"dot",flags:"a"}]},{N:"axis",name:"attribute",nodeTest:"NA nQ{}select"}]}]}]},{N:"fn",name:"exists",C:[{N:"sequence",C:[{N:"except",op:"except",C:[{N:"slash",simple:"1",C:[{N:"treat",as:"N",diag:"14|3|XPTY0020|",C:[{N:"dot",flags:"a"}]},{N:"axis",name:"child",nodeTest:"NE"}]},{N:"slash",simple:"1",C:[{N:"treat",as:"N",diag:"14|3|XPTY0020|",C:[{N:"dot",flags:"a"}]},{N:"axis",name:"child",nodeTest:"NE nQ{http://www.w3.org/1999/XSL/Transform}fallback"}]}]}, +{N:"filter",flags:"b",C:[{N:"slash",simple:"1",C:[{N:"treat",as:"N",diag:"14|3|XPTY0020|",C:[{N:"dot",flags:"a"}]},{N:"axis",name:"child",nodeTest:"NT"}]},{N:"fn",name:"boolean",C:[{N:"fn",name:"normalize-space",C:[{N:"fn",name:"string",C:[{N:"dot",type:"1NT"}]}]}]}]}]}]}]},{N:"treat",line:"213",as:"NE",diag:"7|0|XTTE0505|check-syntax-primary",C:[{N:"ufCall",name:"Q{MyFunctions}syntax-error-at",tailCall:"false",bSlot:"13",eval:"16 16 16",C:[{N:"treat",as:"AS",diag:"0|0||f:syntax-error-at",C:[{N:"check", +card:"1",diag:"0|0||f:syntax-error-at",C:[{N:"cvUntyped",to:"AS",C:[{N:"data",diag:"0|0||f:syntax-error-at",C:[{N:"first",C:[{N:"sequence",C:[{N:"lookup",C:[{N:"varRef",name:"Q{}schema",slot:"2"},{N:"str",val:"selectAndContent"}]},{N:"str",val:"XTSE0840"}]}]}]}]}]}]},{N:"fn",name:"concat",C:[{N:"fn",name:"name",C:[{N:"treat",as:"N",diag:"0|0||fn:name",C:[{N:"dot",flags:"a"}]}]},{N:"str",val:" cannot have both @select and content"}]},{N:"treat",as:"N",diag:"0|2||f:syntax-error-at",C:[{N:"dot",flags:"a"}]}]}]}]}]}]}]}]}]}]}, +{N:"fn",line:"217",name:"exists",C:[{N:"slash",simple:"1",C:[{N:"treat",as:"N",diag:"14|12|XPTY0020|",C:[{N:"dot",flags:"a"}]},{N:"axis",name:"self",nodeTest:"NE nQ{http://www.w3.org/1999/XSL/Transform}import-schema"}]}]},{N:"treat",line:"218",as:"NE",diag:"7|0|XTTE0505|check-syntax-primary",C:[{N:"ufCall",name:"Q{MyFunctions}syntax-error-at",tailCall:"false",bSlot:"14",eval:"0 16 16",C:[{N:"str",val:"XTSE1650"},{N:"fn",name:"concat",C:[{N:"str",val:"The "},{N:"fn",name:"name",C:[{N:"treat",as:"N", +diag:"0|0||fn:name",C:[{N:"dot",flags:"a"}]}]},{N:"str",val:" declaration cannot be handled by this XSLT compiler"}]},{N:"treat",as:"N",diag:"0|2||f:syntax-error-at",C:[{N:"dot",flags:"a"}]}]}]},{N:"varRef",line:"220",name:"Q{}forward-compatibility-mode",slot:"0"},{N:"choose",line:"230",C:[{N:"slash",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",module:"normalize.xsl",line:"795", +C:[{N:"treat",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",module:"XSLT-syntax.xsl",line:"230",as:"NE",diag:"0|0||f:isTopLevel",C:[{N:"dot",flags:"a"}]},{N:"fn",name:"exists",C:[{N:"axis",name:"parent",nodeTest:"NE u[NE u[NE nQ{http://www.w3.org/1999/XSL/Transform}stylesheet,NE nQ{http://www.w3.org/1999/XSL/Transform}transform],NE nQ{http://www.w3.org/1999/XSL/Transform}package]"}]}]}, +{N:"gVarRef",name:"Q{}XSL-ignore",bSlot:"15"},{N:"fn",name:"exists",C:[{N:"slash",simple:"1",C:[{N:"treat",as:"N",diag:"14|3|XPTY0020|",C:[{N:"dot",flags:"a"}]},{N:"axis",name:"child",nodeTest:"NE nQ{http://www.w3.org/1999/XSL/Transform}fallback"}]}]},{N:"slash",simple:"1",C:[{N:"treat",as:"N",diag:"14|3|XPTY0020|",C:[{N:"dot",flags:"a"}]},{N:"axis",name:"child",nodeTest:"NE nQ{http://www.w3.org/1999/XSL/Transform}fallback"}]},{N:"true"},{N:"treat",as:"NE",diag:"7|0|XTTE0505|check-syntax-primary", +C:[{N:"ufCall",name:"Q{MyFunctions}syntax-error-at",tailCall:"false",bSlot:"16",eval:"16 16",C:[{N:"fn",name:"concat",C:[{N:"fn",name:"name",C:[{N:"treat",as:"N",diag:"0|0||fn:name",C:[{N:"dot",flags:"a"}]}]},{N:"str",val:" is not a known XSLT element and has no xsl:fallback child"}]},{N:"treat",as:"N",diag:"0|1||f:syntax-error-at",C:[{N:"dot",flags:"a"}]}]}]}]},{N:"true"},{N:"treat",line:"233",as:"NE",diag:"7|0|XTTE0505|check-syntax-primary",C:[{N:"ufCall",name:"Q{MyFunctions}syntax-error-at",tailCall:"false", +bSlot:"17",eval:"16 16",C:[{N:"fn",name:"concat",C:[{N:"fn",name:"name",C:[{N:"treat",as:"N",diag:"0|0||fn:name",C:[{N:"dot",flags:"a"}]}]},{N:"str",val:" is not a known XSLT element"}]},{N:"treat",as:"N",diag:"0|1||f:syntax-error-at",C:[{N:"dot",flags:"a"}]}]}]}]}]}]}]}]}]},{N:"co",id:"239",binds:"",C:[{N:"globalVariable",name:"Q{}lre.attributes",as:"1NE n~attributeGroup c~untyped",line:"263",module:"XSLT-syntax.xsl",visibility:"PRIVATE",C:[{N:"elem",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~", +line:"264",name:"xs:attributeGroup",nsuri:"http://www.w3.org/2001/XMLSchema",C:[{N:"sequence",C:[{N:"att",name:"name",flags:"l",C:[{N:"str",val:"literal-result-element-attributes"}]},{N:"elem",line:"265",name:"xs:attribute",nsuri:"http://www.w3.org/2001/XMLSchema",flags:"l",C:[{N:"sequence",C:[{N:"att",name:"name",flags:"l",C:[{N:"str",val:"default-collation"}]},{N:"att",name:"form",flags:"l",C:[{N:"str",val:"qualified"}]},{N:"att",name:"type",flags:"l",C:[{N:"str",val:"xsl:uri-list"}]}]}]},{N:"elem", +line:"266",name:"xs:attribute",nsuri:"http://www.w3.org/2001/XMLSchema",flags:"l",C:[{N:"sequence",C:[{N:"att",name:"name",flags:"l",C:[{N:"str",val:"default-mode"}]},{N:"att",name:"type",flags:"l",C:[{N:"str",val:"xsl:default-mode-type"}]}]}]},{N:"elem",line:"267",name:"xs:attribute",nsuri:"http://www.w3.org/2001/XMLSchema",flags:"l",C:[{N:"sequence",C:[{N:"att",name:"name",flags:"l",C:[{N:"str",val:"default-validation"}]},{N:"att",name:"type",flags:"l",C:[{N:"str",val:"xsl:validation-strip-or-preserve"}]}, +{N:"att",name:"default",flags:"l",C:[{N:"str",val:"strip"}]}]}]},{N:"elem",line:"268",name:"xs:attribute",nsuri:"http://www.w3.org/2001/XMLSchema",flags:"l",C:[{N:"sequence",C:[{N:"att",name:"name",flags:"l",C:[{N:"str",val:"expand-text"}]},{N:"att",name:"type",flags:"l",C:[{N:"str",val:"xsl:yes-or-no"}]}]}]},{N:"elem",line:"269",name:"xs:attribute",nsuri:"http://www.w3.org/2001/XMLSchema",flags:"l",C:[{N:"sequence",C:[{N:"att",name:"name",flags:"l",C:[{N:"str",val:"extension-element-prefixes"}]}, +{N:"att",name:"form",flags:"l",C:[{N:"str",val:"qualified"}]},{N:"att",name:"type",flags:"l",C:[{N:"str",val:"xsl:prefixes"}]}]}]},{N:"elem",line:"270",name:"xs:attribute",nsuri:"http://www.w3.org/2001/XMLSchema",flags:"l",C:[{N:"sequence",C:[{N:"att",name:"name",flags:"l",C:[{N:"str",val:"exclude-result-prefixes"}]},{N:"att",name:"form",flags:"l",C:[{N:"str",val:"qualified"}]},{N:"att",name:"type",flags:"l",C:[{N:"str",val:"xsl:prefixes"}]}]}]},{N:"elem",line:"271",name:"xs:attribute",nsuri:"http://www.w3.org/2001/XMLSchema", +flags:"l",C:[{N:"sequence",C:[{N:"att",name:"name",flags:"l",C:[{N:"str",val:"xpath-default-namespace"}]},{N:"att",name:"form",flags:"l",C:[{N:"str",val:"qualified"}]},{N:"att",name:"type",flags:"l",C:[{N:"str",val:"xs:anyURI"}]}]}]},{N:"elem",line:"272",name:"xs:attribute",nsuri:"http://www.w3.org/2001/XMLSchema",flags:"l",C:[{N:"sequence",C:[{N:"att",name:"name",flags:"l",C:[{N:"str",val:"inherit-namespaces"}]},{N:"att",name:"form",flags:"l",C:[{N:"str",val:"qualified"}]},{N:"att",name:"type",flags:"l", +C:[{N:"str",val:"xsl:yes-or-no"}]},{N:"att",name:"default",flags:"l",C:[{N:"str",val:"yes"}]}]}]},{N:"elem",line:"273",name:"xs:attribute",nsuri:"http://www.w3.org/2001/XMLSchema",flags:"l",C:[{N:"sequence",C:[{N:"att",name:"name",flags:"l",C:[{N:"str",val:"use-attribute-sets"}]},{N:"att",name:"form",flags:"l",C:[{N:"str",val:"qualified"}]},{N:"att",name:"type",flags:"l",C:[{N:"str",val:"xsl:EQNames"}]},{N:"att",name:"default",flags:"l",C:[{N:"str",val:""}]}]}]},{N:"elem",line:"274",name:"xs:attribute", +nsuri:"http://www.w3.org/2001/XMLSchema",flags:"l",C:[{N:"sequence",C:[{N:"att",name:"name",flags:"l",C:[{N:"str",val:"use-when"}]},{N:"att",name:"form",flags:"l",C:[{N:"str",val:"qualified"}]},{N:"att",name:"type",flags:"l",C:[{N:"str",val:"xsl:expression"}]}]}]},{N:"elem",line:"275",name:"xs:attribute",nsuri:"http://www.w3.org/2001/XMLSchema",flags:"l",C:[{N:"sequence",C:[{N:"att",name:"name",flags:"l",C:[{N:"str",val:"version"}]},{N:"att",name:"form",flags:"l",C:[{N:"str",val:"qualified"}]},{N:"att", +name:"type",flags:"l",C:[{N:"str",val:"xs:decimal"}]}]}]},{N:"elem",line:"276",name:"xs:attribute",nsuri:"http://www.w3.org/2001/XMLSchema",flags:"l",C:[{N:"sequence",C:[{N:"att",name:"name",flags:"l",C:[{N:"str",val:"type"}]},{N:"att",name:"form",flags:"l",C:[{N:"str",val:"qualified"}]},{N:"att",name:"type",flags:"l",C:[{N:"str",val:"xsl:EQName"}]}]}]},{N:"elem",line:"277",name:"xs:attribute",nsuri:"http://www.w3.org/2001/XMLSchema",flags:"l",C:[{N:"sequence",C:[{N:"att",name:"name",flags:"l",C:[{N:"str", +val:"validation"}]},{N:"att",name:"form",flags:"l",C:[{N:"str",val:"qualified"}]},{N:"att",name:"type",flags:"l",C:[{N:"str",val:"xsl:validation-type"}]}]}]}]}]}]}]},{N:"co",id:"208",binds:"",C:[{N:"globalVariable",name:"Q{}xslt.schema.json",as:"1AS",line:"8",module:"XSLT-schema.xsl",visibility:"PRIVATE",C:[{N:"str",val:'\n {\n "use-package":{"required.attributes":"name","parents":["stylesheet","transform","package"],"permitted.attributes":{"name":{"values":"uri","isAVT":false},"package-version":{"values":"string","isAVT":false}},"permitted.children":{"accept":"AAA","override":"AAA"}},\n \n "matching-substring":{"required.attributes":null,"permitted.attributes":{},"permitted.children":{"sequence-constructor":"AAA"}},\n \n "map-entry":{"required.attributes":"key","permitted.attributes":{"select":{"values":"expression","isAVT":false},"key":{"values":"expression","isAVT":false}},"permitted.children":{"sequence-constructor":"AAA"},"selectAndContent":"XTSE3280"},\n \n "output":{"required.attributes":null,"parents":["stylesheet","transform","package"],"permitted.attributes":{"omit-xml-declaration":{"values":"boolean","isAVT":false},"method":{"values":["xml","html","xhtml","text","json","adaptive","eqname"],"isAVT":false},"use-character-maps":{"values":"eqnames","isAVT":false},"allow-duplicate-names":{"values":"boolean","isAVT":false},"media-type":{"values":"string","isAVT":false},"doctype-public":{"values":"string","isAVT":false},"escape-uri-attributes":{"values":"boolean","isAVT":false},"standalone":{"values":["boolean","omit"],"isAVT":false},"json-node-output-method":{"values":["xml","html","xhtml","text","eqname"],"isAVT":false},"doctype-system":{"values":"string","isAVT":false},"item-separator":{"values":"string","isAVT":false},"name":{"values":"eqname","isAVT":false},"indent":{"values":"boolean","isAVT":false},"suppress-indentation":{"values":"eqnames","isAVT":false},"byte-order-mark":{"values":"boolean","isAVT":false},"include-content-type":{"values":"boolean","isAVT":false},"encoding":{"values":"string","isAVT":false},"normalization-form":{"values":["NFC","NFD","NFKC","NFKD","fully-normalized","none","nmtoken"],"isAVT":false},"html-version":{"values":"decimal","isAVT":false},"version":{"values":"nmtoken","isAVT":false},"undeclare-prefixes":{"values":"boolean","isAVT":false},"build-tree":{"values":"boolean","isAVT":false},"cdata-section-elements":{"values":"eqnames","isAVT":false},"parameter-document":{"values":"uri","isAVT":false}},"permitted.children":{}},\n \n "non-matching-substring":{"required.attributes":null,"parents":["analyze-string"],"permitted.attributes":{},"permitted.children":{"sequence-constructor":"AAA"}},\n \n "sequence":{"required.attributes":null,"permitted.attributes":{"select":{"values":"expression","isAVT":false}},"permitted.children":{"sequence-constructor":"AAA"},"selectAndContent":"XTSE3185"},\n \n "fork":{"required.attributes":null,"permitted.attributes":{},"permitted.children":{"sequence":"AAA","fallback":"AAA","for-each-group":"AAA"}},\n \n"fallback":{"required.attributes":null,"permitted.attributes":{},"permitted.children":{"sequence-constructor":"AAA"}},\n \n"next-iteration":{"required.attributes":null,"permitted.attributes":{},"permitted.children":{"with-param":"AAA"}},\n \n "mode":{"required.attributes":null,"parents":["stylesheet","transform","package"],"permitted.attributes":{"warning-on-multiple-match":{"values":"boolean","isAVT":false},"on-no-match":{"values":["deep-copy","shallow-copy","deep-skip","shallow-skip","text-only-copy","fail"],"isAVT":false},"typed":{"values":["boolean","strict","lax","unspecified"],"isAVT":false},"name":{"values":"eqname","isAVT":false},"visibility":{"values":["public","private","final"],"isAVT":false},"use-accumulators":{"values":"tokens","isAVT":false},"on-multiple-match":{"values":["use-last","fail"],"isAVT":false},"warning-on-no-match":{"values":"boolean","isAVT":false},"streamable":{"values":"boolean","isAVT":false}},"permitted.children":{}},\n \n "accumulator-rule":{"required.attributes":"match","parents":["accumulator"],"permitted.attributes":{"match":{"values":"pattern","isAVT":false},"phase":{"values":["start","end"],"isAVT":false},"select":{"values":"expression","isAVT":false}},"permitted.children":{"sequence-constructor":"AAA"}},\n \n "expose":{"required.attributes":["component","names","visibility"],"parents":["package"],"permitted.attributes":{"names":{"values":"tokens","isAVT":false},"visibility":{"values":["public","private","final","abstract"],"isAVT":false},"component":{"values":["template","function","attribute-set","variable","mode","*"],"isAVT":false}},"permitted.children":{}},\n \n "for-each":{"required.attributes":"select","permitted.attributes":{"select":{"values":"expression","isAVT":false}},"permitted.children":{"sequence-constructor":"AAA","sort":"AAA"}},\n \n "preserve-space":{"required.attributes":"elements","parents":["stylesheet","transform","package"],"permitted.attributes":{"elements":{"values":"tokens","isAVT":false}},"permitted.children":{}},\n \n "import":{"required.attributes":"href","parents":["stylesheet","transform","package"],"permitted.attributes":{"href":{"values":"uri","isAVT":false}},"permitted.children":{}},\n \n "package":{"required.attributes":"version","permitted.attributes":{"expand-text":{"values":"boolean","isAVT":false},"use-when":{"values":"expression","isAVT":false},"default-validation":{"values":["preserve","strip"],"isAVT":false},"name":{"values":"uri","isAVT":false},"default-mode":{"values":["eqname","#unnamed"],"isAVT":false},"package-version":{"values":"string","isAVT":false},"input-type-annotations":{"values":["preserve","strip","unspecified"],"isAVT":false},"version":{"values":"decimal","isAVT":false},"id":{"values":"id","isAVT":false},"exclude-result-prefixes":{"values":"prefixes","isAVT":false},"default-collation":{"values":"uris","isAVT":false},"declared-modes":{"values":"boolean","isAVT":false},"extension-element-prefixes":{"values":"prefixes","isAVT":false},"xpath-default-namespace":{"values":"uri","isAVT":false}},"permitted.children":{"expose":"AAA","declarations":"AAA"}},\n \n "accumulator":{"required.attributes":["name","initial-value"],"parents":["stylesheet","transform","package"],"permitted.attributes":{"initial-value":{"values":"expression","isAVT":false},"name":{"values":"eqname","isAVT":false},"as":{"values":"sequence-type","isAVT":false},"streamable":{"values":"boolean","isAVT":false}},"permitted.children":{"accumulator-rule":"AAA"}},\n \n "with-param":{"required.attributes":"name","parents":["apply-templates","call-template","apply-imports","next-match","next-iteration","evaluate"],"permitted.attributes":{"tunnel":{"values":"boolean","isAVT":false},"name":{"values":"eqname","isAVT":false},"as":{"values":"sequence-type","isAVT":false},"select":{"values":"expression","isAVT":false}},"permitted.children":{"sequence-constructor":"AAA"},"selectAndContent":"XTSE0620"},\n \n "assert":{"required.attributes":"test","permitted.attributes":{"test":{"values":"expression","isAVT":false},"error-code":{"values":"eqname","isAVT":true},"select":{"values":"expression","isAVT":false}},"permitted.children":{"sequence-constructor":"AAA"}},\n \n "message":{"required.attributes":null,"permitted.attributes":{"terminate":{"values":"boolean","isAVT":true},"error-code":{"values":"eqname","isAVT":true},"select":{"values":"expression","isAVT":false}},"permitted.children":{"sequence-constructor":"AAA"}},\n \n "include":{"required.attributes":"href","parents":["stylesheet","transform","package"],"permitted.attributes":{"href":{"values":"uri","isAVT":false}},"permitted.children":{}},\n \n "accept":{"required.attributes":["component","names","visibility"],"parents":["use-package"],"permitted.attributes":{"names":{"values":"tokens","isAVT":false},"visibility":{"values":["public","private","final","abstract","hidden"],"isAVT":false},"component":{"values":["template","function","attribute-set","variable","mode","*"],"isAVT":false}},"permitted.children":{}},\n \n "call-template":{"required.attributes":"name","permitted.attributes":{"name":{"values":"eqname","isAVT":false}},"permitted.children":{"with-param":"AAA"}},\n \n "number":{"required.attributes":null,"permitted.attributes":{"level":{"values":["single","multiple","any"],"isAVT":false},"letter-value":{"values":["alphabetic","traditional"],"isAVT":true},"from":{"values":"pattern","isAVT":false},"grouping-size":{"values":"integer","isAVT":true},"lang":{"values":"language","isAVT":true},"count":{"values":"pattern","isAVT":false},"value":{"values":"expression","isAVT":false},"ordinal":{"values":"string","isAVT":true},"format":{"values":"string","isAVT":true},"grouping-separator":{"values":"char","isAVT":true},"select":{"values":"expression","isAVT":false},"start-at":{"values":"string","isAVT":true}},"permitted.children":{}},\n \n "perform-sort":{"required.attributes":null,"permitted.attributes":{"select":{"values":"expression","isAVT":false}},"permitted.children":{"sequence-constructor":"AAA","sort":"AAA"}},\n \n "on-completion":{"required.attributes":null,"parents":["iterate"],"permitted.attributes":{"select":{"values":"expression","isAVT":false}},"permitted.children":{"sequence-constructor":"AAA"},"selectAndContent":"XTSE3125"},\n \n "merge-key":{"required.attributes":null,"parents":["merge-source"],"permitted.attributes":{"collation":{"values":"uri","isAVT":true},"lang":{"values":"language","isAVT":true},"order":{"values":["ascending","descending"],"isAVT":true},"case-order":{"values":["upper-first","lower-first"],"isAVT":true},"select":{"values":"expression","isAVT":false},"data-type":{"values":["text","number","eqname"],"isAVT":true}},"permitted.children":{"sequence-constructor":"AAA"},"selectAndContent":"XTSE3200"},\n \n "result-document":{"required.attributes":null,"permitted.attributes":{"omit-xml-declaration":{"values":"boolean","isAVT":true},"method":{"values":["xml","html","xhtml","text","json","adaptive","eqname"],"isAVT":true},"use-character-maps":{"values":"eqnames","isAVT":true},"allow-duplicate-names":{"values":"boolean","isAVT":true},"media-type":{"values":"string","isAVT":true},"doctype-public":{"values":"string","isAVT":true},"escape-uri-attributes":{"values":"boolean","isAVT":true},"standalone":{"values":["boolean","omit"],"isAVT":true},"json-node-output-method":{"values":["xml","html","xhtml","text","eqname"],"isAVT":true},"doctype-system":{"values":"string","isAVT":true},"item-separator":{"values":"string","isAVT":true},"href":{"values":"uri","isAVT":true},"output-version":{"values":"nmtoken","isAVT":true},"indent":{"values":"boolean","isAVT":true},"suppress-indentation":{"values":"eqnames","isAVT":true},"byte-order-mark":{"values":"boolean","isAVT":true},"include-content-type":{"values":"boolean","isAVT":true},"encoding":{"values":"string","isAVT":true},"normalization-form":{"values":["NFC","NFD","MFKC","MFKD","fully-normalized","none","nmtoken"],"isAVT":true},"html-version":{"values":"decimal","isAVT":false},"format":{"values":"eqname","isAVT":true},"validation":{"values":["strict","lax","preserve","strip"],"isAVT":false},"type":{"values":"eqname","isAVT":false},"undeclare-prefixes":{"values":"boolean","isAVT":true},"build-tree":{"values":"boolean","isAVT":true},"cdata-section-elements":{"values":"eqnames","isAVT":true},"parameter-document":{"values":"uri","isAVT":true}},"permitted.children":{"sequence-constructor":"AAA"}},\n \n "merge-action":{"required.attributes":null,"parents":["merge"],"permitted.attributes":{},"permitted.children":{"sequence-constructor":"AAA"}},\n \n "next-match":{"required.attributes":null,"permitted.attributes":{},"permitted.children":{"fallback":"AAA","with-param":"AAA"}},\n \n "transform":{"required.attributes":"version","permitted.attributes":{"expand-text":{"values":"boolean","isAVT":false},"use-when":{"values":"expression","isAVT":false},"default-validation":{"values":["preserve","strip"],"isAVT":false},"default-mode":{"values":["eqname","#unnamed"],"isAVT":false},"input-type-annotations":{"values":["preserve","strip","unspecified"],"isAVT":false},"version":{"values":"decimal","isAVT":false},"id":{"values":"id","isAVT":false},"exclude-result-prefixes":{"values":"prefixes","isAVT":false},"default-collation":{"values":"uris","isAVT":false},"extension-element-prefixes":{"values":"prefixes","isAVT":false},"xpath-default-namespace":{"values":"uri","isAVT":false}},"permitted.children":{"declarations":"AAA"}},\n \n "override":{"required.attributes":null,"parents":["use-package"],"permitted.attributes":{},"permitted.children":{"param":"AAA","attribute-set":"AAA","function":"AAA","template":"AAA","variable":"AAA"}},\n \n "param":{"required.attributes":"name","parents":["package","stylesheet","transform","override","template","function","iterate"],"permitted.attributes":{"tunnel":{"values":"boolean","isAVT":false},"name":{"values":"eqname","isAVT":false},"static":{"values":"boolean","isAVT":false},"as":{"values":"sequence-type","isAVT":false},"select":{"values":"expression","isAVT":false},"required":{"values":"boolean","isAVT":false}},"permitted.children":{"sequence-constructor":"AAA"},"selectAndContent":"XTSE0620" },\n "text":{"required.attributes":null,"permitted.attributes":{"disable-output-escaping":{"values":"boolean","isAVT":false}},"permitted.children":{"PCDATA":"AAA"}},\n \n "source-document":{"required.attributes":"href","permitted.attributes":{"href":{"values":"uri","isAVT":true},"use-accumulators":{"values":"tokens","isAVT":false},"validation":{"values":["strict","lax","preserve","strip"],"isAVT":false},"streamable":{"values":"boolean","isAVT":false},"type":{"values":"eqname","isAVT":false}},"permitted.children":{"sequence-constructor":"AAA"}},\n \n "stylesheet":{"required.attributes":"version","permitted.attributes":{"expand-text":{"values":"boolean","isAVT":false},"use-when":{"values":"expression","isAVT":false},"default-validation":{"values":["preserve","strip"],"isAVT":false},"default-mode":{"values":["eqname","#unnamed"],"isAVT":false},"input-type-annotations":{"values":["preserve","strip","unspecified"],"isAVT":false},"version":{"values":"decimal","isAVT":false},"id":{"values":"id","isAVT":false},"exclude-result-prefixes":{"values":"prefixes","isAVT":false},"default-collation":{"values":"uris","isAVT":false},"extension-element-prefixes":{"values":"prefixes","isAVT":false},"xpath-default-namespace":{"values":"uri","isAVT":false}},"permitted.children":{"declarations":"AAA"}},\n \n\n"apply-imports":{"required.attributes":null,"permitted.attributes":{},"permitted.children":{"with-param":"AAA"}},\n \n "copy-of":{"required.attributes":null,"permitted.attributes":{"copy-accumulators":{"values":"boolean","isAVT":false},"copy-namespaces":{"values":"boolean","isAVT":false},"validation":{"values":["strict","lax","preserve","strip"],"isAVT":false},"type":{"values":"eqname","isAVT":false},"select":{"values":"expression","isAVT":false}},"permitted.children":{"sequence-constructor":"AAA"}},\n "merge-source":{"required.attributes":"select","parents":["merge"],"permitted.attributes":{"for-each-source":{"values":"expression","isAVT":false},"name":{"values":"ncname","isAVT":false},"use-accumulators":{"values":"boolean","isAVT":false},"sort-before-merge":{"values":"boolean","isAVT":false},"validation":{"values":["strict","lax","preserve","strip"],"isAVT":false},"streamable":{"values":"boolean","isAVT":false},"type":{"values":"eqname","isAVT":false},"for-each-item":{"values":"expression","isAVT":false},"select":{"values":"expression","isAVT":false}},"permitted.children":{"merge-key":"AAA"}},\n \n "context-item":{"required.attributes":null,"parents":["template"],"permitted.attributes":{"use":{"values":["required","optiona","absent"],"isAVT":false},"as":{"values":"item-type","isAVT":false}},"permitted.children":{}},\n \n "attribute-set":{"required.attributes":"name","parents":["stylesheet","transform","package"],"permitted.attributes":{"use-attribute-sets":{"values":"eqnames","isAVT":false},"name":{"values":"eqname","isAVT":false},"visibility":{"values":["public","private","final","abstract"],"isAVT":false},"streamable":{"values":"boolean","isAVT":false}},"permitted.children":{"attribute":"AAA"}},\n "strip-space":{"required.attributes":null,"parents":["stylesheet","transform","package"],"permitted.attributes":{"elements":{"values":"tokens","isAVT":false}},"permitted.children":{}},\n \n "analyze-string":{"required.attributes":["select","regex"],"permitted.attributes":{"regex":{"values":"string","isAVT":true},"flags":{"values":"string","isAVT":true},"select":{"values":"expression","isAVT":false}},"permitted.children":{"matching-substring":"AAA","non-matching-substring":"AAA","fallback":"AAA"}},\n \n "decimal-format":{"required.attributes":null,"parents":["stylesheet","transform","package"],"permitted.attributes":{"percent":{"values":"char","isAVT":false},"exponent-separator":{"values":"char","isAVT":false},"pattern-separator":{"values":"char","isAVT":false},"zero-digit":{"values":"char","isAVT":false},"infinity":{"values":"string","isAVT":false},"decimal-separator":{"values":"char","isAVT":false},"name":{"values":"eqname","isAVT":false},"digit":{"values":"char","isAVT":false},"per-mille":{"values":"char","isAVT":false},"minus-sign":{"values":"char","isAVT":false},"NaN":{"values":"string","isAVT":false},"grouping-separator":{"values":"char","isAVT":false}},"permitted.children":{}},\n \n "value-of":{"required.attributes":null,"permitted.attributes":{"separator":{"values":"string","isAVT":true},"disable-output-escaping":{"values":"boolean","isAVT":false},"select":{"values":"expression","isAVT":false}},"permitted.children":{"sequence-constructor":"AAA"},"selectAndContent":"XTSE0870"},\n \n "processing-instruction":{"required.attributes":"name","permitted.attributes":{"name":{"values":"ncname","isAVT":true},"select":{"values":"expression","isAVT":false}},"permitted.children":{"sequence-constructor":"AAA"},"selectAndContent":"XTSE0880" },\n \n"where-populated":{"required.attributes":null,"permitted.attributes":{},"permitted.children":{"sequence-constructor":"AAA"}},\n \n "otherwise":{"required.attributes":null,"parents":["choose"],"permitted.attributes":{},"permitted.children":{"sequence-constructor":"AAA"}},\n \n "copy":{"required.attributes":null,"permitted.attributes":{"use-attribute-sets":{"values":"eqnames","isAVT":false},"inherit-namespaces":{"values":"boolean","isAVT":false},"copy-namespaces":{"values":"boolean","isAVT":false},"validation":{"values":["strict","lax","preserve","strip"],"isAVT":false},"type":{"values":"eqname","isAVT":false},"select":{"values":"expression","isAVT":false}},"permitted.children":{"sequence-constructor":"AAA"}},\n \n"choose":{"required.attributes":null,"permitted.attributes":{},"permitted.children":{"otherwise":"AAA","when":"AAA"}},\n \n "for-each-group":{"required.attributes":"select","permitted.attributes":{"group-by":{"values":"expression","isAVT":false},"group-starting-with":{"values":"pattern","isAVT":false},"composite":{"values":"boolean","isAVT":false},"collation":{"values":"uri","isAVT":true},"group-adjacent":{"values":"pattern","isAVT":false},"select":{"values":"expression","isAVT":false},"group-ending-with":{"values":"pattern","isAVT":false}},"permitted.children":{"sequence-constructor":"AAA","sort":"AAA"}},\n \n "merge":{"required.attributes":null,"permitted.attributes":{},"permitted.children":{"fallback":"AAA","merge-action":"AAA","merge-source":"AAA"}},\n \n "character-map":{"required.attributes":"name","parents":["stylesheet","transform","package"],"permitted.attributes":{"use-character-maps":{"values":"eqnames","isAVT":false},"name":{"values":"eqname","isAVT":false}},"permitted.children":{"output-character":"AAA"}},\n \n "function":{"required.attributes":"name","parents":["stylesheet","transform","package"],"permitted.attributes":{"cache":{"values":"boolean","isAVT":false},"override-extension-function":{"values":"boolean","isAVT":false},"streamability":{"values":["unclassified","absorbing","inspection","filter","shallow-descent","deep-descent","ascent","eqname"],"isAVT":false},"name":{"values":"eqname","isAVT":false},"new-each-time":{"values":["yes","true","1","no","false","0","maybe"],"isAVT":false},"override":{"values":"boolean","isAVT":false},"as":{"values":"sequence-type","isAVT":false},"visibility":{"values":["public","private","final","abstract"],"isAVT":false}},"permitted.children":{"param":"AAA","sequence-constructor":"AAA"}},\n \n "evaluate":{"required.attributes":"xpath","permitted.attributes":{"with-params":{"values":"expression","isAVT":false},"base-uri":{"values":"uri","isAVT":true},"context-item":{"values":"expression","isAVT":false},"as":{"values":"sequence-type","isAVT":false},"schema-aware":{"values":"boolean","isAVT":false},"xpath":{"values":"expression","isAVT":false},"namespace-context":{"values":"expression","isAVT":false}},"permitted.children":{"fallback":"AAA","with-param":"AAA"}},\n \n "iterate":{"required.attributes":"select","permitted.attributes":{"select":{"values":"expression","isAVT":false}},"permitted.children":{"on-completion":"AAA","param":"AAA","sequence-constructor":"AAA"}},\n \n "template":{"required.attributes":null,"parents":["stylesheet","transform","package"],"permitted.attributes":{"mode":{"values":"tokens","isAVT":false},"priority":{"values":"decimal","isAVT":false},"match":{"values":"pattern","isAVT":false},"name":{"values":"eqname","isAVT":false},"as":{"values":"sequence-type","isAVT":false},"visibility":{"values":["public","private","final","abstract"],"isAVT":false}},"permitted.children":{"content-item":"AAA","param":"AAA","sequence-constructor":"AAA"}},\n \n "when":{"required.attributes":"test","parents":["choose"],"permitted.attributes":{"test":{"values":"expression","isAVT":false}},"permitted.children":{"sequence-constructor":"AAA"}},\n \n "apply-templates":{"required.attributes":null,"permitted.attributes":{"mode":{"values":"token","isAVT":false},"select":{"values":"expression","isAVT":false}},"permitted.children":{"with-param":"AAA","sort":"AAA"}},\n \n "document":{"required.attributes":null,"permitted.attributes":{"validation":{"values":["strict","lax","preserve","strip"],"isAVT":false},"type":{"values":"eqname","isAVT":false}},"permitted.children":{"sequence-constructor":"AAA"}},\n \n "namespace":{"required.attributes":"name","permitted.attributes":{"name":{"values":"ncname","isAVT":true},"select":{"values":"expression","isAVT":false}},"permitted.children":{"sequence-constructor":"AAA"},"selectAndContent":"XTSE0910"},\n \n "try":{"required.attributes":null,"permitted.attributes":{"rollback-output":{"values":"boolean","isAVT":false},"select":{"values":"expression","isAVT":false}},"permitted.children":{"fallback":"AAA","sequence-constructor":"AAA","catch":"AAA"}},\n "global-context-item":{"required.attributes":null,"parents":["stylesheet","transform","package"],"permitted.attributes":{"use":{"values":["required","optional","absent"],"isAVT":false},"as":{"values":"item-type","isAVT":false}},"permitted.children":{}},\n \n "catch":{"required.attributes":null,"parents":["try"],"permitted.attributes":{"errors":{"values":"tokens","isAVT":false},"select":{"values":"expression","isAVT":false}},"permitted.children":{"sequence-constructor":"AAA"},"selectAndContent":"XTSE3150"},\n \n"map":{"required.attributes":null,"permitted.attributes":{},"permitted.children":{"sequence-constructor":"AAA"}},\n \n "variable":{"required.attributes":"name","permitted.attributes":{"name":{"values":"eqname","isAVT":false},"static":{"values":"boolean","isAVT":false},"as":{"values":"sequence-type","isAVT":false},"visibility":{"values":["public","private","final","abstract"],"isAVT":false},"select":{"values":"expression","isAVT":false}},"permitted.children":{"sequence-constructor":"AAA"},"selectAndContent":"XTSE0620"},\n \n "attribute":{"required.attributes":"name","permitted.attributes":{"separator":{"values":"string","isAVT":true},"name":{"values":"qname","isAVT":true},"validation":{"values":["strict","lax","preserve","strip"],"isAVT":false},"type":{"values":"eqname","isAVT":false},"namespace":{"values":"uri","isAVT":true},"select":{"values":"expression","isAVT":false}},"permitted.children":{"sequence-constructor":"AAA"},"selectAndContent":"XTSE0840" },\n "element":{"required.attributes":"name","permitted.attributes":{"use-attribute-sets":{"values":"eqnames","isAVT":false},"inherit-namespaces":{"values":"boolean","isAVT":false},"name":{"values":"qname","isAVT":true},"validation":{"values":["strict","lax","preserve","strip"],"isAVT":false},"type":{"values":"eqname","isAVT":false},"namespace":{"values":"uri","isAVT":true}},"permitted.children":{"sequence-constructor":"AAA"}},\n \n "if":{"required.attributes":"test","permitted.attributes":{"test":{"values":"expression","isAVT":false}},"permitted.children":{"sequence-constructor":"AAA"}},\n \n "output-character":{"required.attributes":["character","string"],"parents":["character-map"],"permitted.attributes":{"character":{"values":"char","isAVT":false},"string":{"values":"string","isAVT":false}},"permitted.children":{}},\n "sort":{"required.attributes":null,"parents":["for-each","for-each-group","apply-templates","perform-sort"],"permitted.attributes":{"collation":{"values":"uri","isAVT":false},"lang":{"values":"language","isAVT":false},"order":{"values":["ascending","descending"],"isAVT":false},"case-order":{"values":["upper-first","lower-first"],"isAVT":false},"stable":{"values":"boolean","isAVT":false},"select":{"values":"expression","isAVT":false},"data-type":{"values":["text","number","eqname"],"isAVT":false}},"permitted.children":{"sequence-constructor":"AAA"},"selectAndContent":"XTSE1015"},\n \n "namespace-alias":{"required.attributes":["stylesheet-prefix","result-prefix"],"parents":["stylesheet","transform","package"],"permitted.attributes":{"result-prefix":{"values":["prefix","#default"],"isAVT":false},"stylesheet-prefix":{"values":["prefix","#default"],"isAVT":false}},"permitted.children":{}},\n \n "break":{"required.attributes":null,"permitted.attributes":{"select":{"values":"expression","isAVT":false}},"permitted.children":{"sequence-constructor":"AAA"},"selectAndContent":"XTSE3125"},\n \n "key":{"required.attributes":["name","match"],"parents":["stylesheet","transform","package"],"permitted.attributes":{"match":{"values":"pattern","isAVT":false},"use":{"values":"expression","isAVT":false},"composite":{"values":"boolean","isAVT":false},"collation":{"values":"uri","isAVT":false},"name":{"values":"eqname","isAVT":false}},"permitted.children":{"sequence-constructor":"AAA"}},\n \n "comment":{"required.attributes":null,"permitted.attributes":{"select":{"values":"expression","isAVT":false}},"permitted.children":{"sequence-constructor":"AAA"},"selectAndContent":"XTSE0940"},\n \n "on-empty":{"required.attributes":null,"permitted.attributes":{"select":{"values":"expression","isAVT":false}},"permitted.children":{"sequence-constructor":"AAA"},"selectAndContent":"XTSE3185"},\n \n "on-non-empty":{"required.attributes":null,"permitted.attributes":{"select":{"values":"expression","isAVT":false}},"permitted.children":{"sequence-constructor":"AAA"},"selectAndContent":"XTSE3185"}} \n '}]}]}, +{N:"co",id:"62",binds:"",C:[{N:"mode",name:"Q{}attribute-sans-prefix",onNo:"FF",flags:"W",patternSlots:"0",C:[{N:"templateRule",prec:"0",prio:"-0.5",seq:"391",rank:"0",minImp:"0",slots:"0",matches:"NA",flags:"s",line:"1761",module:"XSLT-SEF-compiler.xsl",C:[{N:"p.nodeTest",role:"match",test:"NA"},{N:"compAtt",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ saxon=~ t=MyTypes xs=~ xsl=~ xml=~", +line:"1762",C:[{N:"fn",role:"name",name:"local-name",C:[{N:"dot",type:"1NA"}]},{N:"convert",role:"select",from:"AZ",to:"AS",C:[{N:"data",C:[{N:"dot",type:"1NA"}]}]}]}]}]}]},{N:"co",id:"240",binds:"",C:[{N:"function",name:"Q{MyFunctions}namespace-uri-for-prefix-or-default",line:"142",module:"namespaces.xsl",eval:"7",flags:"pU",as:"*",slots:"2",C:[{N:"arg",name:"Q{}prefix",as:"1AS"},{N:"arg",name:"Q{}element",as:"1NE"},{N:"choose",role:"body",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~", +line:"151",C:[{N:"vc",op:"eq",onEmpty:"0",comp:"CCC",C:[{N:"varRef",name:"Q{}prefix",slot:"0"},{N:"str",val:"#default"}]},{N:"first",C:[{N:"sequence",C:[{N:"fn",name:"namespace-uri-for-prefix",C:[{N:"str",val:""},{N:"varRef",name:"Q{}element",slot:"1"}]},{N:"str",val:""}]}]},{N:"true"},{N:"fn",name:"namespace-uri-for-prefix",C:[{N:"varRef",name:"Q{}prefix",slot:"0"},{N:"varRef",name:"Q{}element",slot:"1"}]}]}]}]},{N:"co",id:"241",binds:"",C:[{N:"globalVariable",name:"Q{}serialization-properties", +as:"*AS",line:"21",module:"output.xsl",visibility:"PRIVATE",C:[{N:"literal",count:"22",C:[{N:"str",val:"method"},{N:"str",val:"allow-duplicate-names"},{N:"str",val:"build-tree"},{N:"str",val:"byte-order-mark"},{N:"str",val:"cdata-section-elements"},{N:"str",val:"doctype-public"},{N:"str",val:"doctype-system"},{N:"str",val:"encoding"},{N:"str",val:"escape-uri-attributes"},{N:"str",val:"html-version"},{N:"str",val:"include-content-type"},{N:"str",val:"indent"},{N:"str",val:"item-separator"},{N:"str", +val:"json-node-output-method"},{N:"str",val:"media-type"},{N:"str",val:"normalization-form"},{N:"str",val:"omit-xml-declaration"},{N:"str",val:"parameter-document"},{N:"str",val:"standalone"},{N:"str",val:"suppress-indentation"},{N:"str",val:"undeclare-prefixes"},{N:"str",val:"output-version"}]}]}]},{N:"co",id:"49",binds:"4",C:[{N:"function",name:"Q{MyFunctions}syntax-error-at",line:"366",module:"lib.xsl",eval:"4",flags:"pU",as:"*",slots:"2",C:[{N:"arg",name:"Q{}message",as:"1AS"},{N:"arg",name:"Q{}node", +as:"1N"},{N:"tailCallLoop",role:"body",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~",line:"369",C:[{N:"ufCall",name:"Q{MyFunctions}syntax-error-at",tailCall:"foreign",bSlot:"0",eval:"0 6 6",C:[{N:"str",val:"XTSE0010"},{N:"varRef",name:"Q{}message",slot:"0"},{N:"varRef",name:"Q{}node",slot:"1"}]}]}]}]},{N:"co",id:"4",binds:"160 188",C:[{N:"function",name:"Q{MyFunctions}syntax-error-at", +line:"372",module:"lib.xsl",eval:"4",flags:"pU",as:"*",slots:"3",C:[{N:"arg",name:"Q{}code",as:"1AS"},{N:"arg",name:"Q{}message",as:"1AS"},{N:"arg",name:"Q{}node",as:"1N"},{N:"tailCallLoop",role:"body",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~",line:"378",C:[{N:"ufCall",name:"Q{MyFunctions}notify",tailCall:"foreign",bSlot:"0",eval:"6 16",C:[{N:"varRef",name:"Q{}code", +slot:"0"},{N:"cvUntyped",line:"377",to:"AS",diag:"3|0|XTTE0570|message",C:[{N:"cast",flags:"a",as:"1AZ",C:[{N:"fn",name:"concat",C:[{N:"str",val:"Error "},{N:"varRef",name:"Q{}code",slot:"0"},{N:"str",val:" at "},{N:"choose",line:"396",C:[{N:"fn",line:"377",name:"exists",C:[{N:"slash",simple:"1",C:[{N:"varRef",name:"Q{}node",slot:"2"},{N:"axis",line:"396",name:"attribute",nodeTest:"NA nQ{}loc"}]}]},{N:"cvUntyped",to:"AS",diag:"5|0|XTTE0780|f:path#1",C:[{N:"cast",flags:"a",as:"1AZ",C:[{N:"fn",name:"string", +C:[{N:"convert",from:"AZ",to:"AS",C:[{N:"data",C:[{N:"slash",line:"377",simple:"1",C:[{N:"varRef",name:"Q{}node",slot:"2"},{N:"axis",line:"396",name:"attribute",nodeTest:"NA nQ{}loc"}]}]}]}]}]}]},{N:"instance",line:"397",of:"1NA",C:[{N:"varRef",line:"377",name:"Q{}node",slot:"2"}]},{N:"cvUntyped",line:"397",to:"AS",diag:"5|0|XTTE0780|f:path#1",C:[{N:"cast",flags:"a",as:"1AZ",C:[{N:"fn",name:"concat",C:[{N:"fn",name:"name",C:[{N:"check",card:"?",diag:"0|0||fn:name",C:[{N:"slash",line:"377",simple:"1", +C:[{N:"varRef",name:"Q{}node",slot:"2"},{N:"axis",line:"397",name:"parent",nodeTest:"N u[NE,ND]"}]}]}]},{N:"str",val:"/@"},{N:"fn",name:"name",C:[{N:"varRef",line:"377",name:"Q{}node",slot:"2"}]}]}]}]},{N:"true"},{N:"cvUntyped",line:"398",to:"AS",diag:"5|0|XTTE0780|f:path#1",C:[{N:"cast",flags:"a",as:"1AZ",C:[{N:"fn",name:"name",C:[{N:"varRef",line:"377",name:"Q{}node",slot:"2"}]}]}]}]},{N:"ufCall",name:"Q{MyFunctions}line-loc",tailCall:"false",bSlot:"1",eval:"6",C:[{N:"varRef",name:"Q{}node",slot:"2"}]}, +{N:"str",val:":\n "},{N:"varRef",name:"Q{}message",slot:"1"}]}]}]}]}]}]}]},{N:"co",id:"242",binds:"",C:[{N:"globalVariable",name:"Q{}ST.SINGLE_DOCUMENT",as:"1FM k[AS] v[1AS]",line:"30",module:"sequenceType.xsl",visibility:"PRIVATE",C:[{N:"map",size:"2",C:[{N:"str",val:"o"},{N:"str",val:"1"},{N:"str",val:"p"},{N:"str",val:"ND"}]}]}]},{N:"co",id:"243",binds:"244",C:[{N:"template",name:"Q{}compileXSLTschema",flags:"os",line:"337",module:"XSLT-syntax.xsl",slots:"0",C:[{N:"elem",role:"body",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~", +line:"338",name:"xsl:stylesheet",nsuri:"http://www.w3.org/1999/XSL/Transform",C:[{N:"sequence",line:"339",C:[{N:"att",name:"version",flags:"l",C:[{N:"str",val:"3.0"}]},{N:"namespace",line:"340",flags:"l",C:[{N:"str",role:"name",val:"f"},{N:"str",role:"select",val:"MyFunctions"}]},{N:"comment",line:"341",flags:"l",C:[{N:"gVarRef",name:"Q{http://saxon.sf.net/generated-variable}gg1507604180",bSlot:"0"}]},{N:"elem",line:"342",name:"xsl:variable",nsuri:"http://www.w3.org/1999/XSL/Transform",flags:"l", +C:[{N:"sequence",line:"343",C:[{N:"att",name:"name",flags:"l",C:[{N:"str",val:"xslt.schema"}]},{N:"att",line:"344",name:"select",flags:"l",C:[{N:"str",val:"f:serialize($xslt.schema)"}]}]}]},{N:"elem",line:"346",name:"xsl:variable",nsuri:"http://www.w3.org/1999/XSL/Transform",flags:"l",C:[{N:"sequence",line:"347",C:[{N:"att",name:"name",flags:"l",C:[{N:"str",val:"xslt.element.names"}]},{N:"att",line:"348",name:"select",flags:"l",C:[{N:"str",val:"string-join($xslt.element.names!(''||.||''), )"}]}]}]}]}]}]}]}, +{N:"co",id:"192",binds:"",C:[{N:"globalVariable",name:"Q{}top-level-declarations",as:"+NE",line:"239",module:"XSLT-syntax.xsl",visibility:"PRIVATE",C:[{N:"sequence",ns:"doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"240",C:[{N:"elem",name:"accumulator",nsuri:"",C:[{N:"empty"}]},{N:"elem",line:"241",name:"attribute-set",nsuri:"",C:[{N:"empty"}]},{N:"elem",line:"242",name:"character-map",nsuri:"",C:[{N:"empty"}]},{N:"elem", +line:"243",name:"decimal-format",nsuri:"",C:[{N:"empty"}]},{N:"elem",line:"244",name:"function",nsuri:"",C:[{N:"empty"}]},{N:"elem",line:"245",name:"global-context-item",nsuri:"",C:[{N:"empty"}]},{N:"elem",line:"246",name:"import",nsuri:"",C:[{N:"empty"}]},{N:"elem",line:"247",name:"import-schema",nsuri:"",C:[{N:"empty"}]},{N:"elem",line:"248",name:"include",nsuri:"",C:[{N:"empty"}]},{N:"elem",line:"249",name:"key",nsuri:"",C:[{N:"empty"}]},{N:"elem",line:"250",name:"mode",nsuri:"",C:[{N:"empty"}]}, +{N:"elem",line:"251",name:"namespace-alias",nsuri:"",C:[{N:"empty"}]},{N:"elem",line:"252",name:"output",nsuri:"",C:[{N:"empty"}]},{N:"elem",line:"253",name:"param",nsuri:"",C:[{N:"empty"}]},{N:"elem",line:"254",name:"preserve-space",nsuri:"",C:[{N:"empty"}]},{N:"elem",line:"255",name:"strip-space",nsuri:"",C:[{N:"empty"}]},{N:"elem",line:"256",name:"template",nsuri:"",C:[{N:"empty"}]},{N:"elem",line:"257",name:"use-package",nsuri:"",C:[{N:"empty"}]},{N:"elem",line:"258",name:"variable",nsuri:"", +C:[{N:"empty"}]}]}]}]},{N:"co",id:"245",binds:"202 4",C:[{N:"function",name:"Q{MyFunctions}check-tail-position",line:"270",module:"lib.xsl",eval:"7",flags:"pU",as:"0",slots:"1",C:[{N:"arg",name:"Q{}context",as:"1NE"},{N:"choose",role:"body",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~",line:"278",C:[{N:"ufCall",name:"Q{MyFunctions}is-tail-position",tailCall:"false",bSlot:"0", +eval:"6",C:[{N:"varRef",name:"Q{}context",slot:"0"}]},{N:"empty"},{N:"true"},{N:"check",card:"0",diag:"5|0|XTTE0780|f:check-tail-position#1",C:[{N:"ufCall",name:"Q{MyFunctions}syntax-error-at",tailCall:"false",bSlot:"1",eval:"0 16 6",C:[{N:"str",val:"XTSE3120"},{N:"fn",name:"concat",C:[{N:"slash",C:[{N:"varRef",name:"Q{}context",slot:"0"},{N:"fn",name:"name",C:[{N:"dot",type:"1NE"}]}]},{N:"str",val:" must be in a tail position"}]},{N:"varRef",name:"Q{}context",slot:"0"}]}]}]}]}]},{N:"co",id:"246", +binds:"",C:[{N:"globalVariable",name:"Q{}errorsAsMessages",as:"1AB",line:"213",module:"XSLT-SEF-compiler.xsl",visibility:"PUBLIC",flags:"s",C:[{N:"false"}]}]},{N:"co",id:"180",binds:"122 121",C:[{N:"mode",name:"Q{}pattern-priority",onNo:"FF",flags:"W",patternSlots:"0",C:[{N:"templateRule",prec:"0",prio:"-0.5",seq:"302",rank:"0",minImp:"0",slots:"0",matches:"NE",flags:"s",line:"22",module:"pattern.xsl",C:[{N:"p.nodeTest",role:"match",test:"NE"},{N:"valueOf",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~", +line:"22",flags:"S",C:[{N:"str",val:"0"}]}]},{N:"templateRule",prec:"0",prio:"0.0",seq:"308",rank:"1",minImp:"0",slots:"0",matches:"NE nQ{http://ns.saxonica.com/xslt/export}p.nodeTest",flags:"s",line:"37",module:"pattern.xsl",C:[{N:"p.nodeTest",role:"match",test:"NE nQ{http://ns.saxonica.com/xslt/export}p.nodeTest"},{N:"fn",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~", +line:"42",name:"string",C:[{N:"ufCall",line:"39",name:"Q{MyFunctions}nodeTestPriority",tailCall:"false",bSlot:"0",eval:"16",C:[{N:"choose",C:[{N:"fn",name:"exists",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}test"}]},{N:"ufCall",name:"Q{MyTypes}marshalType",tailCall:"false",bSlot:"1",eval:"16",C:[{N:"check",card:"1",diag:"0|0||t:marshalType",C:[{N:"cvUntyped",to:"AS",C:[{N:"attVal",name:"Q{}test",chk:"0"}]}]}]},{N:"true"},{N:"map",size:"2",C:[{N:"str",val:"o"},{N:"int",val:"1"},{N:"str",val:"p"}, +{N:"str",val:"N"}]}]}]}]}]},{N:"templateRule",prec:"0",prio:"0.0",seq:"306",rank:"1",minImp:"0",slots:"0",matches:"NE nQ{http://ns.saxonica.com/xslt/export}p.withCurrent",flags:"s",line:"31",module:"pattern.xsl",C:[{N:"p.nodeTest",role:"match",test:"NE nQ{http://ns.saxonica.com/xslt/export}p.withCurrent"},{N:"applyT",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~", +line:"32",flags:"ct",bSlot:"-1",C:[{N:"axis",role:"select",name:"child",nodeTest:"NE"}]}]},{N:"templateRule",prec:"0",prio:"0.0",seq:"307",part:"3",rank:"1",minImp:"0",slots:"0",matches:"NE nQ{http://ns.saxonica.com/xslt/export}p.genPos",flags:"s",line:"34",module:"pattern.xsl",C:[{N:"p.nodeTest",role:"match",test:"NE nQ{http://ns.saxonica.com/xslt/export}p.genPos"},{N:"valueOf",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~", +line:"34",flags:"S",C:[{N:"str",val:"0.5"}]}]},{N:"templateRule",prec:"0",prio:"0.5",seq:"304",rank:"2",minImp:"0",slots:"0",matches:"NE nQ{http://ns.saxonica.com/xslt/export}p.withPredicate",flags:"s",line:"29",module:"pattern.xsl",C:[{N:"p.withPredicate",role:"match",C:[{N:"p.nodeTest",test:"NE nQ{http://ns.saxonica.com/xslt/export}p.withPredicate"},{N:"vc",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~", +line:"29",op:"eq",onEmpty:"0",comp:"CCC",C:[{N:"cast",flags:"ae",as:"?AS",C:[{N:"attVal",name:"Q{}code",chk:"0"}]},{N:"str",val:""}]}]},{N:"valueOf",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~",line:"29",flags:"S",C:[{N:"str",val:"1"}]}]},{N:"templateRule",prec:"0",prio:"0.0",seq:"307",rank:"1",minImp:"0",slots:"0",matches:"NE nQ{http://ns.saxonica.com/xslt/export}p.withPredicate", +flags:"s",line:"34",module:"pattern.xsl",C:[{N:"p.nodeTest",role:"match",test:"NE nQ{http://ns.saxonica.com/xslt/export}p.withPredicate"},{N:"valueOf",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~",line:"34",flags:"S",C:[{N:"str",val:"0.5"}]}]},{N:"templateRule",prec:"0",prio:"0.0",seq:"307",part:"5",rank:"1",minImp:"0",slots:"0",matches:"NE nQ{http://ns.saxonica.com/xslt/export}p.simPos", +flags:"s",line:"34",module:"pattern.xsl",C:[{N:"p.nodeTest",role:"match",test:"NE nQ{http://ns.saxonica.com/xslt/export}p.simPos"},{N:"valueOf",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~",line:"34",flags:"S",C:[{N:"str",val:"0.5"}]}]},{N:"templateRule",prec:"0",prio:"0.0",seq:"307",part:"2",rank:"1",minImp:"0",slots:"0",matches:"NE nQ{http://ns.saxonica.com/xslt/export}p.genNode", +flags:"s",line:"34",module:"pattern.xsl",C:[{N:"p.nodeTest",role:"match",test:"NE nQ{http://ns.saxonica.com/xslt/export}p.genNode"},{N:"valueOf",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~",line:"34",flags:"S",C:[{N:"str",val:"0.5"}]}]},{N:"templateRule",prec:"0",prio:"0.5",seq:"309",rank:"2",minImp:"0",slots:"0",matches:"NE nQ{http://ns.saxonica.com/xslt/export}p.venn", +flags:"s",line:"57",module:"pattern.xsl",C:[{N:"p.withPredicate",role:"match",C:[{N:"p.nodeTest",test:"NE nQ{http://ns.saxonica.com/xslt/export}p.venn"},{N:"gc",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~",line:"57",op:"=",card:"N:1",comp:"CCC",C:[{N:"literal",count:"2",C:[{N:"str",val:"intersect"},{N:"str",val:"except"}]},{N:"attVal",name:"Q{}op",chk:"0"}]}]},{N:"applyT", +role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~",line:"58",flags:"ct",bSlot:"-1",C:[{N:"first",role:"select",C:[{N:"axis",name:"child",nodeTest:"NE"}]}]}]},{N:"templateRule",prec:"0",prio:"0.0",seq:"308",part:"1",rank:"1",minImp:"0",slots:"0",matches:"NE nQ{http://ns.saxonica.com/xslt/export}p.venn",flags:"s",line:"37",module:"pattern.xsl",C:[{N:"p.nodeTest",role:"match", +test:"NE nQ{http://ns.saxonica.com/xslt/export}p.venn"},{N:"fn",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~",line:"42",name:"string",C:[{N:"ufCall",line:"39",name:"Q{MyFunctions}nodeTestPriority",tailCall:"false",bSlot:"0",eval:"16",C:[{N:"choose",C:[{N:"fn",name:"exists",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}test"}]},{N:"ufCall",name:"Q{MyTypes}marshalType", +tailCall:"false",bSlot:"1",eval:"16",C:[{N:"check",card:"1",diag:"0|0||t:marshalType",C:[{N:"cvUntyped",to:"AS",C:[{N:"attVal",name:"Q{}test",chk:"0"}]}]}]},{N:"true"},{N:"map",size:"2",C:[{N:"str",val:"o"},{N:"int",val:"1"},{N:"str",val:"p"},{N:"str",val:"N"}]}]}]}]}]},{N:"templateRule",prec:"0",prio:"0.0",seq:"305",rank:"1",minImp:"0",slots:"0",matches:"NE nQ{http://ns.saxonica.com/xslt/export}p.any",flags:"s",line:"30",module:"pattern.xsl",C:[{N:"p.nodeTest",role:"match",test:"NE nQ{http://ns.saxonica.com/xslt/export}p.any"}, +{N:"valueOf",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~",line:"30",flags:"S",C:[{N:"str",val:"-1"}]}]},{N:"templateRule",prec:"0",prio:"0.0",seq:"303",rank:"1",minImp:"0",slots:"0",matches:"NE nQ{http://ns.saxonica.com/xslt/export}p.booleanExp",flags:"s",line:"28",module:"pattern.xsl",C:[{N:"p.nodeTest",role:"match",test:"NE nQ{http://ns.saxonica.com/xslt/export}p.booleanExp"}, +{N:"valueOf",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~",line:"28",flags:"S",C:[{N:"str",val:"1"}]}]},{N:"templateRule",prec:"0",prio:"0.0",seq:"307",part:"4",rank:"1",minImp:"0",slots:"0",matches:"NE nQ{http://ns.saxonica.com/xslt/export}p.nodeSet",flags:"s",line:"34",module:"pattern.xsl",C:[{N:"p.nodeTest",role:"match",test:"NE nQ{http://ns.saxonica.com/xslt/export}p.nodeSet"}, +{N:"valueOf",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~",line:"34",flags:"S",C:[{N:"str",val:"0.5"}]}]},{N:"templateRule",prec:"0",prio:"0.0",seq:"307",part:"1",rank:"1",minImp:"0",slots:"0",matches:"NE nQ{http://ns.saxonica.com/xslt/export}p.withUpper",flags:"s",line:"34",module:"pattern.xsl",C:[{N:"p.nodeTest",role:"match",test:"NE nQ{http://ns.saxonica.com/xslt/export}p.withUpper"}, +{N:"valueOf",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~",line:"34",flags:"S",C:[{N:"str",val:"0.5"}]}]}]}]},{N:"co",id:"247",binds:"",C:[{N:"globalVariable",name:"Q{MyTypes}MANY",as:"1ADI",line:"103",module:"type.xsl",visibility:"PRIVATE",flags:"s",C:[{N:"int",val:"4"}]}]},{N:"co",id:"248",binds:"",C:[{N:"globalVariable",name:"Q{MyTypes}ONE",as:"1ADI",line:"102", +module:"type.xsl",visibility:"PRIVATE",flags:"s",C:[{N:"int",val:"2"}]}]},{N:"co",id:"249",binds:"57",C:[{N:"template",name:"Q{}parameters",flags:"os",line:"1566",module:"XSLT-SEF-compiler.xsl",slots:"0",C:[{N:"applyT",role:"body",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ saxon=~ t=MyTypes xs=~ xsl=~ xml=~",line:"1567",mode:"Q{}sef",flags:"t",bSlot:"0",C:[{N:"slash",role:"select",simple:"1", +C:[{N:"treat",as:"N",diag:"14|3|XPTY0020|",C:[{N:"dot",flags:"a"}]},{N:"axis",name:"child",nodeTest:"NE nQ{http://www.w3.org/1999/XSL/Transform}param"}]}]}]}]},{N:"co",id:"250",binds:"",C:[{N:"globalVariable",name:"Q{}ST.MULTIPLE_STRING",as:"1FM k[AS] v[1AS]",line:"25",module:"sequenceType.xsl",visibility:"PRIVATE",C:[{N:"map",size:"2",C:[{N:"str",val:"o"},{N:"str",val:"*"},{N:"str",val:"p"},{N:"str",val:"AS"}]}]}]},{N:"co",id:"186",binds:"",C:[{N:"globalVariable",name:"Q{}ST.MULTIPLE_ATOMIC",as:"1FM k[AS] v[1AS]", +line:"15",module:"sequenceType.xsl",visibility:"PRIVATE",C:[{N:"map",size:"2",C:[{N:"str",val:"o"},{N:"str",val:"*"},{N:"str",val:"p"},{N:"str",val:"A"}]}]}]},{N:"co",id:"155",binds:"6 186",C:[{N:"globalVariable",name:"Q{}SJ.MULTIPLE_ATOMIC",as:"1AS",line:"58",module:"sequenceType.xsl",visibility:"PRIVATE",C:[{N:"ufCall",ns:"err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ saxon=~ t=MyTypes xs=~ xsl=~ xml=~",line:"58",name:"Q{MyTypes}unmarshalType",tailCall:"false",bSlot:"0",eval:"6", +C:[{N:"gVarRef",name:"Q{}ST.MULTIPLE_ATOMIC",bSlot:"1"}]}]}]},{N:"co",id:"86",binds:"4 4 4 4 75 4 153 236 4 4 4 49 4 49 49 4 49 49 4 4 4 4 49 4 4 4 4 48 48 49 2 2 4 9 4 49 49 4 4 4 49 4 4 50 140 4 4 4 4 49 207 206 2 4 4 4 4 1 153 1 4 251 4 4 4 147 4 4 4 4 147 147 2 2 4 1 150 4 4 4 1 1 4 2 4 4 185 6 4 153 153 4 1 1 150 4 4 4 1 4 4 4 196 153 4 196 153 158 196 153 153 196 196 153 153 4 153 153 4 4 4",C:[{N:"mode",name:"Q{}normalize",onNo:"SC",flags:"W",patternSlots:"1",C:[{N:"templateRule",prec:"0", +prio:"5.01",seq:"327",rank:"16",minImp:"0",slots:"1",matches:"NE",flags:"s",line:"25",module:"attributes.xsl",C:[{N:"p.withPredicate",role:"match",C:[{N:"p.nodeTest",test:"NE"},{N:"axis",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"25",name:"attribute",nodeTest:"NA nQ{http://www.w3.org/1999/XSL/Transform}xpath-default-namespace"}]},{N:"sequence",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~", +line:"26",C:[{N:"param",name:"Q{}attr",slot:"0",as:"*NA",C:[{N:"empty",role:"select"},{N:"treat",role:"conversion",as:"NA",diag:"8|0|XTTE0590|attr",C:[{N:"supplied",slot:"0"}]}]},{N:"nextMatch",line:"31",flags:"t",C:[{N:"withParam",name:"Q{}attr",as:"*NA",C:[{N:"varRef",name:"Q{}attr",slot:"0"}]},{N:"withParam",name:"Q{}xpath-default-namespace",flags:"t",as:"1NA",C:[{N:"att",line:"29",name:"xpath-default-namespace",C:[{N:"convert",from:"AZ",to:"AS",C:[{N:"attVal",name:"Q{http://www.w3.org/1999/XSL/Transform}xpath-default-namespace", +chk:"0"}]}]}]}]}]}]},{N:"templateRule",prec:"0",prio:"5.0",seq:"322",rank:"15",minImp:"0",slots:"1",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}*",flags:"s",line:"18",module:"attributes.xsl",C:[{N:"p.withPredicate",role:"match",C:[{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}*"},{N:"axis",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"18",name:"attribute", +nodeTest:"NA nQ{}xpath-default-namespace"}]},{N:"sequence",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"19",C:[{N:"param",name:"Q{}attr",slot:"0",as:"*NA",C:[{N:"empty",role:"select"},{N:"treat",role:"conversion",as:"NA",diag:"8|0|XTTE0590|attr",C:[{N:"supplied",slot:"0"}]}]},{N:"nextMatch",line:"22",flags:"t",C:[{N:"withParam",name:"Q{}attr",as:"*NA",C:[{N:"varRef", +name:"Q{}attr",slot:"0"}]},{N:"withParam",name:"Q{}xpath-default-namespace",flags:"t",as:"?NA nQ{}xpath-default-namespace",C:[{N:"axis",line:"21",name:"attribute",nodeTest:"NA nQ{}xpath-default-namespace"}]}]}]}]},{N:"templateRule",prec:"0",prio:"3.3",seq:"32",rank:"14",minImp:"0",slots:"0",matches:"NE",flags:"s",line:"39",module:"normalize.xsl",C:[{N:"p.withPredicate",role:"match",C:[{N:"p.nodeTest",test:"NE"},{N:"axis",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~", +line:"39",name:"attribute",nodeTest:"NA nQ{http://www.w3.org/1999/XSL/Transform}type"}]},{N:"sequence",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"40",C:[{N:"ufCall",name:"Q{MyFunctions}syntax-error-at",tailCall:"false",bSlot:"0",eval:"0 0 16",C:[{N:"str",val:"XTSE1660"},{N:"str",val:"Attribute @[xsl:]type is not allowed (Saxon-JS is not schema-aware)"},{N:"check", +card:"1",diag:"0|2||f:syntax-error-at",C:[{N:"axis",name:"attribute",nodeTest:"NA n*:type"}]}]},{N:"nextMatch",line:"41",flags:"t"}]}]},{N:"templateRule",prec:"0",prio:"3.3",seq:"32",rank:"14",minImp:"0",slots:"0",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}*",flags:"s",line:"39",module:"normalize.xsl",C:[{N:"p.withPredicate",role:"match",C:[{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}*"},{N:"axis",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~", +line:"39",name:"attribute",nodeTest:"NA nQ{}type"}]},{N:"sequence",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"40",C:[{N:"ufCall",name:"Q{MyFunctions}syntax-error-at",tailCall:"false",bSlot:"0",eval:"0 0 16",C:[{N:"str",val:"XTSE1660"},{N:"str",val:"Attribute @[xsl:]type is not allowed (Saxon-JS is not schema-aware)"},{N:"check",card:"1",diag:"0|2||f:syntax-error-at", +C:[{N:"axis",name:"attribute",nodeTest:"NA n*:type"}]}]},{N:"nextMatch",line:"41",flags:"t"}]}]},{N:"templateRule",prec:"0",prio:"3.2",seq:"37",rank:"13",minImp:"0",slots:"0",matches:"NE",flags:"s",line:"145",module:"normalize.xsl",C:[{N:"p.withPredicate",role:"match",C:[{N:"p.nodeTest",test:"NE"},{N:"vc",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"145",op:"eq",onEmpty:"0", +comp:"CCC",C:[{N:"cast",flags:"ae",as:"?AS",C:[{N:"attVal",name:"Q{http://www.w3.org/XML/1998/namespace}space",chk:"0"}]},{N:"str",val:"preserve"}]}]},{N:"nextMatch",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"146",flags:"t",C:[{N:"withParam",name:"Q{}xml-space-preserve",flags:"t",as:"1AB",C:[{N:"true"}]}]}]},{N:"templateRule",prec:"0",prio:"3.2",seq:"33", +rank:"13",minImp:"0",slots:"0",matches:"NE",flags:"s",line:"45",module:"normalize.xsl",C:[{N:"p.withPredicate",role:"match",C:[{N:"p.nodeTest",test:"NE"},{N:"filter",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"45",flags:"b",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{http://www.w3.org/1999/XSL/Transform}validation"},{N:"fn",name:"not",C:[{N:"gc",op:"=",card:"N:1",comp:"CCC", +C:[{N:"literal",count:"3",C:[{N:"str",val:"strip"},{N:"str",val:"preserve"},{N:"str",val:"lax"}]},{N:"data",diag:"1|0||=",C:[{N:"dot",type:"1NA nQ{http://www.w3.org/1999/XSL/Transform}validation"}]}]}]}]}]},{N:"sequence",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"47",C:[{N:"ufCall",name:"Q{MyFunctions}syntax-error-at",tailCall:"false",bSlot:"1",eval:"0 16 16", +C:[{N:"str",val:"XTSE1660"},{N:"fn",name:"concat",C:[{N:"str",val:"Attribute @[xsl:]validation with value "},{N:"atomSing",card:"?",diag:"0|1||fn:concat",C:[{N:"axis",name:"attribute",nodeTest:"NA n*:validation"}]},{N:"str",val:" is not allowed (Saxon-JS is not schema-aware)"}]},{N:"check",card:"1",diag:"0|2||f:syntax-error-at",C:[{N:"axis",name:"attribute",nodeTest:"NA n*:validation"}]}]},{N:"nextMatch",line:"48",flags:"t"}]}]},{N:"templateRule",prec:"0",prio:"3.2",seq:"33",rank:"13",minImp:"0", +slots:"0",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}*",flags:"s",line:"45",module:"normalize.xsl",C:[{N:"p.withPredicate",role:"match",C:[{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}*"},{N:"filter",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"45",flags:"b",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}validation"},{N:"fn",name:"not",C:[{N:"gc", +op:"=",card:"N:1",comp:"CCC",C:[{N:"literal",count:"3",C:[{N:"str",val:"strip"},{N:"str",val:"preserve"},{N:"str",val:"lax"}]},{N:"data",diag:"1|0||=",C:[{N:"dot",type:"1NA nQ{}validation"}]}]}]}]}]},{N:"sequence",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"47",C:[{N:"ufCall",name:"Q{MyFunctions}syntax-error-at",tailCall:"false",bSlot:"1",eval:"0 16 16",C:[{N:"str", +val:"XTSE1660"},{N:"fn",name:"concat",C:[{N:"str",val:"Attribute @[xsl:]validation with value "},{N:"atomSing",card:"?",diag:"0|1||fn:concat",C:[{N:"axis",name:"attribute",nodeTest:"NA n*:validation"}]},{N:"str",val:" is not allowed (Saxon-JS is not schema-aware)"}]},{N:"check",card:"1",diag:"0|2||f:syntax-error-at",C:[{N:"axis",name:"attribute",nodeTest:"NA n*:validation"}]}]},{N:"nextMatch",line:"48",flags:"t"}]}]},{N:"templateRule",prec:"0",prio:"3.1",seq:"34",rank:"12",minImp:"0",slots:"0",matches:"NE", +flags:"s",line:"53",module:"normalize.xsl",C:[{N:"p.withPredicate",role:"match",C:[{N:"p.nodeTest",test:"NE"},{N:"filter",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"53",flags:"b",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{http://www.w3.org/1999/XSL/Transform}default-validation"},{N:"fn",name:"not",C:[{N:"gc",op:"=",card:"N:1",comp:"CCC",C:[{N:"literal",count:"3",C:[{N:"str", +val:"strip"},{N:"str",val:"preserve"},{N:"str",val:"lax"}]},{N:"data",diag:"1|0||=",C:[{N:"dot",type:"1NA nQ{http://www.w3.org/1999/XSL/Transform}default-validation"}]}]}]}]}]},{N:"sequence",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"55",C:[{N:"ufCall",name:"Q{MyFunctions}syntax-error-at",tailCall:"false",bSlot:"2",eval:"0 16 16",C:[{N:"str",val:"XTSE1660"}, +{N:"fn",name:"concat",C:[{N:"str",val:"Attribute @[xsl:]default-validation with value "},{N:"atomSing",card:"?",diag:"0|1||fn:concat",C:[{N:"axis",name:"attribute",nodeTest:"NA n*:default-validation"}]},{N:"str",val:" is not allowed (Saxon-JS is not schema-aware)"}]},{N:"check",card:"1",diag:"0|2||f:syntax-error-at",C:[{N:"axis",name:"attribute",nodeTest:"NA n*:default-validation"}]}]},{N:"nextMatch",line:"56",flags:"t"}]}]},{N:"templateRule",prec:"0",prio:"3.1",seq:"34",rank:"12",minImp:"0",slots:"0", +matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}*",flags:"s",line:"53",module:"normalize.xsl",C:[{N:"p.withPredicate",role:"match",C:[{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}*"},{N:"filter",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"53",flags:"b",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}default-validation"},{N:"fn",name:"not",C:[{N:"gc", +op:"=",card:"N:1",comp:"CCC",C:[{N:"literal",count:"3",C:[{N:"str",val:"strip"},{N:"str",val:"preserve"},{N:"str",val:"lax"}]},{N:"data",diag:"1|0||=",C:[{N:"dot",type:"1NA nQ{}default-validation"}]}]}]}]}]},{N:"sequence",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"55",C:[{N:"ufCall",name:"Q{MyFunctions}syntax-error-at",tailCall:"false",bSlot:"2",eval:"0 16 16", +C:[{N:"str",val:"XTSE1660"},{N:"fn",name:"concat",C:[{N:"str",val:"Attribute @[xsl:]default-validation with value "},{N:"atomSing",card:"?",diag:"0|1||fn:concat",C:[{N:"axis",name:"attribute",nodeTest:"NA n*:default-validation"}]},{N:"str",val:" is not allowed (Saxon-JS is not schema-aware)"}]},{N:"check",card:"1",diag:"0|2||f:syntax-error-at",C:[{N:"axis",name:"attribute",nodeTest:"NA n*:default-validation"}]}]},{N:"nextMatch",line:"56",flags:"t"}]}]},{N:"templateRule",prec:"0",prio:"3.0",seq:"35", +rank:"11",minImp:"0",slots:"4",matches:"NE",flags:"s",line:"59",module:"normalize.xsl",C:[{N:"p.withPredicate",role:"match",C:[{N:"p.nodeTest",test:"NE"},{N:"axis",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"59",name:"attribute",nodeTest:"NA nQ{http://www.w3.org/1999/XSL/Transform}extension-element-prefixes"}]},{N:"sequence",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~", +line:"60",C:[{N:"param",name:"Q{}extension-element-namespaces",slot:"0",flags:"t",as:"*AS",C:[{N:"empty",role:"select"},{N:"treat",role:"conversion",as:"AS",diag:"8|0|XTTE0590|extension-element-namespaces",C:[{N:"cvUntyped",to:"AS",diag:"8|0|XTTE0590|extension-element-namespaces",C:[{N:"data",diag:"8|0|XTTE0590|extension-element-namespaces",C:[{N:"supplied",slot:"0"}]}]}]}]},{N:"let",line:"61","var":"Q{}att",as:"?NA",slot:"1",eval:"7",C:[{N:"first",C:[{N:"sequence",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}extension-element-prefixes"}, +{N:"axis",name:"attribute",nodeTest:"NA nQ{http://www.w3.org/1999/XSL/Transform}extension-element-prefixes"}]}]},{N:"let",line:"64","var":"Q{}context",as:"1",slot:"2",eval:"16",C:[{N:"dot",type:"1NE"},{N:"nextMatch",line:"88",flags:"t",C:[{N:"withParam",name:"Q{}extension-element-namespaces",flags:"t",as:"*AS",C:[{N:"sequence",line:"89",C:[{N:"varRef",name:"Q{}extension-element-namespaces",slot:"0"},{N:"treat",line:"65",as:"AS",diag:"3|0|XTTE0570|uris",C:[{N:"cvUntyped",to:"AS",diag:"3|0|XTTE0570|uris", +C:[{N:"data",diag:"3|0|XTTE0570|uris",C:[{N:"forEach",C:[{N:"fn",name:"tokenize",C:[{N:"cvUntyped",to:"AS",C:[{N:"data",diag:"0|0||fn:tokenize",C:[{N:"varRef",name:"Q{}att",slot:"1"}]}]}]},{N:"let",line:"75","var":"Q{}uri",as:"?AS",slot:"3",eval:"8",C:[{N:"convert",from:"AU",to:"AS",diag:"3|0|XTTE0570|uri",C:[{N:"fn",name:"namespace-uri-for-prefix",C:[{N:"choose",line:"74",C:[{N:"vc",op:"eq",onEmpty:"0",comp:"GAC|http://www.w3.org/2005/xpath-functions/collation/codepoint",C:[{N:"dot",type:"1AS"}, +{N:"str",val:"#default"}]},{N:"str",val:""},{N:"true"},{N:"dot",type:"1AS"}]},{N:"varRef",name:"Q{}context",slot:"2"}]}]},{N:"sequence",line:"76",C:[{N:"choose",C:[{N:"fn",name:"empty",C:[{N:"varRef",name:"Q{}uri",slot:"3"}]},{N:"ufCall",line:"77",name:"Q{MyFunctions}syntax-error-at",tailCall:"false",bSlot:"3",eval:"0 16 16",C:[{N:"str",val:"XTSE1430"},{N:"fn",name:"concat",C:[{N:"str",val:"Extension element prefix "},{N:"dot",type:"1AS"},{N:"str",val:" is not bound to any URI"}]},{N:"check",card:"1", +diag:"0|2||f:syntax-error-at",C:[{N:"varRef",name:"Q{}att",slot:"1"}]}]}]},{N:"choose",line:"79",C:[{N:"gc",op:"=",card:"N:1",comp:"CCC",C:[{N:"gVarRef",name:"Q{}reserved-namespaces",bSlot:"4"},{N:"varRef",name:"Q{}uri",slot:"3"}]},{N:"ufCall",line:"82",name:"Q{MyFunctions}syntax-error-at",tailCall:"false",bSlot:"5",eval:"0 16 16",C:[{N:"str",val:"XTSE0085"},{N:"fn",name:"concat",C:[{N:"str",val:"Extension element prefix "},{N:"dot",type:"1AS"},{N:"str",val:" cannot be bound to the reserved namespace "}, +{N:"varRef",name:"Q{}uri",slot:"3"}]},{N:"check",card:"1",diag:"0|2||f:syntax-error-at",C:[{N:"varRef",name:"Q{}att",slot:"1"}]}]}]},{N:"varRef",line:"84",name:"Q{}uri",slot:"3"}]}]}]}]}]}]}]}]}]}]}]}]}]},{N:"templateRule",prec:"0",prio:"3.0",seq:"35",rank:"11",minImp:"0",slots:"4",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}*",flags:"s",line:"59",module:"normalize.xsl",C:[{N:"p.withPredicate",role:"match",C:[{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}*"},{N:"axis",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~", +line:"59",name:"attribute",nodeTest:"NA nQ{}extension-element-prefixes"}]},{N:"sequence",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"60",C:[{N:"param",name:"Q{}extension-element-namespaces",slot:"0",flags:"t",as:"*AS",C:[{N:"empty",role:"select"},{N:"treat",role:"conversion",as:"AS",diag:"8|0|XTTE0590|extension-element-namespaces",C:[{N:"cvUntyped",to:"AS", +diag:"8|0|XTTE0590|extension-element-namespaces",C:[{N:"data",diag:"8|0|XTTE0590|extension-element-namespaces",C:[{N:"supplied",slot:"0"}]}]}]}]},{N:"let",line:"61","var":"Q{}att",as:"?NA",slot:"1",eval:"7",C:[{N:"first",C:[{N:"sequence",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}extension-element-prefixes"},{N:"axis",name:"attribute",nodeTest:"NA nQ{http://www.w3.org/1999/XSL/Transform}extension-element-prefixes"}]}]},{N:"let",line:"64","var":"Q{}context",as:"1",slot:"2",eval:"16",C:[{N:"dot", +type:"1NE"},{N:"nextMatch",line:"88",flags:"t",C:[{N:"withParam",name:"Q{}extension-element-namespaces",flags:"t",as:"*AS",C:[{N:"sequence",line:"89",C:[{N:"varRef",name:"Q{}extension-element-namespaces",slot:"0"},{N:"treat",line:"65",as:"AS",diag:"3|0|XTTE0570|uris",C:[{N:"cvUntyped",to:"AS",diag:"3|0|XTTE0570|uris",C:[{N:"data",diag:"3|0|XTTE0570|uris",C:[{N:"forEach",C:[{N:"fn",name:"tokenize",C:[{N:"cvUntyped",to:"AS",C:[{N:"data",diag:"0|0||fn:tokenize",C:[{N:"varRef",name:"Q{}att",slot:"1"}]}]}]}, +{N:"let",line:"75","var":"Q{}uri",as:"?AS",slot:"3",eval:"8",C:[{N:"convert",from:"AU",to:"AS",diag:"3|0|XTTE0570|uri",C:[{N:"fn",name:"namespace-uri-for-prefix",C:[{N:"choose",line:"74",C:[{N:"vc",op:"eq",onEmpty:"0",comp:"GAC|http://www.w3.org/2005/xpath-functions/collation/codepoint",C:[{N:"dot",type:"1AS"},{N:"str",val:"#default"}]},{N:"str",val:""},{N:"true"},{N:"dot",type:"1AS"}]},{N:"varRef",name:"Q{}context",slot:"2"}]}]},{N:"sequence",line:"76",C:[{N:"choose",C:[{N:"fn",name:"empty",C:[{N:"varRef", +name:"Q{}uri",slot:"3"}]},{N:"ufCall",line:"77",name:"Q{MyFunctions}syntax-error-at",tailCall:"false",bSlot:"3",eval:"0 16 16",C:[{N:"str",val:"XTSE1430"},{N:"fn",name:"concat",C:[{N:"str",val:"Extension element prefix "},{N:"dot",type:"1AS"},{N:"str",val:" is not bound to any URI"}]},{N:"check",card:"1",diag:"0|2||f:syntax-error-at",C:[{N:"varRef",name:"Q{}att",slot:"1"}]}]}]},{N:"choose",line:"79",C:[{N:"gc",op:"=",card:"N:1",comp:"CCC",C:[{N:"gVarRef",name:"Q{}reserved-namespaces",bSlot:"4"},{N:"varRef", +name:"Q{}uri",slot:"3"}]},{N:"ufCall",line:"82",name:"Q{MyFunctions}syntax-error-at",tailCall:"false",bSlot:"5",eval:"0 16 16",C:[{N:"str",val:"XTSE0085"},{N:"fn",name:"concat",C:[{N:"str",val:"Extension element prefix "},{N:"dot",type:"1AS"},{N:"str",val:" cannot be bound to the reserved namespace "},{N:"varRef",name:"Q{}uri",slot:"3"}]},{N:"check",card:"1",diag:"0|2||f:syntax-error-at",C:[{N:"varRef",name:"Q{}att",slot:"1"}]}]}]},{N:"varRef",line:"84",name:"Q{}uri",slot:"3"}]}]}]}]}]}]}]}]}]}]}]}]}]}, +{N:"templateRule",prec:"0",prio:"1.6",seq:"40",rank:"8",minImp:"0",slots:"1",matches:"NE",flags:"s",line:"205",module:"normalize.xsl",C:[{N:"p.withPredicate",role:"match",C:[{N:"p.nodeTest",test:"NE"},{N:"axis",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"205",name:"attribute",nodeTest:"NA nQ{http://www.w3.org/1999/XSL/Transform}default-mode"}]},{N:"nextMatch",role:"action", +ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"206",flags:"t",C:[{N:"withParam",name:"Q{}default-mode",flags:"t",as:"1AS",C:[{N:"let",line:"215","var":"Q{}mode",slot:"0",eval:"7",C:[{N:"first",C:[{N:"sequence",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}default-mode"},{N:"axis",name:"attribute",nodeTest:"NA nQ{http://www.w3.org/1999/XSL/Transform}default-mode"}]}]},{N:"choose", +C:[{N:"vc",op:"eq",onEmpty:"0",comp:"CCC",C:[{N:"fn",name:"normalize-space",C:[{N:"cvUntyped",to:"AS",C:[{N:"data",diag:"0|0||fn:normalize-space",C:[{N:"varRef",name:"Q{}mode",slot:"0"}]}]}]},{N:"str",val:"#unnamed"}]},{N:"str",val:"#unnamed"},{N:"true"},{N:"ufCall",name:"Q{MyFunctions}EQName",tailCall:"false",bSlot:"6",eval:"16 16 0",C:[{N:"check",card:"1",diag:"0|0||f:EQName",C:[{N:"cvUntyped",to:"AS",C:[{N:"data",diag:"0|0||f:EQName",C:[{N:"varRef",name:"Q{}mode",slot:"0"}]}]}]},{N:"dot",type:"1NE"}, +{N:"str",val:"XTSE0020"}]}]}]}]}]}]},{N:"templateRule",prec:"0",prio:"1.6",seq:"40",rank:"8",minImp:"0",slots:"1",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}*",flags:"s",line:"205",module:"normalize.xsl",C:[{N:"p.withPredicate",role:"match",C:[{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}*"},{N:"axis",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"205", +name:"attribute",nodeTest:"NA nQ{}default-mode"}]},{N:"nextMatch",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"206",flags:"t",C:[{N:"withParam",name:"Q{}default-mode",flags:"t",as:"1AS",C:[{N:"let",line:"215","var":"Q{}mode",slot:"0",eval:"7",C:[{N:"first",C:[{N:"sequence",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}default-mode"},{N:"axis",name:"attribute", +nodeTest:"NA nQ{http://www.w3.org/1999/XSL/Transform}default-mode"}]}]},{N:"choose",C:[{N:"vc",op:"eq",onEmpty:"0",comp:"CCC",C:[{N:"fn",name:"normalize-space",C:[{N:"cvUntyped",to:"AS",C:[{N:"data",diag:"0|0||fn:normalize-space",C:[{N:"varRef",name:"Q{}mode",slot:"0"}]}]}]},{N:"str",val:"#unnamed"}]},{N:"str",val:"#unnamed"},{N:"true"},{N:"ufCall",name:"Q{MyFunctions}EQName",tailCall:"false",bSlot:"6",eval:"16 16 0",C:[{N:"check",card:"1",diag:"0|0||f:EQName",C:[{N:"cvUntyped",to:"AS",C:[{N:"data", +diag:"0|0||f:EQName",C:[{N:"varRef",name:"Q{}mode",slot:"0"}]}]}]},{N:"dot",type:"1NE"},{N:"str",val:"XTSE0020"}]}]}]}]}]}]},{N:"templateRule",prec:"0",prio:"1.5",seq:"39",rank:"7",minImp:"0",slots:"2",matches:"NE",flags:"s",line:"182",module:"normalize.xsl",C:[{N:"p.withPredicate",role:"match",C:[{N:"p.nodeTest",test:"NE"},{N:"axis",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~", +line:"182",name:"attribute",nodeTest:"NA nQ{http://www.w3.org/1999/XSL/Transform}version"}]},{N:"choose",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"184",C:[{N:"fn",name:"exists",C:[{N:"axis",name:"self",nodeTest:"NE nQ{http://www.w3.org/1999/XSL/Transform}output"}]},{N:"nextMatch",line:"185",flags:"t"},{N:"true"},{N:"let",line:"189","var":"Q{}rawValue",as:"1AS", +slot:"0",eval:"8",C:[{N:"fn",name:"replace",C:[{N:"cvUntyped",to:"AS",C:[{N:"data",diag:"0|0||fn:replace",C:[{N:"first",C:[{N:"sequence",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}version"},{N:"axis",name:"attribute",nodeTest:"NA nQ{http://www.w3.org/1999/XSL/Transform}version"}]}]}]}]},{N:"str",val:"^\\+"},{N:"str",val:""},{N:"str",val:""}]},{N:"let",line:"196","var":"Q{}version",as:"1AD",slot:"1",eval:"16",C:[{N:"choose",C:[{N:"castable",flags:"a",as:"1AD",C:[{N:"varRef",name:"Q{}rawValue", +slot:"0"}]},{N:"cast",flags:"a",as:"1AD",C:[{N:"varRef",name:"Q{}rawValue",slot:"0"}]},{N:"true"},{N:"dec",val:"3"}]},{N:"nextMatch",line:"197",flags:"t",C:[{N:"withParam",name:"Q{}XSLT-version",flags:"t",as:"1AD",C:[{N:"varRef",line:"198",name:"Q{}version",slot:"1"}]},{N:"withParam",name:"Q{}forward-compatibility-mode",flags:"t",as:"1AB",C:[{N:"vc",line:"199",op:"gt",comp:"CAVC",C:[{N:"varRef",name:"Q{}version",slot:"1"},{N:"dec",val:"3"}]}]}]}]}]}]}]},{N:"templateRule",prec:"0",prio:"1.5",seq:"39", +rank:"7",minImp:"0",slots:"2",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}*",flags:"s",line:"182",module:"normalize.xsl",C:[{N:"p.withPredicate",role:"match",C:[{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}*"},{N:"axis",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"182",name:"attribute",nodeTest:"NA nQ{}version"}]},{N:"choose",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~", +line:"184",C:[{N:"fn",name:"exists",C:[{N:"axis",name:"self",nodeTest:"NE nQ{http://www.w3.org/1999/XSL/Transform}output"}]},{N:"nextMatch",line:"185",flags:"t"},{N:"true"},{N:"let",line:"189","var":"Q{}rawValue",as:"1AS",slot:"0",eval:"8",C:[{N:"fn",name:"replace",C:[{N:"cvUntyped",to:"AS",C:[{N:"data",diag:"0|0||fn:replace",C:[{N:"first",C:[{N:"sequence",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}version"},{N:"axis",name:"attribute",nodeTest:"NA nQ{http://www.w3.org/1999/XSL/Transform}version"}]}]}]}]}, +{N:"str",val:"^\\+"},{N:"str",val:""},{N:"str",val:""}]},{N:"let",line:"196","var":"Q{}version",as:"1AD",slot:"1",eval:"16",C:[{N:"choose",C:[{N:"castable",flags:"a",as:"1AD",C:[{N:"varRef",name:"Q{}rawValue",slot:"0"}]},{N:"cast",flags:"a",as:"1AD",C:[{N:"varRef",name:"Q{}rawValue",slot:"0"}]},{N:"true"},{N:"dec",val:"3"}]},{N:"nextMatch",line:"197",flags:"t",C:[{N:"withParam",name:"Q{}XSLT-version",flags:"t",as:"1AD",C:[{N:"varRef",line:"198",name:"Q{}version",slot:"1"}]},{N:"withParam",name:"Q{}forward-compatibility-mode", +flags:"t",as:"1AB",C:[{N:"vc",line:"199",op:"gt",comp:"CAVC",C:[{N:"varRef",name:"Q{}version",slot:"1"},{N:"dec",val:"3"}]}]}]}]}]}]}]},{N:"templateRule",prec:"0",prio:"1.2",seq:"36",rank:"6",minImp:"0",slots:"2",matches:"NE",flags:"s",line:"93",module:"normalize.xsl",C:[{N:"p.nodeTest",role:"match",test:"NE"},{N:"sequence",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~", +line:"94",C:[{N:"param",name:"Q{}extension-element-namespaces",slot:"0",flags:"t",as:"*AS",C:[{N:"empty",role:"select"},{N:"treat",role:"conversion",as:"AS",diag:"8|0|XTTE0590|extension-element-namespaces",C:[{N:"cvUntyped",to:"AS",diag:"8|0|XTTE0590|extension-element-namespaces",C:[{N:"data",diag:"8|0|XTTE0590|extension-element-namespaces",C:[{N:"supplied",slot:"0"}]}]}]}]},{N:"choose",line:"97",C:[{N:"fn",name:"exists",C:[{N:"axis",name:"self",nodeTest:"NE nQ{http://www.w3.org/1999/XSL/Transform}*"}]}, +{N:"let",line:"98","var":"Q{}possible-fallbacks",as:"*NE",slot:"1",eval:"9",C:[{N:"callT",line:"99",name:"Q{}check-syntax-primary",bSlot:"7"},{N:"choose",line:"102",C:[{N:"fn",name:"exists",C:[{N:"slash",simple:"2",C:[{N:"varRef",name:"Q{}possible-fallbacks",slot:"1"},{N:"axis",name:"self",nodeTest:"NE nQ{http://www.w3.org/1999/XSL/Transform}ignore"}]}]},{N:"message",line:"103",C:[{N:"valueOf",role:"select",C:[{N:"fn",name:"concat",C:[{N:"str",val:"IGNORING "},{N:"fn",name:"serialize",C:[{N:"dot", +type:"1NE"}]}]}]},{N:"str",role:"terminate",val:"no"},{N:"str",role:"error",val:"Q{http://www.w3.org/2005/xqt-errors}XTMM9000"}]},{N:"fn",line:"105",name:"exists",C:[{N:"varRef",name:"Q{}possible-fallbacks",slot:"1"}]},{N:"applyT",line:"107",flags:"ct",bSlot:"-1",C:[{N:"conditionalSort",role:"select",C:[{N:"fn",name:"exists",C:[{N:"tail",start:"2",C:[{N:"varRef",name:"Q{}possible-fallbacks",slot:"1"}]}]},{N:"docOrder",intra:"0",C:[{N:"slash",simple:"2",C:[{N:"slash",simple:"2",C:[{N:"varRef",name:"Q{}possible-fallbacks", +slot:"1"},{N:"axis",name:"self",nodeTest:"NE nQ{http://www.w3.org/1999/XSL/Transform}fallback"}]},{N:"axis",name:"child",nodeTest:"N u[NT,NP,NE,NC]"}]}]}]}]},{N:"true"},{N:"nextMatch",line:"110",flags:"t"}]}]},{N:"and",line:"118",op:"and",C:[{N:"and",op:"and",C:[{N:"fn",name:"exists",C:[{N:"varRef",name:"Q{}extension-element-namespaces",slot:"0"}]},{N:"gc",op:"=",card:"N:1",comp:"CCC",C:[{N:"varRef",name:"Q{}extension-element-namespaces",slot:"0"},{N:"fn",name:"namespace-uri",C:[{N:"dot",type:"1NE"}]}]}]}, +{N:"fn",name:"not",C:[{N:"slash",line:"795",C:[{N:"dot",line:"118",type:"1NE"},{N:"fn",name:"exists",C:[{N:"axis",name:"parent",nodeTest:"NE u[NE u[NE nQ{http://www.w3.org/1999/XSL/Transform}stylesheet,NE nQ{http://www.w3.org/1999/XSL/Transform}transform],NE nQ{http://www.w3.org/1999/XSL/Transform}package]"}]}]}]}]},{N:"choose",line:"120",C:[{N:"vc",op:"eq",onEmpty:"0",comp:"CCC",C:[{N:"fn",name:"namespace-uri",C:[{N:"dot",type:"1NE"}]},{N:"str",val:"http://saxon.sf.net/"}]},{N:"nextMatch",line:"122", +flags:"t"},{N:"vc",line:"124",op:"eq",onEmpty:"0",comp:"CCC",C:[{N:"fn",name:"namespace-uri",C:[{N:"dot",type:"1NE"}]},{N:"str",val:"http://saxonica.com/ns/interactiveXSLT"}]},{N:"nextMatch",line:"126",flags:"t"},{N:"fn",line:"128",name:"empty",C:[{N:"axis",name:"child",nodeTest:"NE nQ{http://www.w3.org/1999/XSL/Transform}fallback"}]},{N:"elem",line:"129",name:"xsl:sequence",nsuri:"http://www.w3.org/1999/XSL/Transform",C:[{N:"att",line:"130",name:"select",flags:"l",C:[{N:"convert",from:"AZ",to:"AS", +C:[{N:"cast",flags:"a",as:"1AZ",C:[{N:"fn",name:"concat",C:[{N:"str",val:"error(QName('http://www.w3.org/2005/xqt-errors', 'XTDE1450'), 'Extension element "},{N:"fn",name:"name",C:[{N:"dot",type:"1NE"}]},{N:"str",val:"\n must contain at least one xsl:fallback child')"}]}]}]}]}]},{N:"true"},{N:"applyT",line:"135",flags:"ct",bSlot:"-1",C:[{N:"slash",role:"select",simple:"2",C:[{N:"axis",name:"child",nodeTest:"NE nQ{http://www.w3.org/1999/XSL/Transform}fallback"},{N:"axis", +name:"child",nodeTest:"N u[NT,NP,NE,NC]"}]}]}]},{N:"true"},{N:"nextMatch",line:"140",flags:"t"}]}]}]},{N:"templateRule",prec:"0",prio:"0.5",seq:"108",rank:"3",minImp:"0",slots:"0",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}for-each-group",flags:"s",line:"894",module:"normalize.xsl",C:[{N:"p.withPredicate",role:"match",C:[{N:"p.withPredicate",C:[{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}for-each-group"},{N:"axis",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~", +line:"894",name:"attribute",nodeTest:"NA nQ{}collation"}]},{N:"sequence",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"894",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}group-starting-with"},{N:"axis",name:"attribute",nodeTest:"NA nQ{}group-ending-with"}]}]},{N:"ufCall",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~", +line:"897",name:"Q{MyFunctions}syntax-error-at",tailCall:"false",bSlot:"8",eval:"0 16 16",C:[{N:"str",val:"XTSE1090"},{N:"fn",name:"concat",C:[{N:"fn",name:"name",C:[{N:"dot",type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}for-each-group"}]},{N:"str",val:" may not have @collation with @"},{N:"check",card:"?",diag:"0|2||fn:concat",C:[{N:"slash",C:[{N:"axis",name:"attribute",nodeTest:"NA u[NA nQ{}group-starting-with,NA nQ{}group-ending-with]"},{N:"fn",name:"name",C:[{N:"dot",type:"1NA"}]}]}]}]}, +{N:"dot",type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}for-each-group"}]}]},{N:"templateRule",prec:"0",prio:"0.5",seq:"107",rank:"3",minImp:"0",slots:"0",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}for-each-group",flags:"s",line:"889",module:"normalize.xsl",C:[{N:"p.withPredicate",role:"match",C:[{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}for-each-group"},{N:"sequence",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~", +line:"889",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}bind-group"},{N:"axis",name:"attribute",nodeTest:"NA nQ{}bind-grouping-key"}]}]},{N:"ufCall",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"892",name:"Q{MyFunctions}syntax-error-at",tailCall:"false",bSlot:"9",eval:"0 16 16",C:[{N:"str",val:"XTSE0090"},{N:"fn",name:"concat",C:[{N:"fn",name:"name",C:[{N:"dot", +type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}for-each-group"}]},{N:"str",val:" no longer supports "},{N:"fn",name:"string-join",C:[{N:"forEach",C:[{N:"axis",name:"attribute",nodeTest:"NA u[NA nQ{}bind-group,NA nQ{}bind-grouping-key]"},{N:"fn",name:"concat",C:[{N:"str",val:"@"},{N:"fn",name:"name",C:[{N:"dot",type:"1NA"}]}]}]},{N:"str",val:" or "}]}]},{N:"dot",type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}for-each-group"}]}]},{N:"templateRule",prec:"0",prio:"0.5",seq:"106",rank:"3",minImp:"0", +slots:"0",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}for-each-group",flags:"s",line:"884",module:"normalize.xsl",C:[{N:"p.withPredicate",role:"match",C:[{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}for-each-group"},{N:"vc",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"884",op:"ne",comp:"CAVC",C:[{N:"fn",name:"count",C:[{N:"axis",name:"attribute", +nodeTest:"NA u[NA u[NA u[NA nQ{}group-by,NA nQ{}group-starting-with],NA nQ{}group-ending-with],NA nQ{}group-adjacent]"}]},{N:"int",val:"1"}]}]},{N:"ufCall",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"887",name:"Q{MyFunctions}syntax-error-at",tailCall:"false",bSlot:"10",eval:"0 16 16",C:[{N:"str",val:"XTSE1080"},{N:"fn",name:"concat",C:[{N:"fn",name:"name", +C:[{N:"dot",type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}for-each-group"}]},{N:"str",val:" must have exactly one of @group-by|@group-starting-with|@group-ending-with|@group-adjacent"}]},{N:"dot",type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}for-each-group"}]}]},{N:"templateRule",prec:"0",prio:"0.5",seq:"120",rank:"3",minImp:"0",slots:"0",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}merge-action",flags:"s",line:"942",module:"normalize.xsl",C:[{N:"p.withPredicate",role:"match",C:[{N:"p.nodeTest", +test:"NE nQ{http://www.w3.org/1999/XSL/Transform}merge-action"},{N:"axis",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"942",name:"following-sibling",nodeTest:"NE nQ{http://www.w3.org/1999/XSL/Transform}merge-action"}]},{N:"ufCall",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~", +line:"943",name:"Q{MyFunctions}syntax-error-at",tailCall:"false",bSlot:"11",eval:"0 16",C:[{N:"str",val:"xsl:merge must have exactly one xsl:merge-action child"},{N:"dot",type:"1NE"}]}]},{N:"templateRule",prec:"0",prio:"0.0",seq:"135",rank:"2",minImp:"0",slots:"0",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}use-package",flags:"s",line:"1017",module:"normalize.xsl",C:[{N:"p.nodeTest",role:"match",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}use-package"},{N:"ufCall",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~", +line:"1018",name:"Q{MyFunctions}syntax-error-at",tailCall:"false",bSlot:"12",eval:"0 0 16",C:[{N:"str",val:"XTSE3000"},{N:"str",val:"xsl:use-package - not currently supported"},{N:"dot",type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}use-package"}]}]},{N:"templateRule",prec:"0",prio:"0.5",seq:"122",rank:"3",minImp:"0",slots:"0",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}on-empty",flags:"s",line:"949",module:"normalize.xsl",C:[{N:"p.withPredicate",role:"match",C:[{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}on-empty"}, +{N:"filter",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"949",flags:"b",C:[{N:"axis",name:"following-sibling",nodeTest:"N"},{N:"and",op:"and",C:[{N:"fn",name:"empty",C:[{N:"axis",name:"self",nodeTest:"NE nQ{http://www.w3.org/1999/XSL/Transform}catch"}]},{N:"fn",name:"empty",C:[{N:"filter",flags:"b",C:[{N:"axis",name:"self",nodeTest:"NT"},{N:"fn",name:"matches",C:[{N:"cvUntyped", +to:"AS",C:[{N:"data",diag:"0|0||fn:matches",C:[{N:"dot",type:"1NT"}]}]},{N:"str",val:"^\\s*$"},{N:"str",val:""}]}]}]}]}]}]},{N:"ufCall",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"950",name:"Q{MyFunctions}syntax-error-at",tailCall:"false",bSlot:"13",eval:"0 16",C:[{N:"str",val:"xsl:on-empty must be the last instruction in a sequence constructor"},{N:"dot", +type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}on-empty"}]}]},{N:"templateRule",prec:"0",prio:"0.5",seq:"121",rank:"3",minImp:"0",slots:"0",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}on-empty",flags:"s",line:"946",module:"normalize.xsl",C:[{N:"p.withPredicate",role:"match",C:[{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}on-empty"},{N:"axis",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~", +line:"946",name:"following-sibling",nodeTest:"NE nQ{http://www.w3.org/1999/XSL/Transform}on-empty"}]},{N:"ufCall",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"947",name:"Q{MyFunctions}syntax-error-at",tailCall:"false",bSlot:"14",eval:"0 16",C:[{N:"str",val:"A sequence constructor may contain only one xsl:on-empty child"},{N:"dot",type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}on-empty"}]}]}, +{N:"templateRule",prec:"0",prio:"0.5",seq:"137",rank:"3",minImp:"0",slots:"2",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}with-param",flags:"s",line:"1025",module:"normalize.xsl",C:[{N:"p.withCurrent",role:"match",C:[{N:"p.withPredicate",C:[{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}with-param"},{N:"filter",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~", +line:"1025",flags:"",C:[{N:"axis",name:"preceding-sibling",nodeTest:"NE nQ{http://www.w3.org/1999/XSL/Transform}with-param"},{N:"vc",op:"eq",comp:"CCC",C:[{N:"data",diag:"1|0||eq",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}name"}]},{N:"data",diag:"1|1||eq",C:[{N:"slash",C:[{N:"treat",as:"N",diag:"1|0|XPTY0019|/",C:[{N:"varRef",name:"Q{http://www.w3.org/2005/xpath-functions}current",slot:"0"}]},{N:"axis",name:"attribute",nodeTest:"NA nQ{}name"}]}]}]}]}]}]},{N:"ufCall",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~", +line:"1026",name:"Q{MyFunctions}syntax-error-at",tailCall:"false",bSlot:"15",eval:"0 16 16",C:[{N:"str",val:"XTSE0670"},{N:"fn",name:"concat",C:[{N:"str",val:"xsl:with-param siblings may not have the same @name: "},{N:"attVal",name:"Q{}name",chk:"0"}]},{N:"dot",type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}with-param"}]}]},{N:"templateRule",prec:"0",prio:"0.5",seq:"136",rank:"3",minImp:"0",slots:"0",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}with-param",flags:"s",line:"1021",module:"normalize.xsl", +C:[{N:"p.withPredicate",role:"match",C:[{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}with-param"},{N:"filter",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"1021",flags:"b",C:[{N:"axis",name:"preceding-sibling",nodeTest:"NE"},{N:"fn",name:"empty",C:[{N:"axis",name:"self",nodeTest:"NE u[NE nQ{http://www.w3.org/1999/XSL/Transform}with-param,NE nQ{http://www.w3.org/1999/XSL/Transform}sort]"}]}]}]}, +{N:"ufCall",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"1022",name:"Q{MyFunctions}syntax-error-at",tailCall:"false",bSlot:"16",eval:"0 16",C:[{N:"str",val:"xsl:with-param may only be preceded by (xsl:with-param|xsl:sort)*"},{N:"dot",type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}with-param"}]}]},{N:"templateRule",prec:"0",prio:"1.0",seq:"115",rank:"5",minImp:"0", +slots:"0",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}fallback",flags:"s",line:"927",module:"normalize.xsl",C:[{N:"p.withUpper",role:"match",axis:"parent",upFirst:"false",C:[{N:"p.withPredicate",C:[{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}fallback"},{N:"fn",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"927",name:"exists",C:[{N:"filter",flags:"b", +C:[{N:"axis",name:"following-sibling",nodeTest:"NE"},{N:"fn",name:"not",C:[{N:"axis",name:"self",nodeTest:"NE nQ{http://www.w3.org/1999/XSL/Transform}fallback"}]}]}]}]},{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}merge"}]},{N:"ufCall",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"928",name:"Q{MyFunctions}syntax-error-at",tailCall:"false", +bSlot:"17",eval:"0 16",C:[{N:"str",val:"xsl:fallback must be the last children of xsl:merge"},{N:"dot",type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}fallback"}]}]},{N:"templateRule",prec:"0",prio:"0.5",seq:"92",part:"1",rank:"3",minImp:"0",slots:"2",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}apply-templates",flags:"s",line:"725",module:"normalize.xsl",C:[{N:"p.withPredicate",role:"match",C:[{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}apply-templates"},{N:"fn",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~", +line:"725",name:"empty",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}mode"}]}]},{N:"sequence",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"726",C:[{N:"param",name:"Q{}default-mode",slot:"0",flags:"t",as:"?AS",C:[{N:"empty",role:"select"},{N:"treat",role:"conversion",as:"AS",diag:"8|0|XTTE0590|default-mode",C:[{N:"check",card:"?",diag:"8|0|XTTE0590|default-mode", +C:[{N:"cvUntyped",to:"AS",diag:"8|0|XTTE0590|default-mode",C:[{N:"data",diag:"8|0|XTTE0590|default-mode",C:[{N:"supplied",slot:"0"}]}]}]}]}]},{N:"let",line:"727","var":"Q{}temp",as:"1NE",slot:"1",eval:"16",C:[{N:"treat",line:"728",as:"NE",diag:"3|0|XTTE0570|temp",C:[{N:"check",card:"1",diag:"3|0|XTTE0570|temp",C:[{N:"nextMatch",flags:"i"}]}]},{N:"forEach",line:"730",C:[{N:"varRef",name:"Q{}temp",slot:"1"},{N:"copy",line:"732",flags:"cin",sit:"1NE",C:[{N:"sequence",role:"content",C:[{N:"applyT",flags:"c", +bSlot:"-1",C:[{N:"axis",role:"select",name:"attribute",nodeTest:"NA"}]},{N:"att",line:"733",name:"mode",flags:"l",C:[{N:"first",C:[{N:"sequence",C:[{N:"varRef",name:"Q{}default-mode",slot:"0"},{N:"str",val:"#unnamed"}]}]}]},{N:"axis",line:"734",name:"child",nodeTest:"N"}]}]}]}]}]}]},{N:"templateRule",prec:"0",prio:"0.5",seq:"101",rank:"3",minImp:"0",slots:"0",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}global-context-item",flags:"s",line:"867",module:"normalize.xsl",C:[{N:"p.withPredicate", +role:"match",C:[{N:"p.withPredicate",C:[{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}global-context-item"},{N:"axis",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"867",name:"attribute",nodeTest:"NA nQ{}as"}]},{N:"vc",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~", +line:"867",op:"eq",comp:"CCC",C:[{N:"attVal",name:"Q{}use",chk:"0"},{N:"str",val:"absent"}]}]},{N:"ufCall",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"868",name:"Q{MyFunctions}syntax-error-at",tailCall:"false",bSlot:"18",eval:"0 16 16",C:[{N:"str",val:"XTSE3089"},{N:"fn",name:"concat",C:[{N:"fn",name:"name",C:[{N:"dot",type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}global-context-item"}]}, +{N:"str",val:" cannot be absent and typed"}]},{N:"dot",type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}global-context-item"}]}]},{N:"templateRule",prec:"0",prio:"0.0",seq:"59",rank:"2",minImp:"0",slots:"0",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}global-context-item",flags:"s",line:"419",module:"normalize.xsl",C:[{N:"p.nodeTest",role:"match",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}global-context-item"},{N:"copy",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~", +line:"421",flags:"cin",sit:"1NE nQ{http://www.w3.org/1999/XSL/Transform}global-context-item",C:[{N:"sequence",role:"content",C:[{N:"att",name:"use",flags:"l",C:[{N:"str",val:"optional"}]},{N:"applyT",line:"422",flags:"c",bSlot:"-1",C:[{N:"axis",role:"select",name:"attribute",nodeTest:"NA d[NA,NA nQ{http://ns.saxonica.com/xslt/export}*]"}]}]}]}]},{N:"templateRule",prec:"0",prio:"0.5",seq:"119",rank:"3",minImp:"0",slots:"0",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}merge-source",flags:"s", +line:"938",module:"normalize.xsl",C:[{N:"p.withPredicate",role:"match",C:[{N:"p.withPredicate",C:[{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}merge-source"},{N:"axis",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"938",name:"attribute",nodeTest:"NA nQ{}for-each-item"}]},{N:"axis",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~", +line:"938",name:"attribute",nodeTest:"NA nQ{}for-each-source"}]},{N:"ufCall",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"939",name:"Q{MyFunctions}syntax-error-at",tailCall:"false",bSlot:"19",eval:"0 0 16",C:[{N:"str",val:"XTSE3195"},{N:"str",val:"xsl:merge-source cannot contain both @for-each-item and @for-each-source"},{N:"dot",type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}merge-source"}]}]}, +{N:"templateRule",prec:"0",prio:"0.5",seq:"117",rank:"3",minImp:"0",slots:"2",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}merge-source",flags:"s",line:"935",module:"normalize.xsl",C:[{N:"p.withCurrent",role:"match",C:[{N:"p.withPredicate",C:[{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}merge-source"},{N:"filter",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~", +line:"935",flags:"b",C:[{N:"axis",name:"following-sibling",nodeTest:"NE nQ{http://www.w3.org/1999/XSL/Transform}merge-source"},{N:"vc",op:"eq",onEmpty:"0",comp:"CCC",C:[{N:"cast",flags:"ae",as:"?AS",C:[{N:"data",diag:"1|0||=",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}name"}]}]},{N:"cast",flags:"ae",as:"?AS",C:[{N:"data",diag:"1|1||=",C:[{N:"slash",C:[{N:"treat",as:"N",diag:"1|0|XPTY0019|/",C:[{N:"varRef",name:"Q{http://www.w3.org/2005/xpath-functions}current",slot:"0"}]},{N:"axis",name:"attribute", +nodeTest:"NA nQ{}name"}]}]}]}]}]}]}]},{N:"ufCall",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"936",name:"Q{MyFunctions}syntax-error-at",tailCall:"false",bSlot:"20",eval:"0 16 16",C:[{N:"str",val:"XTSE3190"},{N:"fn",name:"concat",C:[{N:"str",val:"xsl:merge-source siblings cannot have the same name:"},{N:"attVal",name:"Q{}name",chk:"0"}]},{N:"dot",type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}merge-source"}]}]}, +{N:"templateRule",prec:"0",prio:"1.0",seq:"86",rank:"5",minImp:"0",slots:"1",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}output",flags:"s",line:"644",module:"normalize.xsl",C:[{N:"p.withPredicate",role:"match",C:[{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}output"},{N:"fn",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"644",name:"empty",C:[{N:"axis", +name:"attribute",nodeTest:"NA nQ{}build-tree"}]}]},{N:"let",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"645","var":"Q{}temp",as:"1NE",slot:"0",eval:"16",C:[{N:"treat",line:"646",as:"NE",diag:"3|0|XTTE0570|temp",C:[{N:"check",card:"1",diag:"3|0|XTTE0570|temp",C:[{N:"nextMatch",flags:"i"}]}]},{N:"forEach",line:"648",C:[{N:"varRef",name:"Q{}temp",slot:"0"},{N:"copy", +line:"650",flags:"cin",sit:"1NE",C:[{N:"sequence",role:"content",C:[{N:"forEach",C:[{N:"axis",name:"attribute",nodeTest:"NA"},{N:"compAtt",line:"651",flags:"l",C:[{N:"fn",role:"name",name:"name",C:[{N:"dot",type:"1NA"}]},{N:"convert",role:"namespace",from:"AU",to:"AS",C:[{N:"fn",name:"namespace-uri",C:[{N:"dot",type:"1NA"}]}]},{N:"fn",role:"select",name:"normalize-space",C:[{N:"cvUntyped",to:"AS",C:[{N:"data",diag:"0|0||fn:normalize-space",C:[{N:"dot",type:"1NA"}]}]}]}]}]},{N:"att",line:"653",name:"build-tree", +flags:"l",C:[{N:"convert",from:"AB",to:"AS",C:[{N:"or",op:"or",C:[{N:"fn",name:"empty",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}method"}]},{N:"gc",op:"=",card:"N:1",comp:"CCC",C:[{N:"literal",count:"4",C:[{N:"str",val:"xml"},{N:"str",val:"html"},{N:"str",val:"xhtml"},{N:"str",val:"text"}]},{N:"fn",name:"normalize-space",C:[{N:"cvUntyped",to:"AS",C:[{N:"attVal",name:"Q{}method",chk:"0"}]}]}]}]}]}]},{N:"axis",line:"654",name:"child",nodeTest:"N"}]}]}]}]}]},{N:"templateRule",prec:"0",prio:"0.5", +seq:"131",rank:"3",minImp:"0",slots:"0",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}perform-sort",flags:"s",line:"1001",module:"normalize.xsl",C:[{N:"p.withPredicate",role:"match",C:[{N:"p.withPredicate",C:[{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}perform-sort"},{N:"axis",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"1001",name:"attribute", +nodeTest:"NA nQ{}select"}]},{N:"fn",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"1001",name:"exists",C:[{N:"axis",name:"child",nodeTest:"NE d[NE,NE nQ{http://www.w3.org/1999/XSL/Transform}sort]"}]}]},{N:"ufCall",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~", +line:"1002",name:"Q{MyFunctions}syntax-error-at",tailCall:"false",bSlot:"21",eval:"0 16 16",C:[{N:"str",val:"XTSE1040"},{N:"fn",name:"concat",C:[{N:"fn",name:"name",C:[{N:"dot",type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}perform-sort"}]},{N:"str",val:" with @select must have no sequence constructor"}]},{N:"dot",type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}perform-sort"}]}]},{N:"templateRule",prec:"0",prio:"1.0",seq:"114",rank:"5",minImp:"0",slots:"0",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}merge", +flags:"s",line:"924",module:"normalize.xsl",C:[{N:"p.withPredicate",role:"match",C:[{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}merge"},{N:"fn",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"924",name:"empty",C:[{N:"axis",name:"child",nodeTest:"NE nQ{http://www.w3.org/1999/XSL/Transform}merge-source"}]}]},{N:"ufCall",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~", +line:"925",name:"Q{MyFunctions}syntax-error-at",tailCall:"false",bSlot:"22",eval:"0 16",C:[{N:"str",val:"xsl:merge must have at least one xsl:merge-source child"},{N:"dot",type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}merge"}]}]},{N:"templateRule",prec:"0",prio:"0.5",seq:"120",part:"1",rank:"3",minImp:"0",slots:"0",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}merge",flags:"s",line:"942",module:"normalize.xsl",C:[{N:"p.withPredicate",role:"match",C:[{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}merge"}, +{N:"fn",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"942",name:"empty",C:[{N:"axis",name:"child",nodeTest:"NE nQ{http://www.w3.org/1999/XSL/Transform}merge-action"}]}]},{N:"ufCall",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"943", +name:"Q{MyFunctions}syntax-error-at",tailCall:"false",bSlot:"11",eval:"0 16",C:[{N:"str",val:"xsl:merge must have exactly one xsl:merge-action child"},{N:"dot",type:"1NE"}]}]},{N:"templateRule",prec:"0",prio:"0.5",seq:"116",rank:"3",minImp:"0",slots:"0",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}merge",flags:"s",line:"930",module:"normalize.xsl",C:[{N:"p.withPredicate",role:"match",C:[{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}merge"},{N:"vc",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~", +line:"930",op:"ne",comp:"CAVC",C:[{N:"fn",name:"count",C:[{N:"fn",name:"distinct-values",C:[{N:"slash",C:[{N:"axis",name:"child",nodeTest:"NE nQ{http://www.w3.org/1999/XSL/Transform}merge-source"},{N:"fn",name:"count",C:[{N:"axis",name:"child",nodeTest:"NE nQ{http://www.w3.org/1999/XSL/Transform}merge-key"}]}]}]}]},{N:"int",val:"1"}]}]},{N:"ufCall",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~", +line:"931",name:"Q{MyFunctions}syntax-error-at",tailCall:"false",bSlot:"23",eval:"0 0 16",C:[{N:"str",val:"XTSE2200"},{N:"str",val:"xsl:merge-source siblings must have the same number of keys"},{N:"dot",type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}merge"}]}]},{N:"templateRule",prec:"0",prio:"0.5",seq:"134",rank:"3",minImp:"0",slots:"0",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}try",flags:"s",line:"1013",module:"normalize.xsl",C:[{N:"p.withPredicate",role:"match",C:[{N:"p.withPredicate", +C:[{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}try"},{N:"axis",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"1013",name:"attribute",nodeTest:"NA nQ{}select"}]},{N:"except",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"1013",op:"except", +C:[{N:"union",op:"|",C:[{N:"axis",name:"child",nodeTest:"NE"},{N:"filter",flags:"b",C:[{N:"axis",name:"child",nodeTest:"NT"},{N:"fn",name:"matches",C:[{N:"cvUntyped",to:"AS",C:[{N:"data",diag:"0|0||fn:matches",C:[{N:"dot",type:"1NT"}]}]},{N:"str",val:"\\S"},{N:"str",val:""}]}]}]},{N:"axis",name:"child",nodeTest:"NE u[NE nQ{http://www.w3.org/1999/XSL/Transform}catch,NE nQ{http://www.w3.org/1999/XSL/Transform}fallback]"}]}]},{N:"ufCall",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~", +line:"1014",name:"Q{MyFunctions}syntax-error-at",tailCall:"false",bSlot:"24",eval:"0 0 16",C:[{N:"str",val:"XTSE3140"},{N:"str",val:"xsl:try with @select may only have xsl:catch|xsl:fallback children"},{N:"dot",type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}try"}]}]},{N:"templateRule",prec:"0",prio:"0.5",seq:"77",rank:"3",minImp:"0",slots:"0",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}mode",flags:"s",line:"591",module:"normalize.xsl",C:[{N:"p.withPredicate",role:"match",C:[{N:"p.nodeTest", +test:"NE nQ{http://www.w3.org/1999/XSL/Transform}mode"},{N:"fn",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"591",name:"empty",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}name"}]}]},{N:"copy",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~", +line:"593",flags:"cin",sit:"1NE nQ{http://www.w3.org/1999/XSL/Transform}mode",C:[{N:"sequence",role:"content",C:[{N:"att",name:"name",flags:"l",C:[{N:"str",val:"#unnamed"}]},{N:"applyT",line:"594",flags:"c",bSlot:"-1",C:[{N:"axis",role:"select",name:"attribute",nodeTest:"NA"}]}]}]}]},{N:"templateRule",prec:"0",prio:"0.5",seq:"133",rank:"3",minImp:"0",slots:"0",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}template",flags:"s",line:"1009",module:"normalize.xsl",C:[{N:"p.withPredicate",role:"match", +C:[{N:"p.withPredicate",C:[{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}template"},{N:"fn",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"1009",name:"exists",C:[{N:"axis",name:"attribute",nodeTest:"NA u[NA nQ{}priority,NA nQ{}mode]"}]}]},{N:"fn",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~", +line:"1009",name:"empty",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}match"}]}]},{N:"ufCall",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"1010",name:"Q{MyFunctions}syntax-error-at",tailCall:"false",bSlot:"25",eval:"0 0 16",C:[{N:"str",val:"XTSE0500"},{N:"str",val:"xsl:template with @priority or @mode must have @match"},{N:"dot",type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}template"}]}]}, +{N:"templateRule",prec:"0",prio:"0.5",seq:"132",rank:"3",minImp:"0",slots:"0",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}template",flags:"s",line:"1005",module:"normalize.xsl",C:[{N:"p.withPredicate",role:"match",C:[{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}template"},{N:"fn",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"1005",name:"empty", +C:[{N:"axis",name:"attribute",nodeTest:"NA u[NA nQ{}name,NA nQ{}match]"}]}]},{N:"ufCall",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"1006",name:"Q{MyFunctions}syntax-error-at",tailCall:"false",bSlot:"26",eval:"0 0 16",C:[{N:"str",val:"XTSE0500"},{N:"str",val:"xsl:template must have at least one of @name or @match"},{N:"dot",type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}template"}]}]}, +{N:"templateRule",prec:"0",prio:"0.5",seq:"92",rank:"3",minImp:"0",slots:"2",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}template",flags:"s",line:"725",module:"normalize.xsl",C:[{N:"p.withPredicate",role:"match",C:[{N:"p.withPredicate",C:[{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}template"},{N:"axis",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"725", +name:"attribute",nodeTest:"NA nQ{}match"}]},{N:"fn",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"725",name:"empty",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}mode"}]}]},{N:"sequence",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"726", +C:[{N:"param",name:"Q{}default-mode",slot:"0",flags:"t",as:"?AS",C:[{N:"empty",role:"select"},{N:"treat",role:"conversion",as:"AS",diag:"8|0|XTTE0590|default-mode",C:[{N:"check",card:"?",diag:"8|0|XTTE0590|default-mode",C:[{N:"cvUntyped",to:"AS",diag:"8|0|XTTE0590|default-mode",C:[{N:"data",diag:"8|0|XTTE0590|default-mode",C:[{N:"supplied",slot:"0"}]}]}]}]}]},{N:"let",line:"727","var":"Q{}temp",as:"1NE",slot:"1",eval:"16",C:[{N:"treat",line:"728",as:"NE",diag:"3|0|XTTE0570|temp",C:[{N:"check",card:"1", +diag:"3|0|XTTE0570|temp",C:[{N:"nextMatch",flags:"i"}]}]},{N:"forEach",line:"730",C:[{N:"varRef",name:"Q{}temp",slot:"1"},{N:"copy",line:"732",flags:"cin",sit:"1NE",C:[{N:"sequence",role:"content",C:[{N:"applyT",flags:"c",bSlot:"-1",C:[{N:"axis",role:"select",name:"attribute",nodeTest:"NA"}]},{N:"att",line:"733",name:"mode",flags:"l",C:[{N:"first",C:[{N:"sequence",C:[{N:"varRef",name:"Q{}default-mode",slot:"0"},{N:"str",val:"#unnamed"}]}]}]},{N:"axis",line:"734",name:"child",nodeTest:"N"}]}]}]}]}]}]}, +{N:"templateRule",prec:"0",prio:"0.5",seq:"96",rank:"3",minImp:"0",slots:"0",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}accumulator",flags:"s",line:"850",module:"normalize.xsl",C:[{N:"p.withPredicate",role:"match",C:[{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}accumulator"},{N:"fn",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"850",name:"empty", +C:[{N:"axis",name:"child",nodeTest:"NE nQ{http://www.w3.org/1999/XSL/Transform}accumulator-rule"}]}]},{N:"ufCall",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"851",name:"Q{MyFunctions}missingChild",tailCall:"false",bSlot:"27",eval:"16 0",C:[{N:"dot",type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}accumulator"},{N:"str",val:"xsl:accumulator-rule"}]}]},{N:"templateRule", +prec:"0",prio:"0.5",seq:"98",rank:"3",minImp:"0",slots:"0",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}choose",flags:"s",line:"857",module:"normalize.xsl",C:[{N:"p.withPredicate",role:"match",C:[{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}choose"},{N:"fn",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"857",name:"empty",C:[{N:"axis",name:"child", +nodeTest:"NE nQ{http://www.w3.org/1999/XSL/Transform}when"}]}]},{N:"ufCall",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"858",name:"Q{MyFunctions}missingChild",tailCall:"false",bSlot:"28",eval:"16 0",C:[{N:"dot",type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}choose"},{N:"str",val:"xsl:when"}]}]},{N:"templateRule",prec:"0",prio:"0.5",seq:"97",rank:"3",minImp:"0", +slots:"0",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}choose",flags:"s",line:"854",module:"normalize.xsl",C:[{N:"p.withPredicate",role:"match",C:[{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}choose"},{N:"vc",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"854",op:"gt",comp:"CAVC",C:[{N:"fn",name:"count",C:[{N:"axis",name:"child",nodeTest:"NE nQ{http://www.w3.org/1999/XSL/Transform}otherwise"}]}, +{N:"int",val:"1"}]}]},{N:"ufCall",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"855",name:"Q{MyFunctions}syntax-error-at",tailCall:"false",bSlot:"29",eval:"0 16",C:[{N:"str",val:"xsl:choose may only have one xsl:otherwise child"},{N:"dot",type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}choose"}]}]},{N:"templateRule",prec:"0",prio:"1.0",seq:"89",rank:"5",minImp:"0", +slots:"1",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}param",flags:"s",line:"680",module:"normalize.xsl",C:[{N:"p.withPredicate",role:"match",C:[{N:"p.withPredicate",C:[{N:"p.withPredicate",C:[{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}param"},{N:"axis",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"680",name:"attribute",nodeTest:"NA nQ{}as"}]}, +{N:"fn",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"680",name:"not",C:[{N:"fn",name:"matches",C:[{N:"cvUntyped",to:"AS",C:[{N:"attVal",name:"Q{}as",chk:"0"}]},{N:"str",val:"\\?$|\\*$"},{N:"str",val:""}]}]}]},{N:"fn",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~", +line:"680",name:"empty",C:[{N:"sequence",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}select"},{N:"axis",name:"child",nodeTest:"N u[NT,NP,NE,NC]"}]}]}]},{N:"let",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"682","var":"Q{}temp",as:"1NE",slot:"0",eval:"16",C:[{N:"treat",line:"683",as:"NE",diag:"3|0|XTTE0570|temp",C:[{N:"check",card:"1",diag:"3|0|XTTE0570|temp", +C:[{N:"nextMatch",flags:"i"}]}]},{N:"forEach",line:"685",C:[{N:"varRef",name:"Q{}temp",slot:"0"},{N:"copy",line:"687",flags:"cin",sit:"1NE",C:[{N:"sequence",role:"content",C:[{N:"axis",name:"attribute",nodeTest:"NA"},{N:"att",line:"688",name:"ex:implicit-mandatory",nsuri:"http://ns.saxonica.com/xslt/export",flags:"l",C:[{N:"str",val:"true"}]},{N:"axis",line:"689",name:"child",nodeTest:"N"}]}]}]}]}]},{N:"templateRule",prec:"0",prio:"0.5",seq:"129",rank:"3",minImp:"0",slots:"0",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}param", +flags:"s",line:"997",module:"normalize.xsl",C:[{N:"p.withPredicate",role:"match",C:[{N:"p.withPredicate",C:[{N:"p.withPredicate",C:[{N:"p.withPredicate",C:[{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}param"},{N:"fn",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"997",name:"exists",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}required"}]}]},{N:"ufCall", +ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"997",name:"Q{MyFunctions}boolean-string",tailCall:"false",bSlot:"30",C:[{N:"check",card:"1",diag:"0|0||f:boolean-string",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}required"}]}]}]},{N:"or",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~", +line:"997",op:"or",C:[{N:"fn",name:"empty",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}static"}]},{N:"fn",name:"not",C:[{N:"ufCall",name:"Q{MyFunctions}boolean-string",tailCall:"false",bSlot:"31",C:[{N:"check",card:"1",diag:"0|0||f:boolean-string",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}static"}]}]}]}]}]},{N:"sequence",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"997", +C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}select"},{N:"axis",name:"child",nodeTest:"N u[NT,NP,NE,NC]"}]}]},{N:"ufCall",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"998",name:"Q{MyFunctions}syntax-error-at",tailCall:"false",bSlot:"32",eval:"0 16 16",C:[{N:"str",val:"XTSE0010"},{N:"fn",name:"concat",C:[{N:"str",val:"required xsl:param "},{N:"attVal",name:"Q{}name", +chk:"0"},{N:"str",val:" must not have a default value"}]},{N:"dot",type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}param"}]}]},{N:"templateRule",prec:"0",prio:"0.5",seq:"127",rank:"3",minImp:"0",slots:"2",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}param",flags:"s",line:"991",module:"normalize.xsl",C:[{N:"p.withCurrent",role:"match",C:[{N:"p.withPredicate",C:[{N:"p.withPredicate",C:[{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}param"},{N:"fn",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~", +line:"991",name:"not",C:[{N:"ufCall",name:"Q{MyFunctions}isTopLevel",tailCall:"false",bSlot:"33",C:[{N:"dot",type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}param"}]}]}]},{N:"filter",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"991",flags:"b",C:[{N:"axis",name:"preceding-sibling",nodeTest:"NE nQ{http://www.w3.org/1999/XSL/Transform}param"},{N:"vc",op:"eq",onEmpty:"0",comp:"CCC", +C:[{N:"cast",flags:"ae",as:"?AS",C:[{N:"data",diag:"1|0||=",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}name"}]}]},{N:"cast",flags:"ae",as:"?AS",C:[{N:"data",diag:"1|1||=",C:[{N:"slash",C:[{N:"treat",as:"N",diag:"1|0|XPTY0019|/",C:[{N:"varRef",name:"Q{http://www.w3.org/2005/xpath-functions}current",slot:"0"}]},{N:"axis",name:"attribute",nodeTest:"NA nQ{}name"}]}]}]}]}]}]}]},{N:"ufCall",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~", +line:"992",name:"Q{MyFunctions}syntax-error-at",tailCall:"false",bSlot:"34",eval:"0 16 16",C:[{N:"str",val:"XTSE0580"},{N:"fn",name:"concat",C:[{N:"str",val:"xsl:param siblings may not have the same @name: "},{N:"attVal",name:"Q{}name",chk:"0"}]},{N:"dot",type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}param"}]}]},{N:"templateRule",prec:"0",prio:"0.5",seq:"126",rank:"3",minImp:"0",slots:"0",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}param",flags:"s",line:"987",module:"normalize.xsl",C:[{N:"p.withPredicate", +role:"match",C:[{N:"p.withPredicate",C:[{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}param"},{N:"fn",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"987",name:"empty",C:[{N:"axis",name:"parent",nodeTest:"NE u[NE u[NE u[NE nQ{http://www.w3.org/1999/XSL/Transform}stylesheet,NE nQ{http://www.w3.org/1999/XSL/Transform}transform],NE nQ{http://www.w3.org/1999/XSL/Transform}package],NE nQ{http://www.w3.org/1999/XSL/Transform}template]"}]}]}, +{N:"filter",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"987",flags:"b",C:[{N:"axis",name:"preceding-sibling",nodeTest:"NE"},{N:"fn",name:"empty",C:[{N:"axis",name:"self",nodeTest:"NE nQ{http://www.w3.org/1999/XSL/Transform}param"}]}]}]},{N:"ufCall",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~", +line:"988",name:"Q{MyFunctions}syntax-error-at",tailCall:"false",bSlot:"35",eval:"16 16",C:[{N:"fn",name:"concat",C:[{N:"fn",name:"name",C:[{N:"dot",type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}param"}]},{N:"str",val:" as a child of "},{N:"fn",name:"name",C:[{N:"check",card:"?",diag:"0|0||fn:name",C:[{N:"axis",name:"parent",nodeTest:"NE"}]}]},{N:"str",val:" may only be preceded by "},{N:"fn",name:"name",C:[{N:"dot",type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}param"}]},{N:"str",val:"*"}]}, +{N:"dot",type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}param"}]}]},{N:"templateRule",prec:"0",prio:"0.5",seq:"125",rank:"3",minImp:"0",slots:"0",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}param",flags:"s",line:"980",module:"normalize.xsl",C:[{N:"p.withUpper",role:"match",axis:"parent",upFirst:"false",C:[{N:"p.withPredicate",C:[{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}param"},{N:"filter",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~", +line:"980",flags:"b",C:[{N:"axis",name:"preceding-sibling",nodeTest:"NE"},{N:"fn",name:"not",C:[{N:"union",op:"|",C:[{N:"axis",name:"self",nodeTest:"NE nQ{http://www.w3.org/1999/XSL/Transform}param"},{N:"axis",name:"self",nodeTest:"NE nQ{http://www.w3.org/1999/XSL/Transform}context-item"}]}]}]}]},{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}template"}]},{N:"ufCall",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~", +line:"983",name:"Q{MyFunctions}syntax-error-at",tailCall:"false",bSlot:"36",eval:"16 16",C:[{N:"fn",name:"concat",C:[{N:"fn",name:"name",C:[{N:"dot",type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}param"}]},{N:"str",val:" as a child of "},{N:"fn",name:"name",C:[{N:"check",card:"?",diag:"0|0||fn:name",C:[{N:"axis",name:"parent",nodeTest:"NE"}]}]},{N:"str",val:" may only be preceded by xsl:context-item?, xsl:param*"}]},{N:"dot",type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}param"}]}]},{N:"templateRule", +prec:"0",prio:"0.5",seq:"111",rank:"3",minImp:"0",slots:"0",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}param",flags:"s",line:"910",module:"normalize.xsl",C:[{N:"p.withUpper",role:"match",axis:"parent",upFirst:"false",C:[{N:"p.withPredicate",C:[{N:"p.withPredicate",C:[{N:"p.withPredicate",C:[{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}param"},{N:"axis",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~", +line:"910",name:"attribute",nodeTest:"NA nQ{}as"}]},{N:"fn",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"910",name:"empty",C:[{N:"union",op:"|",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}select"},{N:"axis",name:"child",nodeTest:"N u[NT,NP,NE,NC]"}]}]}]},{N:"fn",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~", +line:"910",name:"not",C:[{N:"or",op:"or",C:[{N:"fn",name:"ends-with",C:[{N:"fn",name:"normalize-space",C:[{N:"cvUntyped",to:"AS",C:[{N:"data",diag:"0|0||fn:normalize-space",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}as"}]}]}]},{N:"str",val:"?"}]},{N:"fn",name:"ends-with",C:[{N:"fn",name:"normalize-space",C:[{N:"cvUntyped",to:"AS",C:[{N:"data",diag:"0|0||fn:normalize-space",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}as"}]}]}]},{N:"str",val:"*"}]}]}]}]},{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}iterate"}]}, +{N:"sequence",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"912",C:[{N:"ufCall",name:"Q{MyFunctions}syntax-error-at",tailCall:"false",bSlot:"37",eval:"0 16 16",C:[{N:"str",val:"XTSE3520"},{N:"fn",name:"concat",C:[{N:"str",val:"Implicitly mandatory parameter $"},{N:"attVal",name:"Q{}name",chk:"0"},{N:"str",val:" of xsl:iterate must have a value initialisation"}]}, +{N:"dot",type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}param"}]},{N:"elem",line:"913",name:"empty",nsuri:"http://ns.saxonica.com/xslt/export",flags:"d",C:[{N:"empty"}]}]}]},{N:"templateRule",prec:"0",prio:"0.5",seq:"109",rank:"3",minImp:"0",slots:"0",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}param",flags:"s",line:"900",module:"normalize.xsl",C:[{N:"p.withUpper",role:"match",axis:"parent",upFirst:"false",C:[{N:"p.withPredicate",C:[{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}param"}, +{N:"sequence",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"900",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}select"},{N:"axis",name:"child",nodeTest:"N u[NT,NP,NE,NC]"}]}]},{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}function"}]},{N:"ufCall",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~", +line:"901",name:"Q{MyFunctions}syntax-error-at",tailCall:"false",bSlot:"38",eval:"0 0 16",C:[{N:"str",val:"XTSE0760"},{N:"str",val:"A function parameter must have no default value"},{N:"dot",type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}param"}]}]},{N:"templateRule",prec:"0",prio:"2.5",seq:"30",rank:"10",minImp:"0",slots:"3",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}otherwise",flags:"s",line:"27",module:"normalize4.xsl",C:[{N:"p.withPredicate",role:"match",C:[{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}otherwise"}, +{N:"let",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"27","var":"Q{}instruction",as:"1NE",slot:"0",eval:"16",C:[{N:"dot",type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}otherwise"},{N:"and",line:"24",op:"and",C:[{N:"fn",name:"exists",C:[{N:"slash",simple:"1",C:[{N:"varRef",name:"Q{}instruction",slot:"0"},{N:"axis",name:"attribute",nodeTest:"NA nQ{}select"}]}]},{N:"fn", +name:"exists",C:[{N:"slash",C:[{N:"varRef",name:"Q{}instruction",slot:"0"},{N:"sequence",C:[{N:"axis",name:"child",nodeTest:"NE d[NE,NE nQ{http://www.w3.org/1999/XSL/Transform}fallback]"},{N:"filter",flags:"b",C:[{N:"axis",name:"child",nodeTest:"NT"},{N:"fn",name:"boolean",C:[{N:"fn",name:"normalize-space",C:[{N:"fn",name:"string",C:[{N:"dot",type:"1NT"}]}]}]}]}]}]}]}]}]}]},{N:"sequence",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~", +line:"28",C:[{N:"param",name:"Q{}allowSyntaxExtensions",slot:"0",flags:"t",C:[{N:"false",role:"select"},{N:"supplied",role:"conversion",slot:"0"}]},{N:"choose",line:"30",C:[{N:"varRef",name:"Q{}allowSyntaxExtensions",slot:"0"},{N:"ufCall",line:"31",name:"Q{MyFunctions}syntax-error-at",tailCall:"false",bSlot:"39",eval:"0 16 16",C:[{N:"str",val:"XTSE0090"},{N:"fn",name:"concat",C:[{N:"fn",name:"name",C:[{N:"dot",type:"1NE"}]},{N:"str",val:" cannot have both @select and content"}]},{N:"dot",type:"1NE"}]}, +{N:"true"},{N:"nextMatch",line:"34",flags:"t"}]}]}]},{N:"templateRule",prec:"0",prio:"0.5",seq:"123",rank:"3",minImp:"0",slots:"0",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}otherwise",flags:"s",line:"953",module:"normalize.xsl",C:[{N:"p.withPredicate",role:"match",C:[{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}otherwise"},{N:"fn",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~", +line:"953",name:"exists",C:[{N:"axis",name:"following-sibling",nodeTest:"NE"}]}]},{N:"ufCall",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"954",name:"Q{MyFunctions}syntax-error-at",tailCall:"false",bSlot:"40",eval:"0 16",C:[{N:"str",val:"xsl:otherwise must be the last child of xsl:choose"},{N:"dot",type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}otherwise"}]}]}, +{N:"templateRule",prec:"0",prio:"2.5",seq:"31",rank:"10",minImp:"0",slots:"1",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}if",flags:"s",line:"39",module:"normalize4.xsl",C:[{N:"p.withPredicate",role:"match",C:[{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}if"},{N:"and",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"39",op:"and",C:[{N:"fn",name:"exists", +C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}then"}]},{N:"fn",name:"exists",C:[{N:"sequence",C:[{N:"axis",name:"child",nodeTest:"NE d[NE,NE nQ{http://www.w3.org/1999/XSL/Transform}fallback]"},{N:"filter",flags:"b",C:[{N:"axis",name:"child",nodeTest:"NT"},{N:"fn",name:"boolean",C:[{N:"fn",name:"normalize-space",C:[{N:"fn",name:"string",C:[{N:"dot",type:"1NT"}]}]}]}]}]}]}]}]},{N:"sequence",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~", +line:"40",C:[{N:"param",name:"Q{}allowSyntaxExtensions",slot:"0",flags:"t",C:[{N:"false",role:"select"},{N:"supplied",role:"conversion",slot:"0"}]},{N:"choose",line:"42",C:[{N:"varRef",name:"Q{}allowSyntaxExtensions",slot:"0"},{N:"ufCall",line:"43",name:"Q{MyFunctions}syntax-error-at",tailCall:"false",bSlot:"41",eval:"0 16 16",C:[{N:"str",val:"XTSE0010"},{N:"fn",name:"concat",C:[{N:"fn",name:"name",C:[{N:"dot",type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}if"}]},{N:"str",val:" cannot have both @then and content"}]}, +{N:"dot",type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}if"}]},{N:"true"},{N:"nextMatch",line:"46",flags:"t"}]}]}]},{N:"templateRule",prec:"0",prio:"2.5",seq:"30",rank:"10",minImp:"0",slots:"3",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}when",flags:"s",line:"27",module:"normalize4.xsl",C:[{N:"p.withPredicate",role:"match",C:[{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}when"},{N:"let",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~", +line:"27","var":"Q{}instruction",as:"1NE",slot:"0",eval:"16",C:[{N:"dot",type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}when"},{N:"and",line:"24",op:"and",C:[{N:"fn",name:"exists",C:[{N:"slash",simple:"1",C:[{N:"varRef",name:"Q{}instruction",slot:"0"},{N:"axis",name:"attribute",nodeTest:"NA nQ{}select"}]}]},{N:"fn",name:"exists",C:[{N:"slash",C:[{N:"varRef",name:"Q{}instruction",slot:"0"},{N:"sequence",C:[{N:"axis",name:"child",nodeTest:"NE d[NE,NE nQ{http://www.w3.org/1999/XSL/Transform}fallback]"}, +{N:"filter",flags:"b",C:[{N:"axis",name:"child",nodeTest:"NT"},{N:"fn",name:"boolean",C:[{N:"fn",name:"normalize-space",C:[{N:"fn",name:"string",C:[{N:"dot",type:"1NT"}]}]}]}]}]}]}]}]}]}]},{N:"sequence",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"28",C:[{N:"param",name:"Q{}allowSyntaxExtensions",slot:"0",flags:"t",C:[{N:"false",role:"select"},{N:"supplied", +role:"conversion",slot:"0"}]},{N:"choose",line:"30",C:[{N:"varRef",name:"Q{}allowSyntaxExtensions",slot:"0"},{N:"ufCall",line:"31",name:"Q{MyFunctions}syntax-error-at",tailCall:"false",bSlot:"39",eval:"0 16 16",C:[{N:"str",val:"XTSE0090"},{N:"fn",name:"concat",C:[{N:"fn",name:"name",C:[{N:"dot",type:"1NE"}]},{N:"str",val:" cannot have both @select and content"}]},{N:"dot",type:"1NE"}]},{N:"true"},{N:"nextMatch",line:"34",flags:"t"}]}]}]},{N:"templateRule",prec:"0",prio:"0.0",seq:"105",rank:"2",minImp:"0", +slots:"0",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}expose",flags:"s",line:"880",module:"normalize.xsl",C:[{N:"p.nodeTest",role:"match",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}expose"},{N:"ufCall",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"881",name:"Q{MyFunctions}syntax-error-at",tailCall:"false",bSlot:"42",eval:"0 0 16",C:[{N:"str",val:"XTSE3000"}, +{N:"str",val:"xsl:expose - not currently supported"},{N:"dot",type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}expose"}]}]},{N:"templateRule",prec:"0",prio:"0.5",seq:"113",rank:"3",minImp:"0",slots:"1",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}key",flags:"s",line:"919",module:"normalize.xsl",C:[{N:"p.withPredicate",role:"match",C:[{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}key"},{N:"filter",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~", +line:"919",flags:"b",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}collation"},{N:"fn",name:"not",C:[{N:"let",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~","var":"Q{}uri",as:"1AS",slot:"0",eval:"8",C:[{N:"cvUntyped",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~", +to:"AS",C:[{N:"data",diag:"0|0||f:isKnownCollation",C:[{N:"dot",type:"1NA nQ{}collation"}]}]},{N:"or",module:"sorting.xsl",line:"21",op:"or",C:[{N:"gc",op:"=",card:"N:1",comp:"CCC",C:[{N:"sequence",C:[{N:"gVarRef",name:"Q{}codepoint.collation",bSlot:"43"},{N:"gVarRef",name:"Q{}html-ascii-case-insensitive.collation",bSlot:"44"}]},{N:"varRef",name:"Q{}uri",slot:"0"}]},{N:"fn",name:"starts-with",C:[{N:"varRef",name:"Q{}uri",slot:"0"},{N:"str",val:"http://www.w3.org/2013/collation/UCA"}]}]}]}]}]}]},{N:"ufCall", +role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"921",name:"Q{MyFunctions}syntax-error-at",tailCall:"false",bSlot:"45",eval:"0 16 16",C:[{N:"str",val:"XTSE1210"},{N:"fn",name:"concat",C:[{N:"fn",name:"name",C:[{N:"dot",type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}key"}]},{N:"str",val:" uses unknown collation: "},{N:"attVal",name:"Q{}collation",chk:"0"}]},{N:"check", +card:"1",diag:"0|2||f:syntax-error-at",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}collation"}]}]}]},{N:"templateRule",prec:"0",prio:"0.5",seq:"112",part:"1",rank:"3",minImp:"0",slots:"0",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}key",flags:"s",line:"916",module:"normalize.xsl",C:[{N:"p.withPredicate",role:"match",C:[{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}key"},{N:"fn",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~", +line:"916",name:"empty",C:[{N:"sequence",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}use"},{N:"axis",name:"child",nodeTest:"N u[NT,NP,NE,NC]"}]}]}]},{N:"ufCall",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"917",name:"Q{MyFunctions}syntax-error-at",tailCall:"false",bSlot:"46",eval:"0 16 16",C:[{N:"str",val:"XTSE1205"},{N:"fn",name:"concat",C:[{N:"fn",name:"name", +C:[{N:"dot",type:"1NE"}]},{N:"str",val:" must have just one of @use or content"}]},{N:"dot",type:"1NE"}]}]},{N:"templateRule",prec:"0",prio:"0.5",seq:"112",rank:"3",minImp:"0",slots:"0",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}key",flags:"s",line:"916",module:"normalize.xsl",C:[{N:"p.withPredicate",role:"match",C:[{N:"p.withPredicate",C:[{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}key"},{N:"axis",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~", +line:"916",name:"attribute",nodeTest:"NA nQ{}use"}]},{N:"axis",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"916",name:"child",nodeTest:"N u[NT,NP,NE,NC]"}]},{N:"ufCall",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"917",name:"Q{MyFunctions}syntax-error-at", +tailCall:"false",bSlot:"46",eval:"0 16 16",C:[{N:"str",val:"XTSE1205"},{N:"fn",name:"concat",C:[{N:"fn",name:"name",C:[{N:"dot",type:"1NE"}]},{N:"str",val:" must have just one of @use or content"}]},{N:"dot",type:"1NE"}]}]},{N:"templateRule",prec:"0",prio:"0.5",seq:"102",rank:"3",minImp:"0",slots:"0",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}context-item",flags:"s",line:"870",module:"normalize.xsl",C:[{N:"p.withUpper",role:"match",axis:"parent",upFirst:"false",C:[{N:"p.withPredicate",C:[{N:"p.nodeTest", +test:"NE nQ{http://www.w3.org/1999/XSL/Transform}context-item"},{N:"vc",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"870",op:"eq",onEmpty:"0",comp:"CCC",C:[{N:"fn",name:"normalize-space",C:[{N:"cvUntyped",to:"AS",C:[{N:"data",diag:"0|0||fn:normalize-space",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}use"}]}]}]},{N:"str",val:"absent"}]}]},{N:"p.withPredicate",C:[{N:"p.nodeTest", +test:"NE nQ{http://www.w3.org/1999/XSL/Transform}template"},{N:"fn",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"870",name:"empty",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}name"}]}]}]},{N:"ufCall",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~", +line:"871",name:"Q{MyFunctions}syntax-error-at",tailCall:"false",bSlot:"47",eval:"0 16 16",C:[{N:"str",val:"XTSE0020"},{N:"fn",name:"concat",C:[{N:"fn",name:"name",C:[{N:"dot",type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}context-item"}]},{N:"str",val:" of a purely template rule cannot have @use=absent"}]},{N:"dot",type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}context-item"}]}]},{N:"templateRule",prec:"0",prio:"0.5",seq:"100",rank:"3",minImp:"0",slots:"0",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}context-item", +flags:"s",line:"864",module:"normalize.xsl",C:[{N:"p.withPredicate",role:"match",C:[{N:"p.withPredicate",C:[{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}context-item"},{N:"axis",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"864",name:"attribute",nodeTest:"NA nQ{}as"}]},{N:"vc",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~", +line:"864",op:"eq",onEmpty:"0",comp:"CCC",C:[{N:"fn",name:"normalize-space",C:[{N:"cvUntyped",to:"AS",C:[{N:"attVal",name:"Q{}use",chk:"0"}]}]},{N:"str",val:"absent"}]}]},{N:"ufCall",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"865",name:"Q{MyFunctions}syntax-error-at",tailCall:"false",bSlot:"48",eval:"0 16 16",C:[{N:"str",val:"XTSE3088"},{N:"fn",name:"concat", +C:[{N:"fn",name:"name",C:[{N:"dot",type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}context-item"}]},{N:"str",val:" cannot have @as with @use=absent"}]},{N:"dot",type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}context-item"}]}]},{N:"templateRule",prec:"0",prio:"0.5",seq:"99",rank:"3",minImp:"0",slots:"0",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}context-item",flags:"s",line:"861",module:"normalize.xsl",C:[{N:"p.withPredicate",role:"match",C:[{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}context-item"}, +{N:"sequence",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"861",C:[{N:"fn",name:"reverse",C:[{N:"axis",name:"preceding-sibling",nodeTest:"NE"}]},{N:"fn",name:"reverse",C:[{N:"filter",flags:"b",C:[{N:"axis",name:"preceding-sibling",nodeTest:"NT"},{N:"fn",name:"matches",C:[{N:"cvUntyped",to:"AS",C:[{N:"data",diag:"0|0||fn:matches",C:[{N:"dot",type:"1NT"}]}]},{N:"str",val:"\\S"}, +{N:"str",val:""}]}]}]}]}]},{N:"ufCall",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"862",name:"Q{MyFunctions}syntax-error-at",tailCall:"false",bSlot:"49",eval:"16 16",C:[{N:"fn",name:"concat",C:[{N:"fn",name:"name",C:[{N:"dot",type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}context-item"}]},{N:"str",val:" as a child of "},{N:"fn",name:"name",C:[{N:"check", +card:"?",diag:"0|0||fn:name",C:[{N:"axis",name:"parent",nodeTest:"NE"}]}]},{N:"str",val:" may have no preceding sibling nodes"}]},{N:"dot",type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}context-item"}]}]},{N:"templateRule",prec:"0",prio:"1.0",seq:"70",rank:"5",minImp:"0",slots:"0",matches:"NA nQ{http://ns.saxonica.com/xslt/export}*",flags:"s",line:"538",module:"normalize.xsl",C:[{N:"p.withUpper",role:"match",axis:"parent",upFirst:"false",C:[{N:"p.nodeTest",test:"NA nQ{http://ns.saxonica.com/xslt/export}*"}, +{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}*"}]},{N:"dot",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"539",type:"1NA nQ{http://ns.saxonica.com/xslt/export}*"}]},{N:"templateRule",prec:"0",prio:"0.5",seq:"71",rank:"3",minImp:"0",slots:"1",matches:"NA",flags:"s",line:"541",module:"normalize.xsl",C:[{N:"p.withUpper",role:"match",axis:"parent", +upFirst:"false",C:[{N:"p.nodeTest",test:"NA"},{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}*"}]},{N:"sequence",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"542",C:[{N:"param",name:"Q{}forward-compatibility-mode",slot:"0",flags:"t",as:"1AB",C:[{N:"false",role:"select"},{N:"treat",role:"conversion",as:"AB",diag:"8|0|XTTE0590|forward-compatibility-mode", +C:[{N:"check",card:"1",diag:"8|0|XTTE0590|forward-compatibility-mode",C:[{N:"cvUntyped",to:"AB",diag:"8|0|XTTE0590|forward-compatibility-mode",C:[{N:"data",diag:"8|0|XTTE0590|forward-compatibility-mode",C:[{N:"supplied",slot:"0"}]}]}]}]}]},{N:"choose",line:"544",C:[{N:"varRef",name:"Q{}forward-compatibility-mode",slot:"0"},{N:"choose",line:"548",C:[{N:"gc",line:"545",op:"=",card:"N:1",comp:"CCC",C:[{N:"sequence",C:[{N:"treat",as:"AS",diag:"3|0|XTTE0570|pa.names",C:[{N:"cvUntyped",to:"AS",diag:"3|0|XTTE0570|pa.names", +C:[{N:"ifCall",name:"Q{http://www.w3.org/2005/xpath-functions/map}keys",type:"*A",C:[{N:"treat",as:"FM",diag:"3|0|XTTE0570|permitted.attributes",C:[{N:"check",card:"1",diag:"3|0|XTTE0570|permitted.attributes",C:[{N:"lookup",C:[{N:"treat",as:"FM",diag:"3|0|XTTE0570|schema",C:[{N:"check",card:"?",diag:"3|0|XTTE0570|schema",C:[{N:"ifCall",name:"Q{http://www.w3.org/2005/xpath-functions/map}get",type:"*",C:[{N:"gVarRef",name:"Q{}xslt.schema",bSlot:"50"},{N:"fn",name:"local-name",C:[{N:"check",card:"?", +diag:"0|0||fn:local-name",C:[{N:"axis",name:"parent",nodeTest:"N u[NE,ND]"}]}]}]}]}]},{N:"str",val:"permitted.attributes"}]}]}]}]}]}]},{N:"cvUntyped",line:"547",to:"AS",diag:"3|0|XTTE0570|pa.names",C:[{N:"data",diag:"3|0|XTTE0570|pa.names",C:[{N:"gVarRef",name:"Q{}standard.attributes",bSlot:"51"}]}]}]},{N:"fn",line:"548",name:"name",C:[{N:"dot",type:"1NA"}]}]},{N:"nextMatch",line:"549",flags:"t"}]},{N:"true"},{N:"nextMatch",line:"553",flags:"t"}]}]}]},{N:"templateRule",prec:"0",prio:"0.5",seq:"68", +rank:"3",minImp:"0",slots:"0",matches:"NA",flags:"s",line:"525",module:"normalize.xsl",C:[{N:"p.withPredicate",role:"match",C:[{N:"p.withPredicate",C:[{N:"p.venn",op:"union",C:[{N:"p.venn",op:"union",C:[{N:"p.venn",op:"union",C:[{N:"p.venn",op:"union",C:[{N:"p.venn",op:"union",C:[{N:"p.venn",op:"union",C:[{N:"p.venn",op:"union",C:[{N:"p.nodeTest",test:"NA nQ{}build-tree"},{N:"p.nodeTest",test:"NA nQ{}byte-order-mark"}]},{N:"p.nodeTest",test:"NA nQ{}escape-uri-attributes"}]},{N:"p.nodeTest",test:"NA nQ{}include-content-type"}]}, +{N:"p.nodeTest",test:"NA nQ{}indent"}]},{N:"p.nodeTest",test:"NA nQ{}omit-xml-declaration"}]},{N:"p.withPredicate",C:[{N:"p.nodeTest",test:"NA nQ{}standalone"},{N:"fn",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"525",name:"not",C:[{N:"vc",op:"eq",onEmpty:"0",comp:"CCC",C:[{N:"cast",flags:"a",as:"1AS",C:[{N:"data",diag:"1|0||=",C:[{N:"dot",type:"1NA nQ{}standalone"}]}]}, +{N:"str",val:"omit"}]}]}]}]},{N:"p.nodeTest",test:"NA nQ{}undeclare-prefixes"}]},{N:"filter",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"525",flags:"b",C:[{N:"axis",name:"parent",nodeTest:"N u[NE,ND]"},{N:"fn",name:"exists",C:[{N:"sequence",C:[{N:"axis",name:"self",nodeTest:"NE nQ{http://www.w3.org/1999/XSL/Transform}output"},{N:"axis",name:"self",nodeTest:"NE nQ{http://www.w3.org/1999/XSL/Transform}result-document"}]}]}]}]}, +{N:"fn",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"525",name:"not",C:[{N:"fn",name:"contains",C:[{N:"cvUntyped",to:"AS",C:[{N:"data",diag:"0|0||fn:contains",C:[{N:"dot",type:"1NA"}]}]},{N:"str",val:"{"}]}]}]},{N:"compAtt",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~", +line:"531",C:[{N:"fn",role:"name",name:"name",C:[{N:"dot",type:"1NA"}]},{N:"choose",role:"select",C:[{N:"ufCall",name:"Q{MyFunctions}boolean-string",tailCall:"false",bSlot:"52",eval:"16",C:[{N:"dot",type:"1NA"}]},{N:"str",val:"yes"},{N:"true"},{N:"str",val:"no"}]}]}]},{N:"templateRule",prec:"0",prio:"0.5",seq:"54",rank:"3",minImp:"0",slots:"1",matches:"NA nQ{http://www.w3.org/1999/XSL/Transform}*",flags:"s",line:"370",module:"normalize.xsl",C:[{N:"p.withUpper",role:"match",axis:"parent",upFirst:"false", +C:[{N:"p.nodeTest",test:"NA nQ{http://www.w3.org/1999/XSL/Transform}*"},{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}*"}]},{N:"sequence",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"371",C:[{N:"param",name:"Q{}forward-compatibility-mode",slot:"0",flags:"t",as:"1AB",C:[{N:"false",role:"select"},{N:"treat",role:"conversion",as:"AB",diag:"8|0|XTTE0590|forward-compatibility-mode", +C:[{N:"check",card:"1",diag:"8|0|XTTE0590|forward-compatibility-mode",C:[{N:"cvUntyped",to:"AB",diag:"8|0|XTTE0590|forward-compatibility-mode",C:[{N:"data",diag:"8|0|XTTE0590|forward-compatibility-mode",C:[{N:"supplied",slot:"0"}]}]}]}]}]},{N:"ufCall",line:"372",name:"Q{MyFunctions}syntax-error-at",tailCall:"false",bSlot:"53",eval:"0 16 16",C:[{N:"str",val:"XTSE0090"},{N:"fn",name:"concat",C:[{N:"fn",name:"name",C:[{N:"check",card:"?",diag:"0|0||fn:name",C:[{N:"axis",name:"parent",nodeTest:"N u[NE,ND]"}]}]}, +{N:"str",val:" cannot have attribute "},{N:"fn",name:"name",C:[{N:"dot",type:"1NA nQ{http://www.w3.org/1999/XSL/Transform}*"}]},{N:"str",val:" in the XSLT namespace"}]},{N:"dot",type:"1NA nQ{http://www.w3.org/1999/XSL/Transform}*"}]}]}]},{N:"templateRule",prec:"0",prio:"-0.25",seq:"53",rank:"1",minImp:"0",slots:"1",matches:"NA nQ{http://www.w3.org/1999/XSL/Transform}*",flags:"s",line:"360",module:"normalize.xsl",C:[{N:"p.nodeTest",role:"match",test:"NA nQ{http://www.w3.org/1999/XSL/Transform}*"}, +{N:"sequence",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"361",C:[{N:"param",name:"Q{}forward-compatibility-mode",slot:"0",flags:"t",as:"1AB",C:[{N:"false",role:"select"},{N:"treat",role:"conversion",as:"AB",diag:"8|0|XTTE0590|forward-compatibility-mode",C:[{N:"check",card:"1",diag:"8|0|XTTE0590|forward-compatibility-mode",C:[{N:"cvUntyped",to:"AB",diag:"8|0|XTTE0590|forward-compatibility-mode", +C:[{N:"data",diag:"8|0|XTTE0590|forward-compatibility-mode",C:[{N:"supplied",slot:"0"}]}]}]}]}]},{N:"choose",line:"368",C:[{N:"varRef",name:"Q{}forward-compatibility-mode",slot:"0"},{N:"empty"},{N:"true"},{N:"ufCall",name:"Q{MyFunctions}syntax-error-at",tailCall:"false",bSlot:"54",eval:"0 16 16",C:[{N:"str",val:"XTSE0805"},{N:"fn",name:"concat",C:[{N:"fn",name:"name",C:[{N:"dot",type:"1NA nQ{http://www.w3.org/1999/XSL/Transform}*"}]},{N:"str",val:" is not a permitted attribute in the XSLT namespace"}]}, +{N:"dot",type:"1NA nQ{http://www.w3.org/1999/XSL/Transform}*"}]}]}]}]},{N:"templateRule",prec:"0",prio:"0.0",seq:"50",part:"1",rank:"2",minImp:"0",slots:"0",matches:"NA nQ{http://www.w3.org/1999/XSL/Transform}extension-element-prefixes",flags:"s",line:"319",module:"normalize.xsl",C:[{N:"p.nodeTest",role:"match",test:"NA nQ{http://www.w3.org/1999/XSL/Transform}extension-element-prefixes"},{N:"dot",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~", +line:"329",type:"1NA"}]},{N:"templateRule",prec:"0",prio:"0.5",seq:"84",rank:"3",minImp:"0",slots:"1",matches:"NA nQ{}start-at",flags:"s",line:"632",module:"normalize.xsl",C:[{N:"p.withUpper",role:"match",axis:"parent",upFirst:"false",C:[{N:"p.nodeTest",test:"NA nQ{}start-at"},{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}number"}]},{N:"let",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~", +line:"633","var":"Q{}value",as:"1AS",slot:"0",eval:"8",C:[{N:"fn",name:"normalize-space",C:[{N:"cvUntyped",to:"AS",C:[{N:"data",diag:"0|0||fn:normalize-space",C:[{N:"dot",type:"1NA nQ{}start-at"}]}]}]},{N:"sequence",line:"634",C:[{N:"choose",C:[{N:"and",op:"and",C:[{N:"fn",name:"not",C:[{N:"fn",name:"contains",C:[{N:"varRef",name:"Q{}value",slot:"0"},{N:"str",val:"{"}]}]},{N:"fn",name:"not",C:[{N:"fn",name:"matches",C:[{N:"varRef",name:"Q{}value",slot:"0"},{N:"str",val:"-?[0-9]+(\\s+-?[0-9]+)*"}, +{N:"str",val:""}]}]}]},{N:"ufCall",line:"635",name:"Q{MyFunctions}syntax-error-at",tailCall:"false",bSlot:"55",eval:"0 0 16",C:[{N:"str",val:"XTSE0020"},{N:"str",val:"Value must be numeric"},{N:"dot",type:"1NA nQ{}start-at"}]}]},{N:"dot",line:"637",type:"1NA nQ{}start-at"}]}]}]},{N:"templateRule",prec:"0",prio:"1.0",seq:"82",rank:"5",minImp:"0",slots:"0",matches:"NA nQ{}result-prefix",flags:"s",line:"619",module:"normalize.xsl",C:[{N:"p.withUpper",role:"match",axis:"parent",upFirst:"false",C:[{N:"p.withPredicate", +C:[{N:"p.nodeTest",test:"NA nQ{}result-prefix"},{N:"vc",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"619",op:"eq",comp:"CCC",C:[{N:"data",diag:"1|0||eq",C:[{N:"dot",type:"1NA nQ{}result-prefix"}]},{N:"str",val:"#default"}]}]},{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}namespace-alias"}]},{N:"dot",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~", +line:"620",type:"1NA"}]},{N:"templateRule",prec:"0",prio:"0.5",seq:"83",part:"1",rank:"3",minImp:"0",slots:"0",matches:"NA nQ{}result-prefix",flags:"s",line:"627",module:"normalize.xsl",C:[{N:"p.withUpper",role:"match",axis:"parent",upFirst:"false",C:[{N:"p.withPredicate",C:[{N:"p.nodeTest",test:"NA nQ{}result-prefix"},{N:"fn",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"627", +name:"empty",C:[{N:"fn",name:"namespace-uri-for-prefix",C:[{N:"cvUntyped",to:"AS",C:[{N:"data",diag:"0|0||fn:namespace-uri-for-prefix",C:[{N:"dot",type:"1NA nQ{}result-prefix"}]}]},{N:"check",card:"1",diag:"0|1||fn:namespace-uri-for-prefix",C:[{N:"axis",name:"parent",nodeTest:"N u[NE,ND]"}]}]}]}]},{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}namespace-alias"}]},{N:"sequence",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~", +line:"628",C:[{N:"ufCall",name:"Q{MyFunctions}syntax-error-at",tailCall:"false",bSlot:"56",eval:"0 16 16",C:[{N:"str",val:"XTSE0812"},{N:"fn",name:"concat",C:[{N:"str",val:"Undeclared namespace prefix - "},{N:"atomSing",card:"?",diag:"0|1||fn:concat",C:[{N:"dot",type:"1NA"}]}]},{N:"dot",type:"1NA"}]},{N:"dot",line:"629",type:"1NA"}]}]},{N:"templateRule",prec:"0",prio:"0.5",seq:"67",part:"3",rank:"3",minImp:"0",slots:"0",matches:"NA nQ{}composite",flags:"s",line:"517",module:"normalize.xsl",C:[{N:"p.withUpper", +role:"match",axis:"parent",upFirst:"false",C:[{N:"p.nodeTest",test:"NA nQ{}composite"},{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}key"}]},{N:"compAtt",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"518",C:[{N:"fn",role:"name",name:"name",C:[{N:"dot",type:"1NA"}]},{N:"ufCall",role:"select",name:"Q{MyFunctions}normalize-boolean",tailCall:"false", +bSlot:"57",eval:"16",C:[{N:"dot",type:"1NA"}]}]}]},{N:"templateRule",prec:"0",prio:"0.5",seq:"46",part:"1",rank:"3",minImp:"0",slots:"0",matches:"NA nQ{}default-mode",flags:"s",line:"273",module:"normalize.xsl",C:[{N:"p.withUpper",role:"match",axis:"parent",upFirst:"false",C:[{N:"p.nodeTest",test:"NA nQ{}default-mode"},{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}*"}]},{N:"compAtt",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~", +line:"280",C:[{N:"fn",role:"name",name:"name",C:[{N:"dot",type:"1NA"}]},{N:"convert",role:"namespace",from:"AU",to:"AS",C:[{N:"fn",name:"namespace-uri",C:[{N:"dot",type:"1NA"}]}]},{N:"choose",role:"select",C:[{N:"vc",op:"eq",onEmpty:"0",comp:"CCC",C:[{N:"fn",name:"normalize-space",C:[{N:"cvUntyped",to:"AS",C:[{N:"data",diag:"0|0||fn:normalize-space",C:[{N:"dot",type:"1NA"}]}]}]},{N:"str",val:"#unnamed"}]},{N:"str",val:"#unnamed"},{N:"true"},{N:"ufCall",name:"Q{MyFunctions}EQName",tailCall:"false", +bSlot:"58",eval:"16 16 0",C:[{N:"cvUntyped",to:"AS",C:[{N:"data",diag:"0|0||f:EQName",C:[{N:"dot",type:"1NA"}]}]},{N:"check",card:"1",diag:"0|1||f:EQName",C:[{N:"axis",name:"parent",nodeTest:"N u[NE,ND]"}]},{N:"str",val:"XTSE0020"}]}]}]}]},{N:"templateRule",prec:"0",prio:"0.5",seq:"67",part:"6",rank:"3",minImp:"0",slots:"0",matches:"NA nQ{}expand-text",flags:"s",line:"517",module:"normalize.xsl",C:[{N:"p.withUpper",role:"match",axis:"parent",upFirst:"false",C:[{N:"p.nodeTest",test:"NA nQ{}expand-text"}, +{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}*"}]},{N:"compAtt",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"518",C:[{N:"fn",role:"name",name:"name",C:[{N:"dot",type:"1NA"}]},{N:"ufCall",role:"select",name:"Q{MyFunctions}normalize-boolean",tailCall:"false",bSlot:"57",eval:"16",C:[{N:"dot",type:"1NA"}]}]}]},{N:"templateRule",prec:"0",prio:"0.5", +seq:"67",part:"11",rank:"3",minImp:"0",slots:"0",matches:"NA nQ{}inherit-namespaces",flags:"s",line:"517",module:"normalize.xsl",C:[{N:"p.withUpper",role:"match",axis:"parent",upFirst:"false",C:[{N:"p.nodeTest",test:"NA nQ{}inherit-namespaces"},{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}element"}]},{N:"compAtt",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~", +line:"518",C:[{N:"fn",role:"name",name:"name",C:[{N:"dot",type:"1NA"}]},{N:"ufCall",role:"select",name:"Q{MyFunctions}normalize-boolean",tailCall:"false",bSlot:"57",eval:"16",C:[{N:"dot",type:"1NA"}]}]}]},{N:"templateRule",prec:"0",prio:"0.5",seq:"67",part:"10",rank:"3",minImp:"0",slots:"0",matches:"NA nQ{}inherit-namespaces",flags:"s",line:"517",module:"normalize.xsl",C:[{N:"p.withUpper",role:"match",axis:"parent",upFirst:"false",C:[{N:"p.nodeTest",test:"NA nQ{}inherit-namespaces"},{N:"p.nodeTest", +test:"NE nQ{http://www.w3.org/1999/XSL/Transform}copy"}]},{N:"compAtt",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"518",C:[{N:"fn",role:"name",name:"name",C:[{N:"dot",type:"1NA"}]},{N:"ufCall",role:"select",name:"Q{MyFunctions}normalize-boolean",tailCall:"false",bSlot:"57",eval:"16",C:[{N:"dot",type:"1NA"}]}]}]},{N:"templateRule",prec:"0",prio:"0.0",seq:"47", +rank:"2",minImp:"0",slots:"0",matches:"NA nQ{http://www.w3.org/1999/XSL/Transform}default-validation",flags:"s",line:"283",module:"normalize.xsl",C:[{N:"p.nodeTest",role:"match",test:"NA nQ{http://www.w3.org/1999/XSL/Transform}default-validation"},{N:"dot",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"285",type:"1NA"}]},{N:"templateRule",prec:"0",prio:"0.5", +seq:"75",part:"1",rank:"3",minImp:"0",slots:"0",matches:"NA nQ{}sort-before-merge",flags:"s",line:"576",module:"normalize.xsl",C:[{N:"p.withUpper",role:"match",axis:"parent",upFirst:"false",C:[{N:"p.nodeTest",test:"NA nQ{}sort-before-merge"},{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}merge-source"}]},{N:"compAtt",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~", +line:"583",C:[{N:"fn",role:"name",name:"name",C:[{N:"dot",type:"1NA"}]},{N:"choose",role:"select",C:[{N:"vc",op:"eq",onEmpty:"0",comp:"CCC",C:[{N:"fn",name:"normalize-space",C:[{N:"cvUntyped",to:"AS",C:[{N:"data",diag:"0|0||fn:normalize-space",C:[{N:"dot",type:"1NA"}]}]}]},{N:"str",val:"maybe"}]},{N:"str",val:"maybe"},{N:"true"},{N:"ufCall",name:"Q{MyFunctions}normalize-boolean",tailCall:"false",bSlot:"59",eval:"16",C:[{N:"dot",type:"1NA"}]}]}]}]},{N:"templateRule",prec:"0",prio:"0.5",seq:"61",rank:"3", +minImp:"0",slots:"0",matches:"NA nQ{}html-version",flags:"s",line:"429",module:"normalize.xsl",C:[{N:"p.withUpper",role:"match",axis:"parent",upFirst:"false",C:[{N:"p.withPredicate",C:[{N:"p.nodeTest",test:"NA nQ{}html-version"},{N:"fn",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"429",name:"not",C:[{N:"fn",name:"contains",C:[{N:"cvUntyped",to:"AS",C:[{N:"data",diag:"0|0||fn:contains", +C:[{N:"dot",type:"1NA nQ{}html-version"}]}]},{N:"str",val:"{"}]}]}]},{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}result-document"}]},{N:"compAtt",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"437",C:[{N:"fn",role:"name",name:"name",C:[{N:"dot",type:"1NA nQ{}html-version"}]},{N:"fn",role:"select",name:"string-join",C:[{N:"convert",from:"A", +to:"AS",C:[{N:"choose",C:[{N:"castable",flags:"a",as:"1AD",C:[{N:"dot",type:"1NA nQ{}html-version"}]},{N:"data",C:[{N:"dot",type:"1NA nQ{}html-version"}]},{N:"true"},{N:"data",C:[{N:"mergeAdj",C:[{N:"ufCall",name:"Q{MyFunctions}syntax-error-at",tailCall:"false",bSlot:"60",eval:"0 16 16",C:[{N:"str",val:"XTSE0020"},{N:"fn",name:"concat",C:[{N:"str",val:"@html-version must be decimal - supplied value:"},{N:"atomSing",card:"?",diag:"0|1||fn:concat",C:[{N:"dot",type:"1NA nQ{}html-version"}]}]},{N:"dot", +type:"1NA nQ{}html-version"}]}]}]}]}]},{N:"str",val:" "}]}]}]},{N:"templateRule",prec:"0",prio:"0.5",seq:"48",rank:"3",minImp:"0",slots:"3",matches:"NA nQ{}default-collation",flags:"s",line:"288",module:"normalize.xsl",C:[{N:"p.withUpper",role:"match",axis:"parent",upFirst:"false",C:[{N:"p.nodeTest",test:"NA nQ{}default-collation"},{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}*"}]},{N:"let",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~", +line:"289","var":"Q{}tokens",as:"*AS",slot:"0",eval:"4",C:[{N:"fn",name:"tokenize",C:[{N:"cvUntyped",to:"AS",C:[{N:"data",diag:"0|0||fn:tokenize",C:[{N:"dot",type:"1NA"}]}]}]},{N:"let",line:"290","var":"Q{}recognized",as:"?AS",slot:"1",eval:"7",C:[{N:"first",C:[{N:"filter",flags:"b",C:[{N:"varRef",name:"Q{}tokens",slot:"0"},{N:"let",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~", +"var":"Q{}uri",as:"1AS",slot:"2",eval:"16",C:[{N:"dot",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",type:"1AS"},{N:"or",module:"sorting.xsl",line:"21",op:"or",C:[{N:"gc",op:"=",card:"N:1",comp:"CCC",C:[{N:"gVarRef",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~", +name:"Q{http://saxon.sf.net/generated-variable}gg717132147",bSlot:"61"},{N:"varRef",name:"Q{}uri",slot:"2"}]},{N:"fn",name:"starts-with",C:[{N:"varRef",name:"Q{}uri",slot:"2"},{N:"str",val:"http://www.w3.org/2013/collation/UCA"}]}]}]}]}]},{N:"att",line:"300",name:"defaultCollation",C:[{N:"fn",name:"string-join",C:[{N:"convert",from:"A",to:"AS",C:[{N:"choose",C:[{N:"varRef",name:"Q{}recognized",slot:"1"},{N:"varRef",name:"Q{}recognized",slot:"1"},{N:"vc",op:"eq",onEmpty:"0",comp:"CAVC",C:[{N:"fn", +name:"count",C:[{N:"varRef",name:"Q{}tokens",slot:"0"}]},{N:"int",val:"1"}]},{N:"data",C:[{N:"mergeAdj",C:[{N:"ufCall",name:"Q{MyFunctions}syntax-error-at",tailCall:"false",bSlot:"62",eval:"0 16 16",C:[{N:"str",val:"XTSE0125"},{N:"fn",name:"concat",C:[{N:"str",val:'Unknown default collation "'},{N:"atomSing",card:"?",diag:"0|1||fn:concat",C:[{N:"dot",type:"1NA"}]},{N:"str",val:'"'}]},{N:"dot",type:"1NA"}]}]}]},{N:"true"},{N:"data",C:[{N:"mergeAdj",C:[{N:"ufCall",name:"Q{MyFunctions}syntax-error-at", +tailCall:"false",bSlot:"63",eval:"0 16 16",C:[{N:"str",val:"XTSE0125"},{N:"fn",name:"concat",C:[{N:"str",val:'No recognized collation in "'},{N:"atomSing",card:"?",diag:"0|1||fn:concat",C:[{N:"dot",type:"1NA"}]},{N:"str",val:'"'}]},{N:"dot",type:"1NA"}]}]}]}]}]},{N:"str",val:" "}]}]}]}]}]},{N:"templateRule",prec:"0",prio:"0.5",seq:"42",rank:"3",minImp:"0",slots:"4",matches:"NA nQ{}type",flags:"s",line:"226",module:"normalize.xsl",C:[{N:"p.withUpper",role:"match",axis:"parent",upFirst:"false",C:[{N:"p.nodeTest", +test:"NA nQ{}type"},{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}*"}]},{N:"sequence",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~",line:"227",C:[{N:"param",name:"Q{}xpath-default-namespace",slot:"0",flags:"t",as:"?NA",C:[{N:"empty",role:"select"},{N:"treat",role:"conversion",as:"NA",diag:"8|0|XTTE0590|xpath-default-namespace",C:[{N:"check", +card:"?",diag:"8|0|XTTE0590|xpath-default-namespace",C:[{N:"supplied",slot:"0"}]}]}]},{N:"choose",line:"228",C:[{N:"fn",name:"exists",C:[{N:"slash",simple:"2",C:[{N:"axis",name:"parent",nodeTest:"N u[NE,ND]"},{N:"axis",name:"attribute",nodeTest:"NA nQ{}validation"}]}]},{N:"ufCall",line:"229",name:"Q{MyFunctions}syntax-error-at",tailCall:"false",bSlot:"64",eval:"0 0 16",C:[{N:"str",val:"XTSE1505"},{N:"str",val:"@type and @validation must not both be present"},{N:"dot",type:"1NA"}]}]},{N:"let",line:"231", +"var":"Q{}eqName",as:"1AS",slot:"1",eval:"16",C:[{N:"ufCall",name:"Q{MyFunctions}EQName",tailCall:"false",bSlot:"65",eval:"16 16 0 8",C:[{N:"cvUntyped",to:"AS",C:[{N:"data",diag:"0|0||f:EQName",C:[{N:"dot",type:"1NA"}]}]},{N:"check",card:"1",diag:"0|1||f:EQName",C:[{N:"axis",name:"parent",nodeTest:"N u[NE,ND]"}]},{N:"str",val:"XTSE1520"},{N:"cvUntyped",to:"AS",C:[{N:"data",diag:"0|3||f:EQName",C:[{N:"varRef",name:"Q{}xpath-default-namespace",slot:"0"}]}]}]},{N:"let",line:"232","var":"Q{}qName",as:"1AQ", +slot:"2",eval:"8",C:[{N:"let",module:"lib.xsl",line:"177","var":"Q{}parts",as:"*AS",slot:"3",eval:"4",C:[{N:"forEach",C:[{N:"fn",name:"tokenize",C:[{N:"fn",name:"substring",C:[{N:"varRef",module:"normalize.xsl",line:"232",name:"Q{}eqName",slot:"1"},{N:"int",val:"3"}]},{N:"str",val:"\\}"},{N:"str",val:""}]},{N:"fn",name:"normalize-space",C:[{N:"dot",type:"1AS"}]}]},{N:"fn",line:"178",name:"QName",C:[{N:"first",C:[{N:"varRef",name:"Q{}parts",slot:"3"}]},{N:"check",card:"1",diag:"0|1||fn:QName",C:[{N:"subscript", +C:[{N:"varRef",name:"Q{}parts",slot:"3"},{N:"int",val:"2"}]}]}]}]},{N:"sequence",line:"233",C:[{N:"choose",C:[{N:"vc",op:"ne",onEmpty:"1",comp:"CCC",C:[{N:"fn",name:"namespace-uri-from-QName",C:[{N:"varRef",name:"Q{}qName",slot:"2"}]},{N:"str",val:"http://www.w3.org/2001/XMLSchema"}]},{N:"ufCall",line:"234",name:"Q{MyFunctions}syntax-error-at",tailCall:"false",bSlot:"66",eval:"0 16 16",C:[{N:"str",val:"XTSE1520"},{N:"fn",name:"concat",C:[{N:"str",val:"Unknown type "},{N:"varRef",name:"Q{}eqName", +slot:"1"}]},{N:"dot",type:"1NA"}]}]},{N:"choose",line:"236",C:[{N:"fn",name:"not",C:[{N:"gc",op:"=",card:"N:1",comp:"CCC",C:[{N:"literal",count:"4",C:[{N:"str",val:"anyType"},{N:"str",val:"untyped"},{N:"str",val:"anyAtomicType"},{N:"str",val:"untypedAtomic"}]},{N:"fn",name:"local-name-from-QName",C:[{N:"varRef",name:"Q{}qName",slot:"2"}]}]}]},{N:"ufCall",line:"237",name:"Q{MyFunctions}syntax-error-at",tailCall:"false",bSlot:"67",eval:"0 16 16",C:[{N:"str",val:"XTSE1660"},{N:"fn",name:"concat",C:[{N:"str", +val:"Cannot validate nodes as type "},{N:"atomSing",card:"?",diag:"0|1||fn:concat",C:[{N:"dot",type:"1NA"}]},{N:"str",val:" (processor is not schema-aware)"}]},{N:"dot",type:"1NA"}]}]},{N:"choose",line:"240",C:[{N:"and",op:"and",C:[{N:"gc",op:"=",card:"N:1",comp:"CCC",C:[{N:"literal",count:"2",C:[{N:"str",val:"anyAtomicType"},{N:"str",val:"untypedAtomic"}]},{N:"fn",name:"local-name-from-QName",C:[{N:"varRef",name:"Q{}qName",slot:"2"}]}]},{N:"and",op:"and",C:[{N:"and",op:"and",C:[{N:"fn",name:"not", +C:[{N:"fn",name:"exists",C:[{N:"axis",name:"parent",nodeTest:"NE nQ{http://www.w3.org/1999/XSL/Transform}attribute"}]}]},{N:"fn",name:"not",C:[{N:"fn",name:"exists",C:[{N:"axis",name:"parent",nodeTest:"NE nQ{http://www.w3.org/1999/XSL/Transform}copy"}]}]}]},{N:"fn",name:"empty",C:[{N:"axis",name:"parent",nodeTest:"NE nQ{http://www.w3.org/1999/XSL/Transform}copy-of"}]}]}]},{N:"ufCall",line:"242",name:"Q{MyFunctions}syntax-error-at",tailCall:"false",bSlot:"68",eval:"0 16 16",C:[{N:"str",val:"XTSE1660"}, +{N:"fn",name:"concat",C:[{N:"str",val:"Cannot validate element nodes as type "},{N:"atomSing",card:"?",diag:"0|1||fn:concat",C:[{N:"dot",type:"1NA"}]},{N:"str",val:" (processor is not schema-aware)"}]},{N:"dot",type:"1NA"}]}]}]}]}]}]}]},{N:"templateRule",prec:"0",prio:"0.5",seq:"42",part:"1",rank:"3",minImp:"0",slots:"4",matches:"NA nQ{http://www.w3.org/1999/XSL/Transform}type",flags:"s",line:"226",module:"normalize.xsl",C:[{N:"p.withUpper",role:"match",axis:"parent",upFirst:"false",C:[{N:"p.nodeTest", +test:"NA nQ{http://www.w3.org/1999/XSL/Transform}type"},{N:"p.nodeTest",test:"NE"}]},{N:"sequence",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~",line:"227",C:[{N:"param",name:"Q{}xpath-default-namespace",slot:"0",flags:"t",as:"?NA",C:[{N:"empty",role:"select"},{N:"treat",role:"conversion",as:"NA",diag:"8|0|XTTE0590|xpath-default-namespace",C:[{N:"check", +card:"?",diag:"8|0|XTTE0590|xpath-default-namespace",C:[{N:"supplied",slot:"0"}]}]}]},{N:"choose",line:"228",C:[{N:"fn",name:"exists",C:[{N:"slash",simple:"2",C:[{N:"axis",name:"parent",nodeTest:"N u[NE,ND]"},{N:"axis",name:"attribute",nodeTest:"NA nQ{}validation"}]}]},{N:"ufCall",line:"229",name:"Q{MyFunctions}syntax-error-at",tailCall:"false",bSlot:"64",eval:"0 0 16",C:[{N:"str",val:"XTSE1505"},{N:"str",val:"@type and @validation must not both be present"},{N:"dot",type:"1NA"}]}]},{N:"let",line:"231", +"var":"Q{}eqName",as:"1AS",slot:"1",eval:"16",C:[{N:"ufCall",name:"Q{MyFunctions}EQName",tailCall:"false",bSlot:"65",eval:"16 16 0 8",C:[{N:"cvUntyped",to:"AS",C:[{N:"data",diag:"0|0||f:EQName",C:[{N:"dot",type:"1NA"}]}]},{N:"check",card:"1",diag:"0|1||f:EQName",C:[{N:"axis",name:"parent",nodeTest:"N u[NE,ND]"}]},{N:"str",val:"XTSE1520"},{N:"cvUntyped",to:"AS",C:[{N:"data",diag:"0|3||f:EQName",C:[{N:"varRef",name:"Q{}xpath-default-namespace",slot:"0"}]}]}]},{N:"let",line:"232","var":"Q{}qName",as:"1AQ", +slot:"2",eval:"8",C:[{N:"let",module:"lib.xsl",line:"177","var":"Q{}parts",as:"*AS",slot:"3",eval:"4",C:[{N:"forEach",C:[{N:"fn",name:"tokenize",C:[{N:"fn",name:"substring",C:[{N:"varRef",module:"normalize.xsl",line:"232",name:"Q{}eqName",slot:"1"},{N:"int",val:"3"}]},{N:"str",val:"\\}"},{N:"str",val:""}]},{N:"fn",name:"normalize-space",C:[{N:"dot",type:"1AS"}]}]},{N:"fn",line:"178",name:"QName",C:[{N:"first",C:[{N:"varRef",name:"Q{}parts",slot:"3"}]},{N:"check",card:"1",diag:"0|1||fn:QName",C:[{N:"subscript", +C:[{N:"varRef",name:"Q{}parts",slot:"3"},{N:"int",val:"2"}]}]}]}]},{N:"sequence",line:"233",C:[{N:"choose",C:[{N:"vc",op:"ne",onEmpty:"1",comp:"CCC",C:[{N:"fn",name:"namespace-uri-from-QName",C:[{N:"varRef",name:"Q{}qName",slot:"2"}]},{N:"str",val:"http://www.w3.org/2001/XMLSchema"}]},{N:"ufCall",line:"234",name:"Q{MyFunctions}syntax-error-at",tailCall:"false",bSlot:"66",eval:"0 16 16",C:[{N:"str",val:"XTSE1520"},{N:"fn",name:"concat",C:[{N:"str",val:"Unknown type "},{N:"varRef",name:"Q{}eqName", +slot:"1"}]},{N:"dot",type:"1NA"}]}]},{N:"choose",line:"236",C:[{N:"fn",name:"not",C:[{N:"gc",op:"=",card:"N:1",comp:"CCC",C:[{N:"literal",count:"4",C:[{N:"str",val:"anyType"},{N:"str",val:"untyped"},{N:"str",val:"anyAtomicType"},{N:"str",val:"untypedAtomic"}]},{N:"fn",name:"local-name-from-QName",C:[{N:"varRef",name:"Q{}qName",slot:"2"}]}]}]},{N:"ufCall",line:"237",name:"Q{MyFunctions}syntax-error-at",tailCall:"false",bSlot:"67",eval:"0 16 16",C:[{N:"str",val:"XTSE1660"},{N:"fn",name:"concat",C:[{N:"str", +val:"Cannot validate nodes as type "},{N:"atomSing",card:"?",diag:"0|1||fn:concat",C:[{N:"dot",type:"1NA"}]},{N:"str",val:" (processor is not schema-aware)"}]},{N:"dot",type:"1NA"}]}]},{N:"choose",line:"240",C:[{N:"and",op:"and",C:[{N:"gc",op:"=",card:"N:1",comp:"CCC",C:[{N:"literal",count:"2",C:[{N:"str",val:"anyAtomicType"},{N:"str",val:"untypedAtomic"}]},{N:"fn",name:"local-name-from-QName",C:[{N:"varRef",name:"Q{}qName",slot:"2"}]}]},{N:"and",op:"and",C:[{N:"and",op:"and",C:[{N:"fn",name:"not", +C:[{N:"fn",name:"exists",C:[{N:"axis",name:"parent",nodeTest:"NE nQ{http://www.w3.org/1999/XSL/Transform}attribute"}]}]},{N:"fn",name:"not",C:[{N:"fn",name:"exists",C:[{N:"axis",name:"parent",nodeTest:"NE nQ{http://www.w3.org/1999/XSL/Transform}copy"}]}]}]},{N:"fn",name:"empty",C:[{N:"axis",name:"parent",nodeTest:"NE nQ{http://www.w3.org/1999/XSL/Transform}copy-of"}]}]}]},{N:"ufCall",line:"242",name:"Q{MyFunctions}syntax-error-at",tailCall:"false",bSlot:"68",eval:"0 16 16",C:[{N:"str",val:"XTSE1660"}, +{N:"fn",name:"concat",C:[{N:"str",val:"Cannot validate element nodes as type "},{N:"atomSing",card:"?",diag:"0|1||fn:concat",C:[{N:"dot",type:"1NA"}]},{N:"str",val:" (processor is not schema-aware)"}]},{N:"dot",type:"1NA"}]}]}]}]}]}]}]},{N:"templateRule",prec:"0",prio:"2.0",seq:"29",rank:"9",minImp:"0",slots:"1",matches:"NA nQ{}else",flags:"s",line:"10",module:"normalize4.xsl",C:[{N:"p.withUpper",role:"match",axis:"parent",upFirst:"false",C:[{N:"p.nodeTest",test:"NA nQ{}else"},{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}if"}]}, +{N:"sequence",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"11",C:[{N:"param",name:"Q{}allowSyntaxExtensions",slot:"0",flags:"t",C:[{N:"false",role:"select"},{N:"supplied",role:"conversion",slot:"0"}]},{N:"choose",line:"13",C:[{N:"varRef",name:"Q{}allowSyntaxExtensions",slot:"0"},{N:"dot",line:"14",type:"1NA"},{N:"true"},{N:"ufCall",line:"17",name:"Q{MyFunctions}syntax-error-at", +tailCall:"false",bSlot:"69",eval:"0 16 16",C:[{N:"str",val:"XTSE0090"},{N:"fn",name:"concat",C:[{N:"fn",name:"name",C:[{N:"check",card:"?",diag:"0|0||fn:name",C:[{N:"axis",name:"parent",nodeTest:"N u[NE,ND]"}]}]},{N:"str",val:" cannot have @"},{N:"fn",name:"name",C:[{N:"dot",type:"1NA"}]}]},{N:"dot",type:"1NA"}]}]}]}]},{N:"templateRule",prec:"0",prio:"0.5",seq:"95",part:"1",rank:"3",minImp:"0",slots:"2",matches:"NA nQ{}elements",flags:"s",line:"775",module:"normalize.xsl",C:[{N:"p.withUpper",role:"match", +axis:"parent",upFirst:"false",C:[{N:"p.nodeTest",test:"NA nQ{}elements"},{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}preserve-space"}]},{N:"sequence",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"776",C:[{N:"param",name:"Q{}xpath-default-namespace",slot:"0",flags:"t",as:"?NA",C:[{N:"empty",role:"select"},{N:"treat",role:"conversion",as:"NA", +diag:"8|0|XTTE0590|xpath-default-namespace",C:[{N:"check",card:"?",diag:"8|0|XTTE0590|xpath-default-namespace",C:[{N:"supplied",slot:"0"}]}]}]},{N:"let",line:"778","var":"Q{}context",as:"*N u[NE,ND]",slot:"1",eval:"4",C:[{N:"axis",name:"parent",nodeTest:"N u[NE,ND]"},{N:"att",line:"790",name:"elements",C:[{N:"fn",name:"string-join",C:[{N:"forEach",C:[{N:"fn",name:"tokenize",C:[{N:"cvUntyped",to:"AS",C:[{N:"data",diag:"0|0||fn:tokenize",C:[{N:"dot",type:"1NA"}]}]}]},{N:"choose",C:[{N:"or",op:"or", +C:[{N:"or",op:"or",C:[{N:"vc",op:"eq",onEmpty:"0",comp:"CCC",C:[{N:"dot",type:"1AS"},{N:"str",val:"*"}]},{N:"fn",name:"starts-with",C:[{N:"dot",type:"1AS"},{N:"str",val:"*:"}]}]},{N:"fn",name:"starts-with",C:[{N:"dot",type:"1AS"},{N:"str",val:"Q{"}]}]},{N:"dot",type:"1AS"},{N:"fn",name:"ends-with",C:[{N:"dot",type:"1AS"},{N:"str",val:":*"}]},{N:"fn",name:"replace",C:[{N:"ufCall",name:"Q{MyFunctions}EQName",tailCall:"false",bSlot:"70",eval:"16 16 0 8",C:[{N:"fn",name:"replace",C:[{N:"dot",type:"1AS"}, +{N:"str",val:"\\*$"},{N:"str",val:"Z"},{N:"str",val:""}]},{N:"check",card:"1",diag:"0|1||f:EQName",C:[{N:"varRef",name:"Q{}context",slot:"1"}]},{N:"str",val:"XTSE0020"},{N:"cvUntyped",to:"AS",C:[{N:"data",diag:"0|3||f:EQName",C:[{N:"varRef",name:"Q{}xpath-default-namespace",slot:"0"}]}]}]},{N:"str",val:"Z$"},{N:"str",val:"*"},{N:"str",val:""}]},{N:"true"},{N:"ufCall",name:"Q{MyFunctions}EQName",tailCall:"false",bSlot:"71",eval:"16 16 0 8",C:[{N:"dot",type:"1AS"},{N:"check",card:"1",diag:"0|1||f:EQName", +C:[{N:"varRef",name:"Q{}context",slot:"1"}]},{N:"str",val:"XTSE0020"},{N:"cvUntyped",to:"AS",C:[{N:"data",diag:"0|3||f:EQName",C:[{N:"varRef",name:"Q{}xpath-default-namespace",slot:"0"}]}]}]}]}]},{N:"str",val:" "}]}]}]}]}]},{N:"templateRule",prec:"0",prio:"0.5",seq:"95",rank:"3",minImp:"0",slots:"2",matches:"NA nQ{}elements",flags:"s",line:"775",module:"normalize.xsl",C:[{N:"p.withUpper",role:"match",axis:"parent",upFirst:"false",C:[{N:"p.nodeTest",test:"NA nQ{}elements"},{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}strip-space"}]}, +{N:"sequence",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"776",C:[{N:"param",name:"Q{}xpath-default-namespace",slot:"0",flags:"t",as:"?NA",C:[{N:"empty",role:"select"},{N:"treat",role:"conversion",as:"NA",diag:"8|0|XTTE0590|xpath-default-namespace",C:[{N:"check",card:"?",diag:"8|0|XTTE0590|xpath-default-namespace",C:[{N:"supplied",slot:"0"}]}]}]},{N:"let", +line:"778","var":"Q{}context",as:"*N u[NE,ND]",slot:"1",eval:"4",C:[{N:"axis",name:"parent",nodeTest:"N u[NE,ND]"},{N:"att",line:"790",name:"elements",C:[{N:"fn",name:"string-join",C:[{N:"forEach",C:[{N:"fn",name:"tokenize",C:[{N:"cvUntyped",to:"AS",C:[{N:"data",diag:"0|0||fn:tokenize",C:[{N:"dot",type:"1NA"}]}]}]},{N:"choose",C:[{N:"or",op:"or",C:[{N:"or",op:"or",C:[{N:"vc",op:"eq",onEmpty:"0",comp:"CCC",C:[{N:"dot",type:"1AS"},{N:"str",val:"*"}]},{N:"fn",name:"starts-with",C:[{N:"dot",type:"1AS"}, +{N:"str",val:"*:"}]}]},{N:"fn",name:"starts-with",C:[{N:"dot",type:"1AS"},{N:"str",val:"Q{"}]}]},{N:"dot",type:"1AS"},{N:"fn",name:"ends-with",C:[{N:"dot",type:"1AS"},{N:"str",val:":*"}]},{N:"fn",name:"replace",C:[{N:"ufCall",name:"Q{MyFunctions}EQName",tailCall:"false",bSlot:"70",eval:"16 16 0 8",C:[{N:"fn",name:"replace",C:[{N:"dot",type:"1AS"},{N:"str",val:"\\*$"},{N:"str",val:"Z"},{N:"str",val:""}]},{N:"check",card:"1",diag:"0|1||f:EQName",C:[{N:"varRef",name:"Q{}context",slot:"1"}]},{N:"str", +val:"XTSE0020"},{N:"cvUntyped",to:"AS",C:[{N:"data",diag:"0|3||f:EQName",C:[{N:"varRef",name:"Q{}xpath-default-namespace",slot:"0"}]}]}]},{N:"str",val:"Z$"},{N:"str",val:"*"},{N:"str",val:""}]},{N:"true"},{N:"ufCall",name:"Q{MyFunctions}EQName",tailCall:"false",bSlot:"71",eval:"16 16 0 8",C:[{N:"dot",type:"1AS"},{N:"check",card:"1",diag:"0|1||f:EQName",C:[{N:"varRef",name:"Q{}context",slot:"1"}]},{N:"str",val:"XTSE0020"},{N:"cvUntyped",to:"AS",C:[{N:"data",diag:"0|3||f:EQName",C:[{N:"varRef",name:"Q{}xpath-default-namespace", +slot:"0"}]}]}]}]}]},{N:"str",val:" "}]}]}]}]}]},{N:"templateRule",prec:"0",prio:"0.5",seq:"67",part:"7",rank:"3",minImp:"0",slots:"0",matches:"NA nQ{}warning-on-no-match",flags:"s",line:"517",module:"normalize.xsl",C:[{N:"p.withUpper",role:"match",axis:"parent",upFirst:"false",C:[{N:"p.nodeTest",test:"NA nQ{}warning-on-no-match"},{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}mode"}]},{N:"compAtt",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~", +line:"518",C:[{N:"fn",role:"name",name:"name",C:[{N:"dot",type:"1NA"}]},{N:"ufCall",role:"select",name:"Q{MyFunctions}normalize-boolean",tailCall:"false",bSlot:"57",eval:"16",C:[{N:"dot",type:"1NA"}]}]}]},{N:"templateRule",prec:"0",prio:"0.5",seq:"72",rank:"3",minImp:"0",slots:"0",matches:"NA nQ{}override",flags:"s",line:"558",module:"normalize.xsl",C:[{N:"p.withUpper",role:"match",axis:"parent",upFirst:"false",C:[{N:"p.nodeTest",test:"NA nQ{}override"},{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}function"}]}, +{N:"sequence",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"559",C:[{N:"choose",C:[{N:"and",op:"and",C:[{N:"fn",name:"exists",C:[{N:"slash",simple:"2",C:[{N:"axis",name:"parent",nodeTest:"N u[NE,ND]"},{N:"axis",name:"attribute",nodeTest:"NA nQ{}override-extension-function"}]}]},{N:"vc",op:"ne",onEmpty:"0",comp:"CAVC",C:[{N:"ufCall",name:"Q{MyFunctions}boolean-string", +tailCall:"false",bSlot:"72",eval:"16",C:[{N:"dot",type:"1NA nQ{}override"}]},{N:"ufCall",name:"Q{MyFunctions}boolean-string",tailCall:"false",bSlot:"73",eval:"16",C:[{N:"check",card:"1",diag:"0|0||f:boolean-string",C:[{N:"slash",simple:"2",C:[{N:"axis",name:"parent",nodeTest:"N u[NE,ND]"},{N:"axis",name:"attribute",nodeTest:"NA nQ{}override-extension-function"}]}]}]}]}]},{N:"ufCall",line:"560",name:"Q{MyFunctions}syntax-error-at",tailCall:"false",bSlot:"74",eval:"0 0 16",C:[{N:"str",val:"XTSE0020"}, +{N:"str",val:"@override and @override-extension-function must have the same boolean value"},{N:"dot",type:"1NA nQ{}override"}]}]},{N:"compAtt",line:"562",C:[{N:"fn",role:"name",name:"name",C:[{N:"dot",type:"1NA nQ{}override"}]},{N:"ufCall",role:"select",name:"Q{MyFunctions}normalize-boolean",tailCall:"false",bSlot:"75",eval:"16",C:[{N:"dot",type:"1NA nQ{}override"}]}]}]}]},{N:"templateRule",prec:"0",prio:"0.0",seq:"47",part:"1",rank:"2",minImp:"0",slots:"0",matches:"NA nQ{http://www.w3.org/1999/XSL/Transform}xpath-default-namespace", +flags:"s",line:"283",module:"normalize.xsl",C:[{N:"p.nodeTest",role:"match",test:"NA nQ{http://www.w3.org/1999/XSL/Transform}xpath-default-namespace"},{N:"dot",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"285",type:"1NA"}]},{N:"templateRule",prec:"0",prio:"0.5",seq:"56",rank:"3",minImp:"0",slots:"2",matches:"NA nQ{}use-character-maps",flags:"s",line:"390",module:"normalize.xsl", +C:[{N:"p.withUpper",role:"match",axis:"parent",upFirst:"false",C:[{N:"p.nodeTest",test:"NA nQ{}use-character-maps"},{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}*"}]},{N:"att",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"391",name:"use-character-maps",C:[{N:"fn",name:"string-join",C:[{N:"let","var":"Q{http://saxon.sf.net/generated-variable}current1789282489", +as:"1",slot:"0",eval:"16",C:[{N:"dot",type:"1NA nQ{}use-character-maps"},{N:"let","var":"Q{http://saxon.sf.net/generated-variable}v0",as:"1NE i[NE,N u[NE,ND]]",slot:"1",eval:"13",C:[{N:"check",card:"1",diag:"0|1||f:EQName",C:[{N:"slash",simple:"1",C:[{N:"varRef",name:"Q{http://saxon.sf.net/generated-variable}current1789282489",slot:"0"},{N:"axis",name:"parent",nodeTest:"N u[NE,ND]"}]}]},{N:"sequence",C:[{N:"str",val:" "},{N:"forEach",C:[{N:"fn",name:"tokenize",C:[{N:"cvUntyped",to:"AS",C:[{N:"data", +diag:"0|0||fn:tokenize",C:[{N:"dot",type:"1NA nQ{}use-character-maps"}]}]}]},{N:"ufCall",name:"Q{MyFunctions}EQName",tailCall:"false",bSlot:"76",eval:"16 6",C:[{N:"dot",type:"1AS"},{N:"varRef",name:"Q{http://saxon.sf.net/generated-variable}v0",slot:"1"}]}]}]}]}]},{N:"str",val:" "}]}]}]},{N:"templateRule",prec:"0",prio:"0.9",seq:"81",rank:"4",minImp:"0",slots:"1",matches:"NA nQ{}visibility",flags:"s",line:"606",module:"normalize.xsl",C:[{N:"p.withUpper",role:"match",axis:"parent",upFirst:"false",C:[{N:"p.nodeTest", +test:"NA nQ{}visibility"},{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}mode"}]},{N:"let",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"607","var":"Q{}value",as:"1AS",slot:"0",eval:"8",C:[{N:"fn",name:"normalize-space",C:[{N:"cvUntyped",to:"AS",C:[{N:"data",diag:"0|0||fn:normalize-space",C:[{N:"dot",type:"1NA nQ{}visibility"}]}]}]},{N:"sequence", +line:"608",C:[{N:"choose",C:[{N:"fn",name:"not",C:[{N:"gc",op:"=",card:"N:1",comp:"CCC",C:[{N:"literal",count:"3",C:[{N:"str",val:"public"},{N:"str",val:"private"},{N:"str",val:"final"}]},{N:"varRef",name:"Q{}value",slot:"0"}]}]},{N:"ufCall",line:"609",name:"Q{MyFunctions}syntax-error-at",tailCall:"false",bSlot:"77",eval:"0 16 16",C:[{N:"str",val:"XTSE0020"},{N:"fn",name:"concat",C:[{N:"atomSing",card:"?",diag:"0|0||fn:concat",C:[{N:"dot",type:"1NA nQ{}visibility"}]},{N:"str",val:" is not a permitted value for mode visibility"}]}, +{N:"dot",type:"1NA nQ{}visibility"}]}]},{N:"choose",line:"611",C:[{N:"and",op:"and",C:[{N:"fn",name:"empty",C:[{N:"slash",simple:"2",C:[{N:"axis",name:"parent",nodeTest:"N u[NE,ND]"},{N:"axis",name:"attribute",nodeTest:"NA nQ{}name"}]}]},{N:"vc",op:"ne",onEmpty:"1",comp:"CCC",C:[{N:"varRef",name:"Q{}value",slot:"0"},{N:"str",val:"private"}]}]},{N:"ufCall",line:"612",name:"Q{MyFunctions}syntax-error-at",tailCall:"false",bSlot:"78",eval:"0 0 16",C:[{N:"str",val:"XTSE0020"},{N:"str",val:"private is the only permitted value for visibility of the unnamed mode"}, +{N:"dot",type:"1NA nQ{}visibility"}]}]},{N:"nextMatch",line:"614",flags:"t"}]}]}]},{N:"templateRule",prec:"0",prio:"0.5",seq:"58",rank:"3",minImp:"0",slots:"1",matches:"NA nQ{}visibility",flags:"s",line:"406",module:"normalize.xsl",C:[{N:"p.withUpper",role:"match",axis:"parent",upFirst:"false",C:[{N:"p.nodeTest",test:"NA nQ{}visibility"},{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}*"}]},{N:"att",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~", +line:"416",name:"visibility",C:[{N:"fn",name:"string-join",C:[{N:"convert",from:"A",to:"AS",C:[{N:"data",C:[{N:"mergeAdj",C:[{N:"let","var":"Q{}n",slot:"0",eval:"8",C:[{N:"fn",name:"normalize-space",C:[{N:"cvUntyped",to:"AS",C:[{N:"data",diag:"0|0||fn:normalize-space",C:[{N:"dot",type:"1NA nQ{}visibility"}]}]}]},{N:"choose",C:[{N:"gc",op:"=",card:"N:1",comp:"CCC",C:[{N:"literal",count:"5",C:[{N:"str",val:"private"},{N:"str",val:"public"},{N:"str",val:"final"},{N:"str",val:"abstract"},{N:"str",val:"hidden"}]}, +{N:"varRef",name:"Q{}n",slot:"0"}]},{N:"varRef",name:"Q{}n",slot:"0"},{N:"true"},{N:"ufCall",name:"Q{MyFunctions}syntax-error-at",tailCall:"false",bSlot:"79",eval:"0 16 16",C:[{N:"str",val:"XTSE0020"},{N:"fn",name:"concat",C:[{N:"atomSing",card:"?",diag:"0|0||fn:concat",C:[{N:"dot",type:"1NA nQ{}visibility"}]},{N:"str",val:" is not a permitted value for visibility"}]},{N:"dot",type:"1NA nQ{}visibility"}]}]}]}]}]}]},{N:"str",val:" "}]}]}]},{N:"templateRule",prec:"0",prio:"0.5",seq:"67",part:"14",rank:"3", +minImp:"0",slots:"0",matches:"NA nQ{}override-extension-function",flags:"s",line:"517",module:"normalize.xsl",C:[{N:"p.withUpper",role:"match",axis:"parent",upFirst:"false",C:[{N:"p.nodeTest",test:"NA nQ{}override-extension-function"},{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}function"}]},{N:"compAtt",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~", +line:"518",C:[{N:"fn",role:"name",name:"name",C:[{N:"dot",type:"1NA"}]},{N:"ufCall",role:"select",name:"Q{MyFunctions}normalize-boolean",tailCall:"false",bSlot:"57",eval:"16",C:[{N:"dot",type:"1NA"}]}]}]},{N:"templateRule",prec:"0",prio:"1.0",seq:"66",rank:"5",minImp:"0",slots:"0",matches:"NA nQ{http://www.w3.org/1999/XSL/Transform}expand-text",flags:"s",line:"503",module:"normalize.xsl",C:[{N:"p.nodeTest",role:"match",test:"NA nQ{http://www.w3.org/1999/XSL/Transform}expand-text"},{N:"compAtt",role:"action", +ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"504",C:[{N:"fn",role:"name",name:"name",C:[{N:"dot",type:"1NA nQ{http://www.w3.org/1999/XSL/Transform}expand-text"}]},{N:"ufCall",role:"select",name:"Q{MyFunctions}normalize-boolean",tailCall:"false",bSlot:"80",eval:"16",C:[{N:"dot",type:"1NA nQ{http://www.w3.org/1999/XSL/Transform}expand-text"}]}]}]},{N:"templateRule",prec:"0", +prio:"1.0",seq:"82",rank:"5",minImp:"0",slots:"0",matches:"NA nQ{}stylesheet-prefix",flags:"s",line:"619",module:"normalize.xsl",C:[{N:"p.withUpper",role:"match",axis:"parent",upFirst:"false",C:[{N:"p.withPredicate",C:[{N:"p.nodeTest",test:"NA nQ{}stylesheet-prefix"},{N:"vc",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"619",op:"eq",comp:"CCC",C:[{N:"data",diag:"1|0||eq", +C:[{N:"dot",type:"1NA nQ{}stylesheet-prefix"}]},{N:"str",val:"#default"}]}]},{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}namespace-alias"}]},{N:"dot",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"620",type:"1NA"}]},{N:"templateRule",prec:"0",prio:"0.5",seq:"83",rank:"3",minImp:"0",slots:"0",matches:"NA nQ{}stylesheet-prefix",flags:"s",line:"627", +module:"normalize.xsl",C:[{N:"p.withUpper",role:"match",axis:"parent",upFirst:"false",C:[{N:"p.withPredicate",C:[{N:"p.nodeTest",test:"NA nQ{}stylesheet-prefix"},{N:"fn",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"627",name:"empty",C:[{N:"fn",name:"namespace-uri-for-prefix",C:[{N:"cvUntyped",to:"AS",C:[{N:"data",diag:"0|0||fn:namespace-uri-for-prefix",C:[{N:"dot",type:"1NA nQ{}stylesheet-prefix"}]}]}, +{N:"check",card:"1",diag:"0|1||fn:namespace-uri-for-prefix",C:[{N:"axis",name:"parent",nodeTest:"N u[NE,ND]"}]}]}]}]},{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}namespace-alias"}]},{N:"sequence",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"628",C:[{N:"ufCall",name:"Q{MyFunctions}syntax-error-at",tailCall:"false",bSlot:"56",eval:"0 16 16", +C:[{N:"str",val:"XTSE0812"},{N:"fn",name:"concat",C:[{N:"str",val:"Undeclared namespace prefix - "},{N:"atomSing",card:"?",diag:"0|1||fn:concat",C:[{N:"dot",type:"1NA"}]}]},{N:"dot",type:"1NA"}]},{N:"dot",line:"629",type:"1NA"}]}]},{N:"templateRule",prec:"0",prio:"0.5",seq:"67",part:"2",rank:"3",minImp:"0",slots:"0",matches:"NA nQ{}copy-accumulators",flags:"s",line:"517",module:"normalize.xsl",C:[{N:"p.withUpper",role:"match",axis:"parent",upFirst:"false",C:[{N:"p.nodeTest",test:"NA nQ{}copy-accumulators"}, +{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}copy-of"}]},{N:"compAtt",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"518",C:[{N:"fn",role:"name",name:"name",C:[{N:"dot",type:"1NA"}]},{N:"ufCall",role:"select",name:"Q{MyFunctions}normalize-boolean",tailCall:"false",bSlot:"57",eval:"16",C:[{N:"dot",type:"1NA"}]}]}]},{N:"templateRule",prec:"0", +prio:"0.5",seq:"76",rank:"3",minImp:"0",slots:"0",matches:"NA nQ{}terminate",flags:"s",line:"586",module:"normalize.xsl",C:[{N:"p.withUpper",role:"match",axis:"parent",upFirst:"false",C:[{N:"p.withPredicate",C:[{N:"p.nodeTest",test:"NA nQ{}terminate"},{N:"fn",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"586",name:"not",C:[{N:"fn",name:"contains",C:[{N:"cvUntyped",to:"AS", +C:[{N:"data",diag:"0|0||fn:contains",C:[{N:"dot",type:"1NA nQ{}terminate"}]}]},{N:"str",val:"{"}]}]}]},{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}message"}]},{N:"compAtt",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"587",C:[{N:"fn",role:"name",name:"name",C:[{N:"dot",type:"1NA nQ{}terminate"}]},{N:"ufCall",role:"select",name:"Q{MyFunctions}normalize-boolean", +tailCall:"false",bSlot:"81",eval:"16",C:[{N:"dot",type:"1NA nQ{}terminate"}]}]}]},{N:"templateRule",prec:"0",prio:"0.5",seq:"124",rank:"3",minImp:"0",slots:"4",matches:"NA nQ{}package-version",flags:"s",line:"957",module:"normalize.xsl",C:[{N:"p.withUpper",role:"match",axis:"parent",upFirst:"false",C:[{N:"p.nodeTest",test:"NA nQ{}package-version"},{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}package"}]},{N:"sequence",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~", +line:"958",C:[{N:"param",name:"Q{}XSLT-version",slot:"0",flags:"ti",as:"1AD",C:[{N:"treat",role:"conversion",as:"AD",diag:"8|0|XTTE0590|XSLT-version",C:[{N:"check",card:"1",diag:"8|0|XTTE0590|XSLT-version",C:[{N:"cvUntyped",to:"AD",diag:"8|0|XTTE0590|XSLT-version",C:[{N:"data",diag:"8|0|XTTE0590|XSLT-version",C:[{N:"supplied",slot:"0"}]}]}]}]}]},{N:"let",line:"959","var":"Q{}parts",as:"*AS",slot:"1",eval:"4",C:[{N:"fn",name:"tokenize",C:[{N:"cvUntyped",to:"AS",C:[{N:"data",diag:"0|0||fn:tokenize", +C:[{N:"dot",type:"1NA nQ{}package-version"}]}]},{N:"str",val:"-"},{N:"str",val:""}]},{N:"let",line:"960","var":"Q{}numeric",as:"*AS",slot:"2",eval:"4",C:[{N:"fn",name:"tokenize",C:[{N:"first",C:[{N:"varRef",name:"Q{}parts",slot:"1"}]},{N:"str",val:"\\."},{N:"str",val:""}]},{N:"choose",line:"972",C:[{N:"and",op:"and",C:[{N:"and",op:"and",C:[{N:"or",op:"or",C:[{N:"fn",name:"empty",C:[{N:"subscript",C:[{N:"varRef",name:"Q{}parts",slot:"1"},{N:"int",val:"2"}]}]},{N:"castable",flags:"a",as:"1ASNTNC",C:[{N:"subscript", +C:[{N:"varRef",name:"Q{}parts",slot:"1"},{N:"int",val:"2"}]}]}]},{N:"fn",name:"exists",C:[{N:"varRef",name:"Q{}numeric",slot:"2"}]}]},{N:"every","var":"Q{}n",slot:"3",C:[{N:"varRef",name:"Q{}numeric",slot:"2"},{N:"castable",flags:"a",as:"1ADI",C:[{N:"varRef",name:"Q{}n",slot:"3"}]}]}]},{N:"empty"},{N:"true"},{N:"ufCall",name:"Q{MyFunctions}syntax-error-at",tailCall:"false",bSlot:"82",eval:"0 16 16",C:[{N:"str",val:"XTSE0020"},{N:"fn",name:"concat",C:[{N:"str",val:"@package-version "},{N:"atomSing", +card:"?",diag:"0|1||fn:concat",C:[{N:"dot",type:"1NA nQ{}package-version"}]},{N:"str",val:" is invalid"}]},{N:"dot",type:"1NA nQ{}package-version"}]}]}]}]}]}]},{N:"templateRule",prec:"0",prio:"0.5",seq:"90",part:"1",rank:"3",minImp:"0",slots:"1",matches:"NA nQ{}tunnel",flags:"s",line:"694",module:"normalize.xsl",C:[{N:"p.withUpper",role:"match",axis:"parent",upFirst:"false",C:[{N:"p.nodeTest",test:"NA nQ{}tunnel"},{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}with-param"}]},{N:"let", +role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"695","var":"Q{}value",slot:"0",eval:"16",C:[{N:"ufCall",name:"Q{MyFunctions}boolean-string",tailCall:"false",bSlot:"83",eval:"16",C:[{N:"dot",type:"1NA"}]},{N:"sequence",line:"697",C:[{N:"choose",C:[{N:"and",op:"and",C:[{N:"varRef",name:"Q{}value",slot:"0"},{N:"fn",name:"empty",C:[{N:"slash",simple:"2",C:[{N:"slash", +simple:"2",C:[{N:"axis",name:"parent",nodeTest:"N u[NE,ND]"},{N:"axis",name:"parent",nodeTest:"N u[NE,ND]"}]},{N:"axis",name:"self",nodeTest:"NE u[NE u[NE u[NE u[NE nQ{http://www.w3.org/1999/XSL/Transform}template,NE nQ{http://www.w3.org/1999/XSL/Transform}apply-templates],NE nQ{http://www.w3.org/1999/XSL/Transform}apply-imports],NE nQ{http://www.w3.org/1999/XSL/Transform}call-template],NE nQ{http://www.w3.org/1999/XSL/Transform}next-match]"}]}]}]},{N:"ufCall",line:"700",name:"Q{MyFunctions}syntax-error-at", +tailCall:"false",bSlot:"84",eval:"0 0 16",C:[{N:"str",val:"XTSE0020"},{N:"str",val:"@tunnel=true only permitted on definition and invocations of templates or global parameters"},{N:"dot",type:"1NA"}]}]},{N:"compAtt",line:"702",C:[{N:"fn",role:"name",name:"name",C:[{N:"dot",type:"1NA"}]},{N:"fn",role:"select",name:"string",C:[{N:"varRef",name:"Q{}value",slot:"0"}]}]}]}]}]},{N:"templateRule",prec:"0",prio:"0.5",seq:"90",rank:"3",minImp:"0",slots:"1",matches:"NA nQ{}tunnel",flags:"s",line:"694",module:"normalize.xsl", +C:[{N:"p.withUpper",role:"match",axis:"parent",upFirst:"false",C:[{N:"p.nodeTest",test:"NA nQ{}tunnel"},{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}param"}]},{N:"let",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"695","var":"Q{}value",slot:"0",eval:"16",C:[{N:"ufCall",name:"Q{MyFunctions}boolean-string",tailCall:"false",bSlot:"83",eval:"16", +C:[{N:"dot",type:"1NA"}]},{N:"sequence",line:"697",C:[{N:"choose",C:[{N:"and",op:"and",C:[{N:"varRef",name:"Q{}value",slot:"0"},{N:"fn",name:"empty",C:[{N:"slash",simple:"2",C:[{N:"slash",simple:"2",C:[{N:"axis",name:"parent",nodeTest:"N u[NE,ND]"},{N:"axis",name:"parent",nodeTest:"N u[NE,ND]"}]},{N:"axis",name:"self",nodeTest:"NE u[NE u[NE u[NE u[NE nQ{http://www.w3.org/1999/XSL/Transform}template,NE nQ{http://www.w3.org/1999/XSL/Transform}apply-templates],NE nQ{http://www.w3.org/1999/XSL/Transform}apply-imports],NE nQ{http://www.w3.org/1999/XSL/Transform}call-template],NE nQ{http://www.w3.org/1999/XSL/Transform}next-match]"}]}]}]}, +{N:"ufCall",line:"700",name:"Q{MyFunctions}syntax-error-at",tailCall:"false",bSlot:"84",eval:"0 0 16",C:[{N:"str",val:"XTSE0020"},{N:"str",val:"@tunnel=true only permitted on definition and invocations of templates or global parameters"},{N:"dot",type:"1NA"}]}]},{N:"compAtt",line:"702",C:[{N:"fn",role:"name",name:"name",C:[{N:"dot",type:"1NA"}]},{N:"fn",role:"select",name:"string",C:[{N:"varRef",name:"Q{}value",slot:"0"}]}]}]}]}]},{N:"templateRule",prec:"0",prio:"0.5",seq:"52",part:"1",rank:"3",minImp:"0", +slots:"0",matches:"NA nQ{}version",flags:"s",line:"356",module:"normalize.xsl",C:[{N:"p.withUpper",role:"match",axis:"parent",upFirst:"false",C:[{N:"p.nodeTest",test:"NA nQ{}version"},{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}*"}]},{N:"compAtt",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"357",C:[{N:"fn",role:"name",name:"name",C:[{N:"dot", +type:"1NA"}]},{N:"convert",role:"namespace",from:"AU",to:"AS",C:[{N:"fn",name:"namespace-uri",C:[{N:"dot",type:"1NA"}]}]},{N:"fn",role:"select",name:"replace",C:[{N:"cvUntyped",to:"AS",C:[{N:"data",diag:"0|0||fn:replace",C:[{N:"dot",type:"1NA"}]}]},{N:"str",val:"^\\+"},{N:"str",val:""},{N:"str",val:""}]}]}]},{N:"templateRule",prec:"0",prio:"0.5",seq:"67",part:"9",rank:"3",minImp:"0",slots:"0",matches:"NA nQ{}declared-modes",flags:"s",line:"517",module:"normalize.xsl",C:[{N:"p.withUpper",role:"match", +axis:"parent",upFirst:"false",C:[{N:"p.nodeTest",test:"NA nQ{}declared-modes"},{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}package"}]},{N:"compAtt",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"518",C:[{N:"fn",role:"name",name:"name",C:[{N:"dot",type:"1NA"}]},{N:"ufCall",role:"select",name:"Q{MyFunctions}normalize-boolean",tailCall:"false", +bSlot:"57",eval:"16",C:[{N:"dot",type:"1NA"}]}]}]},{N:"templateRule",prec:"0",prio:"0.0",seq:"46",rank:"2",minImp:"0",slots:"0",matches:"NA nQ{http://www.w3.org/1999/XSL/Transform}default-mode",flags:"s",line:"273",module:"normalize.xsl",C:[{N:"p.nodeTest",role:"match",test:"NA nQ{http://www.w3.org/1999/XSL/Transform}default-mode"},{N:"compAtt",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~", +line:"280",C:[{N:"fn",role:"name",name:"name",C:[{N:"dot",type:"1NA"}]},{N:"convert",role:"namespace",from:"AU",to:"AS",C:[{N:"fn",name:"namespace-uri",C:[{N:"dot",type:"1NA"}]}]},{N:"choose",role:"select",C:[{N:"vc",op:"eq",onEmpty:"0",comp:"CCC",C:[{N:"fn",name:"normalize-space",C:[{N:"cvUntyped",to:"AS",C:[{N:"data",diag:"0|0||fn:normalize-space",C:[{N:"dot",type:"1NA"}]}]}]},{N:"str",val:"#unnamed"}]},{N:"str",val:"#unnamed"},{N:"true"},{N:"ufCall",name:"Q{MyFunctions}EQName",tailCall:"false", +bSlot:"58",eval:"16 16 0",C:[{N:"cvUntyped",to:"AS",C:[{N:"data",diag:"0|0||f:EQName",C:[{N:"dot",type:"1NA"}]}]},{N:"check",card:"1",diag:"0|1||f:EQName",C:[{N:"axis",name:"parent",nodeTest:"N u[NE,ND]"}]},{N:"str",val:"XTSE0020"}]}]}]}]},{N:"templateRule",prec:"0",prio:"0.5",seq:"75",rank:"3",minImp:"0",slots:"0",matches:"NA nQ{}new-each-time",flags:"s",line:"576",module:"normalize.xsl",C:[{N:"p.withUpper",role:"match",axis:"parent",upFirst:"false",C:[{N:"p.nodeTest",test:"NA nQ{}new-each-time"}, +{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}function"}]},{N:"compAtt",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"583",C:[{N:"fn",role:"name",name:"name",C:[{N:"dot",type:"1NA"}]},{N:"choose",role:"select",C:[{N:"vc",op:"eq",onEmpty:"0",comp:"CCC",C:[{N:"fn",name:"normalize-space",C:[{N:"cvUntyped",to:"AS",C:[{N:"data",diag:"0|0||fn:normalize-space", +C:[{N:"dot",type:"1NA"}]}]}]},{N:"str",val:"maybe"}]},{N:"str",val:"maybe"},{N:"true"},{N:"ufCall",name:"Q{MyFunctions}normalize-boolean",tailCall:"false",bSlot:"59",eval:"16",C:[{N:"dot",type:"1NA"}]}]}]}]},{N:"templateRule",prec:"0",prio:"0.5",seq:"103",rank:"3",minImp:"0",slots:"0",matches:"NA nQ{}as",flags:"s",line:"873",module:"normalize.xsl",C:[{N:"p.withUpper",role:"match",axis:"parent",upFirst:"false",C:[{N:"p.withPredicate",C:[{N:"p.nodeTest",test:"NA nQ{}as"},{N:"fn",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~", +line:"873",name:"matches",C:[{N:"fn",name:"normalize-space",C:[{N:"cvUntyped",to:"AS",C:[{N:"data",diag:"0|0||fn:normalize-space",C:[{N:"dot",type:"1NA nQ{}as"}]}]}]},{N:"str",val:"(\\*|\\+|\\?)\\s*$"},{N:"str",val:""}]}]},{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}context-item"}]},{N:"ufCall",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"874", +name:"Q{MyFunctions}syntax-error-at",tailCall:"false",bSlot:"85",eval:"0 16 16",C:[{N:"str",val:"XTSE0020"},{N:"fn",name:"concat",C:[{N:"check",card:"?",diag:"0|0||fn:concat",C:[{N:"slash",C:[{N:"axis",name:"parent",nodeTest:"N u[NE,ND]"},{N:"fn",name:"name",C:[{N:"dot",type:"1NE i[NE,N u[NE,ND]]"}]}]}]},{N:"str",val:"/@as="},{N:"atomSing",card:"?",diag:"0|2||fn:concat",C:[{N:"dot",type:"1NA nQ{}as"}]},{N:"str",val:" cannot have an occurrence indicator"}]},{N:"dot",type:"1NA nQ{}as"}]}]},{N:"templateRule", +prec:"0",prio:"0.5",seq:"41",rank:"3",minImp:"0",slots:"2",matches:"NA nQ{}as",flags:"s",line:"219",module:"normalize.xsl",C:[{N:"p.withUpper",role:"match",axis:"parent",upFirst:"false",C:[{N:"p.nodeTest",test:"NA nQ{}as"},{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}*"}]},{N:"sequence",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~",line:"220", +C:[{N:"param",name:"Q{}xpath-default-namespace",slot:"0",flags:"t",as:"?NA",C:[{N:"empty",role:"select"},{N:"treat",role:"conversion",as:"NA",diag:"8|0|XTTE0590|xpath-default-namespace",C:[{N:"check",card:"?",diag:"8|0|XTTE0590|xpath-default-namespace",C:[{N:"supplied",slot:"0"}]}]}]},{N:"let",line:"221","var":"Q{}parsedType",as:"1FM",slot:"1",eval:"16",C:[{N:"treat",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions js=~ map=~ saxon=~ t=MyTypes xs=~ xsl=~ xml=~", +module:"xpath.xsl",line:"1527",as:"FM",diag:"5|0|XTTE0780|f:parse-sequence-type#3",C:[{N:"ifCall",name:"Q{http://saxon.sf.net/}parse-sequence-type",type:"1F",C:[{N:"cvUntyped",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~",module:"normalize.xsl",line:"221",to:"AS",C:[{N:"data",diag:"0|0||f:parse-sequence-type",C:[{N:"dot",type:"1NA nQ{}as"}]}]},{N:"check",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~", +module:"normalize.xsl",line:"221",card:"1",diag:"0|1||f:parse-sequence-type",C:[{N:"axis",name:"parent",nodeTest:"N u[NE,ND]"}]},{N:"cvUntyped",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~",module:"normalize.xsl",line:"221",to:"AS",C:[{N:"data",diag:"0|2||f:parse-sequence-type",C:[{N:"varRef",name:"Q{}xpath-default-namespace",slot:"0"}]}]}]}]},{N:"sequence",line:"222", +C:[{N:"att",name:"as",C:[{N:"ufCall",name:"Q{MyTypes}displayType",tailCall:"false",bSlot:"86",eval:"6",C:[{N:"varRef",name:"Q{}parsedType",slot:"1"}]}]},{N:"att",line:"223",name:"ex:asJ",nsuri:"http://ns.saxonica.com/xslt/export",C:[{N:"ufCall",name:"Q{MyTypes}unmarshalType",tailCall:"false",bSlot:"87",eval:"6",C:[{N:"varRef",name:"Q{}parsedType",slot:"1"}]}]}]}]}]}]},{N:"templateRule",prec:"0",prio:"0.5",seq:"104",rank:"3",minImp:"0",slots:"0",matches:"NA nQ{}use",flags:"s",line:"876",module:"normalize.xsl", +C:[{N:"p.withUpper",role:"match",axis:"parent",upFirst:"false",C:[{N:"p.withPredicate",C:[{N:"p.nodeTest",test:"NA nQ{}use"},{N:"fn",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"876",name:"not",C:[{N:"gc",op:"=",card:"M:N",comp:"CCC",C:[{N:"fn",name:"normalize-space",C:[{N:"cvUntyped",to:"AS",C:[{N:"data",diag:"0|0||fn:normalize-space",C:[{N:"dot",type:"1NA nQ{}use"}]}]}]}, +{N:"literal",count:"3",C:[{N:"str",val:"required"},{N:"str",val:"optional"},{N:"str",val:"absent"}]}]}]}]},{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}context-item"}]},{N:"ufCall",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"877",name:"Q{MyFunctions}syntax-error-at",tailCall:"false",bSlot:"88",eval:"0 16 16",C:[{N:"str",val:"XTSE0020"}, +{N:"fn",name:"concat",C:[{N:"check",card:"?",diag:"0|0||fn:concat",C:[{N:"slash",C:[{N:"axis",name:"parent",nodeTest:"N u[NE,ND]"},{N:"fn",name:"name",C:[{N:"dot",type:"1NE i[NE,N u[NE,ND]]"}]}]}]},{N:"str",val:"/@use="},{N:"atomSing",card:"?",diag:"0|2||fn:concat",C:[{N:"dot",type:"1NA nQ{}use"}]},{N:"str",val:" must be one of required|optional|absent"}]},{N:"dot",type:"1NA nQ{}use"}]}]},{N:"templateRule",prec:"0",prio:"0.5",seq:"60",rank:"3",minImp:"0",slots:"0",matches:"NA nQ{}format",flags:"s", +line:"426",module:"normalize.xsl",C:[{N:"p.withUpper",role:"match",axis:"parent",upFirst:"false",C:[{N:"p.withPredicate",C:[{N:"p.nodeTest",test:"NA nQ{}format"},{N:"fn",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"426",name:"not",C:[{N:"fn",name:"contains",C:[{N:"cvUntyped",to:"AS",C:[{N:"data",diag:"0|0||fn:contains",C:[{N:"dot",type:"1NA nQ{}format"}]}]},{N:"str",val:"{"}]}]}]}, +{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}result-document"}]},{N:"compAtt",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"427",C:[{N:"fn",role:"name",name:"local-name",C:[{N:"dot",type:"1NA nQ{}format"}]},{N:"fn",role:"select",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~", +module:"lib.xsl",line:"154",name:"replace",C:[{N:"fn",name:"replace",C:[{N:"ufCall",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",module:"normalize.xsl",line:"427",name:"Q{MyFunctions}EQName",tailCall:"false",bSlot:"89",eval:"16 16 0",C:[{N:"cvUntyped",to:"AS",C:[{N:"data",diag:"0|0||f:EQName",C:[{N:"dot",type:"1NA nQ{}format"}]}]},{N:"check",card:"1",diag:"0|1||f:EQName",C:[{N:"axis", +name:"parent",nodeTest:"N u[NE,ND]"}]},{N:"str",val:"XTDE1460"}]},{N:"str",val:"\\{"},{N:"str",val:"{{"},{N:"str",val:""}]},{N:"str",val:"\\}"},{N:"str",val:"}}"},{N:"str",val:""}]}]}]},{N:"templateRule",prec:"0",prio:"1.0",seq:"85",rank:"5",minImp:"0",slots:"0",matches:"NA nQ{}method",flags:"s",line:"640",module:"normalize.xsl",C:[{N:"p.withUpper",role:"match",axis:"parent",upFirst:"false",C:[{N:"p.withPredicate",C:[{N:"p.nodeTest",test:"NA nQ{}method"},{N:"gc",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~", +line:"640",op:"=",card:"M:N",comp:"CCC",C:[{N:"fn",name:"normalize-space",C:[{N:"cvUntyped",to:"AS",C:[{N:"data",diag:"0|0||fn:normalize-space",C:[{N:"dot",type:"1NA nQ{}method"}]}]}]},{N:"literal",count:"6",C:[{N:"str",val:"xml"},{N:"str",val:"html"},{N:"str",val:"xhtml"},{N:"str",val:"text"},{N:"str",val:"json"},{N:"str",val:"adaptive"}]}]}]},{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}output"}]},{N:"att",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~", +line:"641",name:"method",C:[{N:"fn",name:"normalize-space",C:[{N:"cvUntyped",to:"AS",C:[{N:"data",diag:"0|0||fn:normalize-space",C:[{N:"dot",type:"1NA nQ{}method"}]}]}]}]}]},{N:"templateRule",prec:"0",prio:"0.5",seq:"88",rank:"3",minImp:"0",slots:"0",matches:"NA nQ{}method",flags:"s",line:"675",module:"normalize.xsl",C:[{N:"p.withUpper",role:"match",axis:"parent",upFirst:"false",C:[{N:"p.nodeTest",test:"NA nQ{}method"},{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}output"}]},{N:"att", +role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"676",name:"method",C:[{N:"ufCall",name:"Q{MyFunctions}EQName",tailCall:"false",bSlot:"90",eval:"16 16 0",C:[{N:"cvUntyped",to:"AS",C:[{N:"data",diag:"0|0||f:EQName",C:[{N:"dot",type:"1NA nQ{}method"}]}]},{N:"check",card:"1",diag:"0|1||f:EQName",C:[{N:"axis",name:"parent",nodeTest:"N u[NE,ND]"}]},{N:"str",val:"XTSE1570"}]}]}]}, +{N:"templateRule",prec:"0",prio:"0.5",seq:"110",rank:"3",minImp:"0",slots:"0",matches:"NA nQ{}streamability",flags:"s",line:"903",module:"normalize.xsl",C:[{N:"p.withUpper",role:"match",axis:"parent",upFirst:"false",C:[{N:"p.withPredicate",C:[{N:"p.nodeTest",test:"NA nQ{}streamability"},{N:"vc",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"903",op:"ne",comp:"CCC",C:[{N:"data", +diag:"1|0||ne",C:[{N:"dot",type:"1NA nQ{}streamability"}]},{N:"str",val:"unclassified"}]}]},{N:"p.withPredicate",C:[{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}function"},{N:"fn",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"903",name:"empty",C:[{N:"axis",name:"child",nodeTest:"NE nQ{http://www.w3.org/1999/XSL/Transform}param"}]}]}]},{N:"ufCall",role:"action", +ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"905",name:"Q{MyFunctions}syntax-error-at",tailCall:"false",bSlot:"91",eval:"0 16 16",C:[{N:"str",val:"XTSE3155"},{N:"fn",name:"concat",C:[{N:"str",val:"Parameterless functions can only have @streamability=unclassified. Value given is "},{N:"atomSing",card:"?",diag:"0|1||fn:concat",C:[{N:"dot",type:"1NA nQ{}streamability"}]}]}, +{N:"dot",type:"1NA nQ{}streamability"}]}]},{N:"templateRule",prec:"0",prio:"0.5",seq:"67",part:"4",rank:"3",minImp:"0",slots:"0",matches:"NA nQ{}required",flags:"s",line:"517",module:"normalize.xsl",C:[{N:"p.withUpper",role:"match",axis:"parent",upFirst:"false",C:[{N:"p.nodeTest",test:"NA nQ{}required"},{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}param"}]},{N:"compAtt",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~", +line:"518",C:[{N:"fn",role:"name",name:"name",C:[{N:"dot",type:"1NA"}]},{N:"ufCall",role:"select",name:"Q{MyFunctions}normalize-boolean",tailCall:"false",bSlot:"57",eval:"16",C:[{N:"dot",type:"1NA"}]}]}]},{N:"templateRule",prec:"0",prio:"0.5",seq:"80",part:"1",rank:"3",minImp:"0",slots:"0",matches:"NA nQ{}on-multiple-match",flags:"s",line:"603",module:"normalize.xsl",C:[{N:"p.withUpper",role:"match",axis:"parent",upFirst:"false",C:[{N:"p.nodeTest",test:"NA nQ{}on-multiple-match"},{N:"p.nodeTest", +test:"NE nQ{http://www.w3.org/1999/XSL/Transform}mode"}]},{N:"compAtt",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"604",C:[{N:"fn",role:"name",name:"name",C:[{N:"dot",type:"1NA"}]},{N:"fn",role:"select",name:"normalize-space",C:[{N:"cvUntyped",to:"AS",C:[{N:"data",diag:"0|0||fn:normalize-space",C:[{N:"dot",type:"1NA"}]}]}]}]}]},{N:"templateRule",prec:"0",prio:"0.0", +seq:"49",rank:"2",minImp:"0",slots:"0",matches:"NA nQ{http://www.w3.org/1999/XSL/Transform}inherit-namespaces",flags:"s",line:"314",module:"normalize.xsl",C:[{N:"p.nodeTest",role:"match",test:"NA nQ{http://www.w3.org/1999/XSL/Transform}inherit-namespaces"},{N:"compAtt",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"315",C:[{N:"fn",role:"name",name:"name",C:[{N:"dot", +type:"1NA nQ{http://www.w3.org/1999/XSL/Transform}inherit-namespaces"}]},{N:"ufCall",role:"select",name:"Q{MyFunctions}normalize-boolean",tailCall:"false",bSlot:"92",eval:"16",C:[{N:"dot",type:"1NA nQ{http://www.w3.org/1999/XSL/Transform}inherit-namespaces"}]}]}]},{N:"templateRule",prec:"0",prio:"2.0",seq:"29",rank:"9",minImp:"0",slots:"1",matches:"NA nQ{}then",flags:"s",line:"10",module:"normalize4.xsl",C:[{N:"p.withUpper",role:"match",axis:"parent",upFirst:"false",C:[{N:"p.nodeTest",test:"NA nQ{}then"}, +{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}if"}]},{N:"sequence",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"11",C:[{N:"param",name:"Q{}allowSyntaxExtensions",slot:"0",flags:"t",C:[{N:"false",role:"select"},{N:"supplied",role:"conversion",slot:"0"}]},{N:"choose",line:"13",C:[{N:"varRef",name:"Q{}allowSyntaxExtensions",slot:"0"},{N:"dot", +line:"14",type:"1NA"},{N:"true"},{N:"ufCall",line:"17",name:"Q{MyFunctions}syntax-error-at",tailCall:"false",bSlot:"69",eval:"0 16 16",C:[{N:"str",val:"XTSE0090"},{N:"fn",name:"concat",C:[{N:"fn",name:"name",C:[{N:"check",card:"?",diag:"0|0||fn:name",C:[{N:"axis",name:"parent",nodeTest:"N u[NE,ND]"}]}]},{N:"str",val:" cannot have @"},{N:"fn",name:"name",C:[{N:"dot",type:"1NA"}]}]},{N:"dot",type:"1NA"}]}]}]}]},{N:"templateRule",prec:"0",prio:"0.5",seq:"67",part:"1",rank:"3",minImp:"0",slots:"0",matches:"NA nQ{}copy-namespaces", +flags:"s",line:"517",module:"normalize.xsl",C:[{N:"p.withUpper",role:"match",axis:"parent",upFirst:"false",C:[{N:"p.nodeTest",test:"NA nQ{}copy-namespaces"},{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}copy-of"}]},{N:"compAtt",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"518",C:[{N:"fn",role:"name",name:"name",C:[{N:"dot",type:"1NA"}]},{N:"ufCall", +role:"select",name:"Q{MyFunctions}normalize-boolean",tailCall:"false",bSlot:"57",eval:"16",C:[{N:"dot",type:"1NA"}]}]}]},{N:"templateRule",prec:"0",prio:"0.5",seq:"67",rank:"3",minImp:"0",slots:"0",matches:"NA nQ{}copy-namespaces",flags:"s",line:"517",module:"normalize.xsl",C:[{N:"p.withUpper",role:"match",axis:"parent",upFirst:"false",C:[{N:"p.nodeTest",test:"NA nQ{}copy-namespaces"},{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}copy"}]},{N:"compAtt",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~", +line:"518",C:[{N:"fn",role:"name",name:"name",C:[{N:"dot",type:"1NA"}]},{N:"ufCall",role:"select",name:"Q{MyFunctions}normalize-boolean",tailCall:"false",bSlot:"57",eval:"16",C:[{N:"dot",type:"1NA"}]}]}]},{N:"templateRule",prec:"0",prio:"0.5",seq:"91",rank:"3",minImp:"0",slots:"0",matches:"NA nQ{}stable",flags:"s",line:"706",module:"normalize.xsl",C:[{N:"p.withUpper",role:"match",axis:"parent",upFirst:"false",C:[{N:"p.withPredicate",C:[{N:"p.nodeTest",test:"NA nQ{}stable"},{N:"fn",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~", +line:"706",name:"not",C:[{N:"fn",name:"contains",C:[{N:"cvUntyped",to:"AS",C:[{N:"data",diag:"0|0||fn:contains",C:[{N:"dot",type:"1NA nQ{}stable"}]}]},{N:"str",val:"{"}]}]}]},{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}sort"}]},{N:"att",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"707",name:"stable",C:[{N:"ufCall",name:"Q{MyFunctions}normalize-boolean", +tailCall:"false",bSlot:"93",eval:"16",C:[{N:"dot",type:"1NA nQ{}stable"}]}]}]},{N:"templateRule",prec:"0",prio:"0.0",seq:"67",part:"5",rank:"2",minImp:"0",slots:"0",matches:"NA nQ{http://www.w3.org/1999/XSL/Transform}ZZZexpand-text",flags:"s",line:"517",module:"normalize.xsl",C:[{N:"p.nodeTest",role:"match",test:"NA nQ{http://www.w3.org/1999/XSL/Transform}ZZZexpand-text"},{N:"compAtt",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~", +line:"518",C:[{N:"fn",role:"name",name:"name",C:[{N:"dot",type:"1NA"}]},{N:"ufCall",role:"select",name:"Q{MyFunctions}normalize-boolean",tailCall:"false",bSlot:"57",eval:"16",C:[{N:"dot",type:"1NA"}]}]}]},{N:"templateRule",prec:"0",prio:"0.0",seq:"52",rank:"2",minImp:"0",slots:"0",matches:"NA nQ{http://www.w3.org/1999/XSL/Transform}version",flags:"s",line:"356",module:"normalize.xsl",C:[{N:"p.nodeTest",role:"match",test:"NA nQ{http://www.w3.org/1999/XSL/Transform}version"},{N:"compAtt",role:"action", +ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"357",C:[{N:"fn",role:"name",name:"name",C:[{N:"dot",type:"1NA"}]},{N:"convert",role:"namespace",from:"AU",to:"AS",C:[{N:"fn",name:"namespace-uri",C:[{N:"dot",type:"1NA"}]}]},{N:"fn",role:"select",name:"replace",C:[{N:"cvUntyped",to:"AS",C:[{N:"data",diag:"0|0||fn:replace",C:[{N:"dot",type:"1NA"}]}]},{N:"str",val:"^\\+"},{N:"str", +val:""},{N:"str",val:""}]}]}]},{N:"templateRule",prec:"0",prio:"0.5",seq:"55",rank:"3",minImp:"0",slots:"2",matches:"NA nQ{}use-attribute-sets",flags:"s",line:"378",module:"normalize.xsl",C:[{N:"p.withUpper",role:"match",axis:"parent",upFirst:"false",C:[{N:"p.nodeTest",test:"NA nQ{}use-attribute-sets"},{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}*"}]},{N:"try",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~", +line:"381",flags:"r",C:[{N:"compAtt",C:[{N:"fn",role:"name",name:"concat",C:[{N:"choose",C:[{N:"vc",op:"eq",onEmpty:"0",comp:"CCC",C:[{N:"fn",name:"namespace-uri",C:[{N:"dot",type:"1NA"}]},{N:"atomic",val:"http://www.w3.org/1999/XSL/Transform",type:"AU"}]},{N:"str",val:"xsl:"},{N:"true"},{N:"str",val:""}]},{N:"str",val:"use-attribute-sets"}]},{N:"fn",role:"select",name:"string-join",C:[{N:"let","var":"Q{http://saxon.sf.net/generated-variable}current1154941313",as:"1",slot:"0",eval:"16",C:[{N:"dot", +type:"1NA"},{N:"let","var":"Q{http://saxon.sf.net/generated-variable}v0",as:"1NE i[NE,N u[NE,ND]]",slot:"1",eval:"13",C:[{N:"check",card:"1",diag:"0|1||f:EQName",C:[{N:"slash",simple:"1",C:[{N:"varRef",name:"Q{http://saxon.sf.net/generated-variable}current1154941313",slot:"0"},{N:"axis",name:"parent",nodeTest:"N u[NE,ND]"}]}]},{N:"forEach",C:[{N:"fn",name:"tokenize",C:[{N:"cvUntyped",to:"AS",C:[{N:"data",diag:"0|0||fn:tokenize",C:[{N:"dot",type:"1NA"}]}]}]},{N:"ufCall",name:"Q{MyFunctions}EQName", +tailCall:"false",bSlot:"94",eval:"16 6",C:[{N:"dot",type:"1AS"},{N:"varRef",name:"Q{http://saxon.sf.net/generated-variable}v0",slot:"1"}]}]}]}]},{N:"str",val:" "}]}]},{N:"catch",errors:"*",C:[{N:"ufCall",line:"385",name:"Q{MyFunctions}syntax-error-at",tailCall:"false",bSlot:"95",eval:"0 16 16",C:[{N:"str",val:"XTSE0710"},{N:"fn",name:"concat",C:[{N:"str",val:"@"},{N:"fn",name:"name",C:[{N:"dot",type:"1NA"}]},{N:"str",val:" must be a whitespace-separated list of EQNames; supplied: "},{N:"atomSing", +card:"?",diag:"0|3||fn:concat",C:[{N:"dot",type:"1NA"}]},{N:"str",val:" Cause: "},{N:"atomSing",card:"?",diag:"0|5||fn:concat",C:[{N:"ifCall",name:"Q{http://saxon.sf.net/}dynamic-error-info",type:"*",C:[{N:"str",val:"description"}]}]}]},{N:"dot",type:"1NA"}]}]}]}]},{N:"templateRule",prec:"0",prio:"0.5",seq:"80",rank:"3",minImp:"0",slots:"0",matches:"NA nQ{}on-no-match",flags:"s",line:"603",module:"normalize.xsl",C:[{N:"p.withUpper",role:"match",axis:"parent",upFirst:"false",C:[{N:"p.nodeTest",test:"NA nQ{}on-no-match"}, +{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}mode"}]},{N:"compAtt",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"604",C:[{N:"fn",role:"name",name:"name",C:[{N:"dot",type:"1NA"}]},{N:"fn",role:"select",name:"normalize-space",C:[{N:"cvUntyped",to:"AS",C:[{N:"data",diag:"0|0||fn:normalize-space",C:[{N:"dot",type:"1NA"}]}]}]}]}]},{N:"templateRule", +prec:"0",prio:"0.5",seq:"67",part:"13",rank:"3",minImp:"0",slots:"0",matches:"NA nQ{}disable-output-escaping",flags:"s",line:"517",module:"normalize.xsl",C:[{N:"p.withUpper",role:"match",axis:"parent",upFirst:"false",C:[{N:"p.nodeTest",test:"NA nQ{}disable-output-escaping"},{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}text"}]},{N:"compAtt",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~", +line:"518",C:[{N:"fn",role:"name",name:"name",C:[{N:"dot",type:"1NA"}]},{N:"ufCall",role:"select",name:"Q{MyFunctions}normalize-boolean",tailCall:"false",bSlot:"57",eval:"16",C:[{N:"dot",type:"1NA"}]}]}]},{N:"templateRule",prec:"0",prio:"0.5",seq:"67",part:"12",rank:"3",minImp:"0",slots:"0",matches:"NA nQ{}disable-output-escaping",flags:"s",line:"517",module:"normalize.xsl",C:[{N:"p.withUpper",role:"match",axis:"parent",upFirst:"false",C:[{N:"p.nodeTest",test:"NA nQ{}disable-output-escaping"},{N:"p.nodeTest", +test:"NE nQ{http://www.w3.org/1999/XSL/Transform}value-of"}]},{N:"compAtt",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"518",C:[{N:"fn",role:"name",name:"name",C:[{N:"dot",type:"1NA"}]},{N:"ufCall",role:"select",name:"Q{MyFunctions}normalize-boolean",tailCall:"false",bSlot:"57",eval:"16",C:[{N:"dot",type:"1NA"}]}]}]},{N:"templateRule",prec:"0",prio:"0.0",seq:"51", +part:"1",rank:"2",minImp:"0",slots:"3",matches:"NA nQ{http://www.w3.org/1999/XSL/Transform}exclude-result-prefixes",flags:"s",line:"333",module:"normalize.xsl",C:[{N:"p.nodeTest",role:"match",test:"NA nQ{http://www.w3.org/1999/XSL/Transform}exclude-result-prefixes"},{N:"let",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"336","var":"Q{}att",as:"1",slot:"0",eval:"16", +C:[{N:"dot",type:"1NA"},{N:"let",line:"337","var":"Q{}parent",as:"*N u[NE,ND]",slot:"1",eval:"4",C:[{N:"axis",name:"parent",nodeTest:"N u[NE,ND]"},{N:"let",line:"353","var":"Q{http://saxon.sf.net/generated-variable}v0",as:"1NE i[NE,N u[NE,ND]]",slot:"2",eval:"13",C:[{N:"check",card:"1",diag:"0|1||fn:namespace-uri-for-prefix",C:[{N:"varRef",name:"Q{}parent",slot:"1"}]},{N:"compAtt",C:[{N:"fn",role:"name",name:"name",C:[{N:"dot",type:"1NA"}]},{N:"fn",role:"select",name:"string-join",C:[{N:"convert", +from:"A",to:"AS",C:[{N:"data",C:[{N:"mergeAdj",C:[{N:"forEach",C:[{N:"fn",name:"tokenize",C:[{N:"cvUntyped",to:"AS",C:[{N:"data",diag:"0|0||fn:tokenize",C:[{N:"dot",type:"1NA"}]}]}]},{N:"choose",C:[{N:"vc",op:"eq",onEmpty:"0",comp:"CCC",C:[{N:"dot",type:"1AS"},{N:"str",val:"#all"}]},{N:"dot",type:"1AS"},{N:"vc",op:"eq",onEmpty:"0",comp:"CCC",C:[{N:"dot",type:"1AS"},{N:"str",val:"#default"}]},{N:"choose",C:[{N:"fn",name:"empty",C:[{N:"fn",name:"namespace-uri-for-prefix",C:[{N:"str",val:""},{N:"check", +card:"1",diag:"0|1||fn:namespace-uri-for-prefix",C:[{N:"varRef",name:"Q{}parent",slot:"1"}]}]}]},{N:"ufCall",name:"Q{MyFunctions}syntax-error-at",tailCall:"false",bSlot:"96",eval:"0 0 6",C:[{N:"str",val:"XTSE0809"},{N:"str",val:"No default namespace is in scope"},{N:"varRef",name:"Q{}att",slot:"0"}]},{N:"true"},{N:"dot",type:"1AS"}]},{N:"fn",name:"empty",C:[{N:"fn",name:"namespace-uri-for-prefix",C:[{N:"dot",type:"1AS"},{N:"varRef",name:"Q{http://saxon.sf.net/generated-variable}v0",slot:"2"}]}]}, +{N:"ufCall",name:"Q{MyFunctions}syntax-error-at",tailCall:"false",bSlot:"97",eval:"0 16 6",C:[{N:"str",val:"XTSE0808"},{N:"fn",name:"concat",C:[{N:"str",val:"Prefix "},{N:"dot",type:"1AS"},{N:"str",val:" is not declared"}]},{N:"varRef",name:"Q{}att",slot:"0"}]},{N:"true"},{N:"dot",type:"1AS"}]}]}]}]}]},{N:"str",val:" "}]}]}]}]}]}]},{N:"templateRule",prec:"0",prio:"0.9",seq:"78",rank:"4",minImp:"0",slots:"0",matches:"NA nQ{}typed",flags:"s",line:"597",module:"normalize.xsl",C:[{N:"p.withUpper",role:"match", +axis:"parent",upFirst:"false",C:[{N:"p.withPredicate",C:[{N:"p.nodeTest",test:"NA nQ{}typed"},{N:"gc",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"597",op:"=",card:"M:N",comp:"CCC",C:[{N:"data",diag:"1|0||=",C:[{N:"dot",type:"1NA nQ{}typed"}]},{N:"literal",count:"3",C:[{N:"str",val:"strict"},{N:"str",val:"lax"},{N:"str",val:"unspecified"}]}]}]},{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}mode"}]}, +{N:"dot",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"598",type:"1NA nQ{}typed"}]},{N:"templateRule",prec:"0",prio:"0.5",seq:"79",rank:"3",minImp:"0",slots:"0",matches:"NA nQ{}typed",flags:"s",line:"600",module:"normalize.xsl",C:[{N:"p.withUpper",role:"match",axis:"parent",upFirst:"false",C:[{N:"p.nodeTest",test:"NA nQ{}typed"},{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}mode"}]}, +{N:"compAtt",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"601",C:[{N:"fn",role:"name",name:"name",C:[{N:"dot",type:"1NA"}]},{N:"ufCall",role:"select",name:"Q{MyFunctions}normalize-boolean",tailCall:"false",bSlot:"98",eval:"16",C:[{N:"dot",type:"1NA"}]}]}]},{N:"templateRule",prec:"0",prio:"1.0",seq:"62",rank:"5",minImp:"0",slots:"0",matches:"NA nQ{}standalone", +flags:"s",line:"439",module:"normalize.xsl",C:[{N:"p.withUpper",role:"match",axis:"parent",upFirst:"false",C:[{N:"p.withPredicate",C:[{N:"p.nodeTest",test:"NA nQ{}standalone"},{N:"vc",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"439",op:"eq",comp:"CCC",C:[{N:"data",diag:"1|0||eq",C:[{N:"dot",type:"1NA nQ{}standalone"}]},{N:"str",val:"omit"}]}]},{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}result-document"}]}, +{N:"dot",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"440",type:"1NA nQ{}standalone"}]},{N:"templateRule",prec:"0",prio:"2.0",seq:"29",rank:"9",minImp:"0",slots:"1",matches:"NA nQ{}select",flags:"s",line:"10",module:"normalize4.xsl",C:[{N:"p.withUpper",role:"match",axis:"parent",upFirst:"false",C:[{N:"p.nodeTest",test:"NA nQ{}select"},{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}otherwise"}]}, +{N:"sequence",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"11",C:[{N:"param",name:"Q{}allowSyntaxExtensions",slot:"0",flags:"t",C:[{N:"false",role:"select"},{N:"supplied",role:"conversion",slot:"0"}]},{N:"choose",line:"13",C:[{N:"varRef",name:"Q{}allowSyntaxExtensions",slot:"0"},{N:"dot",line:"14",type:"1NA"},{N:"true"},{N:"ufCall",line:"17",name:"Q{MyFunctions}syntax-error-at", +tailCall:"false",bSlot:"69",eval:"0 16 16",C:[{N:"str",val:"XTSE0090"},{N:"fn",name:"concat",C:[{N:"fn",name:"name",C:[{N:"check",card:"?",diag:"0|0||fn:name",C:[{N:"axis",name:"parent",nodeTest:"N u[NE,ND]"}]}]},{N:"str",val:" cannot have @"},{N:"fn",name:"name",C:[{N:"dot",type:"1NA"}]}]},{N:"dot",type:"1NA"}]}]}]}]},{N:"templateRule",prec:"0",prio:"2.0",seq:"29",rank:"9",minImp:"0",slots:"1",matches:"NA nQ{}select",flags:"s",line:"10",module:"normalize4.xsl",C:[{N:"p.withUpper",role:"match",axis:"parent", +upFirst:"false",C:[{N:"p.nodeTest",test:"NA nQ{}select"},{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}when"}]},{N:"sequence",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"11",C:[{N:"param",name:"Q{}allowSyntaxExtensions",slot:"0",flags:"t",C:[{N:"false",role:"select"},{N:"supplied",role:"conversion",slot:"0"}]},{N:"choose",line:"13",C:[{N:"varRef", +name:"Q{}allowSyntaxExtensions",slot:"0"},{N:"dot",line:"14",type:"1NA"},{N:"true"},{N:"ufCall",line:"17",name:"Q{MyFunctions}syntax-error-at",tailCall:"false",bSlot:"69",eval:"0 16 16",C:[{N:"str",val:"XTSE0090"},{N:"fn",name:"concat",C:[{N:"fn",name:"name",C:[{N:"check",card:"?",diag:"0|0||fn:name",C:[{N:"axis",name:"parent",nodeTest:"N u[NE,ND]"}]}]},{N:"str",val:" cannot have @"},{N:"fn",name:"name",C:[{N:"dot",type:"1NA"}]}]},{N:"dot",type:"1NA"}]}]}]}]},{N:"templateRule",prec:"0",prio:"0.5", +seq:"64",rank:"3",minImp:"0",slots:"0",matches:"NA nQ{}priority",flags:"s",line:"470",module:"normalize.xsl",C:[{N:"p.withUpper",role:"match",axis:"parent",upFirst:"false",C:[{N:"p.nodeTest",test:"NA nQ{}priority"},{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}template"}]},{N:"choose",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"478",C:[{N:"castable", +flags:"a",as:"1AD",C:[{N:"dot",type:"1NA nQ{}priority"}]},{N:"dot",type:"1NA nQ{}priority"},{N:"true"},{N:"ufCall",name:"Q{MyFunctions}syntax-error-at",tailCall:"false",bSlot:"99",eval:"0 16 16",C:[{N:"str",val:"XTSE0530"},{N:"fn",name:"concat",C:[{N:"str",val:"xsl:template/@priority must be decimal - supplied value:"},{N:"atomSing",card:"?",diag:"0|1||fn:concat",C:[{N:"dot",type:"1NA nQ{}priority"}]}]},{N:"dot",type:"1NA nQ{}priority"}]}]}]},{N:"templateRule",prec:"0",prio:"0.0",seq:"55",part:"1", +rank:"2",minImp:"0",slots:"2",matches:"NA nQ{http://www.w3.org/1999/XSL/Transform}use-attribute-sets",flags:"s",line:"378",module:"normalize.xsl",C:[{N:"p.nodeTest",role:"match",test:"NA nQ{http://www.w3.org/1999/XSL/Transform}use-attribute-sets"},{N:"try",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"381",flags:"r",C:[{N:"compAtt",C:[{N:"fn",role:"name",name:"concat", +C:[{N:"choose",C:[{N:"vc",op:"eq",onEmpty:"0",comp:"CCC",C:[{N:"fn",name:"namespace-uri",C:[{N:"dot",type:"1NA"}]},{N:"atomic",val:"http://www.w3.org/1999/XSL/Transform",type:"AU"}]},{N:"str",val:"xsl:"},{N:"true"},{N:"str",val:""}]},{N:"str",val:"use-attribute-sets"}]},{N:"fn",role:"select",name:"string-join",C:[{N:"let","var":"Q{http://saxon.sf.net/generated-variable}current1154941313",as:"1",slot:"0",eval:"16",C:[{N:"dot",type:"1NA"},{N:"let","var":"Q{http://saxon.sf.net/generated-variable}v0", +as:"1NE i[NE,N u[NE,ND]]",slot:"1",eval:"13",C:[{N:"check",card:"1",diag:"0|1||f:EQName",C:[{N:"slash",simple:"1",C:[{N:"varRef",name:"Q{http://saxon.sf.net/generated-variable}current1154941313",slot:"0"},{N:"axis",name:"parent",nodeTest:"N u[NE,ND]"}]}]},{N:"forEach",C:[{N:"fn",name:"tokenize",C:[{N:"cvUntyped",to:"AS",C:[{N:"data",diag:"0|0||fn:tokenize",C:[{N:"dot",type:"1NA"}]}]}]},{N:"ufCall",name:"Q{MyFunctions}EQName",tailCall:"false",bSlot:"94",eval:"16 6",C:[{N:"dot",type:"1AS"},{N:"varRef", +name:"Q{http://saxon.sf.net/generated-variable}v0",slot:"1"}]}]}]}]},{N:"str",val:" "}]}]},{N:"catch",errors:"*",C:[{N:"ufCall",line:"385",name:"Q{MyFunctions}syntax-error-at",tailCall:"false",bSlot:"95",eval:"0 16 16",C:[{N:"str",val:"XTSE0710"},{N:"fn",name:"concat",C:[{N:"str",val:"@"},{N:"fn",name:"name",C:[{N:"dot",type:"1NA"}]},{N:"str",val:" must be a whitespace-separated list of EQNames; supplied: "},{N:"atomSing",card:"?",diag:"0|3||fn:concat",C:[{N:"dot",type:"1NA"}]},{N:"str",val:" Cause: "}, +{N:"atomSing",card:"?",diag:"0|5||fn:concat",C:[{N:"ifCall",name:"Q{http://saxon.sf.net/}dynamic-error-info",type:"*",C:[{N:"str",val:"description"}]}]}]},{N:"dot",type:"1NA"}]}]}]}]},{N:"templateRule",prec:"0",prio:"0.5",seq:"51",rank:"3",minImp:"0",slots:"3",matches:"NA nQ{}exclude-result-prefixes",flags:"s",line:"333",module:"normalize.xsl",C:[{N:"p.withUpper",role:"match",axis:"parent",upFirst:"false",C:[{N:"p.nodeTest",test:"NA nQ{}exclude-result-prefixes"},{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}*"}]}, +{N:"let",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"336","var":"Q{}att",as:"1",slot:"0",eval:"16",C:[{N:"dot",type:"1NA"},{N:"let",line:"337","var":"Q{}parent",as:"*N u[NE,ND]",slot:"1",eval:"4",C:[{N:"axis",name:"parent",nodeTest:"N u[NE,ND]"},{N:"let",line:"353","var":"Q{http://saxon.sf.net/generated-variable}v0",as:"1NE i[NE,N u[NE,ND]]",slot:"2",eval:"13", +C:[{N:"check",card:"1",diag:"0|1||fn:namespace-uri-for-prefix",C:[{N:"varRef",name:"Q{}parent",slot:"1"}]},{N:"compAtt",C:[{N:"fn",role:"name",name:"name",C:[{N:"dot",type:"1NA"}]},{N:"fn",role:"select",name:"string-join",C:[{N:"convert",from:"A",to:"AS",C:[{N:"data",C:[{N:"mergeAdj",C:[{N:"forEach",C:[{N:"fn",name:"tokenize",C:[{N:"cvUntyped",to:"AS",C:[{N:"data",diag:"0|0||fn:tokenize",C:[{N:"dot",type:"1NA"}]}]}]},{N:"choose",C:[{N:"vc",op:"eq",onEmpty:"0",comp:"CCC",C:[{N:"dot",type:"1AS"},{N:"str", +val:"#all"}]},{N:"dot",type:"1AS"},{N:"vc",op:"eq",onEmpty:"0",comp:"CCC",C:[{N:"dot",type:"1AS"},{N:"str",val:"#default"}]},{N:"choose",C:[{N:"fn",name:"empty",C:[{N:"fn",name:"namespace-uri-for-prefix",C:[{N:"str",val:""},{N:"check",card:"1",diag:"0|1||fn:namespace-uri-for-prefix",C:[{N:"varRef",name:"Q{}parent",slot:"1"}]}]}]},{N:"ufCall",name:"Q{MyFunctions}syntax-error-at",tailCall:"false",bSlot:"96",eval:"0 0 6",C:[{N:"str",val:"XTSE0809"},{N:"str",val:"No default namespace is in scope"},{N:"varRef", +name:"Q{}att",slot:"0"}]},{N:"true"},{N:"dot",type:"1AS"}]},{N:"fn",name:"empty",C:[{N:"fn",name:"namespace-uri-for-prefix",C:[{N:"dot",type:"1AS"},{N:"varRef",name:"Q{http://saxon.sf.net/generated-variable}v0",slot:"2"}]}]},{N:"ufCall",name:"Q{MyFunctions}syntax-error-at",tailCall:"false",bSlot:"97",eval:"0 16 6",C:[{N:"str",val:"XTSE0808"},{N:"fn",name:"concat",C:[{N:"str",val:"Prefix "},{N:"dot",type:"1AS"},{N:"str",val:" is not declared"}]},{N:"varRef",name:"Q{}att",slot:"0"}]},{N:"true"},{N:"dot", +type:"1AS"}]}]}]}]}]},{N:"str",val:" "}]}]}]}]}]}]},{N:"templateRule",prec:"0",prio:"0.5",seq:"67",part:"8",rank:"3",minImp:"0",slots:"0",matches:"NA nQ{}warning-on-multiple-match",flags:"s",line:"517",module:"normalize.xsl",C:[{N:"p.withUpper",role:"match",axis:"parent",upFirst:"false",C:[{N:"p.nodeTest",test:"NA nQ{}warning-on-multiple-match"},{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}mode"}]},{N:"compAtt",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~", +line:"518",C:[{N:"fn",role:"name",name:"name",C:[{N:"dot",type:"1NA"}]},{N:"ufCall",role:"select",name:"Q{MyFunctions}normalize-boolean",tailCall:"false",bSlot:"57",eval:"16",C:[{N:"dot",type:"1NA"}]}]}]},{N:"templateRule",prec:"0",prio:"0.0",seq:"48",part:"1",rank:"2",minImp:"0",slots:"3",matches:"NA nQ{http://www.w3.org/1999/XSL/Transform}default-collation",flags:"s",line:"288",module:"normalize.xsl",C:[{N:"p.nodeTest",role:"match",test:"NA nQ{http://www.w3.org/1999/XSL/Transform}default-collation"}, +{N:"let",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"289","var":"Q{}tokens",as:"*AS",slot:"0",eval:"4",C:[{N:"fn",name:"tokenize",C:[{N:"cvUntyped",to:"AS",C:[{N:"data",diag:"0|0||fn:tokenize",C:[{N:"dot",type:"1NA"}]}]}]},{N:"let",line:"290","var":"Q{}recognized",as:"?AS",slot:"1",eval:"7",C:[{N:"first",C:[{N:"filter",flags:"b",C:[{N:"varRef",name:"Q{}tokens", +slot:"0"},{N:"let",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~","var":"Q{}uri",as:"1AS",slot:"2",eval:"16",C:[{N:"dot",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",type:"1AS"},{N:"or",module:"sorting.xsl",line:"21",op:"or",C:[{N:"gc",op:"=",card:"N:1", +comp:"CCC",C:[{N:"gVarRef",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",name:"Q{http://saxon.sf.net/generated-variable}gg717132147",bSlot:"61"},{N:"varRef",name:"Q{}uri",slot:"2"}]},{N:"fn",name:"starts-with",C:[{N:"varRef",name:"Q{}uri",slot:"2"},{N:"str",val:"http://www.w3.org/2013/collation/UCA"}]}]}]}]}]},{N:"att",line:"300",name:"defaultCollation",C:[{N:"fn",name:"string-join", +C:[{N:"convert",from:"A",to:"AS",C:[{N:"choose",C:[{N:"varRef",name:"Q{}recognized",slot:"1"},{N:"varRef",name:"Q{}recognized",slot:"1"},{N:"vc",op:"eq",onEmpty:"0",comp:"CAVC",C:[{N:"fn",name:"count",C:[{N:"varRef",name:"Q{}tokens",slot:"0"}]},{N:"int",val:"1"}]},{N:"data",C:[{N:"mergeAdj",C:[{N:"ufCall",name:"Q{MyFunctions}syntax-error-at",tailCall:"false",bSlot:"62",eval:"0 16 16",C:[{N:"str",val:"XTSE0125"},{N:"fn",name:"concat",C:[{N:"str",val:'Unknown default collation "'},{N:"atomSing",card:"?", +diag:"0|1||fn:concat",C:[{N:"dot",type:"1NA"}]},{N:"str",val:'"'}]},{N:"dot",type:"1NA"}]}]}]},{N:"true"},{N:"data",C:[{N:"mergeAdj",C:[{N:"ufCall",name:"Q{MyFunctions}syntax-error-at",tailCall:"false",bSlot:"63",eval:"0 16 16",C:[{N:"str",val:"XTSE0125"},{N:"fn",name:"concat",C:[{N:"str",val:'No recognized collation in "'},{N:"atomSing",card:"?",diag:"0|1||fn:concat",C:[{N:"dot",type:"1NA"}]},{N:"str",val:'"'}]},{N:"dot",type:"1NA"}]}]}]}]}]},{N:"str",val:" "}]}]}]}]}]},{N:"templateRule",prec:"0", +prio:"0.5",seq:"50",rank:"3",minImp:"0",slots:"0",matches:"NA nQ{}extension-element-prefixes",flags:"s",line:"319",module:"normalize.xsl",C:[{N:"p.withUpper",role:"match",axis:"parent",upFirst:"false",C:[{N:"p.nodeTest",test:"NA nQ{}extension-element-prefixes"},{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}*"}]},{N:"dot",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~", +line:"329",type:"1NA"}]},{N:"templateRule",prec:"0",prio:"0.5",seq:"73",rank:"3",minImp:"0",slots:"0",matches:"NA nQ{}lang",flags:"s",line:"565",module:"normalize.xsl",C:[{N:"p.withUpper",role:"match",axis:"parent",upFirst:"false",C:[{N:"p.nodeTest",test:"NA nQ{}lang"},{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}*"}]},{N:"sequence",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~", +line:"566",C:[{N:"choose",C:[{N:"and",op:"and",C:[{N:"fn",name:"not",C:[{N:"fn",name:"matches",C:[{N:"cvUntyped",to:"AS",C:[{N:"data",diag:"0|0||fn:matches",C:[{N:"dot",type:"1NA nQ{}lang"}]}]},{N:"str",val:"\\{"},{N:"str",val:""}]}]},{N:"fn",name:"not",C:[{N:"castable",flags:"a",as:"1ASNTL",C:[{N:"dot",type:"1NA nQ{}lang"}]}]}]},{N:"ufCall",line:"567",name:"Q{MyFunctions}syntax-error-at",tailCall:"false",bSlot:"100",eval:"0 16 16",C:[{N:"str",val:"XTSE0020"},{N:"fn",name:"concat",C:[{N:"atomSing", +card:"?",diag:"0|0||fn:concat",C:[{N:"dot",type:"1NA nQ{}lang"}]},{N:"str",val:" is not a valid xs:language value"}]},{N:"dot",type:"1NA nQ{}lang"}]}]},{N:"dot",line:"569",type:"1NA nQ{}lang"}]}]},{N:"templateRule",prec:"0",prio:"0.5",seq:"94",part:"1",rank:"3",minImp:"0",slots:"1",matches:"NA nQ{}name",flags:"s",line:"754",module:"normalize.xsl",C:[{N:"p.withUpper",role:"match",axis:"parent",upFirst:"false",C:[{N:"p.withPredicate",C:[{N:"p.withPredicate",C:[{N:"p.nodeTest",test:"NA nQ{}name"},{N:"fn", +ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"754",name:"contains",C:[{N:"cvUntyped",to:"AS",C:[{N:"data",diag:"0|0||fn:contains",C:[{N:"dot",type:"1NA nQ{}name"}]}]},{N:"str",val:":"}]}]},{N:"fn",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"754", +name:"not",C:[{N:"fn",name:"matches",C:[{N:"cvUntyped",to:"AS",C:[{N:"data",diag:"0|0||fn:matches",C:[{N:"dot",type:"1NA nQ{}name"}]}]},{N:"str",val:"\\{"},{N:"str",val:""}]}]}]},{N:"p.withPredicate",C:[{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}attribute"},{N:"fn",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"754",name:"empty",C:[{N:"axis",name:"attribute", +nodeTest:"NA nQ{}namespace"}]}]}]},{N:"let",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"769","var":"Q{}p",slot:"0",eval:"8",C:[{N:"fn",name:"substring-before",C:[{N:"cvUntyped",to:"AS",C:[{N:"data",diag:"0|0||fn:substring-before",C:[{N:"dot",type:"1NA"}]}]},{N:"str",val:":"}]},{N:"choose",C:[{N:"fn",name:"empty",C:[{N:"fn",name:"namespace-uri-for-prefix",C:[{N:"varRef", +name:"Q{}p",slot:"0"},{N:"check",card:"1",diag:"0|1||fn:namespace-uri-for-prefix",C:[{N:"axis",name:"parent",nodeTest:"N u[NE,ND]"}]}]}]},{N:"ufCall",name:"Q{MyFunctions}syntax-error-at",tailCall:"false",bSlot:"101",eval:"16 16 16",C:[{N:"choose",line:"760",C:[{N:"fn",name:"exists",C:[{N:"axis",name:"parent",nodeTest:"NE nQ{http://www.w3.org/1999/XSL/Transform}element"}]},{N:"str",val:"XTDE0830"},{N:"true"},{N:"str",val:"XTDE0860"}]},{N:"fn",name:"concat",C:[{N:"str",val:'Prefix "'},{N:"varRef",name:"Q{}p", +slot:"0"},{N:"str",val:'" is not bound to a namespace'}]},{N:"dot",type:"1NA"}]},{N:"true"},{N:"dot",type:"1NA"}]}]}]},{N:"templateRule",prec:"0",prio:"0.5",seq:"94",rank:"3",minImp:"0",slots:"1",matches:"NA nQ{}name",flags:"s",line:"754",module:"normalize.xsl",C:[{N:"p.withUpper",role:"match",axis:"parent",upFirst:"false",C:[{N:"p.withPredicate",C:[{N:"p.withPredicate",C:[{N:"p.nodeTest",test:"NA nQ{}name"},{N:"fn",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~", +line:"754",name:"contains",C:[{N:"cvUntyped",to:"AS",C:[{N:"data",diag:"0|0||fn:contains",C:[{N:"dot",type:"1NA nQ{}name"}]}]},{N:"str",val:":"}]}]},{N:"fn",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"754",name:"not",C:[{N:"fn",name:"matches",C:[{N:"cvUntyped",to:"AS",C:[{N:"data",diag:"0|0||fn:matches",C:[{N:"dot",type:"1NA nQ{}name"}]}]},{N:"str",val:"\\{"},{N:"str",val:""}]}]}]}, +{N:"p.withPredicate",C:[{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}element"},{N:"fn",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"754",name:"empty",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}namespace"}]}]}]},{N:"let",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~", +line:"769","var":"Q{}p",slot:"0",eval:"8",C:[{N:"fn",name:"substring-before",C:[{N:"cvUntyped",to:"AS",C:[{N:"data",diag:"0|0||fn:substring-before",C:[{N:"dot",type:"1NA"}]}]},{N:"str",val:":"}]},{N:"choose",C:[{N:"fn",name:"empty",C:[{N:"fn",name:"namespace-uri-for-prefix",C:[{N:"varRef",name:"Q{}p",slot:"0"},{N:"check",card:"1",diag:"0|1||fn:namespace-uri-for-prefix",C:[{N:"axis",name:"parent",nodeTest:"N u[NE,ND]"}]}]}]},{N:"ufCall",name:"Q{MyFunctions}syntax-error-at",tailCall:"false",bSlot:"101", +eval:"16 16 16",C:[{N:"choose",line:"760",C:[{N:"fn",name:"exists",C:[{N:"axis",name:"parent",nodeTest:"NE nQ{http://www.w3.org/1999/XSL/Transform}element"}]},{N:"str",val:"XTDE0830"},{N:"true"},{N:"str",val:"XTDE0860"}]},{N:"fn",name:"concat",C:[{N:"str",val:'Prefix "'},{N:"varRef",name:"Q{}p",slot:"0"},{N:"str",val:'" is not bound to a namespace'}]},{N:"dot",type:"1NA"}]},{N:"true"},{N:"dot",type:"1NA"}]}]}]},{N:"templateRule",prec:"0",prio:"0.5",seq:"93",rank:"3",minImp:"0",slots:"1",matches:"NA nQ{}name", +flags:"s",line:"740",module:"normalize.xsl",C:[{N:"p.withUpper",role:"match",axis:"parent",upFirst:"false",C:[{N:"p.nodeTest",test:"NA nQ{}name"},{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}function"}]},{N:"att",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"749",name:"name",C:[{N:"fn",name:"string-join",C:[{N:"convert",from:"A",to:"AS",C:[{N:"data", +C:[{N:"mergeAdj",C:[{N:"let","var":"Q{}n",slot:"0",eval:"16",C:[{N:"ufCall",name:"Q{MyFunctions}not-reserved",tailCall:"false",bSlot:"102",eval:"16 8",C:[{N:"ufCall",name:"Q{MyFunctions}EQName",tailCall:"false",bSlot:"103",eval:"16 16 0",C:[{N:"cvUntyped",to:"AS",C:[{N:"data",diag:"0|0||f:EQName",C:[{N:"dot",type:"1NA nQ{}name"}]}]},{N:"check",card:"1",diag:"0|1||f:EQName",C:[{N:"axis",name:"parent",nodeTest:"N u[NE,ND]"}]},{N:"str",val:"XTSE0020"}]},{N:"dot",type:"1NA nQ{}name"}]},{N:"choose",C:[{N:"fn", +name:"starts-with",C:[{N:"varRef",name:"Q{}n",slot:"0"},{N:"str",val:"Q{}"}]},{N:"ufCall",name:"Q{MyFunctions}syntax-error-at",tailCall:"false",bSlot:"104",eval:"0 0 16",C:[{N:"str",val:"XTSE0740"},{N:"str",val:"Function must be in a namespace"},{N:"dot",type:"1NA nQ{}name"}]},{N:"true"},{N:"varRef",name:"Q{}n",slot:"0"}]}]}]}]}]},{N:"str",val:" "}]}]}]},{N:"templateRule",prec:"0",prio:"0.5",seq:"87",rank:"3",minImp:"0",slots:"0",matches:"NA nQ{}name",flags:"s",line:"671",module:"normalize.xsl",C:[{N:"p.withUpper", +role:"match",axis:"parent",upFirst:"false",C:[{N:"p.nodeTest",test:"NA nQ{}name"},{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}output"}]},{N:"att",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"672",name:"name",C:[{N:"ufCall",name:"Q{MyFunctions}not-reserved",tailCall:"false",bSlot:"105",eval:"16 8",C:[{N:"ufCall",name:"Q{MyFunctions}EQName", +tailCall:"false",bSlot:"106",eval:"16 16 0",C:[{N:"cvUntyped",to:"AS",C:[{N:"data",diag:"0|0||f:EQName",C:[{N:"dot",type:"1NA nQ{}name"}]}]},{N:"check",card:"1",diag:"0|1||f:EQName",C:[{N:"axis",name:"parent",nodeTest:"N u[NE,ND]"}]},{N:"str",val:"XTSE1570"}]},{N:"dot",type:"1NA nQ{}name"}]}]}]},{N:"templateRule",prec:"0",prio:"0.5",seq:"74",rank:"3",minImp:"0",slots:"0",matches:"NA nQ{}name",flags:"s",line:"572",module:"normalize.xsl",C:[{N:"p.withUpper",role:"match",axis:"parent",upFirst:"false", +C:[{N:"p.nodeTest",test:"NA nQ{}name"},{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}merge-source"}]},{N:"compAtt",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"573",C:[{N:"fn",role:"name",name:"name",C:[{N:"dot",type:"1NA nQ{}name"}]},{N:"ufCall",role:"select",name:"Q{MyFunctions}NCName",tailCall:"false",bSlot:"107",eval:"8",C:[{N:"dot",type:"1NA nQ{}name"}]}]}]}, +{N:"templateRule",prec:"0",prio:"0.5",seq:"45",part:"5",rank:"3",minImp:"0",slots:"0",matches:"NA nQ{}name",flags:"s",line:"269",module:"normalize.xsl",C:[{N:"p.withUpper",role:"match",axis:"parent",upFirst:"false",C:[{N:"p.nodeTest",test:"NA nQ{}name"},{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}accumulator"}]},{N:"att",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~", +line:"270",name:"name",C:[{N:"ufCall",name:"Q{MyFunctions}not-reserved",tailCall:"false",bSlot:"108",eval:"16 8",C:[{N:"ufCall",name:"Q{MyFunctions}EQName",tailCall:"false",bSlot:"109",eval:"16 16 0",C:[{N:"cvUntyped",to:"AS",C:[{N:"data",diag:"0|0||f:EQName",C:[{N:"dot",type:"1NA"}]}]},{N:"check",card:"1",diag:"0|1||f:EQName",C:[{N:"axis",name:"parent",nodeTest:"N u[NE,ND]"}]},{N:"str",val:"XTSE0020"}]},{N:"dot",type:"1NA"}]}]}]},{N:"templateRule",prec:"0",prio:"0.5",seq:"45",part:"4",rank:"3",minImp:"0", +slots:"0",matches:"NA nQ{}name",flags:"s",line:"269",module:"normalize.xsl",C:[{N:"p.withUpper",role:"match",axis:"parent",upFirst:"false",C:[{N:"p.nodeTest",test:"NA nQ{}name"},{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}character-map"}]},{N:"att",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"270",name:"name",C:[{N:"ufCall",name:"Q{MyFunctions}not-reserved", +tailCall:"false",bSlot:"108",eval:"16 8",C:[{N:"ufCall",name:"Q{MyFunctions}EQName",tailCall:"false",bSlot:"109",eval:"16 16 0",C:[{N:"cvUntyped",to:"AS",C:[{N:"data",diag:"0|0||f:EQName",C:[{N:"dot",type:"1NA"}]}]},{N:"check",card:"1",diag:"0|1||f:EQName",C:[{N:"axis",name:"parent",nodeTest:"N u[NE,ND]"}]},{N:"str",val:"XTSE0020"}]},{N:"dot",type:"1NA"}]}]}]},{N:"templateRule",prec:"0",prio:"0.5",seq:"45",part:"3",rank:"3",minImp:"0",slots:"0",matches:"NA nQ{}name",flags:"s",line:"269",module:"normalize.xsl", +C:[{N:"p.withUpper",role:"match",axis:"parent",upFirst:"false",C:[{N:"p.nodeTest",test:"NA nQ{}name"},{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}decimal-format"}]},{N:"att",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"270",name:"name",C:[{N:"ufCall",name:"Q{MyFunctions}not-reserved",tailCall:"false",bSlot:"108",eval:"16 8",C:[{N:"ufCall", +name:"Q{MyFunctions}EQName",tailCall:"false",bSlot:"109",eval:"16 16 0",C:[{N:"cvUntyped",to:"AS",C:[{N:"data",diag:"0|0||f:EQName",C:[{N:"dot",type:"1NA"}]}]},{N:"check",card:"1",diag:"0|1||f:EQName",C:[{N:"axis",name:"parent",nodeTest:"N u[NE,ND]"}]},{N:"str",val:"XTSE0020"}]},{N:"dot",type:"1NA"}]}]}]},{N:"templateRule",prec:"0",prio:"0.5",seq:"45",part:"2",rank:"3",minImp:"0",slots:"0",matches:"NA nQ{}name",flags:"s",line:"269",module:"normalize.xsl",C:[{N:"p.withUpper",role:"match",axis:"parent", +upFirst:"false",C:[{N:"p.nodeTest",test:"NA nQ{}name"},{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}mode"}]},{N:"att",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"270",name:"name",C:[{N:"ufCall",name:"Q{MyFunctions}not-reserved",tailCall:"false",bSlot:"108",eval:"16 8",C:[{N:"ufCall",name:"Q{MyFunctions}EQName",tailCall:"false",bSlot:"109", +eval:"16 16 0",C:[{N:"cvUntyped",to:"AS",C:[{N:"data",diag:"0|0||f:EQName",C:[{N:"dot",type:"1NA"}]}]},{N:"check",card:"1",diag:"0|1||f:EQName",C:[{N:"axis",name:"parent",nodeTest:"N u[NE,ND]"}]},{N:"str",val:"XTSE0020"}]},{N:"dot",type:"1NA"}]}]}]},{N:"templateRule",prec:"0",prio:"0.5",seq:"45",part:"1",rank:"3",minImp:"0",slots:"0",matches:"NA nQ{}name",flags:"s",line:"269",module:"normalize.xsl",C:[{N:"p.withUpper",role:"match",axis:"parent",upFirst:"false",C:[{N:"p.nodeTest",test:"NA nQ{}name"}, +{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}key"}]},{N:"att",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"270",name:"name",C:[{N:"ufCall",name:"Q{MyFunctions}not-reserved",tailCall:"false",bSlot:"108",eval:"16 8",C:[{N:"ufCall",name:"Q{MyFunctions}EQName",tailCall:"false",bSlot:"109",eval:"16 16 0",C:[{N:"cvUntyped",to:"AS",C:[{N:"data", +diag:"0|0||f:EQName",C:[{N:"dot",type:"1NA"}]}]},{N:"check",card:"1",diag:"0|1||f:EQName",C:[{N:"axis",name:"parent",nodeTest:"N u[NE,ND]"}]},{N:"str",val:"XTSE0020"}]},{N:"dot",type:"1NA"}]}]}]},{N:"templateRule",prec:"0",prio:"0.5",seq:"45",rank:"3",minImp:"0",slots:"0",matches:"NA nQ{}name",flags:"s",line:"269",module:"normalize.xsl",C:[{N:"p.withUpper",role:"match",axis:"parent",upFirst:"false",C:[{N:"p.nodeTest",test:"NA nQ{}name"},{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}attribute-set"}]}, +{N:"att",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"270",name:"name",C:[{N:"ufCall",name:"Q{MyFunctions}not-reserved",tailCall:"false",bSlot:"108",eval:"16 8",C:[{N:"ufCall",name:"Q{MyFunctions}EQName",tailCall:"false",bSlot:"109",eval:"16 16 0",C:[{N:"cvUntyped",to:"AS",C:[{N:"data",diag:"0|0||f:EQName",C:[{N:"dot",type:"1NA"}]}]},{N:"check",card:"1",diag:"0|1||f:EQName", +C:[{N:"axis",name:"parent",nodeTest:"N u[NE,ND]"}]},{N:"str",val:"XTSE0020"}]},{N:"dot",type:"1NA"}]}]}]},{N:"templateRule",prec:"0",prio:"0.5",seq:"44",part:"1",rank:"3",minImp:"0",slots:"1",matches:"NA nQ{}name",flags:"s",line:"251",module:"normalize.xsl",C:[{N:"p.withUpper",role:"match",axis:"parent",upFirst:"false",C:[{N:"p.nodeTest",test:"NA nQ{}name"},{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}call-template"}]},{N:"att",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~", +line:"260",name:"name",C:[{N:"let","var":"Q{}n",slot:"0",eval:"16",C:[{N:"ufCall",name:"Q{MyFunctions}EQName",tailCall:"false",bSlot:"110",eval:"16 16 0",C:[{N:"cvUntyped",to:"AS",C:[{N:"data",diag:"0|0||f:EQName",C:[{N:"dot",type:"1NA"}]}]},{N:"check",card:"1",diag:"0|1||f:EQName",C:[{N:"axis",name:"parent",nodeTest:"N u[NE,ND]"}]},{N:"str",val:"XTSE0020"}]},{N:"choose",C:[{N:"vc",op:"eq",onEmpty:"0",comp:"CCC",C:[{N:"varRef",name:"Q{}n",slot:"0"},{N:"str",val:"Q{http://www.w3.org/1999/XSL/Transform}initial-template"}]}, +{N:"varRef",name:"Q{}n",slot:"0"},{N:"true"},{N:"ufCall",name:"Q{MyFunctions}not-reserved",tailCall:"false",bSlot:"111",eval:"6 8",C:[{N:"varRef",name:"Q{}n",slot:"0"},{N:"dot",type:"1NA"}]}]}]}]}]},{N:"templateRule",prec:"0",prio:"0.5",seq:"44",rank:"3",minImp:"0",slots:"1",matches:"NA nQ{}name",flags:"s",line:"251",module:"normalize.xsl",C:[{N:"p.withUpper",role:"match",axis:"parent",upFirst:"false",C:[{N:"p.nodeTest",test:"NA nQ{}name"},{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}template"}]}, +{N:"att",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"260",name:"name",C:[{N:"let","var":"Q{}n",slot:"0",eval:"16",C:[{N:"ufCall",name:"Q{MyFunctions}EQName",tailCall:"false",bSlot:"110",eval:"16 16 0",C:[{N:"cvUntyped",to:"AS",C:[{N:"data",diag:"0|0||f:EQName",C:[{N:"dot",type:"1NA"}]}]},{N:"check",card:"1",diag:"0|1||f:EQName",C:[{N:"axis",name:"parent",nodeTest:"N u[NE,ND]"}]}, +{N:"str",val:"XTSE0020"}]},{N:"choose",C:[{N:"vc",op:"eq",onEmpty:"0",comp:"CCC",C:[{N:"varRef",name:"Q{}n",slot:"0"},{N:"str",val:"Q{http://www.w3.org/1999/XSL/Transform}initial-template"}]},{N:"varRef",name:"Q{}n",slot:"0"},{N:"true"},{N:"ufCall",name:"Q{MyFunctions}not-reserved",tailCall:"false",bSlot:"111",eval:"6 8",C:[{N:"varRef",name:"Q{}n",slot:"0"},{N:"dot",type:"1NA"}]}]}]}]}]},{N:"templateRule",prec:"0",prio:"0.5",seq:"43",part:"2",rank:"3",minImp:"0",slots:"0",matches:"NA nQ{}name",flags:"s", +line:"246",module:"normalize.xsl",C:[{N:"p.withUpper",role:"match",axis:"parent",upFirst:"false",C:[{N:"p.nodeTest",test:"NA nQ{}name"},{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}with-param"}]},{N:"att",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"248",name:"name",C:[{N:"ufCall",name:"Q{MyFunctions}not-reserved",tailCall:"false",bSlot:"112", +eval:"16 8",C:[{N:"ufCall",name:"Q{MyFunctions}EQName",tailCall:"false",bSlot:"113",eval:"16 16 0",C:[{N:"cvUntyped",to:"AS",C:[{N:"data",diag:"0|0||f:EQName",C:[{N:"dot",type:"1NA"}]}]},{N:"check",card:"1",diag:"0|1||f:EQName",C:[{N:"axis",name:"parent",nodeTest:"N u[NE,ND]"}]},{N:"str",val:"XTSE0020"}]},{N:"dot",type:"1NA"}]}]}]},{N:"templateRule",prec:"0",prio:"0.5",seq:"43",part:"1",rank:"3",minImp:"0",slots:"0",matches:"NA nQ{}name",flags:"s",line:"246",module:"normalize.xsl",C:[{N:"p.withUpper", +role:"match",axis:"parent",upFirst:"false",C:[{N:"p.nodeTest",test:"NA nQ{}name"},{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}param"}]},{N:"att",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"248",name:"name",C:[{N:"ufCall",name:"Q{MyFunctions}not-reserved",tailCall:"false",bSlot:"112",eval:"16 8",C:[{N:"ufCall",name:"Q{MyFunctions}EQName", +tailCall:"false",bSlot:"113",eval:"16 16 0",C:[{N:"cvUntyped",to:"AS",C:[{N:"data",diag:"0|0||f:EQName",C:[{N:"dot",type:"1NA"}]}]},{N:"check",card:"1",diag:"0|1||f:EQName",C:[{N:"axis",name:"parent",nodeTest:"N u[NE,ND]"}]},{N:"str",val:"XTSE0020"}]},{N:"dot",type:"1NA"}]}]}]},{N:"templateRule",prec:"0",prio:"0.5",seq:"43",rank:"3",minImp:"0",slots:"0",matches:"NA nQ{}name",flags:"s",line:"246",module:"normalize.xsl",C:[{N:"p.withUpper",role:"match",axis:"parent",upFirst:"false",C:[{N:"p.nodeTest", +test:"NA nQ{}name"},{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}variable"}]},{N:"att",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"248",name:"name",C:[{N:"ufCall",name:"Q{MyFunctions}not-reserved",tailCall:"false",bSlot:"112",eval:"16 8",C:[{N:"ufCall",name:"Q{MyFunctions}EQName",tailCall:"false",bSlot:"113",eval:"16 16 0",C:[{N:"cvUntyped", +to:"AS",C:[{N:"data",diag:"0|0||f:EQName",C:[{N:"dot",type:"1NA"}]}]},{N:"check",card:"1",diag:"0|1||f:EQName",C:[{N:"axis",name:"parent",nodeTest:"N u[NE,ND]"}]},{N:"str",val:"XTSE0020"}]},{N:"dot",type:"1NA"}]}]}]},{N:"templateRule",prec:"0",prio:"0.5",seq:"57",rank:"3",minImp:"0",slots:"3",matches:"NA nQ{}use-accumulators",flags:"s",line:"394",module:"normalize.xsl",C:[{N:"p.withUpper",role:"match",axis:"parent",upFirst:"false",C:[{N:"p.nodeTest",test:"NA nQ{}use-accumulators"},{N:"p.nodeTest", +test:"NE nQ{http://www.w3.org/1999/XSL/Transform}*"}]},{N:"att",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"403",name:"use-accumulators",C:[{N:"fn",name:"string-join",C:[{N:"let","var":"Q{http://saxon.sf.net/generated-variable}current600199331",as:"1",slot:"0",eval:"16",C:[{N:"dot",type:"1NA nQ{}use-accumulators"},{N:"let","var":"Q{}n",slot:"1",eval:"8",C:[{N:"fn", +name:"normalize-space",C:[{N:"cvUntyped",to:"AS",C:[{N:"data",diag:"0|0||fn:normalize-space",C:[{N:"dot",type:"1NA nQ{}use-accumulators"}]}]}]},{N:"choose",C:[{N:"vc",op:"eq",onEmpty:"0",comp:"CCC",C:[{N:"varRef",name:"Q{}n",slot:"1"},{N:"str",val:"#all"}]},{N:"str",val:"#all"},{N:"true"},{N:"let","var":"Q{http://saxon.sf.net/generated-variable}v0",as:"1NE i[NE,N u[NE,ND]]",slot:"2",eval:"13",C:[{N:"check",card:"1",diag:"0|1||f:EQName",C:[{N:"slash",simple:"1",C:[{N:"varRef",name:"Q{http://saxon.sf.net/generated-variable}current600199331", +slot:"0"},{N:"axis",name:"parent",nodeTest:"N u[NE,ND]"}]}]},{N:"forEach",C:[{N:"fn",name:"tokenize",C:[{N:"varRef",name:"Q{}n",slot:"1"}]},{N:"ufCall",name:"Q{MyFunctions}EQName",tailCall:"false",bSlot:"114",eval:"16 6 0",C:[{N:"dot",type:"1AS"},{N:"varRef",name:"Q{http://saxon.sf.net/generated-variable}v0",slot:"2"},{N:"str",val:"XTSE3300"}]}]}]}]}]}]},{N:"str",val:" "}]}]}]},{N:"templateRule",prec:"0",prio:"0.5",seq:"65",rank:"3",minImp:"0",slots:"2",matches:"NA nQ{}mode",flags:"s",line:"481", +module:"normalize.xsl",C:[{N:"p.withUpper",role:"match",axis:"parent",upFirst:"false",C:[{N:"p.nodeTest",test:"NA nQ{}mode"},{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}apply-templates"}]},{N:"sequence",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"482",C:[{N:"param",name:"Q{}default-mode",slot:"0",flags:"t",as:"?AS",C:[{N:"empty",role:"select"}, +{N:"treat",role:"conversion",as:"AS",diag:"8|0|XTTE0590|default-mode",C:[{N:"check",card:"?",diag:"8|0|XTTE0590|default-mode",C:[{N:"cvUntyped",to:"AS",diag:"8|0|XTTE0590|default-mode",C:[{N:"data",diag:"8|0|XTTE0590|default-mode",C:[{N:"supplied",slot:"0"}]}]}]}]}]},{N:"compAtt",line:"497",C:[{N:"fn",role:"name",name:"local-name",C:[{N:"dot",type:"1NA nQ{}mode"}]},{N:"fn",role:"select",name:"string-join",C:[{N:"convert",from:"A",to:"AS",C:[{N:"data",C:[{N:"mergeAdj",C:[{N:"let","var":"Q{}t",slot:"1", +eval:"4",C:[{N:"fn",name:"tokenize",C:[{N:"cvUntyped",to:"AS",C:[{N:"data",diag:"0|0||fn:tokenize",C:[{N:"dot",type:"1NA nQ{}mode"}]}]}]},{N:"choose",C:[{N:"vc",op:"ne",onEmpty:"0",comp:"CAVC",C:[{N:"fn",name:"count",C:[{N:"varRef",name:"Q{}t",slot:"1"}]},{N:"int",val:"1"}]},{N:"ufCall",name:"Q{MyFunctions}syntax-error-at",tailCall:"false",bSlot:"115",eval:"0 16 16",C:[{N:"str",val:"XXXXX"},{N:"fn",name:"concat",C:[{N:"str",val:"xsl:apply-templates/@mode must only have one value - supplied values:"}, +{N:"atomSing",card:"?",diag:"0|1||fn:concat",C:[{N:"dot",type:"1NA nQ{}mode"}]}]},{N:"dot",type:"1NA nQ{}mode"}]},{N:"vc",op:"eq",onEmpty:"0",comp:"CCC",C:[{N:"check",card:"?",diag:"1|0||eq",C:[{N:"varRef",name:"Q{}t",slot:"1"}]},{N:"str",val:"#default"}]},{N:"first",C:[{N:"sequence",C:[{N:"varRef",name:"Q{}default-mode",slot:"0"},{N:"str",val:"#unnamed"}]}]},{N:"gc",op:"=",card:"M:N",comp:"CCC",C:[{N:"varRef",name:"Q{}t",slot:"1"},{N:"literal",count:"2",C:[{N:"str",val:"#current"},{N:"str",val:"#unnamed"}]}]}, +{N:"varRef",name:"Q{}t",slot:"1"},{N:"true"},{N:"ufCall",name:"Q{MyFunctions}EQName",tailCall:"false",bSlot:"116",eval:"16 16 0",C:[{N:"check",card:"1",diag:"0|0||f:EQName",C:[{N:"varRef",name:"Q{}t",slot:"1"}]},{N:"check",card:"1",diag:"0|1||f:EQName",C:[{N:"axis",name:"parent",nodeTest:"N u[NE,ND]"}]},{N:"str",val:"XTSE0020"}]}]}]}]}]}]},{N:"str",val:" "}]}]}]}]},{N:"templateRule",prec:"0",prio:"0.5",seq:"63",rank:"3",minImp:"0",slots:"3",matches:"NA nQ{}mode",flags:"s",line:"443",module:"normalize.xsl", +C:[{N:"p.withUpper",role:"match",axis:"parent",upFirst:"false",C:[{N:"p.nodeTest",test:"NA nQ{}mode"},{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}template"}]},{N:"sequence",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"444",C:[{N:"param",name:"Q{}default-mode",slot:"0",flags:"t",as:"?AS",C:[{N:"empty",role:"select"},{N:"treat",role:"conversion", +as:"AS",diag:"8|0|XTTE0590|default-mode",C:[{N:"check",card:"?",diag:"8|0|XTTE0590|default-mode",C:[{N:"cvUntyped",to:"AS",diag:"8|0|XTTE0590|default-mode",C:[{N:"data",diag:"8|0|XTTE0590|default-mode",C:[{N:"supplied",slot:"0"}]}]}]}]}]},{N:"compAtt",line:"467",C:[{N:"fn",role:"name",name:"local-name",C:[{N:"dot",type:"1NA nQ{}mode"}]},{N:"fn",role:"select",name:"string-join",C:[{N:"let","var":"Q{}modes",slot:"1",eval:"4",C:[{N:"for","var":"Q{}m",as:"AS",slot:"2",C:[{N:"fn",role:"in",name:"tokenize", +C:[{N:"cvUntyped",to:"AS",C:[{N:"data",diag:"0|0||fn:tokenize",C:[{N:"dot",type:"1NA nQ{}mode"}]}]}]},{N:"choose",role:"return",C:[{N:"vc",op:"eq",onEmpty:"0",comp:"CCC",C:[{N:"varRef",name:"Q{}m",slot:"2"},{N:"str",val:"#default"}]},{N:"first",C:[{N:"sequence",C:[{N:"varRef",name:"Q{}default-mode",slot:"0"},{N:"str",val:"#unnamed"}]}]},{N:"gc",op:"=",card:"N:1",comp:"CCC",C:[{N:"literal",count:"2",C:[{N:"str",val:"#all"},{N:"str",val:"#unnamed"}]},{N:"varRef",name:"Q{}m",slot:"2"}]},{N:"varRef", +name:"Q{}m",slot:"2"},{N:"true"},{N:"ufCall",name:"Q{MyFunctions}EQName",tailCall:"false",bSlot:"117",eval:"6 16 0",C:[{N:"varRef",name:"Q{}m",slot:"2"},{N:"check",card:"1",diag:"0|1||f:EQName",C:[{N:"axis",name:"parent",nodeTest:"N u[NE,ND]"}]},{N:"str",val:"XTSE0550"}]}]}]},{N:"choose",C:[{N:"and",op:"and",C:[{N:"gc",op:"=",card:"N:1",comp:"CCC",C:[{N:"varRef",name:"Q{}modes",slot:"1"},{N:"str",val:"#all"}]},{N:"vc",op:"gt",onEmpty:"0",comp:"CAVC",C:[{N:"fn",name:"count",C:[{N:"varRef",name:"Q{}modes", +slot:"1"}]},{N:"int",val:"1"}]}]},{N:"data",diag:"0|0||fn:string-join",C:[{N:"ufCall",name:"Q{MyFunctions}syntax-error-at",tailCall:"false",bSlot:"118",eval:"0 0 16",C:[{N:"str",val:"XTSE0550"},{N:"str",val:"@mode=#all must be alone"},{N:"dot",type:"1NA nQ{}mode"}]}]},{N:"fn",name:"empty",C:[{N:"varRef",name:"Q{}modes",slot:"1"}]},{N:"data",diag:"0|0||fn:string-join",C:[{N:"ufCall",name:"Q{MyFunctions}syntax-error-at",tailCall:"false",bSlot:"119",eval:"0 0 16",C:[{N:"str",val:"XTSE0550"},{N:"str", +val:"@mode must have a mode name"},{N:"dot",type:"1NA nQ{}mode"}]}]},{N:"vc",op:"ne",onEmpty:"0",comp:"CAVC",C:[{N:"fn",name:"count",C:[{N:"fn",name:"distinct-values",C:[{N:"varRef",name:"Q{}modes",slot:"1"}]}]},{N:"fn",name:"count",C:[{N:"varRef",name:"Q{}modes",slot:"1"}]}]},{N:"data",diag:"0|0||fn:string-join",C:[{N:"ufCall",name:"Q{MyFunctions}syntax-error-at",tailCall:"false",bSlot:"120",eval:"0 0 16",C:[{N:"str",val:"XTSE0550"},{N:"str",val:"Modes in a template declaration must be unique"}, +{N:"dot",type:"1NA nQ{}mode"}]}]},{N:"true"},{N:"varRef",name:"Q{}modes",slot:"1"}]}]},{N:"str",val:" "}]}]}]}]},{N:"templateRule",prec:"0",prio:"0.5",seq:"79",part:"1",rank:"3",minImp:"0",slots:"0",matches:"NA nQ{}streamable",flags:"s",line:"600",module:"normalize.xsl",C:[{N:"p.withUpper",role:"match",axis:"parent",upFirst:"false",C:[{N:"p.nodeTest",test:"NA nQ{}streamable"},{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}mode"}]},{N:"compAtt",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~", +line:"601",C:[{N:"fn",role:"name",name:"name",C:[{N:"dot",type:"1NA"}]},{N:"ufCall",role:"select",name:"Q{MyFunctions}normalize-boolean",tailCall:"false",bSlot:"98",eval:"16",C:[{N:"dot",type:"1NA"}]}]}]},{N:"templateRule",prec:"0",prio:"0.5",seq:"67",part:"15",rank:"3",minImp:"0",slots:"0",matches:"NA nQ{}streamable",flags:"s",line:"517",module:"normalize.xsl",C:[{N:"p.withUpper",role:"match",axis:"parent",upFirst:"false",C:[{N:"p.nodeTest",test:"NA nQ{}streamable"},{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}merge-source"}]}, +{N:"compAtt",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"518",C:[{N:"fn",role:"name",name:"name",C:[{N:"dot",type:"1NA"}]},{N:"ufCall",role:"select",name:"Q{MyFunctions}normalize-boolean",tailCall:"false",bSlot:"57",eval:"16",C:[{N:"dot",type:"1NA"}]}]}]},{N:"templateRule",prec:"0",prio:"-0.5",seq:"38",rank:"0",minImp:"0",slots:"1",matches:"NT",flags:"s",line:"153", +module:"normalize.xsl",C:[{N:"p.nodeTest",role:"match",test:"NT"},{N:"sequence",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"154",C:[{N:"param",name:"Q{}xml-space-preserve",slot:"0",flags:"t",C:[{N:"false",role:"select"},{N:"supplied",role:"conversion",slot:"0"}]},{N:"choose",line:"156",C:[{N:"fn",name:"normalize-space",C:[{N:"fn",name:"string",C:[{N:"dot", +type:"1NT"}]}]},{N:"dot",line:"157",type:"1NT"},{N:"fn",line:"162",name:"exists",C:[{N:"axis",name:"parent",nodeTest:"NE u[NE u[NE u[NE u[NE u[NE u[NE nQ{http://www.w3.org/1999/XSL/Transform}choose,NE nQ{http://www.w3.org/1999/XSL/Transform}analyze-string],NE nQ{http://www.w3.org/1999/XSL/Transform}apply-imports],NE nQ{http://www.w3.org/1999/XSL/Transform}next-match],NE nQ{http://www.w3.org/1999/XSL/Transform}apply-templates],NE nQ{http://www.w3.org/1999/XSL/Transform}attribute-set],NE nQ{http://www.w3.org/1999/XSL/Transform}call-template]"}]}, +{N:"empty"},{N:"and",line:"164",op:"and",C:[{N:"varRef",name:"Q{}xml-space-preserve",slot:"0"},{N:"fn",name:"empty",C:[{N:"axis",name:"following-sibling",nodeTest:"NE u[NE u[NE nQ{http://www.w3.org/1999/XSL/Transform}param,NE nQ{http://www.w3.org/1999/XSL/Transform}sort],NE nQ{http://www.w3.org/1999/XSL/Transform}context-item]"}]}]},{N:"elem",line:"165",name:"xsl:text",nsuri:"http://www.w3.org/1999/XSL/Transform",C:[{N:"dot",line:"166",type:"1NT"}]},{N:"true"},{N:"dot",line:"170",type:"1NT"}]}]}]}]}]}, +{N:"co",id:"181",binds:"6 250",C:[{N:"globalVariable",name:"Q{}SJ.MULTIPLE_STRING",as:"1AS",line:"60",module:"sequenceType.xsl",visibility:"PRIVATE",C:[{N:"ufCall",ns:"err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ saxon=~ t=MyTypes xs=~ xsl=~ xml=~",line:"60",name:"Q{MyTypes}unmarshalType",tailCall:"false",bSlot:"0",eval:"6",C:[{N:"gVarRef",name:"Q{}ST.MULTIPLE_STRING",bSlot:"1"}]}]}]},{N:"co",id:"74",binds:"6 6",C:[{N:"function",name:"Q{MyTypes}unmarshalType0",line:"79",module:"sequenceType.xsl", +eval:"8",flags:"pU",as:"1AS",slots:"3",C:[{N:"arg",name:"Q{}type",as:"1FM"},{N:"cvUntyped",role:"body",ns:"err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ saxon=~ t=MyTypes xs=~ xsl=~ xml=~",line:"83",to:"AS",diag:"5|0|XTTE0780|t:unmarshalType0#1",C:[{N:"cast",flags:"a",as:"1AZ",C:[{N:"fn",name:"string-join",C:[{N:"convert",from:"AZ",to:"AS",C:[{N:"data",C:[{N:"mergeAdj",C:[{N:"sequence",C:[{N:"valueOf",C:[{N:"fn",name:"concat",C:[{N:"atomSing",card:"?",diag:"0|0||fn:concat",C:[{N:"first", +C:[{N:"sequence",C:[{N:"lookup",C:[{N:"varRef",name:"Q{}type",slot:"0"},{N:"str",val:"o"}]},{N:"str",val:"1"}]}]}]},{N:"atomSing",card:"?",diag:"0|1||fn:concat",C:[{N:"lookup",C:[{N:"varRef",name:"Q{}type",slot:"0"},{N:"str",val:"p"}]}]},{N:"str",val:" "}]}]},{N:"forEach",line:"84",C:[{N:"filter",flags:"b",C:[{N:"ifCall",name:"Q{http://www.w3.org/2005/xpath-functions/map}keys",type:"*A",C:[{N:"varRef",name:"Q{}type",slot:"0"}]},{N:"fn",name:"not",C:[{N:"gc",op:"=",card:"N:1",comp:"GAC|http://www.w3.org/2005/xpath-functions/collation/codepoint", +C:[{N:"literal",count:"2",C:[{N:"str",val:"o"},{N:"str",val:"p"}]},{N:"dot",type:"1A"}]}]}]},{N:"let",line:"85","var":"Q{}key",as:"1",slot:"1",eval:"16",C:[{N:"dot",type:"1A"},{N:"let",line:"86","var":"Q{}value",slot:"2",eval:"4",C:[{N:"ifCall",name:"Q{http://www.w3.org/2005/xpath-functions/map}get",type:"*",C:[{N:"varRef",name:"Q{}type",slot:"0"},{N:"varRef",name:"Q{}key",slot:"1"}]},{N:"choose",line:"89",C:[{N:"gc",op:"=",card:"N:1",comp:"GAC|http://www.w3.org/2005/xpath-functions/collation/codepoint", +C:[{N:"literal",count:"3",C:[{N:"str",val:"n"},{N:"str",val:"c"},{N:"str",val:"t"}]},{N:"varRef",name:"Q{}key",slot:"1"}]},{N:"valueOf",line:"99",C:[{N:"fn",name:"concat",C:[{N:"varRef",name:"Q{}key",slot:"1"},{N:"choose",C:[{N:"instance",of:"1FM",C:[{N:"varRef",name:"Q{}value",slot:"2"}]},{N:"atomSing",card:"?",diag:"0|1||fn:concat",C:[{N:"lookup",C:[{N:"varRef",name:"Q{}value",slot:"2"},{N:"str",val:"code"}]}]},{N:"true"},{N:"atomSing",card:"?",diag:"0|1||fn:concat",C:[{N:"varRef",name:"Q{}value", +slot:"2"}]}]},{N:"str",val:" "}]}]},{N:"gc",line:"101",op:"=",card:"N:1",comp:"GAC|http://www.w3.org/2005/xpath-functions/collation/codepoint",C:[{N:"literal",count:"4",C:[{N:"str",val:"k"},{N:"str",val:"r"},{N:"str",val:"v"},{N:"str",val:"e"}]},{N:"varRef",name:"Q{}key",slot:"1"}]},{N:"valueOf",line:"102",C:[{N:"fn",name:"concat",C:[{N:"varRef",name:"Q{}key",slot:"1"},{N:"str",val:"["},{N:"ufCall",name:"Q{MyTypes}unmarshalType",tailCall:"false",bSlot:"0",eval:"16",C:[{N:"treat",as:"FM",diag:"0|0||t:unmarshalType", +C:[{N:"check",card:"1",diag:"0|0||t:unmarshalType",C:[{N:"varRef",name:"Q{}value",slot:"2"}]}]}]},{N:"str",val:"] "}]}]},{N:"gc",line:"104",op:"=",card:"N:1",comp:"GAC|http://www.w3.org/2005/xpath-functions/collation/codepoint",C:[{N:"literal",count:"2",C:[{N:"str",val:"a"},{N:"str",val:"u"}]},{N:"varRef",name:"Q{}key",slot:"1"}]},{N:"sequence",line:"107",C:[{N:"valueOf",C:[{N:"fn",name:"concat",C:[{N:"varRef",name:"Q{}key",slot:"1"},{N:"str",val:"["}]}]},{N:"valueOf",line:"108",C:[{N:"fn",name:"string-join", +C:[{N:"forEach",C:[{N:"choose",line:"106",C:[{N:"instance",of:"1FA",C:[{N:"varRef",name:"Q{}value",slot:"2"}]},{N:"lookupAll",C:[{N:"varRef",name:"Q{}value",slot:"2"}]},{N:"true"},{N:"varRef",name:"Q{}value",slot:"2"}]},{N:"ufCall",name:"Q{MyTypes}unmarshalType",tailCall:"false",bSlot:"1",eval:"16",C:[{N:"treat",as:"FM",diag:"0|0||t:unmarshalType",C:[{N:"dot"}]}]}]},{N:"str",val:","}]}]},{N:"valueOf",line:"109",C:[{N:"str",val:"] "}]}]}]}]}]}]}]}]}]}]},{N:"str",val:""}]}]}]}]}]},{N:"co",id:"252", +binds:"",C:[{N:"globalVariable",name:"Q{}StaticProperty.ALLOWS_ZERO_OR_ONE",as:"1ADI",line:"110",module:"type.xsl",visibility:"PRIVATE",flags:"s",C:[{N:"int",val:"3"}]}]},{N:"co",id:"253",binds:"",C:[{N:"function",name:"Q{MyTypes}isNumericType",line:"441",module:"type.xsl",eval:"16",flags:"pU",as:"1AB",slots:"2",C:[{N:"arg",name:"Q{}type",as:"1FM"},{N:"let",role:"body",ns:"doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~", +line:"443","var":"Q{}alphaCode",as:"1AS",slot:"1",eval:"16",C:[{N:"treat",as:"AS",diag:"0|0||t:isNumeric",C:[{N:"check",card:"1",diag:"0|0||t:isNumeric",C:[{N:"cvUntyped",to:"AS",C:[{N:"data",diag:"0|0||t:isNumeric",C:[{N:"lookup",C:[{N:"varRef",name:"Q{}type",slot:"0"},{N:"str",val:"base"}]}]}]}]}]},{N:"or",line:"438",op:"or",C:[{N:"or",op:"or",C:[{N:"fn",name:"starts-with",C:[{N:"varRef",name:"Q{}alphaCode",slot:"1"},{N:"str",val:"AD"}]},{N:"fn",name:"starts-with",C:[{N:"varRef",name:"Q{}alphaCode", +slot:"1"},{N:"str",val:"AO"}]}]},{N:"fn",name:"starts-with",C:[{N:"varRef",name:"Q{}alphaCode",slot:"1"},{N:"str",val:"AF"}]}]}]}]}]},{N:"co",id:"254",binds:"",C:[{N:"globalVariable",name:"Q{}ST.OPTIONAL_DECIMAL",as:"1FM k[AS] v[1AS]",line:"20",module:"sequenceType.xsl",visibility:"PRIVATE",C:[{N:"map",size:"2",C:[{N:"str",val:"o"},{N:"str",val:"?"},{N:"str",val:"p"},{N:"str",val:"AD"}]}]}]},{N:"co",id:"255",binds:"",C:[{N:"function",name:"Q{MyFunctions}has-uniform-namespaces",line:"105",module:"namespaces.xsl", +eval:"8",flags:"pU",as:"1AB",slots:"1",C:[{N:"arg",name:"Q{}element",as:"1N"},{N:"ifCall",role:"body",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"107",name:"Q{http://saxon.sf.net/}has-uniform-namespaces",type:"1AB",C:[{N:"treat",as:"NE",diag:"0|0||saxon:has-uniform-namespaces",C:[{N:"varRef",name:"Q{}element",slot:"0"}]}]}]}]},{N:"co",id:"256",binds:"",C:[{N:"function",name:"Q{MyTypes}allowsZeroNEW", +line:"131",module:"type.xsl",eval:"8",flags:"pU",as:"1AB",slots:"1",C:[{N:"arg",name:"Q{}cardinality",as:"1AS"},{N:"fn",role:"body",ns:"doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~",line:"66",name:"contains",C:[{N:"choose",C:[{N:"vc",op:"eq",onEmpty:"0",comp:"CCC",C:[{N:"varRef",line:"133",name:"Q{}cardinality",slot:"0"},{N:"str",val:"*"}]},{N:"str",val:"Z1M"},{N:"vc",op:"eq",onEmpty:"0",comp:"CCC",C:[{N:"varRef", +line:"133",name:"Q{}cardinality",slot:"0"},{N:"str",val:"+"}]},{N:"str",val:"1M"},{N:"vc",op:"eq",onEmpty:"0",comp:"CCC",C:[{N:"varRef",line:"133",name:"Q{}cardinality",slot:"0"},{N:"str",val:""}]},{N:"str",val:"1"},{N:"vc",op:"eq",onEmpty:"0",comp:"CCC",C:[{N:"varRef",line:"133",name:"Q{}cardinality",slot:"0"},{N:"str",val:"?"}]},{N:"str",val:"Z1"},{N:"vc",op:"eq",onEmpty:"0",comp:"CCC",C:[{N:"varRef",line:"133",name:"Q{}cardinality",slot:"0"},{N:"str",val:"0"}]},{N:"str",val:"Z"},{N:"true"},{N:"str", +val:""}]},{N:"str",val:"Z"}]}]}]},{N:"co",id:"126",binds:"",C:[{N:"template",name:"Q{}record-location",flags:"os",as:"*NA",line:"1557",module:"XSLT-SEF-compiler.xsl",slots:"0",C:[{N:"sequence",role:"body",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ saxon=~ t=MyTypes xs=~ xsl=~ xml=~",line:"1558",C:[{N:"choose",C:[{N:"fn",name:"exists",C:[{N:"slash",simple:"1",C:[{N:"treat",as:"N",diag:"14|2|XPTY0020|", +C:[{N:"dot",flags:"a"}]},{N:"axis",name:"attribute",nodeTest:"NA nQ{http://ns.saxonica.com/xslt/export}lineNr"}]}]},{N:"att",line:"1559",name:"line",C:[{N:"convert",from:"AZ",to:"AS",C:[{N:"data",C:[{N:"slash",simple:"1",C:[{N:"treat",as:"N",diag:"14|2|XPTY0020|",C:[{N:"dot",flags:"a"}]},{N:"axis",name:"attribute",nodeTest:"NA nQ{http://ns.saxonica.com/xslt/export}lineNr"}]}]}]}]}]},{N:"choose",line:"1561",C:[{N:"fn",name:"exists",C:[{N:"slash",simple:"1",C:[{N:"treat",as:"N",diag:"14|2|XPTY0020|", +C:[{N:"dot",flags:"a"}]},{N:"axis",name:"attribute",nodeTest:"NA nQ{http://ns.saxonica.com/xslt/export}baseUri"}]}]},{N:"att",line:"1562",name:"module",C:[{N:"lastOf",C:[{N:"fn",name:"tokenize",C:[{N:"cvUntyped",to:"AS",C:[{N:"data",diag:"0|0||fn:tokenize",C:[{N:"slash",simple:"1",C:[{N:"treat",as:"N",diag:"14|2|XPTY0020|",C:[{N:"dot",flags:"a"}]},{N:"axis",name:"attribute",nodeTest:"NA nQ{http://ns.saxonica.com/xslt/export}baseUri"}]}]}]},{N:"str",val:"/"},{N:"str",val:""}]}]}]}]}]}]}]},{N:"co", +id:"257",binds:"",C:[{N:"globalVariable",name:"Q{}COMPILE_GLOBAL",as:"1AB",line:"104",module:"xpath.xsl",visibility:"PUBLIC",flags:"s",C:[{N:"false"}]}]},{N:"co",id:"124",binds:"6 242",C:[{N:"globalVariable",name:"Q{}SJ.SINGLE_DOCUMENT",as:"1AS",line:"48",module:"sequenceType.xsl",visibility:"PRIVATE",C:[{N:"ufCall",ns:"err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ saxon=~ t=MyTypes xs=~ xsl=~ xml=~",line:"48",name:"Q{MyTypes}unmarshalType",tailCall:"false",bSlot:"0",eval:"6",C:[{N:"gVarRef", +name:"Q{}ST.SINGLE_DOCUMENT",bSlot:"1"}]}]}]},{N:"co",id:"231",vis:"PRIVATE",binds:"",C:[{N:"globalVariable",name:"Q{}APOS",as:"1ADI",line:"20",module:"XSLT-value-template.xsl",visibility:"PRIVATE",C:[{N:"int",val:"39"}]}]},{N:"co",id:"258",binds:"",C:[{N:"globalVariable",name:"Q{}ST.SINGLE_URI",as:"1FM k[AS] v[1AS]",line:"27",module:"sequenceType.xsl",visibility:"PRIVATE",C:[{N:"map",size:"2",C:[{N:"str",val:"o"},{N:"str",val:"1"},{N:"str",val:"p"},{N:"str",val:"AU"}]}]}]},{N:"co",id:"259",binds:"", +C:[{N:"function",name:"Q{MyFunctions}map-aliased-name",line:"519",module:"creating-new-nodes.xsl",eval:"16",flags:"pU",as:"*",slots:"5",C:[{N:"arg",name:"Q{}original-name",as:"1AQ"},{N:"arg",name:"Q{}namespace-aliases",as:"1FM"},{N:"let",role:"body",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~",line:"523","var":"Q{}original-uri",as:"1AU",slot:"2",eval:"8",C:[{N:"fn",name:"namespace-uri-from-QName", +C:[{N:"varRef",name:"Q{}original-name",slot:"0"}]},{N:"let",line:"524","var":"Q{}new-uri",as:"1AS",slot:"3",eval:"16",C:[{N:"choose",line:"526",C:[{N:"or",op:"or",C:[{N:"fn",name:"empty",C:[{N:"varRef",name:"Q{}namespace-aliases",slot:"1"}]},{N:"fn",name:"not",C:[{N:"ifCall",name:"Q{http://www.w3.org/2005/xpath-functions/map}contains",type:"1AB",C:[{N:"varRef",name:"Q{}namespace-aliases",slot:"1"},{N:"varRef",name:"Q{}original-uri",slot:"2"}]}]}]},{N:"convert",line:"527",from:"AU",to:"AS",diag:"3|0|XTTE0570|new-uri", +C:[{N:"varRef",name:"Q{}original-uri",slot:"2"}]},{N:"true"},{N:"treat",line:"530",as:"AS",diag:"3|0|XTTE0570|new-uri",C:[{N:"check",card:"1",diag:"3|0|XTTE0570|new-uri",C:[{N:"cvUntyped",to:"AS",diag:"3|0|XTTE0570|new-uri",C:[{N:"data",diag:"3|0|XTTE0570|new-uri",C:[{N:"subscript",C:[{N:"ifCall",name:"Q{http://www.w3.org/2005/xpath-functions/map}get",type:"*",C:[{N:"varRef",name:"Q{}namespace-aliases",slot:"1"},{N:"varRef",name:"Q{}original-uri",slot:"2"}]},{N:"int",val:"2"}]}]}]}]}]}]},{N:"choose", +line:"535",C:[{N:"vc",op:"eq",onEmpty:"0",comp:"CCC",C:[{N:"varRef",name:"Q{}original-uri",slot:"2"},{N:"varRef",name:"Q{}new-uri",slot:"3"}]},{N:"varRef",line:"536",name:"Q{}original-name",slot:"0"},{N:"true"},{N:"let",line:"539","var":"Q{}prefix",as:"?",slot:"4",eval:"7",C:[{N:"first",C:[{N:"ifCall",name:"Q{http://www.w3.org/2005/xpath-functions/map}get",type:"*",C:[{N:"varRef",name:"Q{}namespace-aliases",slot:"1"},{N:"varRef",name:"Q{}original-uri",slot:"2"}]}]},{N:"fn",line:"546",name:"QName", +C:[{N:"varRef",name:"Q{}new-uri",slot:"3"},{N:"fn",name:"concat",C:[{N:"choose",C:[{N:"vc",op:"eq",onEmpty:"0",comp:"GAC|http://www.w3.org/2005/xpath-functions/collation/codepoint",C:[{N:"atomSing",card:"?",diag:"1|0||eq",C:[{N:"varRef",name:"Q{}prefix",slot:"4"}]},{N:"str",val:"#default"}]},{N:"empty"},{N:"true"},{N:"fn",name:"concat",C:[{N:"atomSing",card:"?",diag:"0|0||fn:concat",C:[{N:"varRef",name:"Q{}prefix",slot:"4"}]},{N:"str",val:":"}]}]},{N:"fn",name:"local-name-from-QName",C:[{N:"varRef", +name:"Q{}original-name",slot:"0"}]}]}]}]}]}]}]}]}]},{N:"co",id:"260",binds:"",C:[{N:"globalVariable",name:"Q{}ST.SINGLE_MAP",as:"1FM k[AS] v[1AS]",line:"40",module:"sequenceType.xsl",visibility:"PRIVATE",C:[{N:"map",size:"2",C:[{N:"str",val:"o"},{N:"str",val:"1"},{N:"str",val:"p"},{N:"str",val:"FM"}]}]}]},{N:"co",id:"57",binds:"2 163 6 261 62 126 26 126 262 211 2 126 78 98 102 102 68 98 103 98 103 124 104 68 38 99 263 4 124 103 103 126 135 97 57 135 26 126 135 78 102 175 135 103 219 61 126 103 61 219 4 135 135 135 135 201 125 126 57 241 264 153 104 98 241 104 98 241 104 68 98 4 4 126 4 78 78 4 78 78 126 103 60 265 126 97 98 98 98 61 62 265 4 62 126 68 126 97 135 132 78 103 262 126 78 249 68 98 266 263 18 245 4 126 68 78 211 76 126 97 263 76 61 61 4 62 126 263 26 78 18 103 98 126 97 135 267 102 102 229 68 61 6 121 11 126 78 78 78 78 78 99 98 126 97 135 135 268 26 126 61 126 57 78 68 98 60 78 128 126 68 126 68 126 103 150 61 58 121 11 121 6 6 6 126 68 98 127 99 98 263 127 263 18 245 126 103 102 219 126 62 263 124 126 68 103 126 97 135 135 269 78 126 262 211 78 126 102 68 60 26 61 43 103 6 26 2 2 4 9 4 126 103 98 60 125 126 78 125 78 104 98 103 68 126 78 78 68 78 68 103 103 125 78 104 98 104 98 78 103 68 126 97 135 135 169 78 270 104 98 104 98 150 61 126 135 76 99 58 135 271 135 104 98 135 104 98 4 272 78 99 219", +C:[{N:"mode",name:"Q{}sef",onNo:"SC",flags:"W",patternSlots:"1",C:[{N:"templateRule",prec:"0",prio:"5.01",seq:"325",rank:"17",minImp:"0",slots:"1",matches:"NE",flags:"s",line:"25",module:"attributes.xsl",C:[{N:"p.withPredicate",role:"match",C:[{N:"p.nodeTest",test:"NE"},{N:"axis",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"25",name:"attribute",nodeTest:"NA nQ{http://www.w3.org/1999/XSL/Transform}xpath-default-namespace"}]}, +{N:"sequence",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"26",C:[{N:"param",name:"Q{}attr",slot:"0",as:"*NA",C:[{N:"empty",role:"select"},{N:"treat",role:"conversion",as:"NA",diag:"8|0|XTTE0590|attr",C:[{N:"supplied",slot:"0"}]}]},{N:"nextMatch",line:"31",flags:"t",C:[{N:"withParam",name:"Q{}attr",as:"*NA",C:[{N:"varRef",name:"Q{}attr",slot:"0"}]},{N:"withParam", +name:"Q{}xpath-default-namespace",flags:"t",as:"1NA",C:[{N:"att",line:"29",name:"xpath-default-namespace",C:[{N:"convert",from:"AZ",to:"AS",C:[{N:"attVal",name:"Q{http://www.w3.org/1999/XSL/Transform}xpath-default-namespace",chk:"0"}]}]}]}]}]}]},{N:"templateRule",prec:"0",prio:"5.0",seq:"320",rank:"16",minImp:"0",slots:"1",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}*",flags:"s",line:"18",module:"attributes.xsl",C:[{N:"p.withPredicate",role:"match",C:[{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}*"}, +{N:"axis",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"18",name:"attribute",nodeTest:"NA nQ{}xpath-default-namespace"}]},{N:"sequence",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"19",C:[{N:"param",name:"Q{}attr",slot:"0",as:"*NA",C:[{N:"empty", +role:"select"},{N:"treat",role:"conversion",as:"NA",diag:"8|0|XTTE0590|attr",C:[{N:"supplied",slot:"0"}]}]},{N:"nextMatch",line:"22",flags:"t",C:[{N:"withParam",name:"Q{}attr",as:"*NA",C:[{N:"varRef",name:"Q{}attr",slot:"0"}]},{N:"withParam",name:"Q{}xpath-default-namespace",flags:"t",as:"?NA nQ{}xpath-default-namespace",C:[{N:"axis",line:"21",name:"attribute",nodeTest:"NA nQ{}xpath-default-namespace"}]}]}]}]},{N:"templateRule",prec:"0",prio:"3.6",seq:"360",rank:"15",minImp:"0",slots:"1",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}*", +flags:"s",line:"143",module:"attributes.xsl",C:[{N:"p.withPredicate",role:"match",C:[{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}*"},{N:"axis",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"143",name:"attribute",nodeTest:"NA nQ{}default-mode"}]},{N:"sequence",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~", +line:"144",C:[{N:"param",name:"Q{}attr",slot:"0",as:"*NA",C:[{N:"empty",role:"select"},{N:"treat",role:"conversion",as:"NA",diag:"8|0|XTTE0590|attr",C:[{N:"supplied",slot:"0"}]}]},{N:"nextMatch",line:"147",flags:"t",C:[{N:"withParam",name:"Q{}attr",as:"*NA",C:[{N:"varRef",name:"Q{}attr",slot:"0"}]},{N:"withParam",name:"Q{}default-mode",flags:"t",as:"1AS",C:[{N:"check",line:"146",card:"1",diag:"8|0|XTTE0590|default-mode",C:[{N:"cvUntyped",to:"AS",diag:"8|0|XTTE0590|default-mode",C:[{N:"attVal",name:"Q{}default-mode", +chk:"0"}]}]}]}]}]}]},{N:"templateRule",prec:"0",prio:"3.35",seq:"355",rank:"14",minImp:"0",slots:"1",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}*",flags:"s",line:"102",module:"attributes.xsl",C:[{N:"p.withPredicate",role:"match",C:[{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}*"},{N:"axis",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"102",name:"attribute", +nodeTest:"NA nQ{}inherit-namespaces"}]},{N:"sequence",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"103",C:[{N:"param",name:"Q{}attr",slot:"0",as:"*NA",C:[{N:"empty",role:"select"},{N:"treat",role:"conversion",as:"NA",diag:"8|0|XTTE0590|attr",C:[{N:"supplied",slot:"0"}]}]},{N:"nextMatch",line:"106",flags:"t",C:[{N:"withParam",name:"Q{}attr",as:"*NA",C:[{N:"varRef", +name:"Q{}attr",slot:"0"}]},{N:"withParam",name:"Q{}inherit-namespaces",flags:"t",as:"1AB",C:[{N:"ufCall",line:"105",name:"Q{MyFunctions}boolean-string",tailCall:"false",bSlot:"0",eval:"16",C:[{N:"check",card:"1",diag:"0|0||f:boolean-string",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}inherit-namespaces"}]}]}]}]}]}]},{N:"templateRule",prec:"0",prio:"3.3",seq:"351",rank:"13",minImp:"0",slots:"1",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}*",flags:"s",line:"94",module:"attributes.xsl",C:[{N:"p.withPredicate", +role:"match",C:[{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}*"},{N:"axis",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"94",name:"attribute",nodeTest:"NA nQ{}expand-text"}]},{N:"sequence",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~", +line:"95",C:[{N:"param",name:"Q{}attr",slot:"0",as:"*NA",C:[{N:"empty",role:"select"},{N:"treat",role:"conversion",as:"NA",diag:"8|0|XTTE0590|attr",C:[{N:"supplied",slot:"0"}]}]},{N:"nextMatch",line:"98",flags:"t",C:[{N:"withParam",name:"Q{}attr",as:"*NA",C:[{N:"varRef",name:"Q{}attr",slot:"0"}]},{N:"withParam",name:"Q{}expand-text",flags:"t",as:"1AB",C:[{N:"gc",line:"97",op:"=",card:"N:1",comp:"CCC",C:[{N:"literal",count:"2",C:[{N:"str",val:"true"},{N:"str",val:"yes"}]},{N:"attVal",name:"Q{}expand-text", +chk:"0"}]}]}]}]}]},{N:"templateRule",prec:"0",prio:"3.1",seq:"348",rank:"12",minImp:"0",slots:"1",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}*",flags:"s",line:"79",module:"attributes.xsl",C:[{N:"p.withPredicate",role:"match",C:[{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}*"},{N:"axis",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"79",name:"attribute", +nodeTest:"NA nQ{}defaultCollation"}]},{N:"sequence",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"80",C:[{N:"param",name:"Q{}attr",slot:"0",as:"*NA",C:[{N:"empty",role:"select"},{N:"treat",role:"conversion",as:"NA",diag:"8|0|XTTE0590|attr",C:[{N:"supplied",slot:"0"}]}]},{N:"message",line:"81",C:[{N:"valueOf",role:"select",C:[{N:"fn",name:"concat",C:[{N:"str",val:"Matched "}, +{N:"fn",name:"name",C:[{N:"dot",type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}*"}]},{N:"str",val:" with @defaultCollation="},{N:"fn",name:"string",C:[{N:"convert",from:"AZ",to:"AS",C:[{N:"attVal",name:"Q{}defaultCollation",chk:"0"}]}]}]}]},{N:"str",role:"terminate",val:"no"},{N:"str",role:"error",val:"Q{http://www.w3.org/2005/xqt-errors}XTMM9000"}]},{N:"nextMatch",line:"84",flags:"t",C:[{N:"withParam",name:"Q{}attr",as:"*NA",C:[{N:"varRef",name:"Q{}attr",slot:"0"}]},{N:"withParam",name:"Q{}default-collation", +flags:"t",as:"?NA nQ{}defaultCollation",C:[{N:"axis",line:"83",name:"attribute",nodeTest:"NA nQ{}defaultCollation"}]}]}]}]},{N:"templateRule",prec:"0",prio:"3.1",seq:"345",rank:"12",minImp:"0",slots:"1",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}*",flags:"s",line:"72",module:"attributes.xsl",C:[{N:"p.withPredicate",role:"match",C:[{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}*"},{N:"axis",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~", +line:"72",name:"attribute",nodeTest:"NA nQ{}default-collation"}]},{N:"sequence",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"73",C:[{N:"param",name:"Q{}attr",slot:"0",as:"*NA",C:[{N:"empty",role:"select"},{N:"treat",role:"conversion",as:"NA",diag:"8|0|XTTE0590|attr",C:[{N:"supplied",slot:"0"}]}]},{N:"nextMatch",line:"76",flags:"t",C:[{N:"withParam",name:"Q{}attr", +as:"*NA",C:[{N:"varRef",name:"Q{}attr",slot:"0"}]},{N:"withParam",name:"Q{}default-collation",flags:"t",as:"?NA nQ{}default-collation",C:[{N:"axis",line:"75",name:"attribute",nodeTest:"NA nQ{}default-collation"}]}]}]}]},{N:"templateRule",prec:"0",prio:"3.05",seq:"340",rank:"11",minImp:"0",slots:"1",matches:"NE",flags:"s",line:"57",module:"attributes.xsl",C:[{N:"p.withPredicate",role:"match",C:[{N:"p.nodeTest",test:"NE"},{N:"axis",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~", +line:"57",name:"attribute",nodeTest:"NA nQ{http://www.w3.org/1999/XSL/Transform}default-collation"}]},{N:"sequence",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"58",C:[{N:"param",name:"Q{}attr",slot:"0",as:"*NA",C:[{N:"empty",role:"select"},{N:"treat",role:"conversion",as:"NA",diag:"8|0|XTTE0590|attr",C:[{N:"supplied",slot:"0"}]}]},{N:"nextMatch",line:"63",flags:"t", +C:[{N:"withParam",name:"Q{}attr",as:"*NA",C:[{N:"varRef",name:"Q{}attr",slot:"0"}]},{N:"withParam",name:"Q{}default-collation",flags:"t",as:"1NA",C:[{N:"att",line:"61",name:"defaultCollation",C:[{N:"convert",from:"AZ",to:"AS",C:[{N:"attVal",name:"Q{http://www.w3.org/1999/XSL/Transform}default-collation",chk:"0"}]}]}]}]}]}]},{N:"templateRule",prec:"0",prio:"3.04",seq:"336",rank:"10",minImp:"0",slots:"1",matches:"NE",flags:"s",line:"49",module:"attributes.xsl",C:[{N:"p.withPredicate",role:"match",C:[{N:"p.nodeTest", +test:"NE"},{N:"axis",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"49",name:"attribute",nodeTest:"NA nQ{http://www.w3.org/1999/XSL/Transform}default-mode"}]},{N:"sequence",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"50",C:[{N:"param",name:"Q{}attr", +slot:"0",as:"*NA",C:[{N:"empty",role:"select"},{N:"treat",role:"conversion",as:"NA",diag:"8|0|XTTE0590|attr",C:[{N:"supplied",slot:"0"}]}]},{N:"nextMatch",line:"53",flags:"t",C:[{N:"withParam",name:"Q{}attr",as:"*NA",C:[{N:"varRef",name:"Q{}attr",slot:"0"}]},{N:"withParam",name:"Q{}default-mode",flags:"t",as:"1AS",C:[{N:"check",line:"52",card:"1",diag:"8|0|XTTE0590|default-mode",C:[{N:"cvUntyped",to:"AS",diag:"8|0|XTTE0590|default-mode",C:[{N:"attVal",name:"Q{http://www.w3.org/1999/XSL/Transform}default-mode", +chk:"0"}]}]}]}]}]}]},{N:"templateRule",prec:"0",prio:"3.03",seq:"332",rank:"9",minImp:"0",slots:"1",matches:"NE",flags:"s",line:"41",module:"attributes.xsl",C:[{N:"p.withPredicate",role:"match",C:[{N:"p.nodeTest",test:"NE"},{N:"axis",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"41",name:"attribute",nodeTest:"NA nQ{http://www.w3.org/1999/XSL/Transform}inherit-namespaces"}]},{N:"sequence", +role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"42",C:[{N:"param",name:"Q{}attr",slot:"0",as:"*NA",C:[{N:"empty",role:"select"},{N:"treat",role:"conversion",as:"NA",diag:"8|0|XTTE0590|attr",C:[{N:"supplied",slot:"0"}]}]},{N:"nextMatch",line:"45",flags:"t",C:[{N:"withParam",name:"Q{}attr",as:"*NA",C:[{N:"varRef",name:"Q{}attr",slot:"0"}]},{N:"withParam",name:"Q{}inherit-namespaces", +flags:"t",as:"1AB",C:[{N:"gc",line:"44",op:"=",card:"N:1",comp:"CCC",C:[{N:"literal",count:"2",C:[{N:"str",val:"true"},{N:"str",val:"yes"}]},{N:"attVal",name:"Q{}inherit-namespaces",chk:"0"}]}]}]}]}]},{N:"templateRule",prec:"0",prio:"3.02",seq:"328",rank:"8",minImp:"0",slots:"1",matches:"NE",flags:"s",line:"34",module:"attributes.xsl",C:[{N:"p.withPredicate",role:"match",C:[{N:"p.nodeTest",test:"NE"},{N:"axis",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~", +line:"34",name:"attribute",nodeTest:"NA nQ{http://www.w3.org/1999/XSL/Transform}expand-text"}]},{N:"sequence",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"35",C:[{N:"param",name:"Q{}attr",slot:"0",as:"*NA",C:[{N:"empty",role:"select"},{N:"treat",role:"conversion",as:"NA",diag:"8|0|XTTE0590|attr",C:[{N:"supplied",slot:"0"}]}]},{N:"nextMatch",line:"38",flags:"t",C:[{N:"withParam", +name:"Q{}attr",as:"*NA",C:[{N:"varRef",name:"Q{}attr",slot:"0"}]},{N:"withParam",name:"Q{}expand-text",flags:"t",as:"1AB",C:[{N:"gc",line:"37",op:"=",card:"N:1",comp:"CCC",C:[{N:"literal",count:"2",C:[{N:"str",val:"true"},{N:"str",val:"yes"}]},{N:"attVal",name:"Q{http://www.w3.org/1999/XSL/Transform}expand-text",chk:"0"}]}]}]}]}]},{N:"templateRule",prec:"0",prio:"1.5",seq:"225",rank:"6",minImp:"0",slots:"4",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}*",flags:"s",line:"447",module:"creating-new-nodes.xsl", +C:[{N:"p.withPredicate",role:"match",C:[{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}*"},{N:"axis",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~",line:"447",name:"attribute",nodeTest:"NA nQ{}version"}]},{N:"sequence",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~", +line:"448",C:[{N:"param",name:"Q{}attr",slot:"0",as:"*NA",C:[{N:"empty",role:"select"},{N:"treat",role:"conversion",as:"NA",diag:"8|0|XTTE0590|attr",C:[{N:"supplied",slot:"0"}]}]},{N:"param",line:"449",name:"Q{}static-context",slot:"1",flags:"t",as:"1FM",C:[{N:"map",role:"select",size:"0"},{N:"treat",role:"conversion",as:"FM",diag:"8|0|XTTE0590|static-context",C:[{N:"check",card:"1",diag:"8|0|XTTE0590|static-context",C:[{N:"supplied",slot:"1"}]}]}]},{N:"let",line:"455","var":"Q{}version",as:"?AD", +slot:"2",eval:"7",C:[{N:"cast",flags:"ae",as:"?AD",C:[{N:"choose",C:[{N:"fn",name:"exists",C:[{N:"axis",name:"self",nodeTest:"NE nQ{http://www.w3.org/1999/XSL/Transform}*"}]},{N:"attVal",name:"Q{}version",chk:"0"},{N:"true"},{N:"attVal",name:"Q{http://www.w3.org/1999/XSL/Transform}version",chk:"0"}]}]},{N:"nextMatch",line:"457",flags:"t",C:[{N:"withParam",name:"Q{}attr",as:"*NA",C:[{N:"varRef",name:"Q{}attr",slot:"0"}]},{N:"withParam",name:"Q{}static-context",flags:"t",as:"1FM",C:[{N:"ifCall",line:"462", +name:"Q{http://www.w3.org/2005/xpath-functions/map}merge",type:"1FM",C:[{N:"sequence",C:[{N:"ifCall",name:"Q{http://www.w3.org/2005/xpath-functions/map}merge",type:"1FM",C:[{N:"sequence",C:[{N:"ifCall",name:"Q{http://www.w3.org/2005/xpath-functions/map}entry",type:"1FM",C:[{N:"str",val:"xsl-version"},{N:"varRef",name:"Q{}version",slot:"2"}]},{N:"ifCall",name:"Q{http://www.w3.org/2005/xpath-functions/map}entry",type:"1FM",C:[{N:"str",val:"backward-compatibility"},{N:"vc",op:"lt",comp:"CAVC",C:[{N:"varRef", +name:"Q{}version",slot:"2"},{N:"dec",val:"2"}]}]}]},{N:"map",size:"2",C:[{N:"str",val:"duplicates"},{N:"str",val:"reject"},{N:"str",val:"duplicates-error-code"},{N:"str",val:"FOJS0003"}]}]},{N:"varRef",name:"Q{}static-context",slot:"1"}]},{N:"map",size:"2",C:[{N:"str",val:"duplicates"},{N:"str",val:"use-first"},{N:"str",val:"duplicates-error-code"},{N:"str",val:"FOJS0003"}]}]}]},{N:"withParam",name:"Q{}xsl-version",flags:"t",as:"?AD",C:[{N:"varRef",line:"463",name:"Q{}version",slot:"2"}]},{N:"withParam", +name:"Q{}backward-compatibility",flags:"t",as:"?AB",C:[{N:"vc",line:"464",op:"lt",comp:"CAVC",C:[{N:"varRef",name:"Q{}version",slot:"2"},{N:"dec",val:"2"}]}]}]}]}]}]},{N:"templateRule",prec:"0",prio:"1.5",seq:"225",rank:"6",minImp:"0",slots:"4",matches:"NE",flags:"s",line:"447",module:"creating-new-nodes.xsl",C:[{N:"p.withPredicate",role:"match",C:[{N:"p.nodeTest",test:"NE"},{N:"axis",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~", +line:"447",name:"attribute",nodeTest:"NA nQ{http://www.w3.org/1999/XSL/Transform}version"}]},{N:"sequence",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~",line:"448",C:[{N:"param",name:"Q{}attr",slot:"0",as:"*NA",C:[{N:"empty",role:"select"},{N:"treat",role:"conversion",as:"NA",diag:"8|0|XTTE0590|attr",C:[{N:"supplied",slot:"0"}]}]},{N:"param",line:"449",name:"Q{}static-context", +slot:"1",flags:"t",as:"1FM",C:[{N:"map",role:"select",size:"0"},{N:"treat",role:"conversion",as:"FM",diag:"8|0|XTTE0590|static-context",C:[{N:"check",card:"1",diag:"8|0|XTTE0590|static-context",C:[{N:"supplied",slot:"1"}]}]}]},{N:"let",line:"455","var":"Q{}version",as:"?AD",slot:"2",eval:"7",C:[{N:"cast",flags:"ae",as:"?AD",C:[{N:"choose",C:[{N:"fn",name:"exists",C:[{N:"axis",name:"self",nodeTest:"NE nQ{http://www.w3.org/1999/XSL/Transform}*"}]},{N:"attVal",name:"Q{}version",chk:"0"},{N:"true"},{N:"attVal", +name:"Q{http://www.w3.org/1999/XSL/Transform}version",chk:"0"}]}]},{N:"nextMatch",line:"457",flags:"t",C:[{N:"withParam",name:"Q{}attr",as:"*NA",C:[{N:"varRef",name:"Q{}attr",slot:"0"}]},{N:"withParam",name:"Q{}static-context",flags:"t",as:"1FM",C:[{N:"ifCall",line:"462",name:"Q{http://www.w3.org/2005/xpath-functions/map}merge",type:"1FM",C:[{N:"sequence",C:[{N:"ifCall",name:"Q{http://www.w3.org/2005/xpath-functions/map}merge",type:"1FM",C:[{N:"sequence",C:[{N:"ifCall",name:"Q{http://www.w3.org/2005/xpath-functions/map}entry", +type:"1FM",C:[{N:"str",val:"xsl-version"},{N:"varRef",name:"Q{}version",slot:"2"}]},{N:"ifCall",name:"Q{http://www.w3.org/2005/xpath-functions/map}entry",type:"1FM",C:[{N:"str",val:"backward-compatibility"},{N:"vc",op:"lt",comp:"CAVC",C:[{N:"varRef",name:"Q{}version",slot:"2"},{N:"dec",val:"2"}]}]}]},{N:"map",size:"2",C:[{N:"str",val:"duplicates"},{N:"str",val:"reject"},{N:"str",val:"duplicates-error-code"},{N:"str",val:"FOJS0003"}]}]},{N:"varRef",name:"Q{}static-context",slot:"1"}]},{N:"map",size:"2", +C:[{N:"str",val:"duplicates"},{N:"str",val:"use-first"},{N:"str",val:"duplicates-error-code"},{N:"str",val:"FOJS0003"}]}]}]},{N:"withParam",name:"Q{}xsl-version",flags:"t",as:"?AD",C:[{N:"varRef",line:"463",name:"Q{}version",slot:"2"}]},{N:"withParam",name:"Q{}backward-compatibility",flags:"t",as:"?AB",C:[{N:"vc",line:"464",op:"lt",comp:"CAVC",C:[{N:"varRef",name:"Q{}version",slot:"2"},{N:"dec",val:"2"}]}]}]}]}]}]},{N:"templateRule",prec:"0",prio:"1.0",seq:"174",rank:"3",minImp:"0",slots:"2",matches:"NE", +flags:"s",line:"161",module:"conditionals.xsl",C:[{N:"p.withPredicate",role:"match",C:[{N:"p.nodeTest",test:"NE"},{N:"sequence",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~",line:"161",C:[{N:"axis",name:"child",nodeTest:"NE nQ{http://www.w3.org/1999/XSL/Transform}on-empty"},{N:"axis",name:"child",nodeTest:"NE nQ{http://www.w3.org/1999/XSL/Transform}on-non-empty"}]}]}, +{N:"sequence",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~",line:"162",C:[{N:"param",name:"Q{}attr",slot:"0",as:"*NA",C:[{N:"empty",role:"select"},{N:"treat",role:"conversion",as:"NA",diag:"8|0|XTTE0590|attr",C:[{N:"supplied",slot:"0"}]}]},{N:"let",line:"164","var":"Q{}temp",as:"*NE",slot:"1",eval:"4",C:[{N:"treat",line:"165",as:"NE",diag:"3|0|XTTE0570|temp", +C:[{N:"nextMatch",flags:"i",C:[{N:"withParam",name:"Q{}attr",as:"*NA",C:[{N:"varRef",line:"166",name:"Q{}attr",slot:"0"}]}]}]},{N:"applyT",line:"169",mode:"Q{}on-empty",flags:"t",bSlot:"1",C:[{N:"varRef",role:"select",name:"Q{}temp",slot:"1"},{N:"withParam",name:"Q{}element.attributes",flags:"t",as:"*AS",C:[{N:"choose",line:"176",C:[{N:"fn",name:"exists",C:[{N:"slash",simple:"2",C:[{N:"varRef",name:"Q{}temp",slot:"1"},{N:"axis",name:"self",nodeTest:"NE n*:elem"}]}]},{N:"slash",C:[{N:"axis",name:"attribute", +nodeTest:"NA"},{N:"fn",name:"name",C:[{N:"dot",type:"1NA"}]}]}]}]}]}]}]}]},{N:"templateRule",prec:"0",prio:"-0.5",seq:"227",rank:"0",minImp:"0",slots:"9",matches:"NE",flags:"s",as:"1NE",line:"469",module:"creating-new-nodes.xsl",C:[{N:"p.nodeTest",role:"match",test:"NE"},{N:"check",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~",line:"470",card:"1",diag:'7|0|XTTE0505|match="*" mode="sef"', +C:[{N:"sequence",C:[{N:"param",name:"Q{}attr",slot:"0",as:"*NA",C:[{N:"empty",role:"select"},{N:"treat",role:"conversion",as:"NA",diag:"8|0|XTTE0590|attr",C:[{N:"supplied",slot:"0"}]}]},{N:"param",line:"471",name:"Q{}static-context",slot:"1",flags:"t",C:[{N:"map",role:"select",size:"0"},{N:"supplied",role:"conversion",slot:"1"}]},{N:"let",line:"472","var":"Q{}namespace-aliases",as:"?FM",slot:"2",eval:"7",C:[{N:"treat",as:"FM",diag:"3|0|XTTE0570|namespace-aliases",C:[{N:"check",card:"?",diag:"3|0|XTTE0570|namespace-aliases", +C:[{N:"lookup",C:[{N:"varRef",name:"Q{}static-context",slot:"1"},{N:"str",val:"namespace-aliases"}]}]}]},{N:"let",line:"479","var":"Q{}element-name",as:"1AQ",slot:"3",eval:"16",C:[{N:"choose",C:[{N:"fn",name:"exists",C:[{N:"varRef",name:"Q{}namespace-aliases",slot:"2"}]},{N:"let","var":"Q{}original-name",as:"1AQ",slot:"4",eval:"16",C:[{N:"check",card:"1",diag:"0|0||f:map-aliased-name",C:[{N:"fn",name:"node-name",C:[{N:"dot",type:"1NE"}]}]},{N:"let","var":"Q{}namespace-aliases",as:"1FM",slot:"5",eval:"16", +C:[{N:"check",card:"1",diag:"0|1||f:map-aliased-name",C:[{N:"varRef",name:"Q{}namespace-aliases",slot:"2"}]},{N:"let",line:"523","var":"Q{}original-uri",as:"1AU",slot:"6",eval:"8",C:[{N:"fn",name:"namespace-uri-from-QName",C:[{N:"varRef",name:"Q{}original-name",slot:"4"}]},{N:"let",line:"526","var":"Q{}new-uri",as:"1AS",slot:"7",eval:"16",C:[{N:"choose",C:[{N:"or",op:"or",C:[{N:"fn",name:"empty",C:[{N:"varRef",name:"Q{}namespace-aliases",slot:"5"}]},{N:"fn",name:"not",C:[{N:"ifCall",name:"Q{http://www.w3.org/2005/xpath-functions/map}contains", +type:"1AB",C:[{N:"varRef",name:"Q{}namespace-aliases",slot:"5"},{N:"varRef",name:"Q{}original-uri",slot:"6"}]}]}]},{N:"convert",line:"527",from:"AU",to:"AS",diag:"3|0|XTTE0570|new-uri",C:[{N:"varRef",name:"Q{}original-uri",slot:"6"}]},{N:"true"},{N:"treat",line:"530",as:"AS",diag:"3|0|XTTE0570|new-uri",C:[{N:"check",card:"1",diag:"3|0|XTTE0570|new-uri",C:[{N:"cvUntyped",to:"AS",diag:"3|0|XTTE0570|new-uri",C:[{N:"data",diag:"3|0|XTTE0570|new-uri",C:[{N:"subscript",C:[{N:"ifCall",name:"Q{http://www.w3.org/2005/xpath-functions/map}get", +type:"*",C:[{N:"varRef",name:"Q{}namespace-aliases",slot:"5"},{N:"varRef",name:"Q{}original-uri",slot:"6"}]},{N:"int",val:"2"}]}]}]}]}]}]},{N:"choose",line:"535",C:[{N:"vc",op:"eq",onEmpty:"0",comp:"CCC",C:[{N:"varRef",name:"Q{}original-uri",slot:"6"},{N:"varRef",name:"Q{}new-uri",slot:"7"}]},{N:"varRef",line:"536",name:"Q{}original-name",slot:"4"},{N:"true"},{N:"let",line:"539","var":"Q{}prefix",as:"?",slot:"8",eval:"7",C:[{N:"first",C:[{N:"ifCall",name:"Q{http://www.w3.org/2005/xpath-functions/map}get", +type:"*",C:[{N:"varRef",name:"Q{}namespace-aliases",slot:"5"},{N:"varRef",name:"Q{}original-uri",slot:"6"}]}]},{N:"fn",line:"546",name:"QName",C:[{N:"varRef",name:"Q{}new-uri",slot:"7"},{N:"fn",name:"concat",C:[{N:"choose",C:[{N:"vc",op:"eq",onEmpty:"0",comp:"GAC|http://www.w3.org/2005/xpath-functions/collation/codepoint",C:[{N:"atomSing",card:"?",diag:"1|0||eq",C:[{N:"varRef",name:"Q{}prefix",slot:"8"}]},{N:"str",val:"#default"}]},{N:"empty"},{N:"true"},{N:"fn",name:"concat",C:[{N:"atomSing",card:"?", +diag:"0|0||fn:concat",C:[{N:"varRef",name:"Q{}prefix",slot:"8"}]},{N:"str",val:":"}]}]},{N:"fn",name:"local-name-from-QName",C:[{N:"varRef",name:"Q{}original-name",slot:"4"}]}]}]}]}]}]}]}]}]},{N:"true"},{N:"check",card:"1",diag:"3|0|XTTE0570|element-name",C:[{N:"fn",name:"node-name",C:[{N:"dot",type:"1NE"}]}]}]},{N:"elem",line:"489",name:"elem",nsuri:"http://ns.saxonica.com/xslt/export",flags:"d",C:[{N:"sequence",C:[{N:"att",name:"name",flags:"l",C:[{N:"fn",name:"string",C:[{N:"varRef",name:"Q{}element-name", +slot:"3"}]}]},{N:"att",name:"sType",flags:"l",C:[{N:"ufCall",name:"Q{MyTypes}unmarshalType",tailCall:"false",bSlot:"2",eval:"16",C:[{N:"ifCall",name:"Q{http://www.w3.org/2005/xpath-functions/map}merge",type:"1FM",C:[{N:"sequence",C:[{N:"map",size:"1",C:[{N:"str",val:"p"},{N:"str",val:"NE"}]},{N:"ifCall",name:"Q{http://www.w3.org/2005/xpath-functions/map}entry",type:"1FM",C:[{N:"str",val:"n"},{N:"fn",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~", +module:"lib.xsl",line:"172",name:"concat",C:[{N:"str",val:"Q{"},{N:"fn",name:"namespace-uri-from-QName",C:[{N:"varRef",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~",module:"creating-new-nodes.xsl",line:"489",name:"Q{}element-name",slot:"3"}]},{N:"str",val:"}"},{N:"fn",name:"local-name-from-QName",C:[{N:"varRef",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~", +module:"creating-new-nodes.xsl",line:"489",name:"Q{}element-name",slot:"3"}]}]}]}]},{N:"map",size:"2",C:[{N:"str",val:"duplicates"},{N:"str",val:"reject"},{N:"str",val:"duplicates-error-code"},{N:"str",val:"FOJS0003"}]}]}]}]},{N:"att",name:"nsuri",flags:"l",C:[{N:"convert",from:"AU",to:"AS",C:[{N:"fn",name:"namespace-uri-from-QName",C:[{N:"varRef",name:"Q{}element-name",slot:"3"}]}]}]},{N:"att",name:"namespaces",flags:"l",C:[{N:"ufCall",name:"Q{MyFunctions}record-namespaces",tailCall:"false",bSlot:"3", +eval:"16 11",C:[{N:"dot",type:"1NE"},{N:"sequence",line:"484",C:[{N:"fn",name:"tokenize",C:[{N:"cvUntyped",to:"AS",C:[{N:"attVal",name:"Q{http://ns.saxonica.com/xslt/export}exclude",chk:"0"}]}]},{N:"treat",as:"AS",diag:"3|0|XTTE0570|excluded-namespaces",C:[{N:"cvUntyped",to:"AS",diag:"3|0|XTTE0570|excluded-namespaces",C:[{N:"ifCall",name:"Q{http://www.w3.org/2005/xpath-functions/map}keys",type:"*A",C:[{N:"check",card:"1",diag:"0|0||map:keys",C:[{N:"varRef",name:"Q{}namespace-aliases",slot:"2"}]}]}]}]}, +{N:"str",val:"http://www.w3.org/1999/XSL/Transform"}]}]}]},{N:"applyT",line:"490",mode:"Q{}attribute-sans-prefix",bSlot:"4",C:[{N:"sequence",role:"select",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{http://ns.saxonica.com/xslt/export}baseUri"},{N:"axis",name:"attribute",nodeTest:"NA nQ{http://ns.saxonica.com/xslt/export}ns"},{N:"axis",name:"attribute",nodeTest:"NA nQ{http://ns.saxonica.com/xslt/export}defaultElementNS"}]}]},{N:"choose",line:"491",C:[{N:"vc",op:"eq",onEmpty:"0",comp:"CCC",C:[{N:"attVal", +name:"Q{http://www.w3.org/1999/XSL/Transform}inherit-namespaces",chk:"0"},{N:"str",val:"false"}]},{N:"att",line:"492",name:"flags",flags:"l",C:[{N:"str",val:"C"}]}]},{N:"forEach",line:"494",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{http://www.w3.org/1999/XSL/Transform}xpath-default-namespace"},{N:"att",line:"495",name:"defaultElementNS",flags:"l",C:[{N:"convert",from:"AZ",to:"AS",C:[{N:"data",C:[{N:"dot",type:"1NA nQ{http://www.w3.org/1999/XSL/Transform}xpath-default-namespace"}]}]}]}]},{N:"varRef", +line:"497",name:"Q{}attr",slot:"0"},{N:"callT",line:"498",name:"Q{}record-location",bSlot:"5"},{N:"choose",line:"500",C:[{N:"and",op:"and",C:[{N:"fn",name:"empty",C:[{N:"axis",name:"attribute",nodeTest:"NA"}]},{N:"fn",name:"empty",C:[{N:"axis",name:"child",nodeTest:"N u[NT,NP,NE,NC]"}]}]},{N:"elem",line:"501",name:"empty",nsuri:"http://ns.saxonica.com/xslt/export",flags:"dl",C:[{N:"empty"}]},{N:"and",line:"503",op:"and",C:[{N:"fn",name:"empty",C:[{N:"axis",name:"attribute",nodeTest:"NA"}]},{N:"vc", +op:"eq",onEmpty:"0",comp:"CAVC",C:[{N:"fn",name:"count",C:[{N:"axis",name:"child",nodeTest:"N u[NT,NP,NE,NC]"}]},{N:"int",val:"1"}]}]},{N:"applyT",line:"504",flags:"ci",bSlot:"-1",C:[{N:"axis",role:"select",name:"child",nodeTest:"N"}]},{N:"true"},{N:"elem",line:"507",name:"sequence",nsuri:"http://ns.saxonica.com/xslt/export",flags:"dl",C:[{N:"sequence",line:"508",C:[{N:"applyT",flags:"c",bSlot:"-1",C:[{N:"axis",role:"select",name:"attribute",nodeTest:"NA nQ{http://www.w3.org/1999/XSL/Transform}use-attribute-sets"}]}, +{N:"applyT",line:"510",flags:"c",bSlot:"-1",C:[{N:"sequence",role:"select",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{http://ns.saxonica.com/xslt/export}*"},{N:"axis",name:"attribute",nodeTest:"NA d[NA,NA u[NA nQ{http://www.w3.org/1999/XSL/Transform}use-attribute-sets,NA nQ{http://ns.saxonica.com/xslt/export}*]]"}]}]},{N:"applyT",line:"511",flags:"ci",bSlot:"-1",C:[{N:"axis",role:"select",name:"child",nodeTest:"N"}]}]}]}]}]}]}]}]}]}]}]},{N:"templateRule",prec:"0",prio:"0.0",seq:"153",rank:"1", +minImp:"0",slots:"1",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}next-match",flags:"s",line:"180",module:"rules.xsl",C:[{N:"p.nodeTest",role:"match",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}next-match"},{N:"sequence",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~",line:"181",C:[{N:"param",name:"Q{}attr",slot:"0",as:"*NA",C:[{N:"empty",role:"select"}, +{N:"treat",role:"conversion",as:"NA",diag:"8|0|XTTE0590|attr",C:[{N:"supplied",slot:"0"}]}]},{N:"elem",line:"182",name:"nextMatch",nsuri:"http://ns.saxonica.com/xslt/export",flags:"d",C:[{N:"sequence",C:[{N:"att",name:"sType",flags:"l",C:[{N:"gVarRef",name:"Q{}SJ.ANY_SEQUENCE",bSlot:"6"}]},{N:"varRef",line:"183",name:"Q{}attr",slot:"0"},{N:"callT",line:"184",name:"Q{}record-location",bSlot:"7"},{N:"applyT",line:"185",flags:"c",bSlot:"-1",C:[{N:"axis",role:"select",name:"child",nodeTest:"NE"}]}]}]}]}]}, +{N:"templateRule",prec:"0",prio:"0.0",seq:"242",rank:"1",minImp:"0",slots:"5",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}for-each-group",flags:"s",line:"17",module:"grouping.xsl",C:[{N:"p.nodeTest",role:"match",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}for-each-group"},{N:"sequence",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~",line:"18", +C:[{N:"param",name:"Q{}default-collation",slot:"0",flags:"t",as:"?NA",C:[{N:"empty",role:"select"},{N:"treat",role:"conversion",as:"NA",diag:"8|0|XTTE0590|default-collation",C:[{N:"check",card:"?",diag:"8|0|XTTE0590|default-collation",C:[{N:"supplied",slot:"0"}]}]}]},{N:"param",line:"19",name:"Q{}attr",slot:"1",as:"*NA",C:[{N:"empty",role:"select"},{N:"treat",role:"conversion",as:"NA",diag:"8|0|XTTE0590|attr",C:[{N:"supplied",slot:"1"}]}]},{N:"callT",line:"20",name:"Q{}check-select",bSlot:"8"},{N:"ufCall", +line:"21",name:"Q{MyFunctions}check-sort",tailCall:"false",bSlot:"9",eval:"16",C:[{N:"dot",type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}for-each-group"}]},{N:"let",line:"22","var":"Q{}key",as:"*NA",slot:"2",eval:"4",C:[{N:"sequence",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}group-by"},{N:"axis",name:"attribute",nodeTest:"NA nQ{}group-starting-with"},{N:"axis",name:"attribute",nodeTest:"NA nQ{}group-ending-with"},{N:"axis",name:"attribute",nodeTest:"NA nQ{}group-adjacent"}]},{N:"elem",line:"31", +name:"forEachGroup",nsuri:"http://ns.saxonica.com/xslt/export",flags:"d",C:[{N:"sequence",C:[{N:"att",name:"algorithm",flags:"l",C:[{N:"fn",name:"replace",C:[{N:"check",card:"?",diag:"0|0||fn:replace",C:[{N:"slash",C:[{N:"varRef",name:"Q{}key",slot:"2"},{N:"fn",name:"name",C:[{N:"dot",type:"1NA"}]}]}]},{N:"str",val:"group-|-with"},{N:"str",val:""},{N:"str",val:""}]}]},{N:"choose",line:"32",C:[{N:"choose",line:"29",C:[{N:"fn",name:"exists",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}composite"}]}, +{N:"ufCall",name:"Q{MyFunctions}boolean-string",tailCall:"false",bSlot:"10",eval:"16",C:[{N:"check",card:"1",diag:"0|0||f:boolean-string",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}composite"}]}]},{N:"true"},{N:"false"}]},{N:"att",line:"33",name:"flags",flags:"l",C:[{N:"str",val:"c"}]}]},{N:"varRef",line:"35",name:"Q{}attr",slot:"1"},{N:"callT",line:"36",name:"Q{}record-location",bSlot:"11"},{N:"let",line:"37","var":"Q{}source",as:"*NE",slot:"3",eval:"4",C:[{N:"treat",line:"38",as:"NE",diag:"3|0|XTTE0570|source", +C:[{N:"applyT",mode:"Q{}create.xpath",bSlot:"12",C:[{N:"axis",role:"select",name:"attribute",nodeTest:"NA nQ{}select"}]}]},{N:"sequence",line:"41",C:[{N:"choose",C:[{N:"vc",op:"eq",onEmpty:"0",comp:"CAVC",C:[{N:"fn",name:"count",C:[{N:"axis",name:"child",nodeTest:"NE nQ{http://www.w3.org/1999/XSL/Transform}sort"}]},{N:"int",val:"1"}]},{N:"let",line:"45","var":"Q{http://saxon.sf.net/generated-variable}v0",as:"?NA",slot:"4",eval:"13",C:[{N:"treat",as:"NA",diag:"8|0|XTTE0590|role",C:[{N:"check",card:"?", +diag:"8|0|XTTE0590|role",C:[{N:"lookup",C:[{N:"gVarRef",name:"Q{}roles",bSlot:"13"},{N:"str",val:"sort"}]}]}]},{N:"sequence",line:"42",C:[{N:"varRef",name:"Q{}source",slot:"3"},{N:"forEach",line:"43",C:[{N:"axis",name:"child",nodeTest:"NE nQ{http://www.w3.org/1999/XSL/Transform}sort"},{N:"callT",line:"44",name:"Q{}make-sort-key",bSlot:"14",C:[{N:"withParam",name:"Q{}role",flags:"c",as:"?NA",C:[{N:"varRef",line:"45",name:"Q{http://saxon.sf.net/generated-variable}v0",slot:"4"}]}]}]}]}]},{N:"fn",line:"49", +name:"exists",C:[{N:"axis",name:"child",nodeTest:"NE nQ{http://www.w3.org/1999/XSL/Transform}sort"}]},{N:"elem",line:"50",name:"sort",nsuri:"http://ns.saxonica.com/xslt/export",flags:"dl",C:[{N:"sequence",C:[{N:"att",name:"role",flags:"l",C:[{N:"str",val:"select"}]},{N:"varRef",line:"51",name:"Q{}source",slot:"3"},{N:"forEach",line:"52",C:[{N:"axis",name:"child",nodeTest:"NE nQ{http://www.w3.org/1999/XSL/Transform}sort"},{N:"callT",line:"53",name:"Q{}make-sort-key",bSlot:"15"}]}]}]},{N:"true"},{N:"varRef", +line:"58",name:"Q{}source",slot:"3"}]},{N:"applyT",line:"61",flags:"c",bSlot:"-1",C:[{N:"varRef",role:"select",name:"Q{}key",slot:"2"}]},{N:"callT",line:"62",name:"Q{}sequence-constructor",bSlot:"16",C:[{N:"withParam",name:"Q{}attr",flags:"c",as:"*NA",C:[{N:"treat",line:"63",as:"NA",diag:"8|0|XTTE0590|attr",C:[{N:"lookup",C:[{N:"gVarRef",name:"Q{}roles",bSlot:"17"},{N:"str",val:"content"}]}]}]}]}]}]}]}]}]}]}]},{N:"templateRule",prec:"0",prio:"0.0",seq:"251",rank:"1",minImp:"0",slots:"0",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}merge-action", +flags:"s",line:"49",module:"merging.xsl",C:[{N:"p.nodeTest",role:"match",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}merge-action"},{N:"applyT",role:"action",ns:"=http://ns.saxonica.com/xslt/export array=~ doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~",line:"50",mode:"Q{}select.or.sequence",flags:"t",bSlot:"18",C:[{N:"dot",role:"select",type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}merge-action"},{N:"withParam", +name:"Q{}attr",C:[{N:"lookup",line:"51",C:[{N:"gVarRef",name:"Q{}roles",bSlot:"19"},{N:"str",val:"action"}]}]}]}]},{N:"templateRule",prec:"0",prio:"0.0",seq:"172",rank:"1",minImp:"0",slots:"1",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}on-empty",flags:"s",line:"145",module:"conditionals.xsl",C:[{N:"p.nodeTest",role:"match",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}on-empty"},{N:"sequence",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~", +line:"146",C:[{N:"param",name:"Q{}attr",slot:"0",as:"*NA",C:[{N:"empty",role:"select"},{N:"treat",role:"conversion",as:"NA",diag:"8|0|XTTE0590|attr",C:[{N:"supplied",slot:"0"}]}]},{N:"elem",line:"147",name:"onEmpty",nsuri:"http://ns.saxonica.com/xslt/export",flags:"d",C:[{N:"sequence",line:"148",C:[{N:"varRef",name:"Q{}attr",slot:"0"},{N:"applyT",line:"149",mode:"Q{}select.or.sequence",bSlot:"20",C:[{N:"dot",role:"select",type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}on-empty"}]}]}]}]}]},{N:"templateRule", +prec:"0",prio:"0.0",seq:"261",rank:"1",minImp:"0",slots:"1",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}source-document",flags:"s",line:"17",module:"streaming.xsl",C:[{N:"p.nodeTest",role:"match",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}source-document"},{N:"sequence",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~",line:"18",C:[{N:"param",name:"Q{}attr", +slot:"0",as:"*NA",C:[{N:"empty",role:"select"},{N:"treat",role:"conversion",as:"NA",diag:"8|0|XTTE0590|attr",C:[{N:"supplied",slot:"0"}]}]},{N:"elem",line:"19",name:"forEach",nsuri:"http://ns.saxonica.com/xslt/export",flags:"d",C:[{N:"sequence",line:"20",C:[{N:"varRef",name:"Q{}attr",slot:"0"},{N:"elem",line:"22",name:"fn",nsuri:"http://ns.saxonica.com/xslt/export",flags:"dl",C:[{N:"sequence",C:[{N:"att",name:"name",flags:"l",C:[{N:"str",val:"doc"}]},{N:"att",name:"sType",flags:"l",C:[{N:"gVarRef", +name:"Q{}SJ.SINGLE_DOCUMENT",bSlot:"21"}]},{N:"att",name:"baseUri",flags:"l",C:[{N:"convert",from:"AZ",to:"AS",C:[{N:"data",C:[{N:"slash",simple:"1",C:[{N:"first",C:[{N:"filter",flags:"b",C:[{N:"slash",simple:"1",C:[{N:"dot",type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}source-document"},{N:"axis",name:"ancestor-or-self",nodeTest:"NE"}]},{N:"fn",name:"exists",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{http://ns.saxonica.com/xslt/export}baseUri"}]}]}]},{N:"axis",name:"attribute",nodeTest:"NA nQ{http://ns.saxonica.com/xslt/export}baseUri"}]}]}]}]}, +{N:"callT",line:"23",name:"Q{MyFunctions}AVT",bSlot:"22",C:[{N:"withParam",name:"Q{}avt-string",flags:"c",as:"?NA nQ{}href",C:[{N:"axis",line:"24",name:"attribute",nodeTest:"NA nQ{}href"}]}]}]}]},{N:"callT",line:"27",name:"Q{}sequence-constructor",bSlot:"23"}]}]}]}]},{N:"templateRule",prec:"0",prio:"0.0",seq:"217",rank:"1",minImp:"0",slots:"1",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}namespace",flags:"s",as:"1NE",line:"242",module:"creating-new-nodes.xsl",C:[{N:"p.nodeTest",role:"match", +test:"NE nQ{http://www.w3.org/1999/XSL/Transform}namespace"},{N:"sequence",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~",line:"243",C:[{N:"param",name:"Q{}attr",slot:"0",as:"*NA",C:[{N:"empty",role:"select"},{N:"treat",role:"conversion",as:"NA",diag:"8|0|XTTE0590|attr",C:[{N:"supplied",slot:"0"}]}]},{N:"elem",line:"244",name:"namespace",nsuri:"http://ns.saxonica.com/xslt/export", +flags:"d",C:[{N:"sequence",C:[{N:"att",name:"sType",flags:"l",C:[{N:"gVarRef",name:"Q{}SJ.SINGLE_NAMESPACE",bSlot:"24"}]},{N:"varRef",line:"245",name:"Q{}attr",slot:"0"},{N:"forEach",line:"246",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}name"},{N:"callT",line:"247",name:"Q{}value-template",bSlot:"25"}]},{N:"callT",line:"249",name:"Q{}constructSimpleContent",bSlot:"26"}]}]}]}]},{N:"templateRule",prec:"0",prio:"0.5",seq:"138",rank:"2",minImp:"0",slots:"2",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}with-param", +flags:"s",line:"1025",module:"normalize.xsl",C:[{N:"p.withCurrent",role:"match",C:[{N:"p.withPredicate",C:[{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}with-param"},{N:"filter",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"1025",flags:"",C:[{N:"axis",name:"preceding-sibling",nodeTest:"NE nQ{http://www.w3.org/1999/XSL/Transform}with-param"},{N:"vc",op:"eq", +comp:"CCC",C:[{N:"data",diag:"1|0||eq",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}name"}]},{N:"data",diag:"1|1||eq",C:[{N:"slash",C:[{N:"treat",as:"N",diag:"1|0|XPTY0019|/",C:[{N:"varRef",name:"Q{http://www.w3.org/2005/xpath-functions}current",slot:"0"}]},{N:"axis",name:"attribute",nodeTest:"NA nQ{}name"}]}]}]}]}]}]},{N:"ufCall",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~", +line:"1026",name:"Q{MyFunctions}syntax-error-at",tailCall:"false",bSlot:"27",eval:"0 16 16",C:[{N:"str",val:"XTSE0670"},{N:"fn",name:"concat",C:[{N:"str",val:"xsl:with-param siblings may not have the same @name: "},{N:"attVal",name:"Q{}name",chk:"0"}]},{N:"dot",type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}with-param"}]}]},{N:"templateRule",prec:"0",prio:"0.0",seq:"188",rank:"1",minImp:"0",slots:"7",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}with-param",flags:"s",line:"41",module:"variables-and-parameters.xsl", +C:[{N:"p.nodeTest",role:"match",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}with-param"},{N:"sequence",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~",line:"42",C:[{N:"param",name:"Q{}named-template-signatures",slot:"0",flags:"ti",as:"1FM",C:[{N:"treat",role:"conversion",as:"FM",diag:"8|0|XTTE0590|named-template-signatures",C:[{N:"check",card:"1",diag:"8|0|XTTE0590|named-template-signatures", +C:[{N:"supplied",slot:"0"}]}]}]},{N:"elem",line:"45",name:"withParam",nsuri:"http://ns.saxonica.com/xslt/export",flags:"d",C:[{N:"sequence",C:[{N:"applyT",flags:"c",bSlot:"-1",C:[{N:"axis",role:"select",name:"attribute",nodeTest:"NA nQ{}name"}]},{N:"choose",line:"46",C:[{N:"vc",op:"eq",onEmpty:"0",comp:"CCC",C:[{N:"cast",flags:"ae",as:"?AS",C:[{N:"attVal",name:"Q{}tunnel",chk:"0"}]},{N:"str",val:"true"}]},{N:"att",line:"47",name:"flags",flags:"l",C:[{N:"str",val:"t"}]}]},{N:"choose",line:"49",C:[{N:"fn", +name:"exists",C:[{N:"axis",name:"parent",nodeTest:"NE nQ{http://www.w3.org/1999/XSL/Transform}call-template"}]},{N:"let",line:"50","var":"Q{}param",slot:"1",eval:"4",C:[{N:"ifCall",name:"Q{http://saxon.sf.net/}apply",type:"*",dyn:'saxon:apply(...) ? "params"',C:[{N:"treat",as:"F",diag:"0|0||saxon:apply",C:[{N:"check",card:"1",diag:"0|0||saxon:apply",C:[{N:"lookup",C:[{N:"ifCall",name:"Q{http://www.w3.org/2005/xpath-functions/map}get",type:"*",C:[{N:"varRef",name:"Q{}named-template-signatures",slot:"0"}, +{N:"atomSing",diag:"0|1||map:get",C:[{N:"slash",simple:"2",C:[{N:"axis",name:"parent",nodeTest:"N u[NE,ND]"},{N:"axis",name:"attribute",nodeTest:"NA nQ{}name"}]}]}]},{N:"str",val:"params"}]}]}]},{N:"arrayBlock",C:[{N:"fn",name:"string",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}name"}]}]}]},{N:"sequence",line:"52",C:[{N:"lookup",C:[{N:"varRef",name:"Q{}param",slot:"1"},{N:"str",val:"type"}]},{N:"lookup",C:[{N:"varRef",name:"Q{}param",slot:"1"},{N:"str",val:"typeJ"}]}]}]}]},{N:"choose",line:"54", +C:[{N:"fn",name:"exists",C:[{N:"axis",name:"parent",nodeTest:"NE nQ{http://www.w3.org/1999/XSL/Transform}next-iteration"}]},{N:"slash",line:"57",simple:"2",C:[{N:"let",line:"55","var":"Q{http://saxon.sf.net/generated-variable}current1176262647",as:"1",slot:"2",eval:"16",C:[{N:"dot",type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}with-param"},{N:"let","var":"Q{http://saxon.sf.net/generated-variable}v0",as:"?AZ",slot:"3",eval:"13",C:[{N:"data",diag:"1|1||eq",C:[{N:"slash",simple:"1",C:[{N:"varRef", +name:"Q{http://saxon.sf.net/generated-variable}current1176262647",slot:"2"},{N:"axis",name:"attribute",nodeTest:"NA nQ{}name"}]}]},{N:"filter",flags:"",C:[{N:"slash",simple:"1",C:[{N:"first",C:[{N:"slash",simple:"1",C:[{N:"dot",type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}with-param"},{N:"axis",name:"ancestor",nodeTest:"NE nQ{http://www.w3.org/1999/XSL/Transform}iterate"}]}]},{N:"axis",name:"child",nodeTest:"NE nQ{http://www.w3.org/1999/XSL/Transform}param"}]},{N:"vc",op:"eq",comp:"CCC",C:[{N:"attVal", +name:"Q{}name",chk:"0"},{N:"varRef",name:"Q{http://saxon.sf.net/generated-variable}v0",slot:"3"}]}]}]}]},{N:"axis",name:"attribute",nodeTest:"NA u[NA nQ{}as,NA nQ{http://ns.saxonica.com/xslt/export}asJ]"}]}]},{N:"axis",line:"59",name:"attribute",nodeTest:"NA nQ{}as"},{N:"axis",line:"59",name:"attribute",nodeTest:"NA nQ{http://ns.saxonica.com/xslt/export}asJ"},{N:"choose",line:"60",C:[{N:"fn",name:"exists",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{http://ns.saxonica.com/xslt/export}ns"}]},{N:"att", +line:"61",name:"ns",flags:"l",C:[{N:"convert",from:"AZ",to:"AS",C:[{N:"attVal",name:"Q{http://ns.saxonica.com/xslt/export}ns",chk:"0"}]}]}]},{N:"choose",line:"64",C:[{N:"and",op:"and",C:[{N:"fn",name:"empty",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}as"}]},{N:"fn",name:"exists",C:[{N:"axis",name:"child",nodeTest:"N u[NT,NP,NE,NC]"}]}]},{N:"elem",line:"65",name:"doc",nsuri:"http://ns.saxonica.com/xslt/export",flags:"dl",C:[{N:"sequence",C:[{N:"att",name:"sType",flags:"l",C:[{N:"gVarRef",name:"Q{}SJ.SINGLE_DOCUMENT", +bSlot:"28"}]},{N:"applyT",line:"66",mode:"Q{}select.or.sequence",bSlot:"29",C:[{N:"dot",role:"select",type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}with-param"}]}]}]},{N:"true"},{N:"applyT",line:"70",mode:"Q{}select.or.sequence",bSlot:"30",C:[{N:"dot",role:"select",type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}with-param"}]}]}]}]}]}]},{N:"templateRule",prec:"0",prio:"0.0",seq:"374",rank:"1",minImp:"0",slots:"0",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}fallback",flags:"s",line:"1570", +module:"XSLT-SEF-compiler.xsl",C:[{N:"p.nodeTest",role:"match",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}fallback"},{N:"empty",role:"action"}]},{N:"templateRule",prec:"0",prio:"0.0",seq:"369",rank:"1",minImp:"0",slots:"1",matches:"NE nQ{http://saxonica.com/ns/interactiveXSLT}schedule-action",flags:"s",line:"83",module:"ixsl.xsl",C:[{N:"p.nodeTest",role:"match",test:"NE nQ{http://saxonica.com/ns/interactiveXSLT}schedule-action"},{N:"sequence",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions ixsl=~ map=~ xs=~ xsl=~ xml=~", +line:"84",C:[{N:"param",name:"Q{}attr",slot:"0",as:"*NA",C:[{N:"empty",role:"select"},{N:"treat",role:"conversion",as:"NA",diag:"8|0|XTTE0590|attr",C:[{N:"supplied",slot:"0"}]}]},{N:"elem",line:"85",name:"ifCall",nsuri:"http://ns.saxonica.com/xslt/export",flags:"d",namespaces:"map",C:[{N:"sequence",C:[{N:"att",name:"name",flags:"l",C:[{N:"str",val:"Q{http://saxonica.com/ns/interactiveXSLT}schedule-action"}]},{N:"att",name:"sType",flags:"l",C:[{N:"str",val:"0"}]},{N:"varRef",line:"86",name:"Q{}attr", +slot:"0"},{N:"callT",line:"87",name:"Q{}record-location",bSlot:"31"},{N:"elem",line:"88",name:"xpath",nsuri:"http://ns.saxonica.com/xslt/export",flags:"dl",namespaces:"map",C:[{N:"sequence",C:[{N:"att",name:"xpath",flags:"l",C:[{N:"fn",name:"string-join",C:[{N:"convert",from:"A",to:"AS",C:[{N:"data",C:[{N:"first",C:[{N:"sequence",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}wait"},{N:"str",val:"0"}]}]}]}]},{N:"str",val:" "}]}]},{N:"att",name:"line",flags:"l",C:[{N:"convert",from:"ADI",to:"AS",C:[{N:"ufCall", +name:"Q{MyFunctions}line-number",tailCall:"false",bSlot:"32",eval:"16",C:[{N:"dot",type:"1NE nQ{http://saxonica.com/ns/interactiveXSLT}schedule-action"}]}]}]}]}]},{N:"forEach",line:"89",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}document"},{N:"callT",line:"90",name:"Q{}role-value-template",bSlot:"33"}]},{N:"choose",line:"92",C:[{N:"fn",name:"empty",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}document"}]},{N:"elem",line:"93",name:"empty",nsuri:"http://ns.saxonica.com/xslt/export",flags:"dl", +namespaces:"map",C:[{N:"empty"}]}]},{N:"applyT",line:"95",mode:"Q{}sef",flags:"i",bSlot:"34",C:[{N:"axis",role:"select",name:"child",nodeTest:"N"}]},{N:"choose",line:"96",C:[{N:"fn",name:"exists",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}http-request"}]},{N:"elem",line:"97",name:"xpath",nsuri:"http://ns.saxonica.com/xslt/export",flags:"dl",namespaces:"map",C:[{N:"sequence",C:[{N:"att",name:"xpath",flags:"l",C:[{N:"convert",from:"AZ",to:"AS",C:[{N:"attVal",name:"Q{}http-request",chk:"0"}]}]}, +{N:"att",name:"line",flags:"l",C:[{N:"convert",from:"ADI",to:"AS",C:[{N:"ufCall",name:"Q{MyFunctions}line-number",tailCall:"false",bSlot:"35",eval:"16",C:[{N:"dot",type:"1NE nQ{http://saxonica.com/ns/interactiveXSLT}schedule-action"}]}]}]}]}]}]}]}]}]}]},{N:"templateRule",prec:"0",prio:"0.0",seq:"150",rank:"1",minImp:"0",slots:"3",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}apply-templates",flags:"s",line:"112",module:"rules.xsl",C:[{N:"p.nodeTest",role:"match",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}apply-templates"}, +{N:"sequence",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~",line:"113",C:[{N:"param",name:"Q{}attr",slot:"0",as:"*NA",C:[{N:"empty",role:"select"},{N:"treat",role:"conversion",as:"NA",diag:"8|0|XTTE0590|attr",C:[{N:"supplied",slot:"0"}]}]},{N:"param",line:"114",name:"Q{}default-mode",slot:"1",flags:"t",as:"?AS",C:[{N:"empty",role:"select"},{N:"treat",role:"conversion", +as:"AS",diag:"8|0|XTTE0590|default-mode",C:[{N:"check",card:"?",diag:"8|0|XTTE0590|default-mode",C:[{N:"cvUntyped",to:"AS",diag:"8|0|XTTE0590|default-mode",C:[{N:"data",diag:"8|0|XTTE0590|default-mode",C:[{N:"supplied",slot:"1"}]}]}]}]}]},{N:"elem",line:"115",name:"applyT",nsuri:"http://ns.saxonica.com/xslt/export",flags:"d",C:[{N:"sequence",C:[{N:"att",name:"sType",flags:"l",C:[{N:"gVarRef",name:"Q{}SJ.ANY_SEQUENCE",bSlot:"36"}]},{N:"callT",line:"116",name:"Q{}record-location",bSlot:"37"},{N:"applyT", +line:"117",flags:"c",bSlot:"-1",C:[{N:"axis",role:"select",name:"attribute",nodeTest:"NA nQ{}mode"}]},{N:"choose",line:"118",C:[{N:"and",op:"and",C:[{N:"and",op:"and",C:[{N:"fn",name:"empty",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}mode"}]},{N:"fn",name:"exists",C:[{N:"varRef",name:"Q{}default-mode",slot:"1"}]}]},{N:"vc",op:"ne",onEmpty:"1",comp:"CCC",C:[{N:"varRef",name:"Q{}default-mode",slot:"1"},{N:"str",val:"#unnamed"}]}]},{N:"att",line:"119",name:"mode",flags:"l",C:[{N:"varRef",name:"Q{}default-mode", +slot:"1"}]}]},{N:"varRef",line:"121",name:"Q{}attr",slot:"0"},{N:"let",line:"122","var":"Q{}source",as:"*NE",slot:"2",eval:"4",C:[{N:"choose",line:"124",C:[{N:"fn",name:"empty",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}select"}]},{N:"elem",line:"125",name:"xpath",nsuri:"http://ns.saxonica.com/xslt/export",flags:"d",C:[{N:"sequence",C:[{N:"att",name:"role",flags:"l",C:[{N:"str",val:"select"}]},{N:"att",name:"xpath",flags:"l",C:[{N:"str",val:"node()"}]},{N:"att",name:"line",flags:"l",C:[{N:"convert", +from:"ADI",to:"AS",C:[{N:"ufCall",name:"Q{MyFunctions}line-number",tailCall:"false",bSlot:"38",eval:"16",C:[{N:"dot",type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}apply-templates"}]}]}]},{N:"att",name:"defaultedSelect",flags:"l",C:[{N:"str",val:""}]}]}]},{N:"true"},{N:"treat",line:"128",as:"NE",diag:"3|0|XTTE0570|source",C:[{N:"applyT",mode:"Q{}create.xpath",bSlot:"39",C:[{N:"axis",role:"select",name:"attribute",nodeTest:"NA nQ{}select"}]}]}]},{N:"sequence",line:"133",C:[{N:"choose",C:[{N:"fn", +name:"exists",C:[{N:"axis",name:"child",nodeTest:"NE nQ{http://www.w3.org/1999/XSL/Transform}sort"}]},{N:"elem",line:"134",name:"sort",nsuri:"http://ns.saxonica.com/xslt/export",flags:"dl",C:[{N:"sequence",C:[{N:"att",name:"role",flags:"l",C:[{N:"str",val:"select"}]},{N:"varRef",line:"135",name:"Q{}source",slot:"2"},{N:"forEach",line:"136",C:[{N:"axis",name:"child",nodeTest:"NE nQ{http://www.w3.org/1999/XSL/Transform}sort"},{N:"callT",line:"137",name:"Q{}make-sort-key",bSlot:"40"}]}]}]},{N:"true"}, +{N:"varRef",line:"142",name:"Q{}source",slot:"2"}]},{N:"applyT",line:"161",flags:"c",bSlot:"-1",C:[{N:"axis",role:"select",name:"child",nodeTest:"NE d[NE,NE nQ{http://www.w3.org/1999/XSL/Transform}sort]"}]}]}]}]}]}]}]},{N:"templateRule",prec:"0",prio:"0.0",seq:"269",rank:"1",minImp:"0",slots:"1",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}map-entry",flags:"s",line:"27",module:"maps.xsl",C:[{N:"p.nodeTest",role:"match",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}map-entry"},{N:"sequence", +role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~",line:"28",C:[{N:"param",name:"Q{}attr",slot:"0",as:"*NA",C:[{N:"empty",role:"select"},{N:"treat",role:"conversion",as:"NA",diag:"8|0|XTTE0590|attr",C:[{N:"supplied",slot:"0"}]}]},{N:"elem",line:"29",name:"ifCall",nsuri:"http://ns.saxonica.com/xslt/export",flags:"d",C:[{N:"sequence",C:[{N:"att",name:"name",flags:"l", +C:[{N:"str",val:"Q{http://www.w3.org/2005/xpath-functions/map}entry"}]},{N:"att",name:"sType",flags:"l",C:[{N:"gVarRef",name:"Q{}SJ.SINGLE_MAP",bSlot:"41"}]},{N:"varRef",line:"30",name:"Q{}attr",slot:"0"},{N:"elem",line:"32",name:"xpath",nsuri:"http://ns.saxonica.com/xslt/export",flags:"dl",C:[{N:"sequence",C:[{N:"att",name:"role",flags:"l",C:[{N:"str",val:"key"}]},{N:"att",name:"xpath",flags:"l",C:[{N:"fn",name:"concat",C:[{N:"str",val:"data("},{N:"fn",name:"string",C:[{N:"convert",from:"AZ",to:"AS", +C:[{N:"attVal",name:"Q{}key",chk:"0"}]}]},{N:"str",val:")"}]}]},{N:"att",name:"line",flags:"l",C:[{N:"convert",from:"ADI",to:"AS",C:[{N:"ufCall",name:"Q{MyFunctions}line-number",tailCall:"false",bSlot:"42",eval:"16",C:[{N:"dot",type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}map-entry"}]}]}]}]}]},{N:"applyT",line:"33",mode:"Q{}select.or.sequence",bSlot:"43",C:[{N:"dot",role:"select",type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}map-entry"}]}]}]}]}]},{N:"templateRule",prec:"0",prio:"0.5",seq:"219", +rank:"2",minImp:"0",slots:"1",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}text",flags:"s",as:"*NE",line:"264",module:"creating-new-nodes.xsl",C:[{N:"p.withPredicate",role:"match",C:[{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}text"},{N:"fn",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~",line:"264",name:"normalize-space",C:[{N:"fn",name:"string",C:[{N:"dot", +type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}text"}]}]}]},{N:"sequence",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~",line:"265",C:[{N:"param",name:"Q{}attr",slot:"0",as:"*NA",C:[{N:"empty",role:"select"},{N:"treat",role:"conversion",as:"NA",diag:"8|0|XTTE0590|attr",C:[{N:"supplied",slot:"0"}]}]},{N:"treat",line:"273",as:"NE",diag:'7|0|XTTE0505|match="xsl:text[normalize-space()]" mode="sef"', +C:[{N:"applyT",flags:"ct",bSlot:"-1",C:[{N:"axis",role:"select",name:"child",nodeTest:"NT"},{N:"withParam",name:"Q{}attr",as:"*NA",C:[{N:"sequence",line:"267",C:[{N:"varRef",name:"Q{}attr",slot:"0"},{N:"choose",line:"268",C:[{N:"vc",op:"eq",onEmpty:"0",comp:"CCC",C:[{N:"cast",flags:"ae",as:"?AS",C:[{N:"attVal",name:"Q{}disable-output-escaping",chk:"0"}]},{N:"str",val:"true"}]},{N:"att",line:"269",name:"flags",C:[{N:"str",val:"d"}]}]}]}]}]}]}]}]},{N:"templateRule",prec:"0",prio:"0.0",seq:"218",rank:"1", +minImp:"0",slots:"1",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}text",flags:"s",as:"1NE",line:"253",module:"creating-new-nodes.xsl",C:[{N:"p.nodeTest",role:"match",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}text"},{N:"sequence",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~",line:"254",C:[{N:"param",name:"Q{}attr",slot:"0",as:"*NA",C:[{N:"empty",role:"select"}, +{N:"treat",role:"conversion",as:"NA",diag:"8|0|XTTE0590|attr",C:[{N:"supplied",slot:"0"}]}]},{N:"elem",line:"255",name:"valueOf",nsuri:"http://ns.saxonica.com/xslt/export",flags:"d",C:[{N:"sequence",C:[{N:"att",name:"sType",flags:"l",C:[{N:"gVarRef",name:"Q{}SJ.SINGLE_TEXT",bSlot:"44"}]},{N:"choose",line:"256",C:[{N:"vc",op:"eq",onEmpty:"0",comp:"CCC",C:[{N:"cast",flags:"ae",as:"?AS",C:[{N:"attVal",name:"Q{}disable-output-escaping",chk:"0"}]},{N:"str",val:"true"}]},{N:"att",line:"257",name:"flags", +flags:"l",C:[{N:"str",val:"d"}]}]},{N:"varRef",line:"259",name:"Q{}attr",slot:"0"},{N:"elem",line:"260",name:"str",nsuri:"http://ns.saxonica.com/xslt/export",flags:"dl",C:[{N:"att",name:"val",flags:"l",C:[{N:"convert",from:"AZ",to:"AS",C:[{N:"data",C:[{N:"dot",type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}text"}]}]}]}]}]}]}]}]},{N:"templateRule",prec:"0",prio:"0.0",seq:"224",rank:"1",minImp:"0",slots:"2",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}copy-of",flags:"s",as:"1NE",line:"434", +module:"creating-new-nodes.xsl",C:[{N:"p.nodeTest",role:"match",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}copy-of"},{N:"sequence",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~",line:"435",C:[{N:"param",name:"Q{}attr",slot:"0",as:"*NA",C:[{N:"empty",role:"select"},{N:"treat",role:"conversion",as:"NA",diag:"8|0|XTTE0590|attr",C:[{N:"supplied",slot:"0"}]}]}, +{N:"elem",line:"437",name:"copyOf",nsuri:"http://ns.saxonica.com/xslt/export",flags:"d",C:[{N:"sequence",C:[{N:"att",name:"flags",flags:"l",C:[{N:"fn",name:"concat",C:[{N:"choose",C:[{N:"vc",op:"eq",onEmpty:"0",comp:"CCC",C:[{N:"cast",flags:"ae",as:"?AS",C:[{N:"attVal",name:"Q{}copy-namespaces",chk:"0"}]},{N:"str",val:"false"}]},{N:"str",val:""},{N:"true"},{N:"str",val:"c"}]},{N:"choose",C:[{N:"vc",op:"eq",onEmpty:"0",comp:"CCC",C:[{N:"cast",flags:"ae",as:"?AS",C:[{N:"attVal",name:"Q{}copy-accumulators", +chk:"0"}]},{N:"str",val:"true"}]},{N:"str",val:"m"},{N:"true"},{N:"str",val:""}]}]}]},{N:"att",name:"ns",flags:"l",C:[{N:"let",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~","var":"Q{}context",as:"1NE",slot:"1",eval:"16",C:[{N:"dot",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~", +type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}copy-of"},{N:"choose",module:"namespaces.xsl",line:"47",C:[{N:"fn",name:"exists",C:[{N:"slash",simple:"1",C:[{N:"varRef",name:"Q{}context",slot:"1"},{N:"axis",name:"attribute",nodeTest:"NA nQ{http://ns.saxonica.com/xslt/export}ns"}]}]},{N:"check",line:"48",card:"1",diag:"5|0|XTTE0780|f:encode-namespaces#1",C:[{N:"cvUntyped",to:"AS",diag:"5|0|XTTE0780|f:encode-namespaces#1",C:[{N:"data",diag:"5|0|XTTE0780|f:encode-namespaces#1",C:[{N:"slash",simple:"1", +C:[{N:"varRef",name:"Q{}context",slot:"1"},{N:"axis",name:"attribute",nodeTest:"NA nQ{http://ns.saxonica.com/xslt/export}ns"}]}]}]}]},{N:"true"},{N:"fn",line:"58",name:"string-join",C:[{N:"forEach",C:[{N:"slash",simple:"1",C:[{N:"varRef",name:"Q{}context",slot:"1"},{N:"axis",name:"namespace",nodeTest:"NN"}]},{N:"fn",name:"concat",C:[{N:"fn",name:"name",C:[{N:"dot",type:"1NN"}]},{N:"str",val:"="},{N:"choose",C:[{N:"vc",op:"eq",onEmpty:"0",comp:"CCC",C:[{N:"ifCall",name:"Q{http://www.w3.org/2005/xpath-functions/map}get", +type:"*",C:[{N:"gVarRef",name:"Q{}known-namespaces",bSlot:"45"},{N:"fn",name:"name",C:[{N:"dot",type:"1NN"}]}]},{N:"data",diag:"1|1||eq",C:[{N:"dot",type:"1NN"}]}]},{N:"str",val:"~"},{N:"true"},{N:"data",diag:"0|2||fn:concat",C:[{N:"dot",type:"1NN"}]}]}]}]},{N:"str",val:" "}]}]}]}]},{N:"varRef",line:"438",name:"Q{}attr",slot:"0"},{N:"callT",line:"439",name:"Q{}record-location",bSlot:"46"},{N:"applyT",line:"440",mode:"Q{}select.or.sequence",bSlot:"47",C:[{N:"dot",role:"select",type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}copy-of"}]}]}]}]}]}, +{N:"templateRule",prec:"0",prio:"0.0",seq:"231",rank:"1",minImp:"0",slots:"6",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}number",flags:"s",line:"15",module:"numbering.xsl",C:[{N:"p.nodeTest",role:"match",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}number"},{N:"sequence",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~",line:"16",C:[{N:"param",name:"Q{}attr", +slot:"0",as:"*NA",C:[{N:"empty",role:"select"},{N:"treat",role:"conversion",as:"NA",diag:"8|0|XTTE0590|attr",C:[{N:"supplied",slot:"0"}]}]},{N:"param",line:"17",name:"Q{}static-context",slot:"1",flags:"t",as:"1FM",C:[{N:"map",role:"select",size:"0"},{N:"treat",role:"conversion",as:"FM",diag:"8|0|XTTE0590|static-context",C:[{N:"check",card:"1",diag:"8|0|XTTE0590|static-context",C:[{N:"supplied",slot:"1"}]}]}]},{N:"param",line:"18",name:"Q{}xpath-default-namespace",slot:"2",flags:"t",as:"?NA",C:[{N:"empty", +role:"select"},{N:"treat",role:"conversion",as:"NA",diag:"8|0|XTTE0590|xpath-default-namespace",C:[{N:"check",card:"?",diag:"8|0|XTTE0590|xpath-default-namespace",C:[{N:"supplied",slot:"2"}]}]}]},{N:"param",line:"19",name:"Q{}ns",slot:"3",flags:"t",as:"?AS",C:[{N:"let",role:"select",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~","var":"Q{}context",as:"1NE",slot:"4",eval:"16",C:[{N:"treat", +ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~",as:"NE",diag:"0|0||f:encode-namespaces",C:[{N:"check",card:"1",diag:"0|0||f:encode-namespaces",C:[{N:"axis",name:"parent",nodeTest:"N u[NE,ND]"}]}]},{N:"choose",module:"namespaces.xsl",line:"47",C:[{N:"fn",name:"exists",C:[{N:"slash",simple:"1",C:[{N:"varRef",name:"Q{}context",slot:"4"},{N:"axis",name:"attribute",nodeTest:"NA nQ{http://ns.saxonica.com/xslt/export}ns"}]}]}, +{N:"check",line:"48",card:"1",diag:"5|0|XTTE0780|f:encode-namespaces#1",C:[{N:"cvUntyped",to:"AS",diag:"5|0|XTTE0780|f:encode-namespaces#1",C:[{N:"data",diag:"5|0|XTTE0780|f:encode-namespaces#1",C:[{N:"slash",simple:"1",C:[{N:"varRef",name:"Q{}context",slot:"4"},{N:"axis",name:"attribute",nodeTest:"NA nQ{http://ns.saxonica.com/xslt/export}ns"}]}]}]}]},{N:"true"},{N:"fn",line:"58",name:"string-join",C:[{N:"forEach",C:[{N:"slash",simple:"1",C:[{N:"varRef",name:"Q{}context",slot:"4"},{N:"axis",name:"namespace", +nodeTest:"NN"}]},{N:"fn",name:"concat",C:[{N:"fn",name:"name",C:[{N:"dot",type:"1NN"}]},{N:"str",val:"="},{N:"choose",C:[{N:"vc",op:"eq",onEmpty:"0",comp:"CCC",C:[{N:"ifCall",name:"Q{http://www.w3.org/2005/xpath-functions/map}get",type:"*",C:[{N:"gVarRef",name:"Q{}known-namespaces",bSlot:"48"},{N:"fn",name:"name",C:[{N:"dot",type:"1NN"}]}]},{N:"data",diag:"1|1||eq",C:[{N:"dot",type:"1NN"}]}]},{N:"str",val:"~"},{N:"true"},{N:"data",diag:"0|2||fn:concat",C:[{N:"dot",type:"1NN"}]}]}]}]},{N:"str",val:" "}]}]}]}, +{N:"treat",role:"conversion",as:"AS",diag:"8|0|XTTE0590|ns",C:[{N:"check",card:"?",diag:"8|0|XTTE0590|ns",C:[{N:"cvUntyped",to:"AS",diag:"8|0|XTTE0590|ns",C:[{N:"data",diag:"8|0|XTTE0590|ns",C:[{N:"supplied",slot:"3"}]}]}]}]}]},{N:"elem",line:"21",name:"valueOf",nsuri:"http://ns.saxonica.com/xslt/export",flags:"d",C:[{N:"sequence",C:[{N:"att",name:"flags",flags:"l",C:[{N:"str",val:"l"}]},{N:"att",name:"sType",flags:"l",C:[{N:"gVarRef",name:"Q{}SJ.SINGLE_TEXT",bSlot:"49"}]},{N:"varRef",line:"22",name:"Q{}attr", +slot:"0"},{N:"elem",line:"23",name:"numSeqFmt",nsuri:"http://ns.saxonica.com/xslt/export",flags:"dl",C:[{N:"sequence",C:[{N:"att",name:"flags",flags:"l",C:[{N:"convert",from:"ADI",to:"AS",C:[{N:"choose",C:[{N:"lookup",C:[{N:"varRef",name:"Q{}static-context",slot:"1"},{N:"str",val:"backward-compatibility"}]},{N:"int",val:"1"}]}]}]},{N:"choose",line:"26",C:[{N:"fn",name:"exists",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}value"}]},{N:"sequence",line:"27",C:[{N:"choose",C:[{N:"fn",name:"exists", +C:[{N:"axis",name:"attribute",nodeTest:"NA u[NA u[NA u[NA nQ{}select,NA nQ{}level],NA nQ{}count],NA nQ{}from]"}]},{N:"ufCall",line:"30",name:"Q{MyFunctions}syntax-error-at",tailCall:"false",bSlot:"50",eval:"0 0 16",C:[{N:"str",val:"XTSE0975"},{N:"str",val:"xsl:number with @value must not have @select, @level, @count, or @from attributes"},{N:"dot",type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}number"}]}]},{N:"elem",line:"32",name:"xpath",nsuri:"http://ns.saxonica.com/xslt/export",flags:"dl",C:[{N:"sequence", +C:[{N:"att",name:"role",flags:"l",C:[{N:"str",val:"value"}]},{N:"att",name:"xpath",flags:"l",C:[{N:"convert",from:"AZ",to:"AS",C:[{N:"attVal",name:"Q{}value",chk:"0"}]}]},{N:"att",name:"ns",flags:"l",C:[{N:"varRef",name:"Q{}ns",slot:"3"}]},{N:"att",name:"line",flags:"l",C:[{N:"convert",from:"ADI",to:"AS",C:[{N:"ufCall",name:"Q{MyFunctions}line-number",tailCall:"false",bSlot:"51",eval:"16",C:[{N:"dot",type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}number"}]}]}]},{N:"varRef",line:"33",name:"Q{}xpath-default-namespace", +slot:"2"}]}]}]},{N:"true"},{N:"let",line:"37","var":"Q{}level",as:"1",slot:"5",eval:"16",C:[{N:"check",card:"1",diag:"3|0||level",C:[{N:"first",C:[{N:"sequence",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}level"},{N:"str",val:"single"}]}]}]},{N:"sequence",line:"38",C:[{N:"choose",C:[{N:"fn",name:"not",C:[{N:"gc",op:"=",card:"M:N",comp:"GAC|http://www.w3.org/2005/xpath-functions/collation/codepoint",C:[{N:"data",diag:"1|0||=",C:[{N:"varRef",name:"Q{}level",slot:"5"}]},{N:"literal",count:"3",C:[{N:"str", +val:"any"},{N:"str",val:"multiple"},{N:"str",val:"single"}]}]}]},{N:"fn",line:"41",name:"error",C:[{N:"qName",pre:"",uri:"http://www.w3.org/2005/xqt-errors",loc:"XTSE0020"},{N:"fn",name:"concat",C:[{N:"str",val:"xsl:number/@level must have a value single|multiple|any, given value:'"},{N:"atomSing",card:"?",diag:"0|1||fn:concat",C:[{N:"varRef",name:"Q{}level",slot:"5"}]},{N:"str",val:"'"}]}]}]},{N:"elem",line:"43",name:"nodeNum",nsuri:"http://ns.saxonica.com/xslt/export",flags:"dl",C:[{N:"sequence", +C:[{N:"att",name:"role",flags:"l",C:[{N:"str",val:"value"}]},{N:"att",name:"level",flags:"l",C:[{N:"fn",name:"string-join",C:[{N:"convert",from:"A",to:"AS",C:[{N:"choose",C:[{N:"gc",op:"=",card:"N:1",comp:"GAC|http://www.w3.org/2005/xpath-functions/collation/codepoint",C:[{N:"data",diag:"1|0||=",C:[{N:"varRef",name:"Q{}level",slot:"5"}]},{N:"str",val:"multiple"}]},{N:"str",val:"multi"},{N:"true"},{N:"data",C:[{N:"varRef",name:"Q{}level",slot:"5"}]}]}]},{N:"str",val:" "}]}]},{N:"choose",line:"44", +C:[{N:"fn",name:"empty",C:[{N:"axis",name:"attribute",nodeTest:"NA u[NA nQ{}select,NA nQ{}value]"}]},{N:"att",line:"45",name:"needsNode",flags:"l",C:[{N:"str",val:"true"}]}]},{N:"elem",line:"47",name:"xpath",nsuri:"http://ns.saxonica.com/xslt/export",flags:"dl",C:[{N:"sequence",C:[{N:"att",name:"role",flags:"l",C:[{N:"str",val:"select"}]},{N:"att",name:"xpath",flags:"l",C:[{N:"fn",name:"string-join",C:[{N:"convert",from:"A",to:"AS",C:[{N:"data",C:[{N:"first",C:[{N:"sequence",C:[{N:"axis",name:"attribute", +nodeTest:"NA nQ{}select"},{N:"str",val:"."}]}]}]}]},{N:"str",val:" "}]}]},{N:"att",name:"ns",flags:"l",C:[{N:"varRef",name:"Q{}ns",slot:"3"}]},{N:"att",name:"line",flags:"l",C:[{N:"convert",from:"ADI",to:"AS",C:[{N:"ufCall",name:"Q{MyFunctions}line-number",tailCall:"false",bSlot:"52",eval:"16",C:[{N:"dot",type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}number"}]}]}]},{N:"varRef",line:"48",name:"Q{}xpath-default-namespace",slot:"2"}]}]},{N:"choose",line:"50",C:[{N:"fn",name:"exists",C:[{N:"axis", +name:"attribute",nodeTest:"NA nQ{}count"}]},{N:"elem",line:"51",name:"pattern",nsuri:"http://ns.saxonica.com/xslt/export",flags:"dl",C:[{N:"sequence",C:[{N:"att",name:"role",flags:"l",C:[{N:"str",val:"count"}]},{N:"att",name:"xpath",flags:"l",C:[{N:"convert",from:"AZ",to:"AS",C:[{N:"attVal",name:"Q{}count",chk:"0"}]}]},{N:"att",name:"ns",flags:"l",C:[{N:"varRef",name:"Q{}ns",slot:"3"}]},{N:"att",name:"line",flags:"l",C:[{N:"convert",from:"ADI",to:"AS",C:[{N:"ufCall",name:"Q{MyFunctions}line-number", +tailCall:"false",bSlot:"53",eval:"16",C:[{N:"dot",type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}number"}]}]}]},{N:"varRef",line:"52",name:"Q{}xpath-default-namespace",slot:"2"}]}]}]},{N:"choose",line:"55",C:[{N:"fn",name:"exists",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}from"}]},{N:"elem",line:"56",name:"pattern",nsuri:"http://ns.saxonica.com/xslt/export",flags:"dl",C:[{N:"sequence",C:[{N:"att",name:"role",flags:"l",C:[{N:"str",val:"from"}]},{N:"att",name:"xpath",flags:"l",C:[{N:"convert", +from:"AZ",to:"AS",C:[{N:"attVal",name:"Q{}from",chk:"0"}]}]},{N:"att",name:"ns",flags:"l",C:[{N:"varRef",name:"Q{}ns",slot:"3"}]},{N:"att",name:"line",flags:"l",C:[{N:"convert",from:"ADI",to:"AS",C:[{N:"ufCall",name:"Q{MyFunctions}line-number",tailCall:"false",bSlot:"54",eval:"16",C:[{N:"dot",type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}number"}]}]}]},{N:"varRef",line:"57",name:"Q{}xpath-default-namespace",slot:"2"}]}]}]}]}]}]}]}]},{N:"callT",line:"63",name:"Q{}numberFormat",bSlot:"55"}]}]}]}]}]}]}, +{N:"templateRule",prec:"0",prio:"0.0",seq:"378",rank:"1",minImp:"0",slots:"0",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}global-context-item",flags:"s",as:"1NE",line:"1614",module:"XSLT-SEF-compiler.xsl",C:[{N:"p.nodeTest",role:"match",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}global-context-item"},{N:"elem",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ saxon=~ t=MyTypes xs=~ xsl=~ xml=~", +line:"1617",name:"glob",nsuri:"http://ns.saxonica.com/xslt/export",flags:"d",C:[{N:"sequence",C:[{N:"att",name:"use",flags:"l",C:[{N:"choose",C:[{N:"vc",op:"eq",onEmpty:"0",comp:"CCC",C:[{N:"attVal",name:"Q{}use",chk:"0"},{N:"str",val:"absent"}]},{N:"str",val:"pro"},{N:"vc",op:"eq",onEmpty:"0",comp:"CCC",C:[{N:"attVal",name:"Q{}use",chk:"0"},{N:"str",val:"required"}]},{N:"str",val:"req"},{N:"true"},{N:"str",val:"opt"}]}]},{N:"att",name:"code",flags:"l",C:[{N:"str",val:"1"}]},{N:"att",line:"1618", +name:"cxt",flags:"l",C:[{N:"fn",name:"string-join",C:[{N:"convert",from:"A",to:"AS",C:[{N:"data",C:[{N:"first",C:[{N:"sequence",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{http://ns.saxonica.com/xslt/export}asJ"},{N:"str",val:"1"}]}]}]}]},{N:"str",val:" "}]}]}]}]}]},{N:"templateRule",prec:"0",prio:"0.0",seq:"201",rank:"1",minImp:"0",slots:"12",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}result-document",flags:"s",line:"23",module:"output.xsl",C:[{N:"p.nodeTest",role:"match",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}result-document"}, +{N:"sequence",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"24",C:[{N:"param",name:"Q{}attr",slot:"0",as:"*NA",C:[{N:"empty",role:"select"},{N:"treat",role:"conversion",as:"NA",diag:"8|0|XTTE0590|attr",C:[{N:"supplied",slot:"0"}]}]},{N:"param",line:"25",name:"Q{}static-context",slot:"1",flags:"ti",as:"1FM",C:[{N:"treat",role:"conversion",as:"FM",diag:"8|0|XTTE0590|static-context", +C:[{N:"check",card:"1",diag:"8|0|XTTE0590|static-context",C:[{N:"supplied",slot:"1"}]}]}]},{N:"elem",line:"26",name:"resultDoc",nsuri:"http://ns.saxonica.com/xslt/export",flags:"d",C:[{N:"sequence",C:[{N:"att",name:"sType",flags:"l",C:[{N:"gVarRef",name:"Q{}SJ.EMPTY_SEQUENCE",bSlot:"56"}]},{N:"varRef",line:"27",name:"Q{}attr",slot:"0"},{N:"callT",line:"28",name:"Q{}record-location",bSlot:"57"},{N:"applyT",line:"29",mode:"Q{}sef",bSlot:"58",C:[{N:"axis",role:"select",name:"attribute",nodeTest:"NA nQ{http://ns.saxonica.com/xslt/export}ns"}]}, +{N:"let",line:"31","var":"Q{}local-fixed-properties",as:"1FM k[AS]",slot:"2",eval:"8",C:[{N:"ifCall",line:"33",name:"Q{http://www.w3.org/2005/xpath-functions/map}merge",type:"1FM",C:[{N:"forEach",C:[{N:"union",op:"|",C:[{N:"filter",flags:"b",C:[{N:"filter",flags:"b",C:[{N:"axis",name:"attribute",nodeTest:"NA"},{N:"gc",op:"=",card:"N:1",comp:"CCC",C:[{N:"gVarRef",name:"Q{}serialization-properties",bSlot:"59"},{N:"fn",name:"name",C:[{N:"dot",type:"1NA"}]}]}]},{N:"fn",name:"not",C:[{N:"fn",name:"contains", +C:[{N:"cvUntyped",to:"AS",C:[{N:"data",diag:"0|0||fn:contains",C:[{N:"dot",type:"1NA"}]}]},{N:"str",val:"{"}]}]}]},{N:"axis",name:"attribute",nodeTest:"NA nQ{}use-character-maps"}]},{N:"ifCall",line:"35",name:"Q{http://www.w3.org/2005/xpath-functions/map}entry",type:"1FM",C:[{N:"choose",C:[{N:"vc",op:"eq",onEmpty:"0",comp:"CCC",C:[{N:"fn",name:"name",C:[{N:"dot",type:"1NA"}]},{N:"str",val:"output-version"}]},{N:"str",val:"version"},{N:"true"},{N:"fn",name:"name",C:[{N:"dot",type:"1NA"}]}]},{N:"applyT", +line:"36",mode:"Q{}normalize-serialization-property",bSlot:"60",C:[{N:"dot",role:"select",type:"1NA"}]}]}]},{N:"map",size:"2",C:[{N:"str",val:"duplicates"},{N:"str",val:"reject"},{N:"str",val:"duplicates-error-code"},{N:"str",val:"XTDE3365"}]}]},{N:"sequence",line:"41",C:[{N:"att",name:"local",flags:"l",C:[{N:"let","var":"Q{}map",as:"1FM",slot:"3",eval:"6",C:[{N:"varRef",name:"Q{}local-fixed-properties",slot:"2"},{N:"cvUntyped",line:"196",to:"AS",diag:"5|0|XTTE0780|f:makeProperties#1",C:[{N:"cast", +flags:"a",as:"1AZ",C:[{N:"fn",name:"string-join",C:[{N:"convert",from:"AZ",to:"AS",C:[{N:"data",C:[{N:"mergeAdj",C:[{N:"forEach",C:[{N:"ifCall",name:"Q{http://www.w3.org/2005/xpath-functions/map}keys",type:"*A",C:[{N:"varRef",name:"Q{}map",slot:"3"}]},{N:"let",line:"197","var":"Q{}value",slot:"4",eval:"4",C:[{N:"ifCall",name:"Q{http://www.w3.org/2005/xpath-functions/map}get",type:"*",C:[{N:"varRef",name:"Q{}map",slot:"3"},{N:"dot",type:"1A"}]},{N:"valueOf",line:"199",C:[{N:"fn",name:"concat",C:[{N:"dot", +type:"1A"},{N:"str",val:"="},{N:"atomSing",card:"?",diag:"0|2||fn:concat",C:[{N:"choose",line:"198",C:[{N:"vc",op:"eq",onEmpty:"0",comp:"GAC|http://www.w3.org/2005/xpath-functions/collation/codepoint",C:[{N:"dot",type:"1A"},{N:"str",val:"item-separator"}]},{N:"fn",name:"replace",C:[{N:"fn",name:"replace",C:[{N:"treat",as:"AS",diag:"0|0||fn:replace",C:[{N:"check",card:"?",diag:"0|0||fn:replace",C:[{N:"cvUntyped",to:"AS",C:[{N:"data",diag:"0|0||fn:replace",C:[{N:"varRef",name:"Q{}value",slot:"4"}]}]}]}]}, +{N:"str",val:"%"},{N:"str",val:"%%"},{N:"str",val:""}]},{N:"str",val:"\n"},{N:"str",val:"%n"},{N:"str",val:""}]},{N:"true"},{N:"varRef",line:"199",name:"Q{}value",slot:"4"}]}]},{N:"str",val:"\n"}]}]}]}]}]}]}]},{N:"str",val:""}]}]}]}]}]},{N:"let",line:"44","var":"Q{}formatExpr",as:"?NE",slot:"5",eval:"7",C:[{N:"choose",line:"46",C:[{N:"fn",name:"empty",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}format"}]},{N:"empty"},{N:"castable",line:"47",flags:"a",as:"1ASNTN",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}format"}]}, +{N:"elem",line:"48",name:"str",nsuri:"http://ns.saxonica.com/xslt/export",flags:"d",C:[{N:"sequence",C:[{N:"att",name:"role",flags:"l",C:[{N:"str",val:"format"}]},{N:"att",name:"val",flags:"l",C:[{N:"ufCall",name:"Q{MyFunctions}EQName",tailCall:"false",bSlot:"61",eval:"16 16 0",C:[{N:"check",card:"1",diag:"0|0||f:EQName",C:[{N:"cvUntyped",to:"AS",C:[{N:"attVal",name:"Q{}format",chk:"0"}]}]},{N:"dot",type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}result-document"},{N:"str",val:"XTSE0010"}]}]},{N:"att", +name:"sType",flags:"l",C:[{N:"str",val:"1AS "}]}]}]},{N:"true"},{N:"callT",line:"54",name:"Q{MyFunctions}AVT",bSlot:"62",C:[{N:"withParam",name:"Q{}avt-string",flags:"c",as:"?NA nQ{}format",C:[{N:"axis",line:"55",name:"attribute",nodeTest:"NA nQ{}format"}]},{N:"withParam",name:"Q{}role",flags:"c",as:"?NA",C:[{N:"treat",line:"56",as:"NA",diag:"8|0|XTTE0590|role",C:[{N:"check",card:"?",diag:"8|0|XTTE0590|role",C:[{N:"lookup",C:[{N:"gVarRef",name:"Q{}roles",bSlot:"63"},{N:"str",val:"format"}]}]}]}]}]}]}, +{N:"let",line:"62","var":"Q{}decl",as:"?NE nQ{http://ns.saxonica.com/xslt/export}output",slot:"6",eval:"7",C:[{N:"choose",line:"64",C:[{N:"fn",name:"exists",C:[{N:"slash",simple:"1",C:[{N:"varRef",name:"Q{}formatExpr",slot:"5"},{N:"axis",name:"self",nodeTest:"NE nQ{http://ns.saxonica.com/xslt/export}str"}]}]},{N:"let",line:"65","var":"Q{}formatName",as:"?NA",slot:"7",eval:"8",C:[{N:"slash",simple:"1",C:[{N:"varRef",name:"Q{}formatExpr",slot:"5"},{N:"axis",name:"attribute",nodeTest:"NA nQ{}val"}]}, +{N:"let",line:"66","var":"Q{http://saxon.sf.net/generated-variable}v0",as:"?AZ",slot:"8",eval:"13",C:[{N:"data",diag:"1|1||eq",C:[{N:"varRef",name:"Q{}formatName",slot:"7"}]},{N:"treat",as:"NE nQ{http://ns.saxonica.com/xslt/export}output",diag:"3|0|XTTE0570|decl",C:[{N:"check",card:"?",diag:"3|0|XTTE0570|decl",C:[{N:"filter",flags:"",C:[{N:"lookup",C:[{N:"varRef",name:"Q{}static-context",slot:"1"},{N:"str",val:"output-declarations"}]},{N:"vc",op:"eq",comp:"CCC",C:[{N:"data",diag:"1|0||eq",C:[{N:"slash", +simple:"1",C:[{N:"treat",as:"N",diag:"14|2|XPTY0020|",C:[{N:"dot"}]},{N:"axis",name:"attribute",nodeTest:"NA nQ{}name"}]}]},{N:"varRef",name:"Q{http://saxon.sf.net/generated-variable}v0",slot:"8"}]}]}]}]}]}]},{N:"fn",line:"68",name:"empty",C:[{N:"varRef",name:"Q{}formatExpr",slot:"5"}]},{N:"treat",line:"69",as:"NE nQ{http://ns.saxonica.com/xslt/export}output",diag:"3|0|XTTE0570|decl",C:[{N:"check",card:"?",diag:"3|0|XTTE0570|decl",C:[{N:"filter",flags:"b",C:[{N:"lookup",C:[{N:"varRef",name:"Q{}static-context", +slot:"1"},{N:"str",val:"output-declarations"}]},{N:"fn",name:"empty",C:[{N:"slash",simple:"1",C:[{N:"treat",as:"N",diag:"14|2|XPTY0020|",C:[{N:"dot"}]},{N:"axis",name:"attribute",nodeTest:"NA nQ{}name"}]}]}]}]}]}]},{N:"sequence",line:"75",C:[{N:"choose",C:[{N:"fn",name:"exists",C:[{N:"varRef",name:"Q{}decl",slot:"6"}]},{N:"att",line:"83",name:"global",flags:"l",C:[{N:"let",line:"78","var":"Q{http://saxon.sf.net/generated-variable}v0",as:"+AS",slot:"9",eval:"4",C:[{N:"sequence",C:[{N:"gVarRef",name:"Q{}serialization-properties", +bSlot:"64"},{N:"str",val:"use-character-maps"}]},{N:"let","var":"Q{}map",as:"1FM",slot:"10",eval:"8",C:[{N:"ifCall",name:"Q{http://www.w3.org/2005/xpath-functions/map}merge",type:"1FM",C:[{N:"forEach",C:[{N:"filter",flags:"b",C:[{N:"slash",simple:"1",C:[{N:"varRef",name:"Q{}decl",slot:"6"},{N:"axis",name:"child",nodeTest:"NE nQ{http://ns.saxonica.com/xslt/export}property"}]},{N:"gc",op:"=",card:"N:1",comp:"CCC",C:[{N:"varRef",name:"Q{http://saxon.sf.net/generated-variable}v0",slot:"9"},{N:"attVal", +name:"Q{}name",chk:"0"}]}]},{N:"ifCall",line:"79",name:"Q{http://www.w3.org/2005/xpath-functions/map}entry",type:"1FM",C:[{N:"choose",C:[{N:"vc",op:"eq",onEmpty:"0",comp:"CCC",C:[{N:"attVal",name:"Q{}name",chk:"0"},{N:"str",val:"output-version"}]},{N:"str",val:"version"},{N:"true"},{N:"atomSing",diag:"0|0||map:entry",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}name"}]}]},{N:"axis",name:"attribute",nodeTest:"NA nQ{}value"}]}]},{N:"map",size:"2",C:[{N:"str",val:"duplicates"},{N:"str",val:"reject"}, +{N:"str",val:"duplicates-error-code"},{N:"str",val:"XTDE3365"}]}]},{N:"cvUntyped",line:"196",to:"AS",diag:"5|0|XTTE0780|f:makeProperties#1",C:[{N:"cast",flags:"a",as:"1AZ",C:[{N:"fn",name:"string-join",C:[{N:"convert",from:"AZ",to:"AS",C:[{N:"data",C:[{N:"mergeAdj",C:[{N:"forEach",C:[{N:"ifCall",name:"Q{http://www.w3.org/2005/xpath-functions/map}keys",type:"*A",C:[{N:"varRef",name:"Q{}map",slot:"10"}]},{N:"let",line:"197","var":"Q{}value",slot:"11",eval:"8",C:[{N:"ifCall",name:"Q{http://www.w3.org/2005/xpath-functions/map}get", +type:"*",C:[{N:"varRef",name:"Q{}map",slot:"10"},{N:"dot",type:"1A"}]},{N:"valueOf",line:"199",C:[{N:"fn",name:"concat",C:[{N:"dot",type:"1A"},{N:"str",val:"="},{N:"atomSing",card:"?",diag:"0|2||fn:concat",C:[{N:"choose",line:"198",C:[{N:"vc",op:"eq",onEmpty:"0",comp:"GAC|http://www.w3.org/2005/xpath-functions/collation/codepoint",C:[{N:"dot",type:"1A"},{N:"str",val:"item-separator"}]},{N:"fn",name:"replace",C:[{N:"fn",name:"replace",C:[{N:"check",card:"?",diag:"0|0||fn:replace",C:[{N:"cvUntyped", +to:"AS",C:[{N:"data",diag:"0|0||fn:replace",C:[{N:"varRef",name:"Q{}value",slot:"11"}]}]}]},{N:"str",val:"%"},{N:"str",val:"%%"},{N:"str",val:""}]},{N:"str",val:"\n"},{N:"str",val:"%n"},{N:"str",val:""}]},{N:"true"},{N:"varRef",line:"199",name:"Q{}value",slot:"11"}]}]},{N:"str",val:"\n"}]}]}]}]}]}]}]},{N:"str",val:""}]}]}]}]}]}]}]},{N:"choose",line:"86",C:[{N:"fn",name:"exists",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}href"}]},{N:"callT",line:"87",name:"Q{MyFunctions}AVT",bSlot:"65",C:[{N:"withParam", +name:"Q{}avt-string",flags:"c",as:"?NA nQ{}href",C:[{N:"axis",line:"88",name:"attribute",nodeTest:"NA nQ{}href"}]},{N:"withParam",name:"Q{}role",flags:"c",as:"?NA",C:[{N:"treat",line:"89",as:"NA",diag:"8|0|XTTE0590|role",C:[{N:"check",card:"?",diag:"8|0|XTTE0590|role",C:[{N:"lookup",C:[{N:"gVarRef",name:"Q{}roles",bSlot:"66"},{N:"str",val:"href"}]}]}]}]}]}]},{N:"choose",line:"93",C:[{N:"fn",name:"exists",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}format"}]},{N:"copyOf",line:"94",flags:"c",C:[{N:"varRef", +name:"Q{}formatExpr",slot:"5"}]}]},{N:"forEach",line:"97",C:[{N:"filter",flags:"b",C:[{N:"filter",flags:"b",C:[{N:"axis",name:"attribute",nodeTest:"NA"},{N:"gc",op:"=",card:"N:1",comp:"CCC",C:[{N:"gVarRef",name:"Q{}serialization-properties",bSlot:"67"},{N:"fn",name:"name",C:[{N:"dot",type:"1NA"}]}]}]},{N:"fn",name:"contains",C:[{N:"cvUntyped",to:"AS",C:[{N:"data",diag:"0|0||fn:contains",C:[{N:"dot",type:"1NA"}]}]},{N:"str",val:"{"}]}]},{N:"callT",line:"98",name:"Q{MyFunctions}AVT",bSlot:"68",C:[{N:"withParam", +name:"Q{}avt-string",flags:"c",as:"1NA",C:[{N:"dot",line:"99",type:"1NA"}]},{N:"withParam",name:"Q{}role",flags:"c",as:"1NA",C:[{N:"att",line:"101",name:"role",C:[{N:"fn",name:"concat",C:[{N:"str",val:"Q{}"},{N:"fn",name:"name",C:[{N:"dot",type:"1NA"}]}]}]}]}]}]},{N:"callT",line:"106",name:"Q{}sequence-constructor",bSlot:"69",C:[{N:"withParam",name:"Q{}attr",flags:"c",as:"*NA",C:[{N:"treat",line:"107",as:"NA",diag:"8|0|XTTE0590|attr",C:[{N:"lookup",C:[{N:"gVarRef",name:"Q{}roles",bSlot:"70"},{N:"str", +val:"content"}]}]}]}]}]}]}]}]}]}]}]}]}]},{N:"templateRule",prec:"0",prio:"0.5",seq:"196",rank:"2",minImp:"0",slots:"11",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}call-template",flags:"s",as:"1NE",line:"203",module:"callable-components.xsl",C:[{N:"p.withPredicate",role:"match",C:[{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}call-template"},{N:"axis",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ saxon=~ t=MyTypes xs=~ xsl=~ xml=~", +line:"203",name:"attribute",nodeTest:"NA nQ{}name"}]},{N:"check",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ saxon=~ t=MyTypes xs=~ xsl=~ xml=~",line:"204",card:"1",diag:'7|0|XTTE0505|match="xsl:call-template[@name]" mode="sef"',C:[{N:"sequence",C:[{N:"param",name:"Q{}attr",slot:"0",as:"*NA",C:[{N:"empty",role:"select"},{N:"treat",role:"conversion",as:"NA",diag:"8|0|XTTE0590|attr", +C:[{N:"supplied",slot:"0"}]}]},{N:"param",line:"205",name:"Q{}named-template-signatures",slot:"1",flags:"ti",as:"1FM",C:[{N:"treat",role:"conversion",as:"FM",diag:"8|0|XTTE0590|named-template-signatures",C:[{N:"check",card:"1",diag:"8|0|XTTE0590|named-template-signatures",C:[{N:"supplied",slot:"1"}]}]}]},{N:"param",line:"206",name:"Q{}static-context",slot:"2",flags:"t",as:"1FM",C:[{N:"map",role:"select",size:"0"},{N:"treat",role:"conversion",as:"FM",diag:"8|0|XTTE0590|static-context",C:[{N:"check", +card:"1",diag:"8|0|XTTE0590|static-context",C:[{N:"supplied",slot:"2"}]}]}]},{N:"let",line:"207","var":"Q{}name",as:"1AS",slot:"3",eval:"16",C:[{N:"check",card:"1",diag:"3|0|XTTE0570|name",C:[{N:"cvUntyped",to:"AS",diag:"3|0|XTTE0570|name",C:[{N:"attVal",name:"Q{}name",chk:"0"}]}]},{N:"choose",line:"209",C:[{N:"ifCall",name:"Q{http://www.w3.org/2005/xpath-functions/map}contains",type:"1AB",C:[{N:"varRef",name:"Q{}named-template-signatures",slot:"1"},{N:"varRef",name:"Q{}name",slot:"3"}]},{N:"let", +line:"210","var":"Q{}signature",slot:"4",eval:"3",C:[{N:"ifCall",name:"Q{http://www.w3.org/2005/xpath-functions/map}get",type:"*",C:[{N:"varRef",name:"Q{}named-template-signatures",slot:"1"},{N:"varRef",name:"Q{}name",slot:"3"}]},{N:"let",line:"213","var":"Q{}supplied.params",as:"*AS",slot:"5",eval:"4",C:[{N:"cvUntyped",to:"AS",diag:"3|0|XTTE0570|supplied.params",C:[{N:"data",diag:"3|0|XTTE0570|supplied.params",C:[{N:"slash",simple:"2",C:[{N:"filter",flags:"b",C:[{N:"axis",name:"child",nodeTest:"NE nQ{http://www.w3.org/1999/XSL/Transform}with-param"}, +{N:"vc",op:"ne",onEmpty:"1",comp:"CCC",C:[{N:"cast",flags:"ae",as:"?AS",C:[{N:"attVal",name:"Q{}tunnel",chk:"0"}]},{N:"str",val:"true"}]}]},{N:"axis",name:"attribute",nodeTest:"NA nQ{}name"}]}]}]},{N:"let",line:"214","var":"Q{}template",as:"1FM",slot:"6",eval:"16",C:[{N:"treat",as:"FM",diag:"3|0|XTTE0570|template",C:[{N:"check",card:"1",diag:"3|0|XTTE0570|template",C:[{N:"lookup",C:[{N:"varRef",name:"Q{}signature",slot:"4"},{N:"str",val:"params"}]}]}]},{N:"let",line:"215","var":"Q{}param.names",as:"*A", +slot:"7",eval:"4",C:[{N:"ifCall",name:"Q{http://www.w3.org/2005/xpath-functions/map}keys",type:"*A",C:[{N:"varRef",name:"Q{}template",slot:"6"}]},{N:"let",line:"217","var":"Q{}unknown.params",as:"*AS",slot:"8",eval:"4",C:[{N:"filter",flags:"b",C:[{N:"varRef",name:"Q{}supplied.params",slot:"5"},{N:"fn",name:"not",C:[{N:"gc",op:"=",card:"N:1",comp:"GAC|http://www.w3.org/2005/xpath-functions/collation/codepoint",C:[{N:"varRef",name:"Q{}param.names",slot:"7"},{N:"dot",type:"1AS"}]}]}]},{N:"let",line:"218", +"var":"Q{}unsupplied.params",as:"*AS",slot:"9",eval:"4",C:[{N:"filter",flags:"b",C:[{N:"treat",line:"216",as:"AS",diag:"3|0|XTTE0570|required.params",C:[{N:"cvUntyped",to:"AS",diag:"3|0|XTTE0570|required.params",C:[{N:"filter",flags:"p",C:[{N:"varRef",name:"Q{}param.names",slot:"7"},{N:"lookup",C:[{N:"ifCall",name:"Q{http://www.w3.org/2005/xpath-functions/map}get",type:"*",C:[{N:"varRef",name:"Q{}template",slot:"6"},{N:"dot",type:"1A"}]},{N:"str",val:"required"}]}]}]}]},{N:"fn",name:"not",C:[{N:"gc", +op:"=",card:"N:1",comp:"CCC",C:[{N:"varRef",name:"Q{}supplied.params",slot:"5"},{N:"dot",type:"1AS"}]}]}]},{N:"choose",line:"220",C:[{N:"and",op:"and",C:[{N:"fn",name:"exists",C:[{N:"varRef",name:"Q{}unknown.params",slot:"8"}]},{N:"fn",name:"not",C:[{N:"lookup",C:[{N:"varRef",name:"Q{}static-context",slot:"2"},{N:"str",val:"backward-compatibility"}]}]}]},{N:"let",line:"224","var":"Q{http://saxon.sf.net/generated-variable}v0",as:"1AB",slot:"10",eval:"13",C:[{N:"vc",op:"gt",comp:"CAVC",C:[{N:"fn",name:"count", +C:[{N:"varRef",name:"Q{}unknown.params",slot:"8"}]},{N:"int",val:"1"}]},{N:"sequence",C:[{N:"treat",as:"NE",diag:'7|0|XTTE0505|match="xsl:call-template[@name]" mode="sef"',C:[{N:"ufCall",name:"Q{MyFunctions}syntax-error-at",tailCall:"false",bSlot:"71",eval:"0 16 16",C:[{N:"str",val:"XTSE0680"},{N:"fn",name:"concat",C:[{N:"str",val:"Named template "},{N:"varRef",name:"Q{}name",slot:"3"},{N:"str",val:" does not declare parameter"},{N:"filter",flags:"ib",C:[{N:"str",val:"s"},{N:"varRef",name:"Q{http://saxon.sf.net/generated-variable}v0", +slot:"10"}]},{N:"str",val:" "},{N:"fn",name:"string-join",C:[{N:"varRef",name:"Q{}unknown.params",slot:"8"},{N:"str",val:", "}]}]},{N:"dot",type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}call-template"}]}]},{N:"elem",line:"225",name:"empty",nsuri:"http://ns.saxonica.com/xslt/export",flags:"d",C:[{N:"empty"}]}]}]},{N:"fn",line:"227",name:"exists",C:[{N:"varRef",name:"Q{}unsupplied.params",slot:"9"}]},{N:"sequence",line:"233",C:[{N:"treat",as:"NE",diag:'7|0|XTTE0505|match="xsl:call-template[@name]" mode="sef"', +C:[{N:"ufCall",name:"Q{MyFunctions}syntax-error-at",tailCall:"false",bSlot:"72",eval:"0 16 16",C:[{N:"str",val:"XTSE0690"},{N:"fn",name:"concat",C:[{N:"str",val:"A call to named template "},{N:"varRef",name:"Q{}name",slot:"3"},{N:"str",val:" requires "},{N:"cast",line:"228",flags:"a",as:"1AZ",C:[{N:"choose",C:[{N:"vc",op:"eq",onEmpty:"0",comp:"CAVC",C:[{N:"fn",name:"count",C:[{N:"varRef",name:"Q{}unsupplied.params",slot:"9"}]},{N:"int",val:"1"}]},{N:"str",val:"a supplied value for "},{N:"true"},{N:"str", +val:"supplied values for\n "}]}]},{N:"fn",name:"string-join",C:[{N:"varRef",name:"Q{}unsupplied.params",slot:"9"},{N:"str",val:", "}]}]},{N:"dot",type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}call-template"}]}]},{N:"elem",line:"234",name:"empty",nsuri:"http://ns.saxonica.com/xslt/export",flags:"d",C:[{N:"empty"}]}]},{N:"true"},{N:"elem",line:"237",name:"callT",nsuri:"http://ns.saxonica.com/xslt/export",flags:"d",C:[{N:"sequence",C:[{N:"att",name:"bSlot",flags:"l",C:[{N:"str", +val:"??"}]},{N:"att",name:"sType",flags:"l",C:[{N:"fn",name:"string-join",C:[{N:"convert",from:"A",to:"AS",C:[{N:"data",C:[{N:"mergeAdj",C:[{N:"lookup",C:[{N:"varRef",name:"Q{}signature",slot:"4"},{N:"str",val:"typeJ"}]}]}]}]},{N:"str",val:" "}]}]},{N:"axis",line:"238",name:"attribute",nodeTest:"NA nQ{}name"},{N:"varRef",line:"239",name:"Q{}attr",slot:"0"},{N:"callT",line:"240",name:"Q{}record-location",bSlot:"73"},{N:"applyT",line:"241",flags:"c",bSlot:"-1",C:[{N:"axis",role:"select",name:"child", +nodeTest:"NE"}]}]}]}]}]}]}]}]}]}]},{N:"true"},{N:"sequence",line:"247",C:[{N:"treat",as:"NE",diag:'7|0|XTTE0505|match="xsl:call-template[@name]" mode="sef"',C:[{N:"ufCall",name:"Q{MyFunctions}syntax-error-at",tailCall:"false",bSlot:"74",eval:"0 16 16",C:[{N:"str",val:"XTSE0650"},{N:"fn",name:"concat",C:[{N:"str",val:"Named template "},{N:"varRef",name:"Q{}name",slot:"3"},{N:"str",val:" does not exist"}]},{N:"dot",type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}call-template"}]}]},{N:"elem",line:"248", +name:"empty",nsuri:"http://ns.saxonica.com/xslt/export",flags:"d",C:[{N:"empty"}]}]}]}]}]}]}]},{N:"templateRule",prec:"0",prio:"0.5",seq:"248",rank:"2",minImp:"0",slots:"1",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}merge-source",flags:"s",line:"22",module:"merging.xsl",C:[{N:"p.withPredicate",role:"match",C:[{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}merge-source"},{N:"vc",ns:"=http://ns.saxonica.com/xslt/export array=~ doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~", +line:"22",op:"eq",comp:"CCC",C:[{N:"attVal",name:"Q{}sort-before-merge",chk:"0"},{N:"str",val:"true"}]}]},{N:"sequence",role:"action",ns:"=http://ns.saxonica.com/xslt/export array=~ doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~",line:"23",C:[{N:"param",name:"Q{}attr",slot:"0",as:"*NA",C:[{N:"empty",role:"select"},{N:"treat",role:"conversion",as:"NA",diag:"8|0|XTTE0590|attr",C:[{N:"supplied",slot:"0"}]}]},{N:"elem", +line:"24",name:"mergeSrc",nsuri:"http://ns.saxonica.com/xslt/export",flags:"d",C:[{N:"sequence",line:"25",C:[{N:"varRef",name:"Q{}attr",slot:"0"},{N:"axis",name:"attribute",nodeTest:"NA nQ{}name"},{N:"applyT",line:"26",flags:"c",bSlot:"-1",C:[{N:"axis",role:"select",name:"attribute",nodeTest:"NA nQ{}use-accumulators"}]},{N:"elem",line:"27",name:"sort",nsuri:"http://ns.saxonica.com/xslt/export",flags:"dl",C:[{N:"sequence",C:[{N:"att",name:"role",flags:"l",C:[{N:"str",val:"selectRows"}]},{N:"applyT", +line:"28",mode:"Q{}create.xpath",bSlot:"75",C:[{N:"axis",role:"select",name:"attribute",nodeTest:"NA nQ{}select"}]},{N:"applyT",line:"29",flags:"c",bSlot:"-1",C:[{N:"axis",role:"select",name:"child",nodeTest:"NE nQ{http://www.w3.org/1999/XSL/Transform}merge-key"}]}]}]},{N:"applyT",line:"31",mode:"Q{}create.xpath",bSlot:"76",C:[{N:"sequence",role:"select",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}for-each-item"},{N:"axis",name:"attribute",nodeTest:"NA nQ{}for-each-source"}]}]},{N:"applyT",line:"32", +flags:"c",bSlot:"-1",C:[{N:"axis",role:"select",name:"child",nodeTest:"NE"}]}]}]}]}]},{N:"templateRule",prec:"0",prio:"0.5",seq:"118",rank:"2",minImp:"0",slots:"2",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}merge-source",flags:"s",line:"935",module:"normalize.xsl",C:[{N:"p.withCurrent",role:"match",C:[{N:"p.withPredicate",C:[{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}merge-source"},{N:"filter",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~", +line:"935",flags:"b",C:[{N:"axis",name:"following-sibling",nodeTest:"NE nQ{http://www.w3.org/1999/XSL/Transform}merge-source"},{N:"vc",op:"eq",onEmpty:"0",comp:"CCC",C:[{N:"cast",flags:"ae",as:"?AS",C:[{N:"data",diag:"1|0||=",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}name"}]}]},{N:"cast",flags:"ae",as:"?AS",C:[{N:"data",diag:"1|1||=",C:[{N:"slash",C:[{N:"treat",as:"N",diag:"1|0|XPTY0019|/",C:[{N:"varRef",name:"Q{http://www.w3.org/2005/xpath-functions}current",slot:"0"}]},{N:"axis",name:"attribute", +nodeTest:"NA nQ{}name"}]}]}]}]}]}]}]},{N:"ufCall",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"936",name:"Q{MyFunctions}syntax-error-at",tailCall:"false",bSlot:"77",eval:"0 16 16",C:[{N:"str",val:"XTSE3190"},{N:"fn",name:"concat",C:[{N:"str",val:"xsl:merge-source siblings cannot have the same name:"},{N:"attVal",name:"Q{}name",chk:"0"}]},{N:"dot",type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}merge-source"}]}]}, +{N:"templateRule",prec:"0",prio:"0.0",seq:"249",rank:"1",minImp:"0",slots:"1",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}merge-source",flags:"s",line:"36",module:"merging.xsl",C:[{N:"p.nodeTest",role:"match",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}merge-source"},{N:"sequence",role:"action",ns:"=http://ns.saxonica.com/xslt/export array=~ doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~",line:"37", +C:[{N:"param",name:"Q{}attr",slot:"0",as:"*NA",C:[{N:"empty",role:"select"},{N:"treat",role:"conversion",as:"NA",diag:"8|0|XTTE0590|attr",C:[{N:"supplied",slot:"0"}]}]},{N:"elem",line:"38",name:"mergeSrc",nsuri:"http://ns.saxonica.com/xslt/export",flags:"d",C:[{N:"sequence",line:"39",C:[{N:"varRef",name:"Q{}attr",slot:"0"},{N:"axis",name:"attribute",nodeTest:"NA nQ{}name"},{N:"applyT",line:"40",flags:"c",bSlot:"-1",C:[{N:"axis",role:"select",name:"attribute",nodeTest:"NA nQ{}use-accumulators"}]}, +{N:"applyT",line:"41",mode:"Q{}create.xpath",bSlot:"78",C:[{N:"axis",role:"select",name:"attribute",nodeTest:"NA nQ{}select"}]},{N:"applyT",line:"42",mode:"Q{}create.xpath",bSlot:"79",C:[{N:"sequence",role:"select",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}for-each-item"},{N:"axis",name:"attribute",nodeTest:"NA nQ{}for-each-source"}]}]},{N:"applyT",line:"43",flags:"c",bSlot:"-1",C:[{N:"axis",role:"select",name:"child",nodeTest:"NE"}]}]}]}]}]},{N:"templateRule",prec:"0",prio:"0.5",seq:"182",rank:"2", +minImp:"0",slots:"0",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}variable",flags:"s",line:"14",module:"variables-and-parameters.xsl",C:[{N:"p.withPredicate",role:"match",C:[{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}variable"},{N:"and",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~",line:"14",op:"and",C:[{N:"fn",name:"empty",C:[{N:"axis",name:"following-sibling", +nodeTest:"NE"}]},{N:"fn",name:"empty",C:[{N:"filter",flags:"b",C:[{N:"axis",name:"following-sibling",nodeTest:"NT"},{N:"fn",name:"boolean",C:[{N:"fn",name:"normalize-space",C:[{N:"cvUntyped",to:"AS",C:[{N:"data",diag:"0|0||fn:normalize-space",C:[{N:"dot",type:"1NT"}]}]}]}]}]}]}]}]},{N:"sequence",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~",line:"15",C:[{N:"message", +C:[{N:"valueOf",role:"select",C:[{N:"fn",name:"concat",C:[{N:"str",val:"xsl:variable "},{N:"fn",name:"string",C:[{N:"convert",from:"AZ",to:"AS",C:[{N:"attVal",name:"Q{}name",chk:"0"}]}]},{N:"str",val:" has no following sibling so it will have no effect"}]}]},{N:"str",role:"terminate",val:"no"},{N:"str",role:"error",val:"Q{http://www.w3.org/2005/xqt-errors}XTMM9000"}]},{N:"nextMatch",line:"16",flags:"t"}]}]},{N:"templateRule",prec:"0",prio:"0.0",seq:"184",rank:"1",minImp:"0",slots:"0",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}variable", +flags:"s",line:"18",module:"variables-and-parameters.xsl",C:[{N:"p.nodeTest",role:"match",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}variable"},{N:"elem",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~",line:"20",name:"VARDEF",nsuri:"http://ns.saxonica.com/xslt/export",flags:"d",C:[{N:"sequence",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}name"},{N:"axis", +name:"attribute",nodeTest:"NA nQ{}namespace"},{N:"axis",name:"attribute",nodeTest:"NA nQ{http://ns.saxonica.com/xslt/export}asJ"},{N:"axis",name:"attribute",nodeTest:"NA nQ{http://ns.saxonica.com/xslt/export}baseUri"},{N:"axis",name:"attribute",nodeTest:"NA nQ{http://ns.saxonica.com/xslt/export}ns"},{N:"callT",line:"21",name:"Q{}record-location",bSlot:"80"},{N:"applyT",line:"22",flags:"c",bSlot:"-1",C:[{N:"axis",role:"select",name:"attribute",nodeTest:"NA nQ{}as"}]},{N:"applyT",line:"23",mode:"Q{}select.or.sequence", +bSlot:"81",C:[{N:"dot",role:"select",type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}variable"},{N:"withParam",name:"Q{}type",as:"?NA nQ{}as",C:[{N:"axis",line:"24",name:"attribute",nodeTest:"NA nQ{}as"}]},{N:"withParam",name:"Q{}has-uniform-static-context",flags:"t",as:"1AB",C:[{N:"ufCall",line:"25",name:"Q{MyFunctions}has-uniform-static-context",tailCall:"false",bSlot:"82",eval:"16",C:[{N:"dot",type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}variable"}]}]}]}]}]}]},{N:"templateRule",prec:"0", +prio:"0.5",seq:"209",rank:"2",minImp:"0",slots:"3",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}element",flags:"s",as:"1NE",line:"31",module:"creating-new-nodes.xsl",C:[{N:"p.withPredicate",role:"match",C:[{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}element"},{N:"or",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~",line:"31",op:"or",C:[{N:"fn",name:"contains", +C:[{N:"cvUntyped",to:"AS",C:[{N:"attVal",name:"Q{}namespace",chk:"0"}]},{N:"str",val:"{"}]},{N:"fn",name:"contains",C:[{N:"cvUntyped",to:"AS",C:[{N:"attVal",name:"Q{}name",chk:"0"}]},{N:"str",val:"{"}]}]}]},{N:"sequence",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~",line:"32",C:[{N:"param",name:"Q{}attr",slot:"0",as:"*NA",C:[{N:"empty",role:"select"},{N:"treat", +role:"conversion",as:"NA",diag:"8|0|XTTE0590|attr",C:[{N:"supplied",slot:"0"}]}]},{N:"elem",line:"33",name:"compElem",nsuri:"http://ns.saxonica.com/xslt/export",flags:"d",C:[{N:"sequence",C:[{N:"att",name:"sType",flags:"l",C:[{N:"gVarRef",name:"Q{}SJ.SINGLE_ELEMENT",bSlot:"83"}]},{N:"varRef",line:"34",name:"Q{}attr",slot:"0"},{N:"callT",line:"36",name:"Q{}record-location",bSlot:"84"},{N:"choose",line:"37",C:[{N:"vc",op:"eq",onEmpty:"0",comp:"CCC",C:[{N:"attVal",name:"Q{}inherit-namespaces",chk:"0"}, +{N:"str",val:"false"}]},{N:"att",line:"38",name:"flags",flags:"l",C:[{N:"str",val:"C"}]}]},{N:"forEach",line:"40",C:[{N:"sequence",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}name"},{N:"axis",name:"attribute",nodeTest:"NA nQ{}namespace"}]},{N:"callT",line:"41",name:"Q{}role-value-template",bSlot:"85"}]},{N:"let",line:"43","var":"Q{}content",as:"*NE",slot:"1",eval:"8",C:[{N:"treat",line:"44",as:"NE",diag:"3|0|XTTE0570|content",C:[{N:"applyT",flags:"c",bSlot:"-1",C:[{N:"sequence",role:"select",C:[{N:"axis", +name:"attribute",nodeTest:"NA nQ{}use-attribute-sets"},{N:"axis",name:"child",nodeTest:"N u[NT,NP,NE,NC]"}]}]}]},{N:"choose",line:"47",C:[{N:"fn",name:"empty",C:[{N:"varRef",name:"Q{}content",slot:"1"}]},{N:"elem",line:"48",name:"empty",nsuri:"http://ns.saxonica.com/xslt/export",flags:"dl",C:[{N:"lookup",line:"49",C:[{N:"gVarRef",name:"Q{}roles",bSlot:"86"},{N:"str",val:"content"}]}]},{N:"vc",line:"52",op:"eq",onEmpty:"0",comp:"CAVC",C:[{N:"fn",name:"count",C:[{N:"varRef",name:"Q{}content",slot:"1"}]}, +{N:"int",val:"1"}]},{N:"let",line:"55","var":"Q{http://saxon.sf.net/generated-variable}v0",slot:"2",eval:"4",C:[{N:"lookup",C:[{N:"gVarRef",name:"Q{}roles",bSlot:"87"},{N:"str",val:"content"}]},{N:"forEach",line:"53",C:[{N:"varRef",name:"Q{}content",slot:"1"},{N:"copy",line:"55",flags:"cinl",sit:"1NE",C:[{N:"sequence",role:"content",C:[{N:"axis",name:"attribute",nodeTest:"NA"},{N:"varRef",name:"Q{http://saxon.sf.net/generated-variable}v0",slot:"2"},{N:"axis",name:"child",nodeTest:"NE"}]}]}]}]},{N:"true"}, +{N:"elem",line:"60",name:"sequence",nsuri:"http://ns.saxonica.com/xslt/export",flags:"dl",C:[{N:"sequence",line:"61",C:[{N:"lookup",C:[{N:"gVarRef",name:"Q{}roles",bSlot:"88"},{N:"str",val:"content"}]},{N:"varRef",name:"Q{}content",slot:"1"}]}]}]}]}]}]}]}]},{N:"templateRule",prec:"0",prio:"0.0",seq:"210",rank:"1",minImp:"0",slots:"8",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}element",flags:"s",as:"1NE",line:"69",module:"creating-new-nodes.xsl",C:[{N:"p.nodeTest",role:"match",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}element"}, +{N:"sequence",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~",line:"70",C:[{N:"param",name:"Q{}attr",slot:"0",as:"*NA",C:[{N:"empty",role:"select"},{N:"treat",role:"conversion",as:"NA",diag:"8|0|XTTE0590|attr",C:[{N:"supplied",slot:"0"}]}]},{N:"let",line:"71","var":"Q{}name",as:"1AS",slot:"1",eval:"8",C:[{N:"fn",name:"normalize-space",C:[{N:"cvUntyped",to:"AS",C:[{N:"attVal", +name:"Q{}name",chk:"0"}]}]},{N:"let",line:"74","var":"Q{}ns",as:"1FM",slot:"2",eval:"8",C:[{N:"ifCall",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",module:"namespaces.xsl",line:"88",name:"Q{http://www.w3.org/2005/xpath-functions/map}merge",type:"1FM",C:[{N:"forEach",C:[{N:"fn",name:"tokenize",C:[{N:"fn",name:"string",C:[{N:"check",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~", +module:"creating-new-nodes.xsl",line:"72",card:"?",diag:"5|0|XTTE0780|f:innermostExNs#1",C:[{N:"forEach",C:[{N:"forEach",C:[{N:"dot",type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}element"},{N:"first",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",module:"namespaces.xsl",line:"139",C:[{N:"filter",flags:"b",C:[{N:"axis",name:"ancestor-or-self",nodeTest:"NE"},{N:"fn",name:"exists",C:[{N:"axis", +name:"attribute",nodeTest:"NA nQ{http://ns.saxonica.com/xslt/export}ns"}]}]}]}]},{N:"axis",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",module:"namespaces.xsl",line:"139",name:"attribute",nodeTest:"NA nQ{http://ns.saxonica.com/xslt/export}ns"}]}]}]}]},{N:"let","var":"Q{}p",slot:"3",eval:"4",C:[{N:"fn",name:"tokenize",C:[{N:"dot",type:"1AS"},{N:"str",val:"="},{N:"str",val:""}]},{N:"let", +"var":"Q{}prefix",slot:"4",eval:"7",C:[{N:"first",C:[{N:"varRef",name:"Q{}p",slot:"3"}]},{N:"let","var":"Q{}uri",slot:"5",eval:"7",C:[{N:"subscript",C:[{N:"varRef",name:"Q{}p",slot:"3"},{N:"int",val:"2"}]},{N:"ifCall",name:"Q{http://www.w3.org/2005/xpath-functions/map}entry",type:"1FM",C:[{N:"check",card:"1",diag:"0|0||map:entry",C:[{N:"varRef",name:"Q{}prefix",slot:"4"}]},{N:"choose",C:[{N:"vc",op:"eq",onEmpty:"0",comp:"CCC",C:[{N:"varRef",name:"Q{}uri",slot:"5"},{N:"str",val:"~"}]},{N:"ifCall", +name:"Q{http://www.w3.org/2005/xpath-functions/map}get",type:"*",C:[{N:"gVarRef",name:"Q{}known-namespaces",bSlot:"89"},{N:"check",card:"1",diag:"0|1||map:get",C:[{N:"varRef",name:"Q{}prefix",slot:"4"}]}]},{N:"true"},{N:"varRef",name:"Q{}uri",slot:"5"}]}]}]}]}]}]},{N:"map",size:"2",C:[{N:"str",val:"duplicates"},{N:"str",val:"use-first"},{N:"str",val:"duplicates-error-code"},{N:"str",val:"FOJS0003"}]}]},{N:"elem",line:"76",name:"elem",nsuri:"http://ns.saxonica.com/xslt/export",flags:"d",C:[{N:"sequence", +C:[{N:"att",name:"type",flags:"l",C:[{N:"str",val:"element()"}]},{N:"varRef",line:"77",name:"Q{}attr",slot:"0"},{N:"let",line:"78","var":"Q{}parts",as:"*AS",slot:"6",eval:"3",C:[{N:"fn",name:"tokenize",C:[{N:"varRef",name:"Q{}name",slot:"1"},{N:"str",val:":"},{N:"str",val:""}]},{N:"sequence",line:"79",C:[{N:"applyT",flags:"c",bSlot:"-1",C:[{N:"axis",role:"select",name:"attribute",nodeTest:"NA d[NA nQ{http://ns.saxonica.com/xslt/export}*,NA nQ{http://ns.saxonica.com/xslt/export}defaultElementNS]"}]}, +{N:"applyT",line:"80",mode:"Q{}attribute-sans-prefix",bSlot:"90",C:[{N:"axis",role:"select",name:"attribute",nodeTest:"NA nQ{http://ns.saxonica.com/xslt/export}defaultElementNS"}]},{N:"att",line:"86",name:"name",flags:"l",C:[{N:"choose",C:[{N:"vc",op:"eq",onEmpty:"0",comp:"CCC",C:[{N:"cast",flags:"ae",as:"?AS",C:[{N:"attVal",name:"Q{}namespace",chk:"0"}]},{N:"str",val:""}]},{N:"lastOf",C:[{N:"varRef",name:"Q{}parts",slot:"6"}]},{N:"true"},{N:"varRef",name:"Q{}name",slot:"1"}]}]},{N:"att",line:"87", +name:"sType",flags:"l",C:[{N:"gVarRef",name:"Q{}SJ.SINGLE_ELEMENT",bSlot:"91"}]},{N:"applyT",line:"88",flags:"c",bSlot:"-1",C:[{N:"axis",role:"select",name:"attribute",nodeTest:"NA nQ{}namespace"}]},{N:"choose",line:"89",C:[{N:"vc",op:"eq",onEmpty:"0",comp:"CCC",C:[{N:"attVal",name:"Q{}inherit-namespaces",chk:"0"},{N:"str",val:"false"}]},{N:"att",line:"90",name:"flags",flags:"l",C:[{N:"str",val:"C"}]}]},{N:"let",line:"92","var":"Q{}prefix",as:"1AS",slot:"7",eval:"16",C:[{N:"choose",line:"94",C:[{N:"vc", +op:"eq",onEmpty:"0",comp:"CAVC",C:[{N:"fn",name:"count",C:[{N:"varRef",name:"Q{}parts",slot:"6"}]},{N:"int",val:"2"}]},{N:"choose",line:"96",C:[{N:"castable",flags:"a",as:"1ASNTNC",C:[{N:"first",C:[{N:"varRef",name:"Q{}parts",slot:"6"}]}]},{N:"cvUntyped",to:"AS",diag:"3|0|XTTE0570|prefix",C:[{N:"cast",flags:"a",as:"1AZ",C:[{N:"fn",name:"string",C:[{N:"first",C:[{N:"varRef",name:"Q{}parts",slot:"6"}]}]}]}]},{N:"true"},{N:"cvUntyped",line:"97",to:"AS",diag:"3|0|XTTE0570|prefix",C:[{N:"cast",flags:"a", +as:"1AZ",C:[{N:"fn",name:"string-join",C:[{N:"convert",from:"A",to:"AS",C:[{N:"data",C:[{N:"mergeAdj",C:[{N:"ufCall",name:"Q{MyFunctions}syntax-error-at",tailCall:"false",bSlot:"92",eval:"0 16 16",C:[{N:"str",val:"XTDE0820"},{N:"fn",name:"concat",C:[{N:"str",val:'Invalid prefix "'},{N:"first",C:[{N:"varRef",name:"Q{}parts",slot:"6"}]},{N:"str",val:'"'}]},{N:"check",card:"1",diag:"0|2||f:syntax-error-at",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}name"}]}]}]}]}]},{N:"str",val:" "}]}]}]}]},{N:"true"}, +{N:"str",val:""}]},{N:"sequence",line:"108",C:[{N:"choose",C:[{N:"fn",name:"empty",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}namespace"}]},{N:"att",line:"115",name:"nsuri",flags:"l",C:[{N:"fn",name:"string-join",C:[{N:"convert",from:"A",to:"AS",C:[{N:"data",C:[{N:"mergeAdj",C:[{N:"ifCall",line:"114",name:"Q{http://www.w3.org/2005/xpath-functions/map}get",type:"*",C:[{N:"varRef",name:"Q{}ns",slot:"2"},{N:"varRef",name:"Q{}prefix",slot:"7"}]}]}]}]},{N:"str",val:" "}]}]}]},{N:"applyT",line:"118", +mode:"Q{}attribute-sans-prefix",bSlot:"93",C:[{N:"sequence",role:"select",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{http://ns.saxonica.com/xslt/export}baseUri"},{N:"axis",name:"attribute",nodeTest:"NA nQ{http://ns.saxonica.com/xslt/export}ns"},{N:"axis",name:"attribute",nodeTest:"NA nQ{http://ns.saxonica.com/xslt/export}defaultElementNS"}]}]},{N:"callT",line:"120",name:"Q{}record-location",bSlot:"94"},{N:"callT",line:"121",name:"Q{}sequence-constructor",bSlot:"95",C:[{N:"withParam",name:"Q{}others", +flags:"c",as:"*NE",C:[{N:"treat",line:"123",as:"NE",diag:"3|0|XTTE0570|others",C:[{N:"applyT",flags:"c",bSlot:"-1",C:[{N:"axis",role:"select",name:"attribute",nodeTest:"NA nQ{}use-attribute-sets"}]}]}]}]}]}]}]}]}]}]}]}]}]}]},{N:"templateRule",prec:"0",prio:"0.0",seq:"386",rank:"1",minImp:"0",slots:"0",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}output",flags:"s",line:"1719",module:"XSLT-SEF-compiler.xsl",C:[{N:"p.nodeTest",role:"match",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}output"}, +{N:"empty",role:"action"}]},{N:"templateRule",prec:"0",prio:"0.0",seq:"366",rank:"1",minImp:"0",slots:"1",matches:"NE nQ{http://saxonica.com/ns/interactiveXSLT}remove-property",flags:"s",line:"41",module:"ixsl.xsl",C:[{N:"p.nodeTest",role:"match",test:"NE nQ{http://saxonica.com/ns/interactiveXSLT}remove-property"},{N:"sequence",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions ixsl=~ map=~ xs=~ xsl=~ xml=~", +line:"42",C:[{N:"param",name:"Q{}attr",slot:"0",as:"*NA",C:[{N:"empty",role:"select"},{N:"treat",role:"conversion",as:"NA",diag:"8|0|XTTE0590|attr",C:[{N:"supplied",slot:"0"}]}]},{N:"elem",line:"43",name:"ifCall",nsuri:"http://ns.saxonica.com/xslt/export",flags:"d",namespaces:"map",C:[{N:"sequence",C:[{N:"att",name:"name",flags:"l",C:[{N:"str",val:"Q{http://saxonica.com/ns/interactiveXSLT}remove-property"}]},{N:"att",name:"sType",flags:"l",C:[{N:"str",val:"0"}]},{N:"varRef",line:"44",name:"Q{}attr", +slot:"0"},{N:"callT",line:"45",name:"Q{}record-location",bSlot:"96"},{N:"forEach",line:"46",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}name"},{N:"callT",line:"47",name:"Q{}role-value-template",bSlot:"97"}]},{N:"elem",line:"50",name:"xpath",nsuri:"http://ns.saxonica.com/xslt/export",flags:"dl",namespaces:"map",C:[{N:"sequence",C:[{N:"att",name:"xpath",flags:"l",C:[{N:"fn",name:"string-join",C:[{N:"convert",from:"A",to:"AS",C:[{N:"data",C:[{N:"first",C:[{N:"sequence",C:[{N:"axis",name:"attribute", +nodeTest:"NA nQ{}object"},{N:"str",val:"ixsl:window()"}]}]}]}]},{N:"str",val:" "}]}]},{N:"att",name:"line",flags:"l",C:[{N:"convert",from:"ADI",to:"AS",C:[{N:"ufCall",name:"Q{MyFunctions}line-number",tailCall:"false",bSlot:"98",eval:"16",C:[{N:"dot",type:"1NE nQ{http://saxonica.com/ns/interactiveXSLT}remove-property"}]}]}]},{N:"att",name:"checkType",flags:"l",C:[{N:"str",val:"1"}]},{N:"att",name:"diagnostic",flags:"l",C:[{N:"convert",from:"AZ",to:"AS",C:[{N:"data",C:[{N:"att",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~", +module:"lib.xsl",line:"286",name:"diag",C:[{N:"gVarRef",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions ixsl=~ map=~ xs=~ xsl=~ xml=~",name:"Q{http://saxon.sf.net/generated-variable}gg435273220",bSlot:"99"}]}]}]}]}]}]}]}]}]}]},{N:"templateRule",prec:"0",prio:"0.0",seq:"263",rank:"1",minImp:"0",slots:"0",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}accumulator-rule",flags:"s",line:"45",module:"streaming.xsl", +C:[{N:"p.nodeTest",role:"match",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}accumulator-rule"},{N:"elem",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~",line:"46",name:"accRule",nsuri:"http://ns.saxonica.com/xslt/export",flags:"d",C:[{N:"sequence",C:[{N:"att",name:"slots",flags:"l",C:[{N:"str",val:"5"}]},{N:"applyT",line:"47",mode:"Q{}create.xpath",bSlot:"100", +C:[{N:"axis",role:"select",name:"attribute",nodeTest:"NA nQ{}match"}]},{N:"applyT",line:"48",mode:"Q{}select.or.sequence",bSlot:"101",C:[{N:"dot",role:"select",type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}accumulator-rule"}]}]}]}]},{N:"templateRule",prec:"0",prio:"0.0",seq:"159",rank:"1",minImp:"0",slots:"1",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}iterate",flags:"s",line:"102",module:"repetition.xsl",C:[{N:"p.nodeTest",role:"match",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}iterate"}, +{N:"sequence",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~",line:"103",C:[{N:"param",name:"Q{}attr",slot:"0",as:"*NA",C:[{N:"empty",role:"select"},{N:"treat",role:"conversion",as:"NA",diag:"8|0|XTTE0590|attr",C:[{N:"supplied",slot:"0"}]}]},{N:"callT",line:"104",name:"Q{}check-select",bSlot:"102"},{N:"elem",line:"105",name:"iterate",nsuri:"http://ns.saxonica.com/xslt/export", +flags:"d",C:[{N:"sequence",line:"106",C:[{N:"varRef",name:"Q{}attr",slot:"0"},{N:"callT",line:"107",name:"Q{}record-location",bSlot:"103"},{N:"applyT",line:"108",mode:"Q{}create.xpath",bSlot:"104",C:[{N:"axis",role:"select",name:"attribute",nodeTest:"NA nQ{}select"}]},{N:"elem",line:"109",name:"params",nsuri:"http://ns.saxonica.com/xslt/export",flags:"dl",C:[{N:"sequence",C:[{N:"att",name:"role",flags:"l",C:[{N:"str",val:"params"}]},{N:"callT",line:"110",name:"Q{}parameters",bSlot:"105"}]}]},{N:"choose", +line:"112",C:[{N:"vc",op:"gt",onEmpty:"0",comp:"CAVC",C:[{N:"fn",name:"count",C:[{N:"axis",name:"child",nodeTest:"NE nQ{http://www.w3.org/1999/XSL/Transform}on-completion"}]},{N:"int",val:"1"}]},{N:"fn",line:"113",name:"error",C:[{N:"qName",pre:"",uri:"http://www.w3.org/2005/xqt-errors",loc:"XTSE0010"},{N:"str",val:"xsl:iterate may only have one xsl:on-completion child"}]}]},{N:"choose",line:"115",C:[{N:"fn",name:"exists",C:[{N:"filter",flags:"b",C:[{N:"slash",simple:"2",C:[{N:"axis",name:"child", +nodeTest:"NE nQ{http://www.w3.org/1999/XSL/Transform}on-completion"},{N:"axis",name:"preceding-sibling",nodeTest:"NE"}]},{N:"fn",name:"empty",C:[{N:"axis",name:"self",nodeTest:"NE nQ{http://www.w3.org/1999/XSL/Transform}param"}]}]}]},{N:"fn",line:"117",name:"error",C:[{N:"qName",pre:"",uri:"http://www.w3.org/2005/xqt-errors",loc:"XTSE0010"},{N:"str",val:"xsl:on-completion may only be proceeded by xsl:param* as children of xsl:iterate"}]}]},{N:"applyT",line:"119",flags:"c",bSlot:"-1",C:[{N:"axis", +role:"select",name:"child",nodeTest:"NE nQ{http://www.w3.org/1999/XSL/Transform}on-completion"}]},{N:"choose",line:"120",C:[{N:"fn",name:"empty",C:[{N:"axis",name:"child",nodeTest:"NE nQ{http://www.w3.org/1999/XSL/Transform}on-completion"}]},{N:"elem",line:"121",name:"empty",nsuri:"http://ns.saxonica.com/xslt/export",flags:"dl",C:[{N:"att",name:"role",flags:"l",C:[{N:"str",val:"on-completion"}]}]}]},{N:"callT",line:"123",name:"Q{}sequence-constructor",bSlot:"106",C:[{N:"withParam",name:"Q{}include-params", +flags:"c",as:"1AB",C:[{N:"false"}]},{N:"withParam",name:"Q{}attr",flags:"c",as:"*NA",C:[{N:"treat",line:"125",as:"NA",diag:"8|0|XTTE0590|attr",C:[{N:"lookup",C:[{N:"gVarRef",name:"Q{}roles",bSlot:"107"},{N:"str",val:"action"}]}]}]}]}]}]}]}]},{N:"templateRule",prec:"0",prio:"0.0",seq:"214",rank:"1",minImp:"0",slots:"1",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}comment",flags:"s",as:"1NE",line:"207",module:"creating-new-nodes.xsl",C:[{N:"p.nodeTest",role:"match",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}comment"}, +{N:"sequence",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~",line:"208",C:[{N:"param",name:"Q{}attr",slot:"0",as:"*NA",C:[{N:"empty",role:"select"},{N:"treat",role:"conversion",as:"NA",diag:"8|0|XTTE0590|attr",C:[{N:"supplied",slot:"0"}]}]},{N:"elem",line:"209",name:"comment",nsuri:"http://ns.saxonica.com/xslt/export",flags:"d",C:[{N:"sequence",C:[{N:"att",name:"sType", +flags:"l",C:[{N:"gVarRef",name:"Q{}SJ.SINGLE_COMMENT",bSlot:"108"}]},{N:"varRef",line:"210",name:"Q{}attr",slot:"0"},{N:"callT",line:"211",name:"Q{}constructSimpleContent",bSlot:"109"}]}]}]}]},{N:"templateRule",prec:"0",prio:"0.0",seq:"160",rank:"1",minImp:"0",slots:"3",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}next-iteration",flags:"s",line:"135",module:"repetition.xsl",C:[{N:"p.nodeTest",role:"match",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}next-iteration"},{N:"sequence",role:"action", +ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~",line:"136",C:[{N:"param",name:"Q{}attr",slot:"0",as:"*NA",C:[{N:"empty",role:"select"},{N:"treat",role:"conversion",as:"NA",diag:"8|0|XTTE0590|attr",C:[{N:"supplied",slot:"0"}]}]},{N:"ufCall",line:"137",name:"Q{MyFunctions}check-iterate",tailCall:"false",bSlot:"110",eval:"8",C:[{N:"dot",type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}next-iteration"}]}, +{N:"ufCall",line:"137",name:"Q{MyFunctions}check-tail-position",tailCall:"false",bSlot:"111",eval:"16",C:[{N:"dot",type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}next-iteration"}]},{N:"let",line:"138","var":"Q{}iteration-params",as:"*NE nQ{http://www.w3.org/1999/XSL/Transform}param",slot:"1",eval:"4",C:[{N:"slash",simple:"1",C:[{N:"first",C:[{N:"slash",simple:"1",C:[{N:"dot",type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}next-iteration"},{N:"axis",name:"ancestor",nodeTest:"NE nQ{http://www.w3.org/1999/XSL/Transform}iterate"}]}]}, +{N:"axis",name:"child",nodeTest:"NE nQ{http://www.w3.org/1999/XSL/Transform}param"}]},{N:"let",line:"140","var":"Q{http://saxon.sf.net/generated-variable}v0",as:"*AZ",slot:"2",eval:"4",C:[{N:"data",diag:"1|1||=",C:[{N:"slash",simple:"2",C:[{N:"varRef",name:"Q{}iteration-params",slot:"1"},{N:"axis",name:"attribute",nodeTest:"NA nQ{}name"}]}]},{N:"sequence",line:"139",C:[{N:"forEach",C:[{N:"axis",name:"child",nodeTest:"NE nQ{http://www.w3.org/1999/XSL/Transform}with-param"},{N:"choose",line:"140",C:[{N:"fn", +name:"not",C:[{N:"gc",op:"=",card:"N:1",comp:"CCC",C:[{N:"varRef",name:"Q{http://saxon.sf.net/generated-variable}v0",slot:"2"},{N:"attVal",name:"Q{}name",chk:"0"}]}]},{N:"ufCall",line:"143",name:"Q{MyFunctions}syntax-error-at",tailCall:"false",bSlot:"112",eval:"0 16 16",C:[{N:"str",val:"XTSE3130"},{N:"fn",name:"concat",C:[{N:"str",val:"xsl:next-iteration parameter '"},{N:"attVal",name:"Q{}name",chk:"0"},{N:"str",val:"' is not a parameter of the enclosing xsl:iterate"}]},{N:"dot",type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}with-param"}]}]}]}, +{N:"elem",line:"146",name:"nextIteration",nsuri:"http://ns.saxonica.com/xslt/export",flags:"d",C:[{N:"sequence",line:"147",C:[{N:"varRef",name:"Q{}attr",slot:"0"},{N:"callT",line:"148",name:"Q{}record-location",bSlot:"113"},{N:"applyT",line:"149",flags:"c",bSlot:"-1",C:[{N:"axis",role:"select",name:"child",nodeTest:"NE"}]}]}]}]}]}]}]}]},{N:"templateRule",prec:"0",prio:"0.0",seq:"255",rank:"1",minImp:"0",slots:"1",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}fork",flags:"s",line:"15",module:"splitting.xsl", +C:[{N:"p.nodeTest",role:"match",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}fork"},{N:"sequence",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"16",C:[{N:"param",name:"Q{}attr",slot:"0",as:"*NA",C:[{N:"empty",role:"select"},{N:"treat",role:"conversion",as:"NA",diag:"8|0|XTTE0590|attr",C:[{N:"supplied",slot:"0"}]}]},{N:"elem",line:"17",name:"fork",nsuri:"http://ns.saxonica.com/xslt/export", +flags:"d",C:[{N:"sequence",line:"18",C:[{N:"varRef",name:"Q{}attr",slot:"0"},{N:"callT",line:"19",name:"Q{}sequence-constructor",bSlot:"114"}]}]}]}]},{N:"templateRule",prec:"0",prio:"0.5",seq:"238",rank:"2",minImp:"0",slots:"1",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}perform-sort",flags:"s",line:"123",module:"sorting.xsl",C:[{N:"p.withPredicate",role:"match",C:[{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}perform-sort"},{N:"fn",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~", +line:"123",name:"empty",C:[{N:"sequence",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}select"},{N:"axis",name:"child",nodeTest:"NE d[NE,NE nQ{http://www.w3.org/1999/XSL/Transform}sort]"}]}]}]},{N:"sequence",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~",line:"124",C:[{N:"param",name:"Q{}attr",slot:"0",as:"*NA",C:[{N:"empty",role:"select"},{N:"treat",role:"conversion", +as:"NA",diag:"8|0|XTTE0590|attr",C:[{N:"supplied",slot:"0"}]}]},{N:"elem",line:"125",name:"empty",nsuri:"http://ns.saxonica.com/xslt/export",flags:"d",C:[{N:"varRef",line:"126",name:"Q{}attr",slot:"0"}]}]}]},{N:"templateRule",prec:"0",prio:"0.5",seq:"237",rank:"2",minImp:"0",slots:"1",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}perform-sort",flags:"s",line:"115",module:"sorting.xsl",C:[{N:"p.withPredicate",role:"match",C:[{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}perform-sort"}, +{N:"axis",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~",line:"115",name:"attribute",nodeTest:"NA nQ{}select"}]},{N:"sequence",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~",line:"116",C:[{N:"param",name:"Q{}attr",slot:"0",as:"*NA", +C:[{N:"empty",role:"select"},{N:"treat",role:"conversion",as:"NA",diag:"8|0|XTTE0590|attr",C:[{N:"supplied",slot:"0"}]}]},{N:"elem",line:"117",name:"sort",nsuri:"http://ns.saxonica.com/xslt/export",flags:"d",C:[{N:"sequence",line:"118",C:[{N:"varRef",name:"Q{}attr",slot:"0"},{N:"applyT",line:"119",mode:"Q{}create.xpath",bSlot:"115",C:[{N:"axis",role:"select",name:"attribute",nodeTest:"NA nQ{}select"}]},{N:"applyT",line:"120",flags:"c",bSlot:"-1",C:[{N:"axis",role:"select",name:"child",nodeTest:"NE nQ{http://www.w3.org/1999/XSL/Transform}sort"}]}]}]}]}]}, +{N:"templateRule",prec:"0",prio:"0.0",seq:"239",rank:"1",minImp:"0",slots:"1",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}perform-sort",flags:"s",line:"129",module:"sorting.xsl",C:[{N:"p.nodeTest",role:"match",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}perform-sort"},{N:"sequence",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~",line:"130",C:[{N:"param", +name:"Q{}attr",slot:"0",as:"*NA",C:[{N:"empty",role:"select"},{N:"treat",role:"conversion",as:"NA",diag:"8|0|XTTE0590|attr",C:[{N:"supplied",slot:"0"}]}]},{N:"ufCall",line:"131",name:"Q{MyFunctions}check-sort",tailCall:"false",bSlot:"116",eval:"16",C:[{N:"dot",type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}perform-sort"}]},{N:"elem",line:"132",name:"sort",nsuri:"http://ns.saxonica.com/xslt/export",flags:"d",C:[{N:"sequence",line:"133",C:[{N:"varRef",name:"Q{}attr",slot:"0"},{N:"elem",line:"135", +name:"sequence",nsuri:"http://ns.saxonica.com/xslt/export",flags:"dl",C:[{N:"applyT",line:"136",flags:"c",bSlot:"-1",C:[{N:"axis",role:"select",name:"child",nodeTest:"NE d[NE,NE nQ{http://www.w3.org/1999/XSL/Transform}sort]"}]}]},{N:"applyT",line:"138",flags:"c",bSlot:"-1",C:[{N:"axis",role:"select",name:"child",nodeTest:"NE nQ{http://www.w3.org/1999/XSL/Transform}sort"}]}]}]}]}]},{N:"templateRule",prec:"0",prio:"0.5",seq:"213",rank:"2",minImp:"0",slots:"1",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}attribute", +flags:"s",line:"192",module:"creating-new-nodes.xsl",C:[{N:"p.withPredicate",role:"match",C:[{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}attribute"},{N:"or",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~",line:"192",op:"or",C:[{N:"fn",name:"exists",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}namespace"}]},{N:"fn",name:"contains",C:[{N:"cvUntyped",to:"AS", +C:[{N:"attVal",name:"Q{}name",chk:"0"}]},{N:"str",val:"{"}]}]}]},{N:"sequence",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~",line:"193",C:[{N:"param",name:"Q{}attr",slot:"0",as:"*NA",C:[{N:"empty",role:"select"},{N:"treat",role:"conversion",as:"NA",diag:"8|0|XTTE0590|attr",C:[{N:"supplied",slot:"0"}]}]},{N:"elem",line:"194",name:"compAtt",nsuri:"http://ns.saxonica.com/xslt/export", +flags:"d",C:[{N:"sequence",C:[{N:"att",name:"sType",flags:"l",C:[{N:"gVarRef",name:"Q{}SJ.SINGLE_ATTRIBUTE",bSlot:"117"}]},{N:"varRef",line:"195",name:"Q{}attr",slot:"0"},{N:"choose",line:"197",C:[{N:"and",op:"and",C:[{N:"fn",name:"empty",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{http://ns.saxonica.com/xslt/export}baseUri"}]},{N:"fn",name:"exists",C:[{N:"filter",flags:"b",C:[{N:"axis",name:"parent",nodeTest:"NE nQ{http://www.w3.org/1999/XSL/Transform}attribute-set"},{N:"fn",name:"exists",C:[{N:"axis", +name:"attribute",nodeTest:"NA nQ{http://ns.saxonica.com/xslt/export}baseUri"}]}]}]}]},{N:"slash",simple:"2",C:[{N:"axis",name:"parent",nodeTest:"N u[NE,ND]"},{N:"axis",name:"attribute",nodeTest:"NA nQ{http://ns.saxonica.com/xslt/export}baseUri"}]}]},{N:"callT",line:"199",name:"Q{}record-location",bSlot:"118"},{N:"forEach",line:"200",C:[{N:"sequence",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}namespace"},{N:"axis",name:"attribute",nodeTest:"NA nQ{}name"}]},{N:"callT",line:"201",name:"Q{}role-value-template", +bSlot:"119"}]},{N:"callT",line:"203",name:"Q{}constructSimpleContent",bSlot:"120"}]}]}]}]},{N:"templateRule",prec:"0",prio:"0.0",seq:"212",rank:"1",minImp:"0",slots:"8",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}attribute",flags:"s",as:"1NE",line:"133",module:"creating-new-nodes.xsl",C:[{N:"p.nodeTest",role:"match",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}attribute"},{N:"sequence",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~", +line:"134",C:[{N:"param",name:"Q{}attr",slot:"0",as:"*NA",C:[{N:"empty",role:"select"},{N:"treat",role:"conversion",as:"NA",diag:"8|0|XTTE0590|attr",C:[{N:"supplied",slot:"0"}]}]},{N:"let",line:"136","var":"Q{}name",as:"1AS",slot:"1",eval:"8",C:[{N:"fn",name:"normalize-space",C:[{N:"cvUntyped",to:"AS",C:[{N:"attVal",name:"Q{}name",chk:"0"}]}]},{N:"elem",line:"138",name:"att",nsuri:"http://ns.saxonica.com/xslt/export",flags:"d",C:[{N:"sequence",C:[{N:"att",name:"name",flags:"l",C:[{N:"varRef",name:"Q{}name", +slot:"1"}]},{N:"att",name:"sType",flags:"l",C:[{N:"gVarRef",name:"Q{}SJ.SINGLE_ATTRIBUTE",bSlot:"121"}]},{N:"choose",line:"139",C:[{N:"fn",name:"matches",C:[{N:"varRef",name:"Q{}name",slot:"1"},{N:"str",val:":"},{N:"str",val:""}]},{N:"let",line:"140","var":"Q{}prefix",as:"?AS",slot:"2",eval:"7",C:[{N:"first",C:[{N:"fn",name:"tokenize",C:[{N:"varRef",name:"Q{}name",slot:"1"},{N:"str",val:":"},{N:"str",val:""}]}]},{N:"let",line:"148","var":"Q{}uri",slot:"3",eval:"4",C:[{N:"let","var":"Q{}n",slot:"4", +eval:"8",C:[{N:"ifCall",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",module:"namespaces.xsl",line:"88",name:"Q{http://www.w3.org/2005/xpath-functions/map}get",type:"*",C:[{N:"ifCall",name:"Q{http://www.w3.org/2005/xpath-functions/map}merge",type:"1FM",C:[{N:"forEach",C:[{N:"fn",name:"tokenize",C:[{N:"fn",name:"string",C:[{N:"check",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~", +module:"creating-new-nodes.xsl",line:"135",card:"?",diag:"5|0|XTTE0780|f:innermostExNs#1",C:[{N:"forEach",C:[{N:"forEach",C:[{N:"dot",type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}attribute"},{N:"first",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",module:"namespaces.xsl",line:"139",C:[{N:"filter",flags:"b",C:[{N:"axis",name:"ancestor-or-self",nodeTest:"NE"},{N:"fn",name:"exists", +C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{http://ns.saxonica.com/xslt/export}ns"}]}]}]}]},{N:"axis",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",module:"namespaces.xsl",line:"139",name:"attribute",nodeTest:"NA nQ{http://ns.saxonica.com/xslt/export}ns"}]}]}]}]},{N:"let","var":"Q{}p",slot:"5",eval:"4",C:[{N:"fn",name:"tokenize",C:[{N:"dot",type:"1AS"},{N:"str",val:"="},{N:"str",val:""}]}, +{N:"let","var":"Q{}prefix",slot:"6",eval:"7",C:[{N:"first",C:[{N:"varRef",name:"Q{}p",slot:"5"}]},{N:"let","var":"Q{}uri",slot:"7",eval:"7",C:[{N:"subscript",C:[{N:"varRef",name:"Q{}p",slot:"5"},{N:"int",val:"2"}]},{N:"ifCall",name:"Q{http://www.w3.org/2005/xpath-functions/map}entry",type:"1FM",C:[{N:"check",card:"1",diag:"0|0||map:entry",C:[{N:"varRef",name:"Q{}prefix",slot:"6"}]},{N:"choose",C:[{N:"vc",op:"eq",onEmpty:"0",comp:"CCC",C:[{N:"varRef",name:"Q{}uri",slot:"7"},{N:"str",val:"~"}]},{N:"ifCall", +name:"Q{http://www.w3.org/2005/xpath-functions/map}get",type:"*",C:[{N:"gVarRef",name:"Q{}known-namespaces",bSlot:"122"},{N:"check",card:"1",diag:"0|1||map:get",C:[{N:"varRef",name:"Q{}prefix",slot:"6"}]}]},{N:"true"},{N:"varRef",name:"Q{}uri",slot:"7"}]}]}]}]}]}]},{N:"map",size:"2",C:[{N:"str",val:"duplicates"},{N:"str",val:"use-first"},{N:"str",val:"duplicates-error-code"},{N:"str",val:"FOJS0003"}]}]},{N:"check",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~", +module:"creating-new-nodes.xsl",line:"148",card:"1",diag:"0|1||map:get",C:[{N:"varRef",name:"Q{}prefix",slot:"2"}]}]},{N:"choose",C:[{N:"vc",op:"eq",onEmpty:"0",comp:"GAC|http://www.w3.org/2005/xpath-functions/collation/codepoint",C:[{N:"atomSing",card:"?",diag:"1|0||eq",C:[{N:"varRef",name:"Q{}n",slot:"4"}]},{N:"str",val:"~"}]},{N:"ifCall",name:"Q{http://www.w3.org/2005/xpath-functions/map}get",type:"*",C:[{N:"gVarRef",name:"Q{}known-namespaces",bSlot:"123"},{N:"check",card:"1",diag:"0|1||map:get", +C:[{N:"varRef",name:"Q{}prefix",slot:"2"}]}]},{N:"true"},{N:"varRef",name:"Q{}n",slot:"4"}]}]},{N:"choose",line:"150",C:[{N:"fn",name:"exists",C:[{N:"varRef",name:"Q{}uri",slot:"3"}]},{N:"sequence",line:"151",C:[{N:"att",name:"nsuri",flags:"l",C:[{N:"fn",name:"string-join",C:[{N:"convert",from:"A",to:"AS",C:[{N:"data",C:[{N:"mergeAdj",C:[{N:"varRef",name:"Q{}uri",slot:"3"}]}]}]},{N:"str",val:" "}]}]},{N:"namespace",line:"152",flags:"l",C:[{N:"fn",role:"name",name:"string",C:[{N:"varRef",name:"Q{}prefix", +slot:"2"}]},{N:"convert",role:"select",from:"AU",to:"AS",C:[{N:"cast",flags:"ae",as:"?AU",C:[{N:"atomSing",card:"?",diag:"2|0||cast as",C:[{N:"varRef",name:"Q{}uri",slot:"3"}]}]}]}]}]},{N:"true"},{N:"ufCall",line:"156",name:"Q{MyFunctions}syntax-error-at",tailCall:"false",bSlot:"124",eval:"0 16 16",C:[{N:"str",val:"ERRRRR"},{N:"fn",name:"concat",C:[{N:"str",val:"No namespace binding for prefix "},{N:"varRef",name:"Q{}prefix",slot:"2"},{N:"str",val:" in attribute "},{N:"varRef",name:"Q{}name",slot:"1"}]}, +{N:"dot",type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}attribute"}]}]}]}]}]},{N:"applyT",line:"162",mode:"Q{}attribute-sans-prefix",bSlot:"125",C:[{N:"sequence",role:"select",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{http://ns.saxonica.com/xslt/export}baseUri"},{N:"choose",line:"161",C:[{N:"and",op:"and",C:[{N:"fn",name:"empty",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{http://ns.saxonica.com/xslt/export}baseUri"}]},{N:"fn",name:"exists",C:[{N:"filter",flags:"b",C:[{N:"axis",name:"parent", +nodeTest:"NE nQ{http://www.w3.org/1999/XSL/Transform}attribute-set"},{N:"fn",name:"exists",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{http://ns.saxonica.com/xslt/export}baseUri"}]}]}]}]},{N:"slash",simple:"2",C:[{N:"axis",name:"parent",nodeTest:"N u[NE,ND]"},{N:"axis",name:"attribute",nodeTest:"NA nQ{http://ns.saxonica.com/xslt/export}baseUri"}]}]},{N:"axis",name:"attribute",nodeTest:"NA nQ{http://ns.saxonica.com/xslt/export}ns"},{N:"axis",name:"attribute",nodeTest:"NA nQ{http://ns.saxonica.com/xslt/export}defaultElementNS"}]}]}, +{N:"varRef",line:"163",name:"Q{}attr",slot:"0"},{N:"att",line:"169",name:"name",flags:"l",C:[{N:"choose",C:[{N:"vc",op:"eq",onEmpty:"0",comp:"CCC",C:[{N:"cast",flags:"ae",as:"?AS",C:[{N:"attVal",name:"Q{}namespace",chk:"0"}]},{N:"str",val:""}]},{N:"fn",name:"replace",C:[{N:"varRef",name:"Q{}name",slot:"1"},{N:"str",val:"^.+:"},{N:"str",val:""},{N:"str",val:""}]},{N:"true"},{N:"varRef",name:"Q{}name",slot:"1"}]}]},{N:"axis",line:"170",name:"attribute",nodeTest:"NA nQ{}namespace"},{N:"callT",line:"172", +name:"Q{}record-location",bSlot:"126"},{N:"callT",line:"173",name:"Q{}constructSimpleContent",bSlot:"127"}]}]}]}]}]},{N:"templateRule",prec:"0",prio:"0.0",seq:"247",rank:"1",minImp:"0",slots:"1",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}merge",flags:"s",line:"15",module:"merging.xsl",C:[{N:"p.nodeTest",role:"match",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}merge"},{N:"sequence",role:"action",ns:"=http://ns.saxonica.com/xslt/export array=~ doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~", +line:"16",C:[{N:"param",name:"Q{}attr",slot:"0",as:"*NA",C:[{N:"empty",role:"select"},{N:"treat",role:"conversion",as:"NA",diag:"8|0|XTTE0590|attr",C:[{N:"supplied",slot:"0"}]}]},{N:"elem",line:"17",name:"merge",nsuri:"http://ns.saxonica.com/xslt/export",flags:"d",C:[{N:"sequence",C:[{N:"att",name:"sType",flags:"l",C:[{N:"gVarRef",name:"Q{}SJ.ANY_SEQUENCE",bSlot:"128"}]},{N:"varRef",line:"18",name:"Q{}attr",slot:"0"},{N:"applyT",line:"19",flags:"c",bSlot:"-1",C:[{N:"axis",role:"select",name:"child", +nodeTest:"NE"}]}]}]}]}]},{N:"templateRule",prec:"0",prio:"0.5",seq:"178",rank:"2",minImp:"0",slots:"1",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}try",flags:"s",line:"211",module:"conditionals.xsl",C:[{N:"p.withPredicate",role:"match",C:[{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}try"},{N:"axis",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~", +line:"211",name:"attribute",nodeTest:"NA nQ{}select"}]},{N:"sequence",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~",line:"212",C:[{N:"param",name:"Q{}attr",slot:"0",as:"*NA",C:[{N:"empty",role:"select"},{N:"treat",role:"conversion",as:"NA",diag:"8|0|XTTE0590|attr",C:[{N:"supplied",slot:"0"}]}]},{N:"elem",line:"213",name:"try",nsuri:"http://ns.saxonica.com/xslt/export", +flags:"d",C:[{N:"sequence",C:[{N:"att",name:"flags",flags:"l",C:[{N:"choose",C:[{N:"vc",op:"ne",onEmpty:"1",comp:"CCC",C:[{N:"cast",flags:"ae",as:"?AS",C:[{N:"attVal",name:"Q{}rollback-output",chk:"0"}]},{N:"str",val:"false"}]},{N:"str",val:"r"},{N:"true"},{N:"str",val:""}]}]},{N:"varRef",line:"214",name:"Q{}attr",slot:"0"},{N:"applyT",line:"215",mode:"Q{}create.xpath",bSlot:"129",C:[{N:"axis",role:"select",name:"attribute",nodeTest:"NA nQ{}select"}]},{N:"applyT",line:"216",flags:"c",bSlot:"-1",C:[{N:"axis", +role:"select",name:"child",nodeTest:"NE nQ{http://www.w3.org/1999/XSL/Transform}catch"}]}]}]}]}]},{N:"templateRule",prec:"0",prio:"0.0",seq:"179",rank:"1",minImp:"0",slots:"1",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}try",flags:"s",line:"219",module:"conditionals.xsl",C:[{N:"p.nodeTest",role:"match",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}try"},{N:"sequence",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~", +line:"220",C:[{N:"param",name:"Q{}attr",slot:"0",as:"*NA",C:[{N:"empty",role:"select"},{N:"treat",role:"conversion",as:"NA",diag:"8|0|XTTE0590|attr",C:[{N:"supplied",slot:"0"}]}]},{N:"elem",line:"221",name:"try",nsuri:"http://ns.saxonica.com/xslt/export",flags:"d",C:[{N:"sequence",C:[{N:"att",name:"flags",flags:"l",C:[{N:"choose",C:[{N:"vc",op:"ne",onEmpty:"1",comp:"CCC",C:[{N:"cast",flags:"ae",as:"?AS",C:[{N:"attVal",name:"Q{}rollback-output",chk:"0"}]},{N:"str",val:"false"}]},{N:"str",val:"r"}, +{N:"true"},{N:"str",val:""}]}]},{N:"varRef",line:"222",name:"Q{}attr",slot:"0"},{N:"elem",line:"223",name:"sequence",nsuri:"http://ns.saxonica.com/xslt/export",flags:"dl",C:[{N:"applyT",line:"224",flags:"c",bSlot:"-1",C:[{N:"axis",role:"select",name:"child",nodeTest:"NE d[NE,NE nQ{http://www.w3.org/1999/XSL/Transform}catch]"}]}]},{N:"applyT",line:"226",flags:"c",bSlot:"-1",C:[{N:"axis",role:"select",name:"child",nodeTest:"NE nQ{http://www.w3.org/1999/XSL/Transform}catch"}]}]}]}]}]},{N:"templateRule", +prec:"0",prio:"0.0",seq:"162",rank:"1",minImp:"0",slots:"0",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}on-completion",flags:"s",line:"162",module:"repetition.xsl",C:[{N:"p.nodeTest",role:"match",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}on-completion"},{N:"sequence",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~",line:"163",C:[{N:"ufCall",name:"Q{MyFunctions}check-iterate", +tailCall:"false",bSlot:"130",eval:"8",C:[{N:"dot",type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}on-completion"}]},{N:"applyT",line:"164",mode:"Q{}select.or.sequence",flags:"t",bSlot:"131",C:[{N:"dot",role:"select",type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}on-completion"},{N:"withParam",name:"Q{}attr",C:[{N:"lookup",line:"165",C:[{N:"gVarRef",name:"Q{}roles",bSlot:"132"},{N:"str",val:"on-completion"}]}]}]}]}]},{N:"templateRule",prec:"0",prio:"0.0",seq:"364",rank:"1",minImp:"0",slots:"1", +matches:"NE nQ{http://saxonica.com/ns/interactiveXSLT}remove-attribute",flags:"s",line:"14",module:"ixsl.xsl",C:[{N:"p.nodeTest",role:"match",test:"NE nQ{http://saxonica.com/ns/interactiveXSLT}remove-attribute"},{N:"sequence",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions ixsl=~ map=~ xs=~ xsl=~ xml=~",line:"15",C:[{N:"param",name:"Q{}attr",slot:"0",as:"*NA",C:[{N:"empty",role:"select"},{N:"treat", +role:"conversion",as:"NA",diag:"8|0|XTTE0590|attr",C:[{N:"supplied",slot:"0"}]}]},{N:"elem",line:"16",name:"ifCall",nsuri:"http://ns.saxonica.com/xslt/export",flags:"d",namespaces:"map",C:[{N:"sequence",C:[{N:"att",name:"name",flags:"l",C:[{N:"str",val:"Q{http://saxonica.com/ns/interactiveXSLT}remove-attribute"}]},{N:"att",name:"sType",flags:"l",C:[{N:"str",val:"0"}]},{N:"varRef",line:"17",name:"Q{}attr",slot:"0"},{N:"callT",line:"18",name:"Q{}record-location",bSlot:"133"},{N:"forEach",line:"19", +C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}name"},{N:"callT",line:"20",name:"Q{}role-value-template",bSlot:"134"}]},{N:"elem",line:"23",name:"xpath",nsuri:"http://ns.saxonica.com/xslt/export",flags:"dl",namespaces:"map",C:[{N:"sequence",C:[{N:"att",name:"xpath",flags:"l",C:[{N:"fn",name:"string-join",C:[{N:"convert",from:"A",to:"AS",C:[{N:"data",C:[{N:"first",C:[{N:"sequence",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}object"},{N:"str",val:"."}]}]}]}]},{N:"str",val:" "}]}]},{N:"att",name:"line", +flags:"l",C:[{N:"convert",from:"ADI",to:"AS",C:[{N:"ufCall",name:"Q{MyFunctions}line-number",tailCall:"false",bSlot:"135",eval:"16",C:[{N:"dot",type:"1NE nQ{http://saxonica.com/ns/interactiveXSLT}remove-attribute"}]}]}]},{N:"att",name:"checkType",flags:"l",C:[{N:"str",val:"1"}]},{N:"att",name:"diagnostic",flags:"l",C:[{N:"convert",from:"AZ",to:"AS",C:[{N:"data",C:[{N:"att",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~", +module:"lib.xsl",line:"286",name:"diag",C:[{N:"gVarRef",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions ixsl=~ map=~ xs=~ xsl=~ xml=~",name:"Q{http://saxon.sf.net/generated-variable}gg342547835",bSlot:"136"}]}]}]}]}]}]}]}]}]}]},{N:"templateRule",prec:"0",prio:"0.5",seq:"236",rank:"2",minImp:"0",slots:"0",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}sort",flags:"s",line:"111",module:"sorting.xsl",C:[{N:"p.withUpper", +role:"match",axis:"parent",upFirst:"false",C:[{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}sort"},{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}perform-sort"}]},{N:"callT",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~",line:"112",name:"Q{}make-sort-key",bSlot:"137",flags:"t"}]},{N:"templateRule",prec:"0",prio:"0.0",seq:"235", +rank:"1",minImp:"0",slots:"0",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}sort",flags:"s",line:"108",module:"sorting.xsl",C:[{N:"p.nodeTest",role:"match",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}sort"},{N:"callT",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~",line:"109",name:"Q{}make-sort-key",bSlot:"138",flags:"t"}]},{N:"templateRule",prec:"0", +prio:"0.0",seq:"146",rank:"1",minImp:"0",slots:"3",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}mode",flags:"s",line:"30",module:"rules.xsl",C:[{N:"p.nodeTest",role:"match",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}mode"},{N:"sequence",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~",line:"31",C:[{N:"param",name:"Q{}xsl-version",slot:"0",flags:"t", +C:[{N:"dec",role:"select",val:"3"},{N:"supplied",role:"conversion",slot:"0"}]},{N:"param",line:"32",name:"Q{}compiler.options",slot:"1",flags:"t",as:"1FM",C:[{N:"map",role:"select",size:"0"},{N:"treat",role:"conversion",as:"FM",diag:"8|0|XTTE0590|compiler.options",C:[{N:"check",card:"1",diag:"8|0|XTTE0590|compiler.options",C:[{N:"supplied",slot:"1"}]}]}]},{N:"param",line:"33",name:"Q{}precedence-map",slot:"2",flags:"tr",as:"1FM k[AS] v[1ADI]",C:[{N:"treat",role:"conversion",as:"FM k[AS] v[1ADI]", +diag:"8|0|XTTE0590|precedence-map",C:[{N:"check",card:"1",diag:"8|0|XTTE0590|precedence-map",C:[{N:"supplied",slot:"2"}]}]}]},{N:"elem",line:"45",name:"mode",nsuri:"http://ns.saxonica.com/xslt/export",flags:"d",C:[{N:"sequence",C:[{N:"att",name:"onNo",flags:"l",C:[{N:"fn",name:"concat",C:[{N:"fn",name:"string",C:[{N:"ifCall",name:"Q{http://www.w3.org/2005/xpath-functions/map}get",type:"*",C:[{N:"gVarRef",name:"Q{}on-no-match",bSlot:"139"},{N:"atomSing",diag:"0|1||map:get",C:[{N:"first",C:[{N:"sequence", +C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}on-no-match"},{N:"str",val:"text-only-copy"}]}]}]}]}]},{N:"choose",C:[{N:"vc",op:"eq",onEmpty:"0",comp:"CCC",C:[{N:"attVal",name:"Q{}warning-on-no-match",chk:"0"},{N:"str",val:"true"}]},{N:"str",val:"+W"},{N:"true"},{N:"str",val:""}]}]}]},{N:"att",name:"flags",flags:"l",C:[{N:"fn",name:"concat",C:[{N:"choose",C:[{N:"or",line:"38",op:"or",C:[{N:"vc",op:"eq",onEmpty:"0",comp:"CCC",C:[{N:"attVal",name:"Q{}on-multiple-match",chk:"0"},{N:"str",val:"fail"}]}, +{N:"vc",op:"eq",onEmpty:"0",comp:"GAC|http://www.w3.org/2005/xpath-functions/collation/codepoint",C:[{N:"atomSing",card:"?",diag:"1|0||eq",C:[{N:"lookup",C:[{N:"varRef",name:"Q{}compiler.options",slot:"1"},{N:"str",val:"on-multiple-match"}]}]},{N:"str",val:"error"}]}]},{N:"str",val:"F"},{N:"true"},{N:"str",val:""}]},{N:"choose",C:[{N:"vc",op:"eq",onEmpty:"0",comp:"CCC",C:[{N:"attVal",name:"Q{}typed",chk:"0"},{N:"str",val:"true"}]},{N:"str",val:"t"},{N:"true"},{N:"str",val:""}]},{N:"choose",C:[{N:"vc", +op:"eq",onEmpty:"0",comp:"CCC",C:[{N:"attVal",name:"Q{}untyped",chk:"0"},{N:"str",val:"true"}]},{N:"str",val:"u"},{N:"true"},{N:"str",val:""}]},{N:"choose",C:[{N:"vc",op:"eq",onEmpty:"0",comp:"CCC",C:[{N:"attVal",name:"Q{}warning-on-multiple-match",chk:"0"},{N:"str",val:"true"}]},{N:"str",val:"W"},{N:"true"},{N:"str",val:""}]}]}]},{N:"att",name:"patternSlots",flags:"l",C:[{N:"str",val:"0"}]},{N:"choose",line:"46",C:[{N:"vc",op:"ne",onEmpty:"0",comp:"CCC",C:[{N:"attVal",name:"Q{}name",chk:"0"},{N:"str", +val:"#unnamed"}]},{N:"axis",line:"47",name:"attribute",nodeTest:"NA nQ{}name"}]},{N:"axis",line:"49",name:"attribute",nodeTest:"NA nQ{http://ns.saxonica.com/xslt/export}precLabel"},{N:"att",line:"50",name:"prec",flags:"l",C:[{N:"convert",from:"ADI",to:"AS",C:[{N:"ifCall",name:"Q{http://www.w3.org/2005/xpath-functions/map}get",type:"*",C:[{N:"varRef",name:"Q{}precedence-map",slot:"2"},{N:"fn",name:"string",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{http://ns.saxonica.com/xslt/export}precLabel"}]}]}]}]}, +{N:"applyT",line:"51",flags:"c",bSlot:"-1",C:[{N:"axis",role:"select",name:"attribute",nodeTest:"NA nQ{}use-accumulators"}]}]}]}]}]},{N:"templateRule",prec:"0",prio:"0.0",seq:"171",rank:"1",minImp:"0",slots:"1",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}where-populated",flags:"s",line:"137",module:"conditionals.xsl",C:[{N:"p.nodeTest",role:"match",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}where-populated"},{N:"sequence",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~", +line:"138",C:[{N:"param",name:"Q{}attr",slot:"0",as:"*NA",C:[{N:"empty",role:"select"},{N:"treat",role:"conversion",as:"NA",diag:"8|0|XTTE0590|attr",C:[{N:"supplied",slot:"0"}]}]},{N:"elem",line:"139",name:"condCont",nsuri:"http://ns.saxonica.com/xslt/export",flags:"d",C:[{N:"sequence",line:"140",C:[{N:"varRef",name:"Q{}attr",slot:"0"},{N:"callT",line:"141",name:"Q{}sequence-constructor",bSlot:"140"}]}]}]}]},{N:"templateRule",prec:"0",prio:"0.0",seq:"190",rank:"1",minImp:"0",slots:"5",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}evaluate", +flags:"s",line:"15",module:"callable-components.xsl",C:[{N:"p.nodeTest",role:"match",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}evaluate"},{N:"sequence",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ saxon=~ t=MyTypes xs=~ xsl=~ xml=~",line:"16",C:[{N:"param",name:"Q{}attr",slot:"0",as:"*NA",C:[{N:"empty",role:"select"},{N:"treat",role:"conversion",as:"NA",diag:"8|0|XTTE0590|attr", +C:[{N:"supplied",slot:"0"}]}]},{N:"param",line:"17",name:"Q{}xpath-default-namespace",slot:"1",flags:"t",as:"?NA",C:[{N:"empty",role:"select"},{N:"treat",role:"conversion",as:"NA",diag:"8|0|XTTE0590|xpath-default-namespace",C:[{N:"check",card:"?",diag:"8|0|XTTE0590|xpath-default-namespace",C:[{N:"supplied",slot:"1"}]}]}]},{N:"param",line:"18",name:"Q{}default-collation",slot:"2",flags:"t",as:"?NA",C:[{N:"empty",role:"select"},{N:"treat",role:"conversion",as:"NA",diag:"8|0|XTTE0590|default-collation", +C:[{N:"check",card:"?",diag:"8|0|XTTE0590|default-collation",C:[{N:"supplied",slot:"2"}]}]}]},{N:"elem",line:"26",name:"evaluate",nsuri:"http://ns.saxonica.com/xslt/export",flags:"d",C:[{N:"sequence",C:[{N:"att",name:"ns",flags:"l",C:[{N:"let",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~","var":"Q{}context",as:"1NE",slot:"3",eval:"16",C:[{N:"dot",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ saxon=~ t=MyTypes xs=~ xsl=~ xml=~", +type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}evaluate"},{N:"choose",module:"namespaces.xsl",line:"47",C:[{N:"fn",name:"exists",C:[{N:"slash",simple:"1",C:[{N:"varRef",name:"Q{}context",slot:"3"},{N:"axis",name:"attribute",nodeTest:"NA nQ{http://ns.saxonica.com/xslt/export}ns"}]}]},{N:"check",line:"48",card:"1",diag:"5|0|XTTE0780|f:encode-namespaces#1",C:[{N:"cvUntyped",to:"AS",diag:"5|0|XTTE0780|f:encode-namespaces#1",C:[{N:"data",diag:"5|0|XTTE0780|f:encode-namespaces#1",C:[{N:"slash",simple:"1", +C:[{N:"varRef",name:"Q{}context",slot:"3"},{N:"axis",name:"attribute",nodeTest:"NA nQ{http://ns.saxonica.com/xslt/export}ns"}]}]}]}]},{N:"true"},{N:"fn",line:"58",name:"string-join",C:[{N:"forEach",C:[{N:"slash",simple:"1",C:[{N:"varRef",name:"Q{}context",slot:"3"},{N:"axis",name:"namespace",nodeTest:"NN"}]},{N:"fn",name:"concat",C:[{N:"fn",name:"name",C:[{N:"dot",type:"1NN"}]},{N:"str",val:"="},{N:"choose",C:[{N:"vc",op:"eq",onEmpty:"0",comp:"CCC",C:[{N:"ifCall",name:"Q{http://www.w3.org/2005/xpath-functions/map}get", +type:"*",C:[{N:"gVarRef",name:"Q{}known-namespaces",bSlot:"141"},{N:"fn",name:"name",C:[{N:"dot",type:"1NN"}]}]},{N:"data",diag:"1|1||eq",C:[{N:"dot",type:"1NN"}]}]},{N:"str",val:"~"},{N:"true"},{N:"data",diag:"0|2||fn:concat",C:[{N:"dot",type:"1NN"}]}]}]}]},{N:"str",val:" "}]}]}]}]},{N:"varRef",line:"27",name:"Q{}attr",slot:"0"},{N:"att",line:"28",name:"as",flags:"l",C:[{N:"convert",from:"AZ",to:"AS",C:[{N:"attVal",name:"Q{http://ns.saxonica.com/xslt/export}asJ",chk:"0"}]}]},{N:"att",line:"29",name:"sType", +flags:"l",C:[{N:"ufCall",name:"Q{MyTypes}unmarshalType",tailCall:"false",bSlot:"142",eval:"16",C:[{N:"choose",line:"25",C:[{N:"fn",name:"exists",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{http://ns.saxonica.com/xslt/export}asJ"}]},{N:"ufCall",name:"Q{MyTypes}marshalType",tailCall:"false",bSlot:"143",eval:"16",C:[{N:"check",card:"1",diag:"0|0||t:marshalType",C:[{N:"cvUntyped",to:"AS",C:[{N:"attVal",name:"Q{http://ns.saxonica.com/xslt/export}asJ",chk:"0"}]}]}]},{N:"true"},{N:"gVarRef",name:"Q{}ST.ANY_SEQUENCE", +bSlot:"144"}]}]}]},{N:"callT",line:"31",name:"Q{}record-location",bSlot:"145"},{N:"choose",line:"32",C:[{N:"and",op:"and",C:[{N:"fn",name:"exists",C:[{N:"varRef",name:"Q{}xpath-default-namespace",slot:"1"}]},{N:"vc",op:"ne",onEmpty:"0",comp:"CCC",C:[{N:"data",diag:"1|0||ne",C:[{N:"varRef",name:"Q{}xpath-default-namespace",slot:"1"}]},{N:"str",val:"http://www.w3.org/1999/xhtml"}]}]},{N:"att",line:"33",name:"dxns",flags:"l",C:[{N:"convert",from:"AZ",to:"AS",C:[{N:"data",C:[{N:"varRef",name:"Q{}xpath-default-namespace", +slot:"1"}]}]}]}]},{N:"elem",line:"35",name:"cast",nsuri:"http://ns.saxonica.com/xslt/export",flags:"dl",C:[{N:"sequence",C:[{N:"att",name:"as",flags:"l",C:[{N:"str",val:"AS"}]},{N:"att",name:"flags",flags:"l",C:[{N:"str",val:"a"}]},{N:"att",name:"role",flags:"l",C:[{N:"str",val:"xpath"}]},{N:"elem",line:"36",name:"data",nsuri:"http://ns.saxonica.com/xslt/export",flags:"dl",C:[{N:"applyT",line:"37",mode:"Q{}create.xpath",bSlot:"146",C:[{N:"axis",role:"select",name:"attribute",nodeTest:"NA nQ{}xpath"}]}]}]}]}, +{N:"elem",line:"40",name:"str",nsuri:"http://ns.saxonica.com/xslt/export",flags:"dl",C:[{N:"sequence",C:[{N:"att",name:"role",flags:"l",C:[{N:"str",val:"sa"}]},{N:"att",name:"val",flags:"l",C:[{N:"str",val:"no"}]}]}]},{N:"choose",line:"42",C:[{N:"fn",name:"exists",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}context-item"}]},{N:"applyT",line:"43",mode:"Q{}create.xpath",bSlot:"147",C:[{N:"axis",role:"select",name:"attribute",nodeTest:"NA nQ{}context-item"}]},{N:"true"},{N:"elem",line:"46",name:"empty", +nsuri:"http://ns.saxonica.com/xslt/export",flags:"dl",C:[{N:"att",name:"role",flags:"l",C:[{N:"str",val:"cxt"}]}]}]},{N:"choose",line:"50",C:[{N:"fn",name:"exists",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}with-params"}]},{N:"applyT",line:"51",mode:"Q{}create.xpath",bSlot:"148",C:[{N:"axis",role:"select",name:"attribute",nodeTest:"NA nQ{}with-params"}]},{N:"true"},{N:"elem",line:"54",name:"map",nsuri:"http://ns.saxonica.com/xslt/export",flags:"dl",C:[{N:"att",name:"role",flags:"l",C:[{N:"str", +val:"wp"}]}]}]},{N:"choose",line:"58",C:[{N:"fn",name:"exists",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}namespace-context"}]},{N:"applyT",line:"59",mode:"Q{}create.xpath",bSlot:"149",C:[{N:"axis",role:"select",name:"attribute",nodeTest:"NA nQ{}namespace-context"}]}]},{N:"applyT",line:"62",mode:"Q{}create.xpath",bSlot:"150",C:[{N:"axis",role:"select",name:"attribute",nodeTest:"NA nQ{http://saxon.sf.net/}options"}]},{N:"choose",line:"65",C:[{N:"fn",name:"exists",C:[{N:"axis",name:"attribute", +nodeTest:"NA nQ{}base-uri"}]},{N:"let",line:"66","var":"Q{}temp",as:"1NE",slot:"4",eval:"16",C:[{N:"check",line:"67",card:"1",diag:"3|0|XTTE0570|temp",C:[{N:"forEach",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}base-uri"},{N:"callT",line:"68",name:"Q{}value-template",bSlot:"151"}]}]},{N:"forEach",line:"71",C:[{N:"varRef",name:"Q{}temp",slot:"4"},{N:"copy",line:"73",flags:"cinl",sit:"1NE",C:[{N:"sequence",role:"content",C:[{N:"axis",name:"attribute",nodeTest:"NA"},{N:"lookup",C:[{N:"gVarRef",name:"Q{}roles", +bSlot:"152"},{N:"str",val:"baseUri"}]},{N:"axis",name:"child",nodeTest:"NE"}]}]}]}]}]},{N:"applyT",line:"78",flags:"c",bSlot:"-1",C:[{N:"axis",role:"select",name:"child",nodeTest:"NE nQ{http://www.w3.org/1999/XSL/Transform}with-param"}]}]}]}]}]},{N:"templateRule",prec:"0",prio:"0.0",seq:"368",rank:"1",minImp:"0",slots:"1",matches:"NE nQ{http://saxonica.com/ns/interactiveXSLT}set-style",flags:"s",line:"68",module:"ixsl.xsl",C:[{N:"p.nodeTest",role:"match",test:"NE nQ{http://saxonica.com/ns/interactiveXSLT}set-style"}, +{N:"sequence",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions ixsl=~ map=~ xs=~ xsl=~ xml=~",line:"69",C:[{N:"param",name:"Q{}attr",slot:"0",as:"*NA",C:[{N:"empty",role:"select"},{N:"treat",role:"conversion",as:"NA",diag:"8|0|XTTE0590|attr",C:[{N:"supplied",slot:"0"}]}]},{N:"elem",line:"70",name:"ifCall",nsuri:"http://ns.saxonica.com/xslt/export",flags:"d",namespaces:"map",C:[{N:"sequence",C:[{N:"att", +name:"name",flags:"l",C:[{N:"str",val:"Q{http://saxonica.com/ns/interactiveXSLT}set-style"}]},{N:"att",name:"sType",flags:"l",C:[{N:"str",val:"0"}]},{N:"varRef",line:"71",name:"Q{}attr",slot:"0"},{N:"callT",line:"72",name:"Q{}record-location",bSlot:"153"},{N:"forEach",line:"73",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}name"},{N:"callT",line:"74",name:"Q{}role-value-template",bSlot:"154"}]},{N:"elem",line:"76",name:"xpath",nsuri:"http://ns.saxonica.com/xslt/export",flags:"dl",namespaces:"map", +C:[{N:"sequence",C:[{N:"att",name:"xpath",flags:"l",C:[{N:"convert",from:"AZ",to:"AS",C:[{N:"attVal",name:"Q{}select",chk:"0"}]}]},{N:"att",name:"line",flags:"l",C:[{N:"convert",from:"ADI",to:"AS",C:[{N:"ufCall",name:"Q{MyFunctions}line-number",tailCall:"false",bSlot:"155",eval:"16",C:[{N:"dot",type:"1NE nQ{http://saxonica.com/ns/interactiveXSLT}set-style"}]}]}]}]}]},{N:"elem",line:"78",name:"xpath",nsuri:"http://ns.saxonica.com/xslt/export",flags:"dl",namespaces:"map",C:[{N:"sequence",C:[{N:"att", +name:"xpath",flags:"l",C:[{N:"fn",name:"string-join",C:[{N:"convert",from:"A",to:"AS",C:[{N:"data",C:[{N:"first",C:[{N:"sequence",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}object"},{N:"str",val:"."}]}]}]}]},{N:"str",val:" "}]}]},{N:"att",name:"line",flags:"l",C:[{N:"convert",from:"ADI",to:"AS",C:[{N:"ufCall",name:"Q{MyFunctions}line-number",tailCall:"false",bSlot:"156",eval:"16",C:[{N:"dot",type:"1NE nQ{http://saxonica.com/ns/interactiveXSLT}set-style"}]}]}]},{N:"att",name:"checkType",flags:"l", +C:[{N:"str",val:"1"}]},{N:"att",name:"diagnostic",flags:"l",C:[{N:"convert",from:"AZ",to:"AS",C:[{N:"data",C:[{N:"att",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~",module:"lib.xsl",line:"286",name:"diag",C:[{N:"gVarRef",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions ixsl=~ map=~ xs=~ xsl=~ xml=~", +name:"Q{http://saxon.sf.net/generated-variable}gg1182959658",bSlot:"157"}]}]}]}]}]}]}]}]}]}]},{N:"templateRule",prec:"0",prio:"0.0",seq:"154",rank:"1",minImp:"0",slots:"1",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}apply-imports",flags:"s",line:"189",module:"rules.xsl",C:[{N:"p.nodeTest",role:"match",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}apply-imports"},{N:"sequence",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~", +line:"190",C:[{N:"param",name:"Q{}attr",slot:"0",as:"*NA",C:[{N:"empty",role:"select"},{N:"treat",role:"conversion",as:"NA",diag:"8|0|XTTE0590|attr",C:[{N:"supplied",slot:"0"}]}]},{N:"elem",line:"191",name:"applyImports",nsuri:"http://ns.saxonica.com/xslt/export",flags:"d",C:[{N:"sequence",C:[{N:"att",name:"sType",flags:"l",C:[{N:"gVarRef",name:"Q{}SJ.ANY_SEQUENCE",bSlot:"158"}]},{N:"varRef",line:"192",name:"Q{}attr",slot:"0"},{N:"callT",line:"193",name:"Q{}record-location",bSlot:"159"},{N:"applyT", +line:"194",flags:"c",bSlot:"-1",C:[{N:"axis",role:"select",name:"child",nodeTest:"NE"}]}]}]}]}]},{N:"templateRule",prec:"0",prio:"0.0",seq:"268",rank:"1",minImp:"0",slots:"1",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}map",flags:"s",line:"14",module:"maps.xsl",C:[{N:"p.nodeTest",role:"match",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}map"},{N:"sequence",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~", +line:"15",C:[{N:"param",name:"Q{}attr",slot:"0",as:"*NA",C:[{N:"empty",role:"select"},{N:"treat",role:"conversion",as:"NA",diag:"8|0|XTTE0590|attr",C:[{N:"supplied",slot:"0"}]}]},{N:"elem",line:"16",name:"MAP",nsuri:"http://ns.saxonica.com/xslt/export",flags:"d",C:[{N:"sequence",line:"17",C:[{N:"varRef",name:"Q{}attr",slot:"0"},{N:"elem",line:"18",name:"sequence",nsuri:"http://ns.saxonica.com/xslt/export",flags:"dl",C:[{N:"applyT",line:"19",flags:"c",bSlot:"-1",C:[{N:"axis",role:"select",name:"child", +nodeTest:"NE"}]}]}]}]}]}]},{N:"templateRule",prec:"0",prio:"2.0",seq:"149",rank:"7",minImp:"0",slots:"6",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}template",flags:"s",line:"87",module:"rules.xsl",C:[{N:"p.withPredicate",role:"match",C:[{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}template"},{N:"axis",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~", +line:"87",name:"attribute",nodeTest:"NA nQ{}match"}]},{N:"sequence",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~",line:"88",C:[{N:"param",name:"Q{}location",slot:"0",flags:"t",C:[{N:"str",role:"select",val:""},{N:"supplied",role:"conversion",slot:"0"}]},{N:"param",line:"89",name:"Q{}xpath-default-namespace",slot:"1",flags:"t",as:"?NA",C:[{N:"empty",role:"select"}, +{N:"treat",role:"conversion",as:"NA",diag:"8|0|XTTE0590|xpath-default-namespace",C:[{N:"check",card:"?",diag:"8|0|XTTE0590|xpath-default-namespace",C:[{N:"supplied",slot:"1"}]}]}]},{N:"param",line:"90",name:"Q{}default-collation",slot:"2",flags:"t",as:"?NA",C:[{N:"empty",role:"select"},{N:"treat",role:"conversion",as:"NA",diag:"8|0|XTTE0590|default-collation",C:[{N:"check",card:"?",diag:"8|0|XTTE0590|default-collation",C:[{N:"supplied",slot:"2"}]}]}]},{N:"param",line:"91",name:"Q{}precedence-map", +slot:"3",flags:"tr",as:"1FM k[AS] v[1ADI]",C:[{N:"treat",role:"conversion",as:"FM k[AS] v[1ADI]",diag:"8|0|XTTE0590|precedence-map",C:[{N:"check",card:"1",diag:"8|0|XTTE0590|precedence-map",C:[{N:"supplied",slot:"3"}]}]}]},{N:"param",line:"92",name:"Q{}minimum-import-precedence-map",slot:"4",flags:"tr",as:"1FM k[AS] v[1ADI]",C:[{N:"treat",role:"conversion",as:"FM k[AS] v[1ADI]",diag:"8|0|XTTE0590|minimum-import-precedence-map",C:[{N:"check",card:"1",diag:"8|0|XTTE0590|minimum-import-precedence-map", +C:[{N:"supplied",slot:"4"}]}]}]},{N:"elem",line:"98",name:"templateRule",nsuri:"http://ns.saxonica.com/xslt/export",flags:"d",C:[{N:"sequence",C:[{N:"att",name:"prec",flags:"l",C:[{N:"convert",from:"ADI",to:"AS",C:[{N:"ifCall",name:"Q{http://www.w3.org/2005/xpath-functions/map}get",type:"*",C:[{N:"varRef",name:"Q{}precedence-map",slot:"3"},{N:"fn",name:"string",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{http://ns.saxonica.com/xslt/export}precLabel"}]}]}]}]},{N:"att",name:"seq",flags:"l",C:[{N:"convert", +from:"ADI",to:"AS",C:[{N:"arith",op:"-",calc:"i-i",C:[{N:"fn",name:"position"},{N:"int",val:"1"}]}]}]},{N:"att",name:"ns",flags:"l",C:[{N:"fn",name:"string-join",C:[{N:"convert",from:"A",to:"AS",C:[{N:"choose",C:[{N:"fn",name:"exists",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{http://ns.saxonica.com/xslt/export}ns"}]},{N:"data",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{http://ns.saxonica.com/xslt/export}ns"}]},{N:"true"},{N:"let",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~", +"var":"Q{}context",as:"1NE",slot:"5",eval:"16",C:[{N:"dot",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~",type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}template"},{N:"choose",module:"namespaces.xsl",line:"47",C:[{N:"fn",name:"exists",C:[{N:"slash",simple:"1",C:[{N:"varRef",name:"Q{}context",slot:"5"},{N:"axis",name:"attribute",nodeTest:"NA nQ{http://ns.saxonica.com/xslt/export}ns"}]}]}, +{N:"check",line:"48",card:"1",diag:"5|0|XTTE0780|f:encode-namespaces#1",C:[{N:"cvUntyped",to:"AS",diag:"5|0|XTTE0780|f:encode-namespaces#1",C:[{N:"data",diag:"5|0|XTTE0780|f:encode-namespaces#1",C:[{N:"slash",simple:"1",C:[{N:"varRef",name:"Q{}context",slot:"5"},{N:"axis",name:"attribute",nodeTest:"NA nQ{http://ns.saxonica.com/xslt/export}ns"}]}]}]}]},{N:"true"},{N:"fn",line:"58",name:"string-join",C:[{N:"forEach",C:[{N:"slash",simple:"1",C:[{N:"varRef",name:"Q{}context",slot:"5"},{N:"axis",name:"namespace", +nodeTest:"NN"}]},{N:"fn",name:"concat",C:[{N:"fn",name:"name",C:[{N:"dot",type:"1NN"}]},{N:"str",val:"="},{N:"choose",C:[{N:"vc",op:"eq",onEmpty:"0",comp:"CCC",C:[{N:"ifCall",name:"Q{http://www.w3.org/2005/xpath-functions/map}get",type:"*",C:[{N:"gVarRef",name:"Q{}known-namespaces",bSlot:"160"},{N:"fn",name:"name",C:[{N:"dot",type:"1NN"}]}]},{N:"data",diag:"1|1||eq",C:[{N:"dot",type:"1NN"}]}]},{N:"str",val:"~"},{N:"true"},{N:"data",diag:"0|2||fn:concat",C:[{N:"dot",type:"1NN"}]}]}]}]},{N:"str",val:" "}]}]}]}]}]}, +{N:"str",val:" "}]}]},{N:"att",name:"minImp",flags:"l",C:[{N:"convert",from:"ADI",to:"AS",C:[{N:"ifCall",name:"Q{http://www.w3.org/2005/xpath-functions/map}get",type:"*",C:[{N:"varRef",name:"Q{}minimum-import-precedence-map",slot:"4"},{N:"fn",name:"string",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{http://ns.saxonica.com/xslt/export}precLabel"}]}]}]}]},{N:"att",name:"flags",flags:"l",C:[{N:"choose",C:[{N:"vc",line:"93",op:"ne",onEmpty:"1",comp:"CCC",C:[{N:"atomSing",card:"?",diag:"1|0||eq",C:[{N:"slash", +simple:"2",C:[{N:"axis",name:"child",nodeTest:"NE nQ{http://www.w3.org/1999/XSL/Transform}context-item"},{N:"axis",name:"attribute",nodeTest:"NA nQ{}use"}]}]},{N:"str",val:"absent"}]},{N:"str",val:"s"}]}]},{N:"att",name:"baseUri",flags:"l",C:[{N:"convert",from:"AZ",to:"AS",C:[{N:"attVal",name:"Q{http://ns.saxonica.com/xslt/export}baseUri",chk:"0"}]}]},{N:"att",name:"slots",flags:"l",C:[{N:"str",val:"200"}]},{N:"callT",line:"99",name:"Q{}record-location",bSlot:"161"},{N:"axis",line:"100",name:"attribute", +nodeTest:"NA nQ{http://ns.saxonica.com/xslt/export}asJ"},{N:"varRef",line:"100",name:"Q{}xpath-default-namespace",slot:"1"},{N:"varRef",line:"100",name:"Q{}default-collation",slot:"2"},{N:"applyT",line:"101",flags:"c",bSlot:"-1",C:[{N:"axis",role:"select",name:"attribute",nodeTest:"NA d[NA,NA u[NA u[NA nQ{}name,NA nQ{http://ns.saxonica.com/xslt/export}*],NA nQ{http://www.w3.org/XML/1998/namespace}*]]"}]},{N:"applyT",line:"102",mode:"Q{}sef",bSlot:"162",C:[{N:"axis",role:"select",name:"child",nodeTest:"NE nQ{http://www.w3.org/1999/XSL/Transform}context-item"}]}, +{N:"applyT",line:"104",mode:"Q{}create.xpath",bSlot:"163",C:[{N:"axis",role:"select",name:"attribute",nodeTest:"NA nQ{}match"}]},{N:"nextMatch",line:"105",flags:"i"}]}]}]}]},{N:"templateRule",prec:"0",prio:"0.0",seq:"376",rank:"1",minImp:"0",slots:"0",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}template",flags:"s",line:"1602",module:"XSLT-SEF-compiler.xsl",C:[{N:"p.nodeTest",role:"match",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}template"},{N:"callT",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ saxon=~ t=MyTypes xs=~ xsl=~ xml=~", +line:"1603",name:"Q{}sequence-constructor",bSlot:"164",flags:"t",C:[{N:"withParam",name:"Q{}attr",flags:"c",as:"*NA",C:[{N:"treat",line:"1604",as:"NA",diag:"8|0|XTTE0590|attr",C:[{N:"lookup",C:[{N:"gVarRef",name:"Q{}roles",bSlot:"165"},{N:"str",val:"action"}]}]}]},{N:"withParam",name:"Q{}has-uniform-static-context",flags:"t",as:"1AB",C:[{N:"ufCall",line:"1606",name:"Q{MyFunctions}has-uniform-static-context",tailCall:"false",bSlot:"166",eval:"16",C:[{N:"dot",type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}template"}]}]}]}]}, +{N:"templateRule",prec:"0",prio:"0.5",seq:"222",rank:"2",minImp:"0",slots:"3",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}copy",flags:"s",as:"1NE",line:"393",module:"creating-new-nodes.xsl",C:[{N:"p.withPredicate",role:"match",C:[{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}copy"},{N:"axis",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~",line:"393", +name:"attribute",nodeTest:"NA nQ{}select"}]},{N:"check",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~",line:"394",card:"1",diag:'7|0|XTTE0505|match="xsl:copy[@select]" mode="sef"',C:[{N:"sequence",C:[{N:"param",name:"Q{}static-context",slot:"0",flags:"t",as:"1FM",C:[{N:"map",role:"select",size:"0"},{N:"treat",role:"conversion",as:"FM",diag:"8|0|XTTE0590|static-context", +C:[{N:"check",card:"1",diag:"8|0|XTTE0590|static-context",C:[{N:"supplied",slot:"0"}]}]}]},{N:"param",line:"395",name:"Q{}xsl-version",slot:"1",flags:"t",as:"1AD",C:[{N:"dec",role:"select",val:"3"},{N:"treat",role:"conversion",as:"AD",diag:"8|0|XTTE0590|xsl-version",C:[{N:"check",card:"1",diag:"8|0|XTTE0590|xsl-version",C:[{N:"cvUntyped",to:"AD",diag:"8|0|XTTE0590|xsl-version",C:[{N:"data",diag:"8|0|XTTE0590|xsl-version",C:[{N:"supplied",slot:"1"}]}]}]}]}]},{N:"param",line:"396",name:"Q{}attr",slot:"2", +as:"*NA",C:[{N:"empty",role:"select"},{N:"treat",role:"conversion",as:"NA",diag:"8|0|XTTE0590|attr",C:[{N:"supplied",slot:"2"}]}]},{N:"choose",line:"398",C:[{N:"vc",op:"eq",onEmpty:"0",comp:"CAVC",C:[{N:"varRef",name:"Q{}xsl-version",slot:"1"},{N:"dec",val:"3"}]},{N:"elem",line:"399",name:"forEach",nsuri:"http://ns.saxonica.com/xslt/export",flags:"d",C:[{N:"sequence",line:"400",C:[{N:"varRef",name:"Q{}attr",slot:"2"},{N:"applyT",line:"401",mode:"Q{}create.xpath",bSlot:"167",C:[{N:"axis",role:"select", +name:"attribute",nodeTest:"NA nQ{}select"},{N:"withParam",name:"Q{}checkType",as:"1AS",C:[{N:"str",val:"?"}]},{N:"withParam",name:"Q{}diagnostic",as:"1NA",C:[{N:"att",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~",module:"lib.xsl",line:"286",name:"diag",C:[{N:"gVarRef",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~", +name:"Q{http://saxon.sf.net/generated-variable}gg435070844",bSlot:"168"}]}]}]},{N:"elem",line:"405",name:"copy",nsuri:"http://ns.saxonica.com/xslt/export",flags:"dl",C:[{N:"sequence",C:[{N:"att",name:"flags",flags:"l",C:[{N:"fn",name:"concat",C:[{N:"choose",C:[{N:"vc",op:"eq",onEmpty:"0",comp:"CCC",C:[{N:"cast",flags:"ae",as:"?AS",C:[{N:"attVal",name:"Q{}copy-namespaces",chk:"0"}]},{N:"str",val:"false"}]},{N:"str",val:""},{N:"true"},{N:"str",val:"c"}]},{N:"str",val:"in"}]}]},{N:"callT",line:"407", +name:"Q{}record-location",bSlot:"169"},{N:"callT",line:"408",name:"Q{}sequence-constructor",bSlot:"170"}]}]}]}]},{N:"true"},{N:"elem",line:"413",name:"copy",nsuri:"http://ns.saxonica.com/xslt/export",flags:"d",C:[{N:"sequence",C:[{N:"att",name:"flags",flags:"l",C:[{N:"fn",name:"concat",C:[{N:"choose",C:[{N:"vc",op:"eq",onEmpty:"0",comp:"CCC",C:[{N:"cast",flags:"ae",as:"?AS",C:[{N:"attVal",name:"Q{}copy-namespaces",chk:"0"}]},{N:"str",val:"false"}]},{N:"str",val:""},{N:"true"},{N:"str",val:"c"}]}, +{N:"str",val:"in"}]}]},{N:"varRef",line:"414",name:"Q{}attr",slot:"2"},{N:"callT",line:"415",name:"Q{}record-location",bSlot:"171"},{N:"callT",line:"417",name:"Q{}sequence-constructor",bSlot:"172"}]}]}]}]}]}]},{N:"templateRule",prec:"0",prio:"0.0",seq:"223",rank:"1",minImp:"0",slots:"1",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}copy",flags:"s",as:"1NE",line:"422",module:"creating-new-nodes.xsl",C:[{N:"p.nodeTest",role:"match",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}copy"},{N:"sequence", +role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~",line:"423",C:[{N:"param",name:"Q{}attr",slot:"0",as:"*NA",C:[{N:"empty",role:"select"},{N:"treat",role:"conversion",as:"NA",diag:"8|0|XTTE0590|attr",C:[{N:"supplied",slot:"0"}]}]},{N:"elem",line:"424",name:"copy",nsuri:"http://ns.saxonica.com/xslt/export",flags:"d",C:[{N:"sequence",C:[{N:"att",name:"flags",flags:"l", +C:[{N:"fn",name:"concat",C:[{N:"choose",C:[{N:"vc",op:"eq",onEmpty:"0",comp:"CCC",C:[{N:"cast",flags:"ae",as:"?AS",C:[{N:"attVal",name:"Q{}copy-namespaces",chk:"0"}]},{N:"str",val:"false"}]},{N:"str",val:""},{N:"true"},{N:"str",val:"c"}]},{N:"choose",C:[{N:"vc",op:"eq",onEmpty:"0",comp:"CCC",C:[{N:"cast",flags:"ae",as:"?AS",C:[{N:"attVal",name:"Q{}inherit-namespaces",chk:"0"}]},{N:"str",val:"false"}]},{N:"str",val:""},{N:"true"},{N:"str",val:"i"}]},{N:"str",val:"n"}]}]},{N:"varRef",line:"425",name:"Q{}attr", +slot:"0"},{N:"callT",line:"426",name:"Q{}record-location",bSlot:"173"},{N:"elem",line:"427",name:"sequence",nsuri:"http://ns.saxonica.com/xslt/export",flags:"dl",C:[{N:"sequence",line:"428",C:[{N:"applyT",flags:"c",bSlot:"-1",C:[{N:"axis",role:"select",name:"attribute",nodeTest:"NA nQ{}use-attribute-sets"}]},{N:"applyT",line:"429",mode:"Q{}select.or.sequence",bSlot:"174",C:[{N:"dot",role:"select",type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}copy"}]}]}]}]}]}]}]},{N:"templateRule",prec:"0",prio:"0.0", +seq:"259",rank:"1",minImp:"0",slots:"0",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}non-matching-substring",flags:"s",line:"74",module:"regular-expressions.xsl",C:[{N:"p.nodeTest",role:"match",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}non-matching-substring"},{N:"elem",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~",line:"75",name:"sequence", +nsuri:"http://ns.saxonica.com/xslt/export",flags:"d",C:[{N:"sequence",C:[{N:"att",name:"role",flags:"l",C:[{N:"str",val:"nonMatching"}]},{N:"choose",line:"76",C:[{N:"fn",name:"empty",C:[{N:"axis",name:"child",nodeTest:"N u[NT,NP,NE,NC]"}]},{N:"elem",line:"77",name:"empty",nsuri:"http://ns.saxonica.com/xslt/export",flags:"dl",C:[{N:"empty"}]}]},{N:"applyT",line:"79",flags:"c",bSlot:"-1",C:[{N:"axis",role:"select",name:"child",nodeTest:"N"}]}]}]}]},{N:"templateRule",prec:"0",prio:"0.0",seq:"192",rank:"1", +minImp:"0",slots:"6",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}function",flags:"s",line:"98",module:"callable-components.xsl",C:[{N:"p.nodeTest",role:"match",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}function"},{N:"sequence",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ saxon=~ t=MyTypes xs=~ xsl=~ xml=~",line:"99",C:[{N:"param",name:"Q{}has-uniform-static-context", +slot:"0",flags:"ti",as:"1AB",C:[{N:"treat",role:"conversion",as:"AB",diag:"8|0|XTTE0590|has-uniform-static-context",C:[{N:"check",card:"1",diag:"8|0|XTTE0590|has-uniform-static-context",C:[{N:"cvUntyped",to:"AB",diag:"8|0|XTTE0590|has-uniform-static-context",C:[{N:"data",diag:"8|0|XTTE0590|has-uniform-static-context",C:[{N:"supplied",slot:"0"}]}]}]}]}]},{N:"let",line:"100","var":"Q{}params",as:"*NE",slot:"1",eval:"8",C:[{N:"treat",line:"101",as:"NE",diag:"3|0|XTTE0570|params",C:[{N:"applyT",flags:"c", +bSlot:"-1",C:[{N:"axis",role:"select",name:"child",nodeTest:"NE nQ{http://www.w3.org/1999/XSL/Transform}param"}]}]},{N:"elem",line:"104",name:"co",nsuri:"http://ns.saxonica.com/xslt/export",flags:"d",C:[{N:"sequence",C:[{N:"att",name:"vis",flags:"l",C:[{N:"fn",name:"upper-case",C:[{N:"treat",as:"AS",diag:"0|0||fn:upper-case",C:[{N:"check",card:"?",diag:"0|0||fn:upper-case",C:[{N:"cvUntyped",to:"AS",C:[{N:"data",diag:"0|0||fn:upper-case",C:[{N:"first",C:[{N:"sequence",C:[{N:"axis",name:"attribute", +nodeTest:"NA nQ{}visibility"},{N:"str",val:"private"}]}]}]}]}]}]}]}]},{N:"att",name:"ex:uniform",nsuri:"http://ns.saxonica.com/xslt/export",flags:"l",C:[{N:"convert",from:"AB",to:"AS",C:[{N:"varRef",name:"Q{}has-uniform-static-context",slot:"0"}]}]},{N:"elem",line:"106",name:"function",nsuri:"http://ns.saxonica.com/xslt/export",flags:"dl",C:[{N:"sequence",C:[{N:"att",name:"name",flags:"l",C:[{N:"ufCall",name:"Q{MyFunctions}EQName",tailCall:"false",bSlot:"175",eval:"16 16",C:[{N:"check",card:"1",diag:"0|0||f:EQName", +C:[{N:"cvUntyped",to:"AS",C:[{N:"attVal",name:"Q{}name",chk:"0"}]}]},{N:"dot",type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}function"}]}]},{N:"att",name:"as",flags:"l",C:[{N:"fn",name:"string-join",C:[{N:"convert",from:"A",to:"AS",C:[{N:"data",C:[{N:"first",C:[{N:"sequence",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}as"},{N:"str",val:"item()*"}]}]}]}]},{N:"str",val:" "}]}]},{N:"att",name:"slots",flags:"l",C:[{N:"convert",from:"ADI",to:"AS",C:[{N:"arith",op:"+",calc:"i+i",C:[{N:"fn",name:"count", +C:[{N:"varRef",name:"Q{}params",slot:"1"}]},{N:"int",val:"200"}]}]}]},{N:"att",name:"baseUri",flags:"l",C:[{N:"convert",from:"AZ",to:"AS",C:[{N:"attVal",name:"Q{http://ns.saxonica.com/xslt/export}baseUri",chk:"0"}]}]},{N:"att",name:"ns",flags:"l",C:[{N:"let",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~","var":"Q{}context",as:"1NE",slot:"2",eval:"16",C:[{N:"dot",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ saxon=~ t=MyTypes xs=~ xsl=~ xml=~", +type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}function"},{N:"choose",module:"namespaces.xsl",line:"47",C:[{N:"fn",name:"exists",C:[{N:"slash",simple:"1",C:[{N:"varRef",name:"Q{}context",slot:"2"},{N:"axis",name:"attribute",nodeTest:"NA nQ{http://ns.saxonica.com/xslt/export}ns"}]}]},{N:"check",line:"48",card:"1",diag:"5|0|XTTE0780|f:encode-namespaces#1",C:[{N:"cvUntyped",to:"AS",diag:"5|0|XTTE0780|f:encode-namespaces#1",C:[{N:"data",diag:"5|0|XTTE0780|f:encode-namespaces#1",C:[{N:"slash",simple:"1", +C:[{N:"varRef",name:"Q{}context",slot:"2"},{N:"axis",name:"attribute",nodeTest:"NA nQ{http://ns.saxonica.com/xslt/export}ns"}]}]}]}]},{N:"true"},{N:"fn",line:"58",name:"string-join",C:[{N:"forEach",C:[{N:"slash",simple:"1",C:[{N:"varRef",name:"Q{}context",slot:"2"},{N:"axis",name:"namespace",nodeTest:"NN"}]},{N:"fn",name:"concat",C:[{N:"fn",name:"name",C:[{N:"dot",type:"1NN"}]},{N:"str",val:"="},{N:"choose",C:[{N:"vc",op:"eq",onEmpty:"0",comp:"CCC",C:[{N:"ifCall",name:"Q{http://www.w3.org/2005/xpath-functions/map}get", +type:"*",C:[{N:"gVarRef",name:"Q{}known-namespaces",bSlot:"176"},{N:"fn",name:"name",C:[{N:"dot",type:"1NN"}]}]},{N:"data",diag:"1|1||eq",C:[{N:"dot",type:"1NN"}]}]},{N:"str",val:"~"},{N:"true"},{N:"data",diag:"0|2||fn:concat",C:[{N:"dot",type:"1NN"}]}]}]}]},{N:"str",val:" "}]}]}]}]},{N:"att",name:"module",flags:"l",C:[{N:"lastOf",C:[{N:"fn",name:"tokenize",C:[{N:"cvUntyped",to:"AS",C:[{N:"attVal",name:"Q{http://ns.saxonica.com/xslt/export}baseUri",chk:"0"}]},{N:"str",val:"/"},{N:"str",val:""}]}]}]}, +{N:"choose",line:"107",C:[{N:"ufCall",name:"Q{MyFunctions}boolean-string",tailCall:"false",bSlot:"177",eval:"8 0",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}cache"},{N:"true"}]},{N:"att",line:"108",name:"flags",flags:"l",C:[{N:"str",val:"m"}]}]},{N:"let",line:"115","var":"Q{}returnType",as:"1FM",slot:"3",eval:"16",C:[{N:"choose",C:[{N:"fn",name:"exists",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{http://ns.saxonica.com/xslt/export}asJ"}]},{N:"ufCall",name:"Q{MyTypes}marshalType",tailCall:"false", +bSlot:"178",eval:"16",C:[{N:"check",card:"1",diag:"0|0||t:marshalType",C:[{N:"cvUntyped",to:"AS",C:[{N:"attVal",name:"Q{http://ns.saxonica.com/xslt/export}asJ",chk:"0"}]}]}]},{N:"true"},{N:"gVarRef",name:"Q{}ST.ANY_SEQUENCE",bSlot:"179"}]},{N:"let",line:"119","var":"Q{}signature",as:"1FM k[AS] v[1]",slot:"4",eval:"8",C:[{N:"ifCall",line:"121",name:"Q{http://www.w3.org/2005/xpath-functions/map}merge",type:"1FM",C:[{N:"sequence",C:[{N:"literal",count:"2",C:[{N:"map",size:"1",C:[{N:"str",val:"o"},{N:"str", +val:"1"}]},{N:"map",size:"1",C:[{N:"str",val:"p"},{N:"str",val:"F"}]}]},{N:"ifCall",line:"123",name:"Q{http://www.w3.org/2005/xpath-functions/map}entry",type:"1FM",C:[{N:"str",val:"r"},{N:"varRef",name:"Q{}returnType",slot:"3"}]},{N:"ifCall",line:"124",name:"Q{http://www.w3.org/2005/xpath-functions/map}entry",type:"1FM",C:[{N:"str",val:"a"},{N:"ifCall",name:"Q{http://www.w3.org/2005/xpath-functions/array}_from-sequence",type:"1FA",C:[{N:"for","var":"Q{}p",as:"NE",slot:"5",C:[{N:"varRef",role:"in", +name:"Q{}params",slot:"1"},{N:"ufCall",role:"return",name:"Q{MyTypes}marshalType",tailCall:"false",bSlot:"180",eval:"16",C:[{N:"check",card:"1",diag:"0|0||t:marshalType",C:[{N:"cvUntyped",to:"AS",C:[{N:"data",diag:"0|0||t:marshalType",C:[{N:"slash",simple:"1",C:[{N:"varRef",name:"Q{}p",slot:"5"},{N:"axis",name:"attribute",nodeTest:"NA nQ{}sType"}]}]}]}]}]}]}]}]}]},{N:"map",size:"2",C:[{N:"str",val:"duplicates"},{N:"str",val:"reject"},{N:"str",val:"duplicates-error-code"},{N:"str",val:"XTDE3365"}]}]}, +{N:"sequence",line:"129",C:[{N:"att",name:"as",flags:"l",C:[{N:"ufCall",name:"Q{MyTypes}unmarshalType",tailCall:"false",bSlot:"181",eval:"6",C:[{N:"varRef",name:"Q{}returnType",slot:"3"}]}]},{N:"att",line:"130",name:"sig",flags:"l",C:[{N:"ufCall",name:"Q{MyTypes}unmarshalType",tailCall:"false",bSlot:"182",eval:"6",C:[{N:"varRef",name:"Q{}signature",slot:"4"}]}]},{N:"att",line:"131",name:"sType",flags:"l",C:[{N:"ufCall",name:"Q{MyTypes}unmarshalType",tailCall:"false",bSlot:"183",eval:"6",C:[{N:"varRef", +name:"Q{}signature",slot:"4"}]}]},{N:"callT",line:"133",name:"Q{}record-location",bSlot:"184"},{N:"varRef",line:"134",name:"Q{}params",slot:"1"},{N:"callT",line:"135",name:"Q{}sequence-constructor",bSlot:"185",C:[{N:"withParam",name:"Q{}include-params",flags:"c",as:"1AB",C:[{N:"false"}]},{N:"withParam",name:"Q{}attr",flags:"c",as:"*NA",C:[{N:"treat",line:"137",as:"NA",diag:"8|0|XTTE0590|attr",C:[{N:"lookup",C:[{N:"gVarRef",name:"Q{}roles",bSlot:"186"},{N:"str",val:"body"}]}]}]}]}]}]}]}]}]}]}]}]}]}]}, +{N:"templateRule",prec:"0",prio:"0.5",seq:"216",rank:"2",minImp:"0",slots:"2",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}processing-instruction",flags:"s",as:"1NE",line:"224",module:"creating-new-nodes.xsl",C:[{N:"p.withPredicate",role:"match",C:[{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}processing-instruction"},{N:"fn",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~", +line:"224",name:"matches",C:[{N:"cvUntyped",to:"AS",C:[{N:"attVal",name:"Q{}name",chk:"0"}]},{N:"str",val:"\\{"},{N:"str",val:""}]}]},{N:"sequence",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~",line:"225",C:[{N:"param",name:"Q{}attr",slot:"0",as:"*NA",C:[{N:"empty",role:"select"},{N:"treat",role:"conversion",as:"NA",diag:"8|0|XTTE0590|attr",C:[{N:"supplied",slot:"0"}]}]}, +{N:"elem",line:"226",name:"procInst",nsuri:"http://ns.saxonica.com/xslt/export",flags:"d",C:[{N:"sequence",C:[{N:"att",name:"sType",flags:"l",C:[{N:"gVarRef",name:"Q{}SJ.SINGLE_PROCESSING_INSTRUCTION",bSlot:"187"}]},{N:"varRef",line:"227",name:"Q{}attr",slot:"0"},{N:"let",line:"228","var":"Q{}nameAVT",as:"1NE",slot:"1",eval:"16",C:[{N:"check",line:"229",card:"1",diag:"3|0|XTTE0570|nameAVT",C:[{N:"forEach",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}name"},{N:"callT",line:"230",name:"Q{}value-template", +bSlot:"188"}]}]},{N:"sequence",line:"233",C:[{N:"forEach",C:[{N:"varRef",name:"Q{}nameAVT",slot:"1"},{N:"copy",line:"235",flags:"cinl",sit:"1NE",C:[{N:"sequence",role:"content",C:[{N:"lookup",C:[{N:"gVarRef",name:"Q{}roles",bSlot:"189"},{N:"str",val:"name"}]},{N:"axis",name:"attribute",nodeTest:"NA"},{N:"axis",name:"child",nodeTest:"NE"}]}]}]},{N:"callT",line:"238",name:"Q{}constructSimpleContent",bSlot:"190"}]}]}]}]}]}]},{N:"templateRule",prec:"0",prio:"0.0",seq:"215",rank:"1",minImp:"0",slots:"1", +matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}processing-instruction",flags:"s",as:"1NE",line:"215",module:"creating-new-nodes.xsl",C:[{N:"p.nodeTest",role:"match",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}processing-instruction"},{N:"sequence",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~",line:"216",C:[{N:"param",name:"Q{}attr",slot:"0",as:"*NA", +C:[{N:"empty",role:"select"},{N:"treat",role:"conversion",as:"NA",diag:"8|0|XTTE0590|attr",C:[{N:"supplied",slot:"0"}]}]},{N:"elem",line:"217",name:"procInst",nsuri:"http://ns.saxonica.com/xslt/export",flags:"d",C:[{N:"sequence",C:[{N:"att",name:"sType",flags:"l",C:[{N:"gVarRef",name:"Q{}SJ.SINGLE_PROCESSING_INSTRUCTION",bSlot:"191"}]},{N:"varRef",line:"218",name:"Q{}attr",slot:"0"},{N:"elem",line:"219",name:"str",nsuri:"http://ns.saxonica.com/xslt/export",flags:"dl",C:[{N:"att",name:"val",flags:"l", +C:[{N:"convert",from:"AZ",to:"AS",C:[{N:"attVal",name:"Q{}name",chk:"0"}]}]}]},{N:"callT",line:"220",name:"Q{}constructSimpleContent",bSlot:"192"}]}]}]}]},{N:"templateRule",prec:"0",prio:"0.0",seq:"161",rank:"1",minImp:"0",slots:"1",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}break",flags:"s",line:"152",module:"repetition.xsl",C:[{N:"p.nodeTest",role:"match",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}break"},{N:"sequence",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~", +line:"153",C:[{N:"param",name:"Q{}attr",slot:"0",as:"*NA",C:[{N:"empty",role:"select"},{N:"treat",role:"conversion",as:"NA",diag:"8|0|XTTE0590|attr",C:[{N:"supplied",slot:"0"}]}]},{N:"ufCall",line:"154",name:"Q{MyFunctions}check-iterate",tailCall:"false",bSlot:"193",eval:"8",C:[{N:"dot",type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}break"}]},{N:"ufCall",line:"154",name:"Q{MyFunctions}check-tail-position",tailCall:"false",bSlot:"194",eval:"16",C:[{N:"dot",type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}break"}]}, +{N:"elem",line:"155",name:"sequence",nsuri:"http://ns.saxonica.com/xslt/export",flags:"d",C:[{N:"sequence",line:"156",C:[{N:"varRef",name:"Q{}attr",slot:"0"},{N:"callT",line:"157",name:"Q{}record-location",bSlot:"195"},{N:"applyT",line:"158",mode:"Q{}select.or.sequence",bSlot:"196",C:[{N:"dot",role:"select",type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}break"}]},{N:"elem",line:"159",name:"break",nsuri:"http://ns.saxonica.com/xslt/export",flags:"dl",C:[{N:"empty"}]}]}]}]}]},{N:"templateRule",prec:"0", +prio:"0.0",seq:"250",rank:"1",minImp:"0",slots:"0",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}merge-key",flags:"s",line:"46",module:"merging.xsl",C:[{N:"p.nodeTest",role:"match",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}merge-key"},{N:"callT",role:"action",ns:"=http://ns.saxonica.com/xslt/export array=~ doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~",line:"47",name:"Q{}make-sort-key",bSlot:"197", +flags:"t"}]},{N:"templateRule",prec:"0",prio:"0.0",seq:"220",rank:"1",minImp:"0",slots:"1",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}value-of",flags:"s",as:"1NE",line:"279",module:"creating-new-nodes.xsl",C:[{N:"p.nodeTest",role:"match",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}value-of"},{N:"sequence",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~", +line:"280",C:[{N:"param",name:"Q{}attr",slot:"0",as:"*NA",C:[{N:"empty",role:"select"},{N:"treat",role:"conversion",as:"NA",diag:"8|0|XTTE0590|attr",C:[{N:"supplied",slot:"0"}]}]},{N:"elem",line:"282",name:"valueOf",nsuri:"http://ns.saxonica.com/xslt/export",flags:"d",C:[{N:"sequence",C:[{N:"att",name:"flags",flags:"l",C:[{N:"str",val:"l"}]},{N:"att",name:"sType",flags:"l",C:[{N:"gVarRef",name:"Q{}SJ.SINGLE_TEXT",bSlot:"198"}]},{N:"choose",line:"283",C:[{N:"vc",op:"eq",onEmpty:"0",comp:"CCC",C:[{N:"cast", +flags:"ae",as:"?AS",C:[{N:"attVal",name:"Q{}disable-output-escaping",chk:"0"}]},{N:"str",val:"true"}]},{N:"att",line:"284",name:"flags",flags:"l",C:[{N:"str",val:"d"}]}]},{N:"varRef",line:"286",name:"Q{}attr",slot:"0"},{N:"callT",line:"287",name:"Q{}record-location",bSlot:"199"},{N:"applyT",line:"288",mode:"Q{}attribute-sans-prefix",bSlot:"200",C:[{N:"sequence",role:"select",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{http://ns.saxonica.com/xslt/export}baseUri"},{N:"axis",name:"attribute",nodeTest:"NA nQ{http://ns.saxonica.com/xslt/export}ns"}, +{N:"axis",name:"attribute",nodeTest:"NA nQ{http://ns.saxonica.com/xslt/export}defaultElementNS"}]}]},{N:"callT",line:"289",name:"Q{}constructSimpleContent",bSlot:"201"}]}]}]}]},{N:"templateRule",prec:"0",prio:"0.0",seq:"208",rank:"1",minImp:"0",slots:"1",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}document",flags:"s",line:"17",module:"creating-new-nodes.xsl",C:[{N:"p.nodeTest",role:"match",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}document"},{N:"sequence",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~", +line:"18",C:[{N:"param",name:"Q{}attr",slot:"0",as:"*NA",C:[{N:"empty",role:"select"},{N:"treat",role:"conversion",as:"NA",diag:"8|0|XTTE0590|attr",C:[{N:"supplied",slot:"0"}]}]},{N:"elem",line:"19",name:"doc",nsuri:"http://ns.saxonica.com/xslt/export",flags:"d",C:[{N:"sequence",C:[{N:"att",name:"type",flags:"l",C:[{N:"str",val:"document-node()"}]},{N:"att",name:"sType",flags:"l",C:[{N:"gVarRef",name:"Q{}SJ.SINGLE_DOCUMENT",bSlot:"202"}]},{N:"varRef",line:"20",name:"Q{}attr",slot:"0"},{N:"callT", +line:"21",name:"Q{}record-location",bSlot:"203"},{N:"choose",line:"22",C:[{N:"fn",name:"empty",C:[{N:"axis",name:"child",nodeTest:"N u[NT,NP,NE,NC]"}]},{N:"elem",line:"23",name:"empty",nsuri:"http://ns.saxonica.com/xslt/export",flags:"dl",C:[{N:"empty"}]}]},{N:"callT",line:"25",name:"Q{}sequence-constructor",bSlot:"204"}]}]}]}]},{N:"templateRule",prec:"0",prio:"0.0",seq:"173",rank:"1",minImp:"0",slots:"1",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}on-non-empty",flags:"s",line:"153",module:"conditionals.xsl", +C:[{N:"p.nodeTest",role:"match",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}on-non-empty"},{N:"sequence",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~",line:"154",C:[{N:"param",name:"Q{}attr",slot:"0",as:"*NA",C:[{N:"empty",role:"select"},{N:"treat",role:"conversion",as:"NA",diag:"8|0|XTTE0590|attr",C:[{N:"supplied",slot:"0"}]}]},{N:"elem",line:"155", +name:"onNonEmpty",nsuri:"http://ns.saxonica.com/xslt/export",flags:"d",C:[{N:"sequence",line:"156",C:[{N:"varRef",name:"Q{}attr",slot:"0"},{N:"applyT",line:"157",mode:"Q{}select.or.sequence",bSlot:"205",C:[{N:"dot",role:"select",type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}on-non-empty"}]}]}]}]}]},{N:"templateRule",prec:"0",prio:"0.0",seq:"365",rank:"1",minImp:"0",slots:"1",matches:"NE nQ{http://saxonica.com/ns/interactiveXSLT}set-attribute",flags:"s",line:"27",module:"ixsl.xsl",C:[{N:"p.nodeTest", +role:"match",test:"NE nQ{http://saxonica.com/ns/interactiveXSLT}set-attribute"},{N:"sequence",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions ixsl=~ map=~ xs=~ xsl=~ xml=~",line:"28",C:[{N:"param",name:"Q{}attr",slot:"0",as:"*NA",C:[{N:"empty",role:"select"},{N:"treat",role:"conversion",as:"NA",diag:"8|0|XTTE0590|attr",C:[{N:"supplied",slot:"0"}]}]},{N:"elem",line:"29",name:"ifCall",nsuri:"http://ns.saxonica.com/xslt/export", +flags:"d",namespaces:"map",C:[{N:"sequence",C:[{N:"att",name:"name",flags:"l",C:[{N:"str",val:"Q{http://saxonica.com/ns/interactiveXSLT}set-attribute"}]},{N:"att",name:"sType",flags:"l",C:[{N:"str",val:"0"}]},{N:"varRef",line:"30",name:"Q{}attr",slot:"0"},{N:"callT",line:"31",name:"Q{}record-location",bSlot:"206"},{N:"forEach",line:"32",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}name"},{N:"callT",line:"33",name:"Q{}role-value-template",bSlot:"207"}]},{N:"elem",line:"35",name:"xpath",nsuri:"http://ns.saxonica.com/xslt/export", +flags:"dl",namespaces:"map",C:[{N:"sequence",C:[{N:"att",name:"xpath",flags:"l",C:[{N:"convert",from:"AZ",to:"AS",C:[{N:"attVal",name:"Q{}select",chk:"0"}]}]},{N:"att",name:"line",flags:"l",C:[{N:"convert",from:"ADI",to:"AS",C:[{N:"ufCall",name:"Q{MyFunctions}line-number",tailCall:"false",bSlot:"208",eval:"16",C:[{N:"dot",type:"1NE nQ{http://saxonica.com/ns/interactiveXSLT}set-attribute"}]}]}]}]}]},{N:"elem",line:"37",name:"xpath",nsuri:"http://ns.saxonica.com/xslt/export",flags:"dl",namespaces:"map", +C:[{N:"sequence",C:[{N:"att",name:"xpath",flags:"l",C:[{N:"fn",name:"string-join",C:[{N:"convert",from:"A",to:"AS",C:[{N:"data",C:[{N:"first",C:[{N:"sequence",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}object"},{N:"str",val:"."}]}]}]}]},{N:"str",val:" "}]}]},{N:"att",name:"line",flags:"l",C:[{N:"convert",from:"ADI",to:"AS",C:[{N:"ufCall",name:"Q{MyFunctions}line-number",tailCall:"false",bSlot:"209",eval:"16",C:[{N:"dot",type:"1NE nQ{http://saxonica.com/ns/interactiveXSLT}set-attribute"}]}]}]}, +{N:"att",name:"checkType",flags:"l",C:[{N:"str",val:"1"}]},{N:"att",name:"diagnostic",flags:"l",C:[{N:"convert",from:"AZ",to:"AS",C:[{N:"data",C:[{N:"att",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~",module:"lib.xsl",line:"286",name:"diag",C:[{N:"gVarRef",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions ixsl=~ map=~ xs=~ xsl=~ xml=~", +name:"Q{http://saxon.sf.net/generated-variable}gg1248786194",bSlot:"210"}]}]}]}]}]}]}]}]}]}]},{N:"templateRule",prec:"0",prio:"0.0",seq:"262",rank:"1",minImp:"0",slots:"0",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}accumulator",flags:"s",line:"31",module:"streaming.xsl",C:[{N:"p.nodeTest",role:"match",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}accumulator"},{N:"elem",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~", +line:"32",name:"accumulator",nsuri:"http://ns.saxonica.com/xslt/export",flags:"d",C:[{N:"sequence",C:[{N:"att",name:"binds",flags:"l",C:[{N:"str",val:""}]},{N:"att",name:"slots",flags:"l",C:[{N:"str",val:"5"}]},{N:"axis",line:"33",name:"attribute",nodeTest:"NA nQ{}name"},{N:"axis",line:"33",name:"attribute",nodeTest:"NA nQ{}as"},{N:"axis",line:"33",name:"attribute",nodeTest:"NA nQ{http://ns.saxonica.com/xslt/export}asJ"},{N:"applyT",line:"34",flags:"c",bSlot:"-1",C:[{N:"axis",role:"select",name:"attribute", +nodeTest:"NA d[NA nQ{http://ns.saxonica.com/xslt/export}*,NA nQ{http://ns.saxonica.com/xslt/export}asJ]"}]},{N:"applyT",line:"35",mode:"Q{}create.xpath",bSlot:"211",C:[{N:"axis",role:"select",name:"attribute",nodeTest:"NA nQ{}initial-value"}]},{N:"elem",line:"36",name:"pre",nsuri:"http://ns.saxonica.com/xslt/export",flags:"dl",C:[{N:"sequence",C:[{N:"att",name:"slots",flags:"l",C:[{N:"str",val:"0"}]},{N:"applyT",line:"37",flags:"c",bSlot:"-1",C:[{N:"filter",role:"select",flags:"b",C:[{N:"axis",name:"child", +nodeTest:"NE nQ{http://www.w3.org/1999/XSL/Transform}accumulator-rule"},{N:"or",op:"or",C:[{N:"fn",name:"empty",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}phase"}]},{N:"vc",op:"eq",onEmpty:"0",comp:"CCC",C:[{N:"cast",flags:"ae",as:"?AS",C:[{N:"attVal",name:"Q{}phase",chk:"0"}]},{N:"str",val:"start"}]}]}]}]}]}]},{N:"elem",line:"39",name:"post",nsuri:"http://ns.saxonica.com/xslt/export",flags:"dl",C:[{N:"sequence",C:[{N:"att",name:"slots",flags:"l",C:[{N:"str",val:"0"}]},{N:"applyT",line:"40",flags:"c", +bSlot:"-1",C:[{N:"filter",role:"select",flags:"b",C:[{N:"axis",name:"child",nodeTest:"NE nQ{http://www.w3.org/1999/XSL/Transform}accumulator-rule"},{N:"vc",op:"eq",onEmpty:"0",comp:"CCC",C:[{N:"cast",flags:"ae",as:"?AS",C:[{N:"attVal",name:"Q{}phase",chk:"0"}]},{N:"str",val:"end"}]}]}]}]}]}]}]}]},{N:"templateRule",prec:"0",prio:"0.0",seq:"165",rank:"1",minImp:"0",slots:"1",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}choose",flags:"s",line:"16",module:"conditionals.xsl",C:[{N:"p.nodeTest", +role:"match",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}choose"},{N:"sequence",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~",line:"17",C:[{N:"param",name:"Q{}attr",slot:"0",as:"*NA",C:[{N:"empty",role:"select"},{N:"treat",role:"conversion",as:"NA",diag:"8|0|XTTE0590|attr",C:[{N:"supplied",slot:"0"}]}]},{N:"elem",line:"18",name:"choose",nsuri:"http://ns.saxonica.com/xslt/export", +flags:"d",C:[{N:"sequence",C:[{N:"att",name:"type",flags:"l",C:[{N:"str",val:"item()*"}]},{N:"varRef",line:"19",name:"Q{}attr",slot:"0"},{N:"callT",line:"20",name:"Q{}record-location",bSlot:"212"},{N:"applyT",line:"21",flags:"c",bSlot:"-1",C:[{N:"axis",role:"select",name:"child",nodeTest:"NE"}]},{N:"choose",line:"22",C:[{N:"fn",name:"empty",C:[{N:"axis",name:"child",nodeTest:"NE nQ{http://www.w3.org/1999/XSL/Transform}otherwise"}]},{N:"sequence",line:"23",C:[{N:"elem",name:"true",nsuri:"http://ns.saxonica.com/xslt/export", +flags:"dl",C:[{N:"empty"}]},{N:"elem",line:"24",name:"empty",nsuri:"http://ns.saxonica.com/xslt/export",flags:"dl",C:[{N:"empty"}]}]}]}]}]}]}]},{N:"templateRule",prec:"0",prio:"0.0",seq:"157",rank:"1",minImp:"0",slots:"2",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}for-each",flags:"s",line:"35",module:"repetition.xsl",C:[{N:"p.nodeTest",role:"match",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}for-each"},{N:"sequence",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~", +line:"36",C:[{N:"param",name:"Q{}attr",slot:"0",as:"*NA",C:[{N:"empty",role:"select"},{N:"treat",role:"conversion",as:"NA",diag:"8|0|XTTE0590|attr",C:[{N:"supplied",slot:"0"}]}]},{N:"callT",line:"37",name:"Q{}check-select",bSlot:"213"},{N:"ufCall",line:"38",name:"Q{MyFunctions}check-sort",tailCall:"false",bSlot:"214",eval:"16",C:[{N:"dot",type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}for-each"}]},{N:"let",line:"39","var":"Q{}source",as:"*NE",slot:"1",eval:"4",C:[{N:"treat",line:"40",as:"NE",diag:"3|0|XTTE0570|source", +C:[{N:"applyT",mode:"Q{}create.xpath",bSlot:"215",C:[{N:"axis",role:"select",name:"attribute",nodeTest:"NA nQ{}select"}]}]},{N:"elem",line:"42",name:"forEach",nsuri:"http://ns.saxonica.com/xslt/export",flags:"d",C:[{N:"sequence",line:"43",C:[{N:"callT",name:"Q{}record-location",bSlot:"216"},{N:"applyT",line:"44",flags:"c",bSlot:"-1",C:[{N:"axis",role:"select",name:"attribute",nodeTest:"NA nQ{http://ns.saxonica.com/xslt/export}*"}]},{N:"varRef",line:"45",name:"Q{}attr",slot:"0"},{N:"choose",line:"47", +C:[{N:"fn",name:"exists",C:[{N:"axis",name:"child",nodeTest:"NE nQ{http://www.w3.org/1999/XSL/Transform}sort"}]},{N:"elem",line:"48",name:"sort",nsuri:"http://ns.saxonica.com/xslt/export",flags:"dl",C:[{N:"sequence",line:"49",C:[{N:"varRef",name:"Q{}source",slot:"1"},{N:"forEach",line:"50",C:[{N:"axis",name:"child",nodeTest:"NE nQ{http://www.w3.org/1999/XSL/Transform}sort"},{N:"callT",line:"51",name:"Q{}make-sort-key",bSlot:"217"}]}]}]},{N:"true"},{N:"varRef",line:"56",name:"Q{}source",slot:"1"}]}, +{N:"callT",line:"59",name:"Q{}sequence-constructor",bSlot:"218"}]}]}]}]}]},{N:"templateRule",prec:"0",prio:"0.5",seq:"380",rank:"2",minImp:"0",slots:"4",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}param",flags:"s",line:"1631",module:"XSLT-SEF-compiler.xsl",C:[{N:"p.withPredicate",role:"match",C:[{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}param"},{N:"filter",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ saxon=~ t=MyTypes xs=~ xsl=~ xml=~", +line:"1631",flags:"b",C:[{N:"axis",name:"parent",nodeTest:"N u[NE,ND]"},{N:"fn",name:"exists",C:[{N:"axis",name:"self",nodeTest:"NE u[NE u[NE nQ{http://www.w3.org/1999/XSL/Transform}stylesheet,NE nQ{http://www.w3.org/1999/XSL/Transform}transform],NE nQ{http://www.w3.org/1999/XSL/Transform}package]"}]}]}]},{N:"let",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ saxon=~ t=MyTypes xs=~ xsl=~ xml=~", +line:"1633","var":"Q{}has-uniform-static-context",as:"1AB",slot:"2",eval:"16",C:[{N:"ufCall",name:"Q{MyFunctions}has-uniform-static-context",tailCall:"false",bSlot:"219",eval:"16",C:[{N:"dot",type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}param"}]},{N:"elem",line:"1634",name:"co",nsuri:"http://ns.saxonica.com/xslt/export",flags:"d",C:[{N:"sequence",C:[{N:"att",name:"vis",flags:"l",C:[{N:"str",val:"PUBLIC"}]},{N:"att",name:"ex:uniform",nsuri:"http://ns.saxonica.com/xslt/export",flags:"l",C:[{N:"convert", +from:"AB",to:"AS",C:[{N:"varRef",name:"Q{}has-uniform-static-context",slot:"2"}]}]},{N:"elem",line:"1636",name:"globalParam",nsuri:"http://ns.saxonica.com/xslt/export",flags:"dl",C:[{N:"sequence",C:[{N:"att",name:"name",flags:"l",C:[{N:"convert",from:"AZ",to:"AS",C:[{N:"attVal",name:"Q{}name",chk:"0"}]}]},{N:"att",name:"sType",flags:"l",C:[{N:"fn",name:"string-join",C:[{N:"convert",from:"A",to:"AS",C:[{N:"data",C:[{N:"first",C:[{N:"sequence",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{http://ns.saxonica.com/xslt/export}asJ"}, +{N:"gVarRef",name:"Q{}SJ.ANY_SEQUENCE",bSlot:"220"}]}]}]}]},{N:"str",val:" "}]}]},{N:"att",name:"baseUri",flags:"l",C:[{N:"convert",from:"AZ",to:"AS",C:[{N:"attVal",name:"Q{http://ns.saxonica.com/xslt/export}baseUri",chk:"0"}]}]},{N:"att",name:"slots",flags:"l",C:[{N:"str",val:"200"}]},{N:"att",name:"module",flags:"l",C:[{N:"lastOf",C:[{N:"fn",name:"tokenize",C:[{N:"cvUntyped",to:"AS",C:[{N:"attVal",name:"Q{http://ns.saxonica.com/xslt/export}baseUri",chk:"0"}]},{N:"str",val:"/"},{N:"str",val:""}]}]}]}, +{N:"choose",line:"1637",C:[{N:"vc",op:"eq",onEmpty:"0",comp:"CCC",C:[{N:"attVal",name:"Q{}required",chk:"0"},{N:"str",val:"true"}]},{N:"att",line:"1638",name:"flags",flags:"l",C:[{N:"str",val:"r"}]}]},{N:"choose",line:"1640",C:[{N:"vc",op:"eq",onEmpty:"0",comp:"CCC",C:[{N:"attVal",name:"Q{http://ns.saxonica.com/xslt/export}implicit-mandatory",chk:"0"},{N:"str",val:"true"}]},{N:"att",line:"1641",name:"flags",flags:"l",C:[{N:"str",val:"i"}]}]},{N:"att",line:"1643",name:"as",flags:"l",C:[{N:"convert", +from:"AZ",to:"AS",C:[{N:"attVal",name:"Q{http://ns.saxonica.com/xslt/export}asJ",chk:"0"}]}]},{N:"axis",line:"1644",name:"attribute",nodeTest:"NA nQ{http://ns.saxonica.com/xslt/export}asJ"},{N:"att",line:"1645",name:"ns",flags:"l",C:[{N:"let",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~","var":"Q{}context",as:"1NE",slot:"3",eval:"16",C:[{N:"dot",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ saxon=~ t=MyTypes xs=~ xsl=~ xml=~", +type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}param"},{N:"choose",module:"namespaces.xsl",line:"47",C:[{N:"fn",name:"exists",C:[{N:"slash",simple:"1",C:[{N:"varRef",name:"Q{}context",slot:"3"},{N:"axis",name:"attribute",nodeTest:"NA nQ{http://ns.saxonica.com/xslt/export}ns"}]}]},{N:"check",line:"48",card:"1",diag:"5|0|XTTE0780|f:encode-namespaces#1",C:[{N:"cvUntyped",to:"AS",diag:"5|0|XTTE0780|f:encode-namespaces#1",C:[{N:"data",diag:"5|0|XTTE0780|f:encode-namespaces#1",C:[{N:"slash",simple:"1", +C:[{N:"varRef",name:"Q{}context",slot:"3"},{N:"axis",name:"attribute",nodeTest:"NA nQ{http://ns.saxonica.com/xslt/export}ns"}]}]}]}]},{N:"true"},{N:"fn",line:"58",name:"string-join",C:[{N:"forEach",C:[{N:"slash",simple:"1",C:[{N:"varRef",name:"Q{}context",slot:"3"},{N:"axis",name:"namespace",nodeTest:"NN"}]},{N:"fn",name:"concat",C:[{N:"fn",name:"name",C:[{N:"dot",type:"1NN"}]},{N:"str",val:"="},{N:"choose",C:[{N:"vc",op:"eq",onEmpty:"0",comp:"CCC",C:[{N:"ifCall",name:"Q{http://www.w3.org/2005/xpath-functions/map}get", +type:"*",C:[{N:"gVarRef",name:"Q{}known-namespaces",bSlot:"221"},{N:"fn",name:"name",C:[{N:"dot",type:"1NN"}]}]},{N:"data",diag:"1|1||eq",C:[{N:"dot",type:"1NN"}]}]},{N:"str",val:"~"},{N:"true"},{N:"data",diag:"0|2||fn:concat",C:[{N:"dot",type:"1NN"}]}]}]}]},{N:"str",val:" "}]}]}]}]},{N:"applyT",line:"1646",mode:"Q{}param.type",bSlot:"222",C:[{N:"dot",role:"select",type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}param"}]},{N:"applyT",line:"1648",mode:"Q{}select.or.sequence",bSlot:"223",C:[{N:"dot", +role:"select",type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}param"},{N:"withParam",name:"Q{}has-uniform-static-context",flags:"t",as:"1AB",C:[{N:"varRef",line:"1650",name:"Q{}has-uniform-static-context",slot:"2"}]}]}]}]}]}]}]}]},{N:"templateRule",prec:"0",prio:"0.5",seq:"193",rank:"2",minImp:"0",slots:"1",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}param",flags:"s",line:"143",module:"callable-components.xsl",C:[{N:"p.withUpper",role:"match",axis:"parent",upFirst:"false",C:[{N:"p.nodeTest", +test:"NE nQ{http://www.w3.org/1999/XSL/Transform}param"},{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}function"}]},{N:"sequence",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ saxon=~ t=MyTypes xs=~ xsl=~ xml=~",line:"145",C:[{N:"choose",C:[{N:"vc",op:"eq",onEmpty:"0",comp:"CCC",C:[{N:"cast",flags:"ae",as:"?AS",C:[{N:"attVal",name:"Q{}required",chk:"0"}]},{N:"str", +val:"false"}]},{N:"fn",line:"148",name:"error",C:[{N:"qName",pre:"",uri:"http://www.w3.org/2005/xqt-errors",loc:"XTSE0020"},{N:"fn",name:"concat",C:[{N:"str",val:"@required can only be yes|true|1 on a parameter "},{N:"attVal",name:"Q{}name",chk:"0"},{N:"str",val:" of function "},{N:"atomSing",card:"?",diag:"0|3||fn:concat",C:[{N:"slash",simple:"2",C:[{N:"axis",name:"parent",nodeTest:"N u[NE,ND]"},{N:"axis",name:"attribute",nodeTest:"NA nQ{}name"}]}]},{N:"str",val:"()"}]}]}]},{N:"elem",line:"151", +name:"arg",nsuri:"http://ns.saxonica.com/xslt/export",flags:"d",C:[{N:"sequence",C:[{N:"att",name:"slot",flags:"l",C:[{N:"convert",from:"ADI",to:"AS",C:[{N:"arith",op:"-",calc:"i-i",C:[{N:"fn",name:"position"},{N:"int",val:"1"}]}]}]},{N:"att",name:"name",flags:"l",C:[{N:"convert",from:"AZ",to:"AS",C:[{N:"attVal",name:"Q{}name",chk:"0"}]}]},{N:"let",line:"158","var":"Q{}alphacode",slot:"0",eval:"16",C:[{N:"choose",C:[{N:"fn",name:"exists",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}as"}]},{N:"ufCall", +name:"Q{MyTypes}unmarshalType",tailCall:"false",bSlot:"224",eval:"16",C:[{N:"treat",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions js=~ map=~ saxon=~ t=MyTypes xs=~ xsl=~ xml=~",module:"xpath.xsl",line:"1527",as:"FM",diag:"5|0|XTTE0780|f:parse-sequence-type#3",C:[{N:"ifCall",name:"Q{http://saxon.sf.net/}parse-sequence-type",type:"1F",C:[{N:"check",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ saxon=~ t=MyTypes xs=~ xsl=~ xml=~", +module:"callable-components.xsl",line:"158",card:"1",diag:"0|0||f:parse-sequence-type",C:[{N:"cvUntyped",to:"AS",C:[{N:"attVal",name:"Q{}as",chk:"0"}]}]},{N:"dot",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ saxon=~ t=MyTypes xs=~ xsl=~ xml=~",module:"callable-components.xsl",line:"158",type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}param"},{N:"str",val:""}]}]}]},{N:"true"},{N:"gVarRef",name:"Q{}SJ.ANY_SEQUENCE", +bSlot:"225"}]},{N:"sequence",line:"159",C:[{N:"att",name:"as",flags:"l",C:[{N:"varRef",name:"Q{}alphacode",slot:"0"}]},{N:"att",line:"160",name:"sType",flags:"l",C:[{N:"varRef",name:"Q{}alphacode",slot:"0"}]}]}]}]}]}]}]},{N:"templateRule",prec:"0",prio:"0.5",seq:"130",rank:"2",minImp:"0",slots:"0",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}param",flags:"s",line:"997",module:"normalize.xsl",C:[{N:"p.withPredicate",role:"match",C:[{N:"p.withPredicate",C:[{N:"p.withPredicate",C:[{N:"p.withPredicate", +C:[{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}param"},{N:"fn",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"997",name:"exists",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}required"}]}]},{N:"ufCall",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~", +line:"997",name:"Q{MyFunctions}boolean-string",tailCall:"false",bSlot:"226",C:[{N:"check",card:"1",diag:"0|0||f:boolean-string",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}required"}]}]}]},{N:"or",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"997",op:"or",C:[{N:"fn",name:"empty",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}static"}]},{N:"fn",name:"not",C:[{N:"ufCall", +name:"Q{MyFunctions}boolean-string",tailCall:"false",bSlot:"227",C:[{N:"check",card:"1",diag:"0|0||f:boolean-string",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}static"}]}]}]}]}]},{N:"sequence",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"997",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}select"},{N:"axis",name:"child",nodeTest:"N u[NT,NP,NE,NC]"}]}]},{N:"ufCall",role:"action", +ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"998",name:"Q{MyFunctions}syntax-error-at",tailCall:"false",bSlot:"228",eval:"0 16 16",C:[{N:"str",val:"XTSE0010"},{N:"fn",name:"concat",C:[{N:"str",val:"required xsl:param "},{N:"attVal",name:"Q{}name",chk:"0"},{N:"str",val:" must not have a default value"}]},{N:"dot",type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}param"}]}]}, +{N:"templateRule",prec:"0",prio:"0.5",seq:"128",rank:"2",minImp:"0",slots:"2",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}param",flags:"s",line:"991",module:"normalize.xsl",C:[{N:"p.withCurrent",role:"match",C:[{N:"p.withPredicate",C:[{N:"p.withPredicate",C:[{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}param"},{N:"fn",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~", +line:"991",name:"not",C:[{N:"ufCall",name:"Q{MyFunctions}isTopLevel",tailCall:"false",bSlot:"229",C:[{N:"dot",type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}param"}]}]}]},{N:"filter",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"991",flags:"b",C:[{N:"axis",name:"preceding-sibling",nodeTest:"NE nQ{http://www.w3.org/1999/XSL/Transform}param"},{N:"vc",op:"eq",onEmpty:"0", +comp:"CCC",C:[{N:"cast",flags:"ae",as:"?AS",C:[{N:"data",diag:"1|0||=",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}name"}]}]},{N:"cast",flags:"ae",as:"?AS",C:[{N:"data",diag:"1|1||=",C:[{N:"slash",C:[{N:"treat",as:"N",diag:"1|0|XPTY0019|/",C:[{N:"varRef",name:"Q{http://www.w3.org/2005/xpath-functions}current",slot:"0"}]},{N:"axis",name:"attribute",nodeTest:"NA nQ{}name"}]}]}]}]}]}]}]},{N:"ufCall",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~", +line:"992",name:"Q{MyFunctions}syntax-error-at",tailCall:"false",bSlot:"230",eval:"0 16 16",C:[{N:"str",val:"XTSE0580"},{N:"fn",name:"concat",C:[{N:"str",val:"xsl:param siblings may not have the same @name: "},{N:"attVal",name:"Q{}name",chk:"0"}]},{N:"dot",type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}param"}]}]},{N:"templateRule",prec:"0",prio:"0.0",seq:"186",rank:"1",minImp:"0",slots:"0",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}param",flags:"s",line:"29",module:"variables-and-parameters.xsl", +C:[{N:"p.nodeTest",role:"match",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}param"},{N:"elem",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~",line:"32",name:"PARAMDEF",nsuri:"http://ns.saxonica.com/xslt/export",flags:"d",C:[{N:"sequence",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}name"},{N:"axis",name:"attribute",nodeTest:"NA nQ{}namespace"},{N:"axis",name:"attribute", +nodeTest:"NA nQ{}as"},{N:"axis",name:"attribute",nodeTest:"NA nQ{http://ns.saxonica.com/xslt/export}asJ"},{N:"axis",name:"attribute",nodeTest:"NA nQ{http://ns.saxonica.com/xslt/export}baseUri"},{N:"axis",name:"attribute",nodeTest:"NA nQ{}tunnel"},{N:"axis",name:"attribute",nodeTest:"NA nQ{}required"},{N:"axis",name:"attribute",nodeTest:"NA nQ{http://ns.saxonica.com/xslt/export}ns"},{N:"callT",line:"33",name:"Q{}record-location",bSlot:"231"},{N:"applyT",line:"34",mode:"Q{}select.or.sequence",bSlot:"232", +C:[{N:"dot",role:"select",type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}param"},{N:"withParam",name:"Q{}attr",C:[{N:"lookup",line:"35",C:[{N:"gVarRef",name:"Q{}roles",bSlot:"233"},{N:"str",val:"select"}]}]},{N:"withParam",name:"Q{}has-uniform-static-context",flags:"t",as:"1AB",C:[{N:"ufCall",line:"36",name:"Q{MyFunctions}has-uniform-static-context",tailCall:"false",bSlot:"234",eval:"16",C:[{N:"dot",type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}param"}]}]}]}]}]}]},{N:"templateRule",prec:"0", +prio:"0.0",seq:"170",rank:"1",minImp:"0",slots:"3",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}assert",flags:"s",line:"104",module:"conditionals.xsl",C:[{N:"p.nodeTest",role:"match",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}assert"},{N:"sequence",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~",line:"105",C:[{N:"param",name:"Q{}options",slot:"0", +flags:"tr",as:"1FM",C:[{N:"treat",role:"conversion",as:"FM",diag:"8|0|XTTE0590|options",C:[{N:"check",card:"1",diag:"8|0|XTTE0590|options",C:[{N:"supplied",slot:"0"}]}]}]},{N:"param",line:"106",name:"Q{}compiler.options",slot:"1",flags:"t",as:"1FM",C:[{N:"map",role:"select",size:"0"},{N:"treat",role:"conversion",as:"FM",diag:"8|0|XTTE0590|compiler.options",C:[{N:"check",card:"1",diag:"8|0|XTTE0590|compiler.options",C:[{N:"supplied",slot:"1"}]}]}]},{N:"param",line:"107",name:"Q{}attr",slot:"2",as:"*NA", +C:[{N:"empty",role:"select"},{N:"treat",role:"conversion",as:"NA",diag:"8|0|XTTE0590|attr",C:[{N:"supplied",slot:"2"}]}]},{N:"choose",line:"109",C:[{N:"or",op:"or",C:[{N:"lookup",C:[{N:"varRef",name:"Q{}options",slot:"0"},{N:"str",val:"enable-assertions"}]},{N:"lookup",C:[{N:"varRef",name:"Q{}compiler.options",slot:"1"},{N:"str",val:"enable-assertions"}]}]},{N:"elem",line:"111",name:"choose",nsuri:"http://ns.saxonica.com/xslt/export",flags:"d",C:[{N:"sequence",C:[{N:"att",name:"sType",flags:"l",C:[{N:"gVarRef", +name:"Q{}SJ.EMPTY_SEQUENCE",bSlot:"235"}]},{N:"att",name:"ns",flags:"l",C:[{N:"convert",from:"AZ",to:"AS",C:[{N:"data",C:[{N:"check",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",module:"namespaces.xsl",line:"139",card:"?",diag:"5|0|XTTE0780|f:innermostExNs#1",C:[{N:"forEach",C:[{N:"forEach",C:[{N:"dot",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~", +module:"conditionals.xsl",line:"110",type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}assert"},{N:"first",C:[{N:"filter",flags:"b",C:[{N:"axis",name:"ancestor-or-self",nodeTest:"NE"},{N:"fn",name:"exists",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{http://ns.saxonica.com/xslt/export}ns"}]}]}]}]},{N:"axis",name:"attribute",nodeTest:"NA nQ{http://ns.saxonica.com/xslt/export}ns"}]}]}]}]}]},{N:"varRef",line:"112",name:"Q{}attr",slot:"2"},{N:"callT",line:"113",name:"Q{}record-location",bSlot:"236"}, +{N:"applyT",line:"114",mode:"Q{}create.xpath",bSlot:"237",C:[{N:"axis",role:"select",name:"attribute",nodeTest:"NA nQ{}test"}]},{N:"elem",line:"115",name:"empty",nsuri:"http://ns.saxonica.com/xslt/export",flags:"dl",C:[{N:"empty"}]},{N:"elem",line:"116",name:"true",nsuri:"http://ns.saxonica.com/xslt/export",flags:"dl",C:[{N:"empty"}]},{N:"elem",line:"117",name:"message",nsuri:"http://ns.saxonica.com/xslt/export",flags:"dl",C:[{N:"sequence",C:[{N:"att",name:"sType",flags:"l",C:[{N:"gVarRef",name:"Q{}SJ.EMPTY_SEQUENCE", +bSlot:"238"}]},{N:"elem",line:"118",name:"sequence",nsuri:"http://ns.saxonica.com/xslt/export",flags:"dl",C:[{N:"sequence",C:[{N:"att",name:"role",flags:"l",C:[{N:"str",val:"select"}]},{N:"applyT",line:"119",mode:"Q{}create.xpath",bSlot:"239",C:[{N:"axis",role:"select",name:"attribute",nodeTest:"NA nQ{}select"}]},{N:"applyT",line:"120",flags:"ci",bSlot:"-1",C:[{N:"axis",role:"select",name:"child",nodeTest:"N"}]}]}]},{N:"elem",line:"122",name:"true",nsuri:"http://ns.saxonica.com/xslt/export",flags:"dl", +C:[{N:"att",name:"role",flags:"l",C:[{N:"str",val:"terminate"}]}]},{N:"callT",line:"123",name:"Q{MyFunctions}AVT",bSlot:"240",C:[{N:"withParam",name:"Q{}avt-string",flags:"c",as:"?NA nQ{}error-code",C:[{N:"axis",line:"124",name:"attribute",nodeTest:"NA nQ{}error-code"}]},{N:"withParam",name:"Q{}default",flags:"c",as:"1AS",C:[{N:"str",val:"Q{http://www.w3.org/2005/xqt-errors}XTMM9001"}]},{N:"withParam",name:"Q{}role",flags:"c",as:"?NA",C:[{N:"treat",line:"126",as:"NA",diag:"8|0|XTTE0590|role",C:[{N:"check", +card:"?",diag:"8|0|XTTE0590|role",C:[{N:"lookup",C:[{N:"gVarRef",name:"Q{}roles",bSlot:"241"},{N:"str",val:"error"}]}]}]}]}]}]}]}]}]},{N:"true"},{N:"elem",line:"132",name:"empty",nsuri:"http://ns.saxonica.com/xslt/export",flags:"d",C:[{N:"empty"}]}]}]}]},{N:"templateRule",prec:"0",prio:"0.0",seq:"258",rank:"1",minImp:"0",slots:"0",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}matching-substring",flags:"s",line:"66",module:"regular-expressions.xsl",C:[{N:"p.nodeTest",role:"match",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}matching-substring"}, +{N:"elem",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~",line:"67",name:"sequence",nsuri:"http://ns.saxonica.com/xslt/export",flags:"d",C:[{N:"sequence",C:[{N:"att",name:"role",flags:"l",C:[{N:"str",val:"matching"}]},{N:"choose",line:"68",C:[{N:"fn",name:"empty",C:[{N:"axis",name:"child",nodeTest:"N u[NT,NP,NE,NC]"}]},{N:"elem",line:"69",name:"empty",nsuri:"http://ns.saxonica.com/xslt/export", +flags:"dl",C:[{N:"empty"}]}]},{N:"applyT",line:"71",flags:"c",bSlot:"-1",C:[{N:"axis",role:"select",name:"child",nodeTest:"N"}]}]}]}]},{N:"templateRule",prec:"0",prio:"0.0",seq:"168",rank:"1",minImp:"0",slots:"1",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}otherwise",flags:"s",line:"55",module:"conditionals.xsl",C:[{N:"p.nodeTest",role:"match",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}otherwise"},{N:"sequence",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~", +line:"56",C:[{N:"param",name:"Q{}static-context",slot:"0",flags:"ti",as:"1FM",C:[{N:"treat",role:"conversion",as:"FM",diag:"8|0|XTTE0590|static-context",C:[{N:"check",card:"1",diag:"8|0|XTTE0590|static-context",C:[{N:"supplied",slot:"0"}]}]}]},{N:"elem",line:"57",name:"true",nsuri:"http://ns.saxonica.com/xslt/export",flags:"d",C:[{N:"empty"}]},{N:"choose",line:"59",C:[{N:"vc",op:"gt",onEmpty:"0",comp:"GAC|http://www.w3.org/2005/xpath-functions/collation/codepoint",C:[{N:"atomSing",card:"?",diag:"1|0||gt", +C:[{N:"lookup",C:[{N:"varRef",name:"Q{}static-context",slot:"0"},{N:"str",val:"xsl-version"}]}]},{N:"dec",val:"3"}]},{N:"applyT",line:"60",mode:"Q{}select.or.sequence",flags:"t",bSlot:"242",C:[{N:"dot",role:"select",type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}otherwise"}]},{N:"true"},{N:"callT",line:"63",name:"Q{}sequence-constructor",bSlot:"243",flags:"t"}]}]}]},{N:"templateRule",prec:"0",prio:"0.0",seq:"169",rank:"1",minImp:"0",slots:"2",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}if", +flags:"s",line:"68",module:"conditionals.xsl",C:[{N:"p.nodeTest",role:"match",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}if"},{N:"sequence",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~",line:"69",C:[{N:"param",name:"Q{}static-context",slot:"0",flags:"ti",as:"1FM",C:[{N:"treat",role:"conversion",as:"FM",diag:"8|0|XTTE0590|static-context",C:[{N:"check", +card:"1",diag:"8|0|XTTE0590|static-context",C:[{N:"supplied",slot:"0"}]}]}]},{N:"param",line:"70",name:"Q{}attr",slot:"1",as:"*NA",C:[{N:"empty",role:"select"},{N:"treat",role:"conversion",as:"NA",diag:"8|0|XTTE0590|attr",C:[{N:"supplied",slot:"1"}]}]},{N:"elem",line:"71",name:"choose",nsuri:"http://ns.saxonica.com/xslt/export",flags:"d",C:[{N:"sequence",line:"72",C:[{N:"varRef",name:"Q{}attr",slot:"1"},{N:"callT",line:"73",name:"Q{}record-location",bSlot:"244"},{N:"applyT",line:"74",mode:"Q{}create.xpath", +bSlot:"245",C:[{N:"axis",role:"select",name:"attribute",nodeTest:"NA nQ{}test"}]},{N:"choose",line:"76",C:[{N:"and",op:"and",C:[{N:"vc",op:"gt",onEmpty:"0",comp:"GAC|http://www.w3.org/2005/xpath-functions/collation/codepoint",C:[{N:"atomSing",card:"?",diag:"1|0||gt",C:[{N:"lookup",C:[{N:"varRef",name:"Q{}static-context",slot:"0"},{N:"str",val:"xsl-version"}]}]},{N:"dec",val:"3"}]},{N:"fn",name:"exists",C:[{N:"axis",name:"attribute",nodeTest:"NA u[NA nQ{}then,NA nQ{}else]"}]}]},{N:"sequence",line:"78", +C:[{N:"choose",C:[{N:"fn",name:"exists",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}then"}]},{N:"applyT",line:"79",mode:"Q{}create.xpath",bSlot:"246",C:[{N:"axis",role:"select",name:"attribute",nodeTest:"NA nQ{}then"}]},{N:"true"},{N:"callT",line:"82",name:"Q{}sequence-constructor",bSlot:"247"}]},{N:"elem",line:"85",name:"true",nsuri:"http://ns.saxonica.com/xslt/export",flags:"dl",C:[{N:"empty"}]},{N:"choose",line:"87",C:[{N:"fn",name:"exists",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}else"}]}, +{N:"applyT",line:"88",mode:"Q{}create.xpath",bSlot:"248",C:[{N:"axis",role:"select",name:"attribute",nodeTest:"NA nQ{}else"}]},{N:"true"},{N:"elem",line:"91",name:"empty",nsuri:"http://ns.saxonica.com/xslt/export",flags:"dl",C:[{N:"empty"}]}]}]},{N:"true"},{N:"sequence",line:"96",C:[{N:"callT",name:"Q{}sequence-constructor",bSlot:"249"},{N:"elem",line:"97",name:"true",nsuri:"http://ns.saxonica.com/xslt/export",flags:"dl",C:[{N:"empty"}]},{N:"elem",line:"98",name:"empty",nsuri:"http://ns.saxonica.com/xslt/export", +flags:"dl",C:[{N:"empty"}]}]}]}]}]}]}]},{N:"templateRule",prec:"0",prio:"0.0",seq:"145",rank:"1",minImp:"0",slots:"1",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}sequence",flags:"s",line:"77",module:"select-sequence.xsl",C:[{N:"p.nodeTest",role:"match",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}sequence"},{N:"sequence",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~", +line:"78",C:[{N:"param",name:"Q{}attr",slot:"0",as:"*NA",C:[{N:"empty",role:"select"},{N:"treat",role:"conversion",as:"NA",diag:"8|0|XTTE0590|attr",C:[{N:"supplied",slot:"0"}]}]},{N:"applyT",line:"79",mode:"Q{}select.or.sequence",flags:"t",bSlot:"250",C:[{N:"dot",role:"select",type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}sequence"},{N:"withParam",name:"Q{}attr",as:"*NA",C:[{N:"varRef",line:"80",name:"Q{}attr",slot:"0"}]}]}]}]},{N:"templateRule",prec:"0",prio:"0.0",seq:"180",rank:"1",minImp:"0", +slots:"5",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}catch",flags:"s",line:"230",module:"conditionals.xsl",C:[{N:"p.nodeTest",role:"match",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}catch"},{N:"sequence",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~",line:"231",C:[{N:"param",name:"Q{}attr",slot:"0",as:"*NA",C:[{N:"empty",role:"select"},{N:"treat", +role:"conversion",as:"NA",diag:"8|0|XTTE0590|attr",C:[{N:"supplied",slot:"0"}]}]},{N:"let",line:"232","var":"Q{}context",as:"1",slot:"1",eval:"16",C:[{N:"dot",type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}catch"},{N:"let",line:"233","var":"Q{}errors",as:"*AS",slot:"2",eval:"4",C:[{N:"fn",name:"tokenize",C:[{N:"treat",as:"AS",diag:"0|0||fn:tokenize",C:[{N:"check",card:"?",diag:"0|0||fn:tokenize",C:[{N:"cvUntyped",to:"AS",C:[{N:"data",diag:"0|0||fn:tokenize",C:[{N:"first",C:[{N:"sequence",C:[{N:"axis", +name:"attribute",nodeTest:"NA nQ{}errors"},{N:"str",val:"*"}]}]}]}]}]}]}]},{N:"elem",line:"234",name:"catch",nsuri:"http://ns.saxonica.com/xslt/export",flags:"d",C:[{N:"sequence",C:[{N:"att",name:"err",flags:"l",C:[{N:"fn",name:"string-join",C:[{N:"varRef",name:"Q{}errors",slot:"2"},{N:"str",val:" "}]}]},{N:"att",line:"235",name:"errors",flags:"l",C:[{N:"fn",line:"236",name:"string-join",C:[{N:"forEach",C:[{N:"varRef",name:"Q{}errors",slot:"2"},{N:"choose",line:"238",C:[{N:"or",op:"or",C:[{N:"or", +op:"or",C:[{N:"vc",op:"eq",onEmpty:"0",comp:"GAC|http://www.w3.org/2005/xpath-functions/collation/codepoint",C:[{N:"dot",type:"1AS"},{N:"str",val:"*"}]},{N:"fn",name:"starts-with",C:[{N:"dot",type:"1AS"},{N:"str",val:"*:"}]}]},{N:"fn",name:"starts-with",C:[{N:"dot",type:"1AS"},{N:"str",val:"Q{"}]}]},{N:"dot",line:"239",type:"1AS"},{N:"fn",line:"241",name:"ends-with",C:[{N:"dot",type:"1AS"},{N:"str",val:"}*"}]},{N:"fn",line:"242",name:"replace",C:[{N:"let","var":"Q{}qname",as:"1AQ",slot:"3",eval:"8", +C:[{N:"fn",name:"resolve-QName",C:[{N:"fn",name:"replace",C:[{N:"dot",type:"1AS"},{N:"str",val:"*$"},{N:"str",val:"Z"},{N:"str",val:""}]},{N:"varRef",name:"Q{}context",slot:"1"}]},{N:"fn",module:"lib.xsl",line:"172",name:"concat",C:[{N:"str",val:"Q{"},{N:"fn",name:"namespace-uri-from-QName",C:[{N:"varRef",name:"Q{}qname",slot:"3"}]},{N:"str",val:"}"},{N:"fn",name:"local-name-from-QName",C:[{N:"varRef",name:"Q{}qname",slot:"3"}]}]}]},{N:"str",val:"Z$"},{N:"str",val:"*"},{N:"str",val:""}]},{N:"true"}, +{N:"let",line:"245","var":"Q{}qname",as:"1AQ",slot:"4",eval:"8",C:[{N:"fn",name:"resolve-QName",C:[{N:"dot",type:"1AS"},{N:"varRef",name:"Q{}context",slot:"1"}]},{N:"fn",module:"lib.xsl",line:"172",name:"concat",C:[{N:"str",val:"Q{"},{N:"fn",name:"namespace-uri-from-QName",C:[{N:"varRef",name:"Q{}qname",slot:"4"}]},{N:"str",val:"}"},{N:"fn",name:"local-name-from-QName",C:[{N:"varRef",name:"Q{}qname",slot:"4"}]}]}]}]}]},{N:"str",val:" "}]}]},{N:"varRef",line:"263",name:"Q{}attr",slot:"0"},{N:"applyT", +line:"264",mode:"Q{}select.or.sequence",bSlot:"251",C:[{N:"dot",role:"select",type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}catch"}]}]}]}]}]}]}]},{N:"templateRule",prec:"0",prio:"0.0",seq:"375",rank:"1",minImp:"0",slots:"3",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}message",flags:"s",line:"1576",module:"XSLT-SEF-compiler.xsl",C:[{N:"p.nodeTest",role:"match",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}message"},{N:"sequence",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ saxon=~ t=MyTypes xs=~ xsl=~ xml=~", +line:"1577",C:[{N:"param",name:"Q{}attr",slot:"0",as:"*NA",C:[{N:"empty",role:"select"},{N:"treat",role:"conversion",as:"NA",diag:"8|0|XTTE0590|attr",C:[{N:"supplied",slot:"0"}]}]},{N:"param",line:"1578",name:"Q{}xpath-default-namespace",slot:"1",flags:"t",as:"?NA",C:[{N:"empty",role:"select"},{N:"treat",role:"conversion",as:"NA",diag:"8|0|XTTE0590|xpath-default-namespace",C:[{N:"check",card:"?",diag:"8|0|XTTE0590|xpath-default-namespace",C:[{N:"supplied",slot:"1"}]}]}]},{N:"param",line:"1579",name:"Q{}default-collation", +slot:"2",flags:"t",as:"?NA",C:[{N:"empty",role:"select"},{N:"treat",role:"conversion",as:"NA",diag:"8|0|XTTE0590|default-collation",C:[{N:"check",card:"?",diag:"8|0|XTTE0590|default-collation",C:[{N:"supplied",slot:"2"}]}]}]},{N:"elem",line:"1581",name:"message",nsuri:"http://ns.saxonica.com/xslt/export",flags:"d",C:[{N:"sequence",C:[{N:"att",name:"sType",flags:"l",C:[{N:"gVarRef",name:"Q{}SJ.EMPTY_SEQUENCE",bSlot:"252"}]},{N:"att",name:"ns",flags:"l",C:[{N:"convert",from:"AZ",to:"AS",C:[{N:"data", +C:[{N:"check",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",module:"namespaces.xsl",line:"139",card:"?",diag:"5|0|XTTE0780|f:innermostExNs#1",C:[{N:"forEach",C:[{N:"forEach",C:[{N:"dot",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ saxon=~ t=MyTypes xs=~ xsl=~ xml=~",module:"XSLT-SEF-compiler.xsl", +line:"1580",type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}message"},{N:"first",C:[{N:"filter",flags:"b",C:[{N:"axis",name:"ancestor-or-self",nodeTest:"NE"},{N:"fn",name:"exists",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{http://ns.saxonica.com/xslt/export}ns"}]}]}]}]},{N:"axis",name:"attribute",nodeTest:"NA nQ{http://ns.saxonica.com/xslt/export}ns"}]}]}]}]}]},{N:"varRef",line:"1583",name:"Q{}attr",slot:"0"},{N:"elem",line:"1584",name:"sequence",nsuri:"http://ns.saxonica.com/xslt/export",flags:"dl", +C:[{N:"sequence",C:[{N:"att",name:"role",flags:"l",C:[{N:"str",val:"select"}]},{N:"applyT",line:"1585",mode:"Q{}create.xpath",bSlot:"253",C:[{N:"axis",role:"select",name:"attribute",nodeTest:"NA nQ{}select"}]},{N:"applyT",line:"1586",flags:"ci",bSlot:"-1",C:[{N:"axis",role:"select",name:"child",nodeTest:"N"}]}]}]},{N:"callT",line:"1588",name:"Q{MyFunctions}AVT",bSlot:"254",C:[{N:"withParam",name:"Q{}avt-string",flags:"c",as:"?NA nQ{}terminate",C:[{N:"axis",line:"1589",name:"attribute",nodeTest:"NA nQ{}terminate"}]}, +{N:"withParam",name:"Q{}default",flags:"c",as:"1AS",C:[{N:"str",val:"false"}]},{N:"withParam",name:"Q{}role",flags:"c",as:"?NA",C:[{N:"treat",line:"1591",as:"NA",diag:"8|0|XTTE0590|role",C:[{N:"check",card:"?",diag:"8|0|XTTE0590|role",C:[{N:"lookup",C:[{N:"gVarRef",name:"Q{}roles",bSlot:"255"},{N:"str",val:"terminate"}]}]}]}]}]},{N:"callT",line:"1593",name:"Q{MyFunctions}AVT",bSlot:"256",C:[{N:"withParam",name:"Q{}avt-string",flags:"c",as:"?NA nQ{}error-code",C:[{N:"axis",line:"1594",name:"attribute", +nodeTest:"NA nQ{}error-code"}]},{N:"withParam",name:"Q{}default",flags:"c",as:"1AS",C:[{N:"str",val:"Q{http://www.w3.org/2005/xqt-errors}XTMM9000"}]},{N:"withParam",name:"Q{}role",flags:"c",as:"?NA",C:[{N:"treat",line:"1597",as:"NA",diag:"8|0|XTTE0590|role",C:[{N:"check",card:"?",diag:"8|0|XTTE0590|role",C:[{N:"lookup",C:[{N:"gVarRef",name:"Q{}roles",bSlot:"257"},{N:"str",val:"error"}]}]}]}]}]}]}]}]}]},{N:"templateRule",prec:"0",prio:"0.0",seq:"167",rank:"1",minImp:"0",slots:"1",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}when", +flags:"s",line:"41",module:"conditionals.xsl",C:[{N:"p.nodeTest",role:"match",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}when"},{N:"sequence",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~",line:"42",C:[{N:"param",name:"Q{}static-context",slot:"0",flags:"ti",as:"1FM",C:[{N:"treat",role:"conversion",as:"FM",diag:"8|0|XTTE0590|static-context",C:[{N:"check", +card:"1",diag:"8|0|XTTE0590|static-context",C:[{N:"supplied",slot:"0"}]}]}]},{N:"applyT",line:"43",mode:"Q{}create.xpath",bSlot:"258",C:[{N:"axis",role:"select",name:"attribute",nodeTest:"NA nQ{}test"}]},{N:"choose",line:"45",C:[{N:"vc",op:"gt",onEmpty:"0",comp:"GAC|http://www.w3.org/2005/xpath-functions/collation/codepoint",C:[{N:"atomSing",card:"?",diag:"1|0||gt",C:[{N:"lookup",C:[{N:"varRef",name:"Q{}static-context",slot:"0"},{N:"str",val:"xsl-version"}]}]},{N:"dec",val:"3"}]},{N:"applyT",line:"46", +mode:"Q{}select.or.sequence",flags:"t",bSlot:"259",C:[{N:"dot",role:"select",type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}when"}]},{N:"true"},{N:"callT",line:"49",name:"Q{}sequence-constructor",bSlot:"260",flags:"t"}]}]}]},{N:"templateRule",prec:"0",prio:"0.0",seq:"367",rank:"1",minImp:"0",slots:"1",matches:"NE nQ{http://saxonica.com/ns/interactiveXSLT}set-property",flags:"s",line:"54",module:"ixsl.xsl",C:[{N:"p.nodeTest",role:"match",test:"NE nQ{http://saxonica.com/ns/interactiveXSLT}set-property"}, +{N:"sequence",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions ixsl=~ map=~ xs=~ xsl=~ xml=~",line:"55",C:[{N:"param",name:"Q{}attr",slot:"0",as:"*NA",C:[{N:"empty",role:"select"},{N:"treat",role:"conversion",as:"NA",diag:"8|0|XTTE0590|attr",C:[{N:"supplied",slot:"0"}]}]},{N:"elem",line:"56",name:"ifCall",nsuri:"http://ns.saxonica.com/xslt/export",flags:"d",namespaces:"map",C:[{N:"sequence",C:[{N:"att", +name:"name",flags:"l",C:[{N:"str",val:"Q{http://saxonica.com/ns/interactiveXSLT}set-property"}]},{N:"att",name:"sType",flags:"l",C:[{N:"str",val:"0"}]},{N:"varRef",line:"57",name:"Q{}attr",slot:"0"},{N:"callT",line:"58",name:"Q{}record-location",bSlot:"261"},{N:"forEach",line:"59",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}name"},{N:"callT",line:"60",name:"Q{}role-value-template",bSlot:"262"}]},{N:"elem",line:"62",name:"xpath",nsuri:"http://ns.saxonica.com/xslt/export",flags:"dl",namespaces:"map", +C:[{N:"sequence",C:[{N:"att",name:"xpath",flags:"l",C:[{N:"convert",from:"AZ",to:"AS",C:[{N:"attVal",name:"Q{}select",chk:"0"}]}]},{N:"att",name:"line",flags:"l",C:[{N:"convert",from:"ADI",to:"AS",C:[{N:"ufCall",name:"Q{MyFunctions}line-number",tailCall:"false",bSlot:"263",eval:"16",C:[{N:"dot",type:"1NE nQ{http://saxonica.com/ns/interactiveXSLT}set-property"}]}]}]}]}]},{N:"elem",line:"64",name:"xpath",nsuri:"http://ns.saxonica.com/xslt/export",flags:"dl",namespaces:"map",C:[{N:"sequence",C:[{N:"att", +name:"xpath",flags:"l",C:[{N:"fn",name:"string-join",C:[{N:"convert",from:"A",to:"AS",C:[{N:"data",C:[{N:"first",C:[{N:"sequence",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}object"},{N:"str",val:"ixsl:window()"}]}]}]}]},{N:"str",val:" "}]}]},{N:"att",name:"line",flags:"l",C:[{N:"convert",from:"ADI",to:"AS",C:[{N:"ufCall",name:"Q{MyFunctions}line-number",tailCall:"false",bSlot:"264",eval:"16",C:[{N:"dot",type:"1NE nQ{http://saxonica.com/ns/interactiveXSLT}set-property"}]}]}]},{N:"att",name:"checkType", +flags:"l",C:[{N:"str",val:"1"}]},{N:"att",name:"diagnostic",flags:"l",C:[{N:"convert",from:"AZ",to:"AS",C:[{N:"data",C:[{N:"att",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~",module:"lib.xsl",line:"286",name:"diag",C:[{N:"gVarRef",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions ixsl=~ map=~ xs=~ xsl=~ xml=~", +name:"Q{http://saxon.sf.net/generated-variable}gg2101977504",bSlot:"265"}]}]}]}]}]}]}]}]}]}]},{N:"templateRule",prec:"0",prio:"0.0",seq:"256",rank:"1",minImp:"0",slots:"3",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}analyze-string",flags:"s",line:"16",module:"regular-expressions.xsl",C:[{N:"p.nodeTest",role:"match",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}analyze-string"},{N:"sequence",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~", +line:"17",C:[{N:"param",name:"Q{}xpath-default-namespace",slot:"0",flags:"t",as:"?NA",C:[{N:"empty",role:"select"},{N:"treat",role:"conversion",as:"NA",diag:"8|0|XTTE0590|xpath-default-namespace",C:[{N:"check",card:"?",diag:"8|0|XTTE0590|xpath-default-namespace",C:[{N:"supplied",slot:"0"}]}]}]},{N:"param",line:"18",name:"Q{}default-collation",slot:"1",flags:"t",as:"?NA",C:[{N:"empty",role:"select"},{N:"treat",role:"conversion",as:"NA",diag:"8|0|XTTE0590|default-collation",C:[{N:"check",card:"?",diag:"8|0|XTTE0590|default-collation", +C:[{N:"supplied",slot:"1"}]}]}]},{N:"param",line:"19",name:"Q{}attr",slot:"2",as:"*NA",C:[{N:"empty",role:"select"},{N:"treat",role:"conversion",as:"NA",diag:"8|0|XTTE0590|attr",C:[{N:"supplied",slot:"2"}]}]},{N:"choose",line:"23",C:[{N:"and",op:"and",C:[{N:"fn",name:"empty",C:[{N:"axis",name:"child",nodeTest:"NE nQ{http://www.w3.org/1999/XSL/Transform}matching-substring"}]},{N:"fn",name:"empty",C:[{N:"axis",name:"child",nodeTest:"NE nQ{http://www.w3.org/1999/XSL/Transform}non-matching-substring"}]}]}, +{N:"fn",line:"25",name:"error",C:[{N:"qName",pre:"",uri:"http://www.w3.org/2005/xqt-errors",loc:"XTSE1130"},{N:"str",val:"xsl:analyze-string must contain either xsl:matching-substring or xsl:non-matching-substring"}]}]},{N:"choose",line:"27",C:[{N:"fn",name:"exists",C:[{N:"slash",simple:"2",C:[{N:"axis",name:"child",nodeTest:"NE nQ{http://www.w3.org/1999/XSL/Transform}matching-substring"},{N:"axis",name:"preceding-sibling",nodeTest:"NE nQ{http://www.w3.org/1999/XSL/Transform}non-matching-substring"}]}]}, +{N:"fn",line:"28",name:"error",C:[{N:"qName",pre:"",uri:"http://www.w3.org/2005/xqt-errors",loc:"XTSE0010"},{N:"str",val:"xsl:non-matching-substring must follow xsl:matching-substring"}]}]},{N:"choose",line:"30",C:[{N:"fn",name:"exists",C:[{N:"slash",simple:"2",C:[{N:"axis",name:"child",nodeTest:"NE nQ{http://www.w3.org/1999/XSL/Transform}fallback"},{N:"axis",name:"following-sibling",nodeTest:"NE"}]}]},{N:"fn",line:"31",name:"error",C:[{N:"qName",pre:"",uri:"http://www.w3.org/2005/xqt-errors",loc:"XTSE0010"}, +{N:"str",val:"xsl:fallback must be the last child of xsl:analyze-string"}]}]},{N:"elem",line:"33",name:"analyzeString",nsuri:"http://ns.saxonica.com/xslt/export",flags:"d",C:[{N:"sequence",line:"34",C:[{N:"varRef",name:"Q{}attr",slot:"2"},{N:"applyT",line:"35",mode:"Q{}create.xpath",bSlot:"266",C:[{N:"axis",role:"select",name:"attribute",nodeTest:"NA nQ{}select"},{N:"withParam",name:"Q{}checkType",as:"1AS",C:[{N:"str",val:"?AS"}]},{N:"withParam",name:"Q{}diagnostic",as:"1NA",C:[{N:"att",module:"lib.xsl", +line:"286",name:"diag",C:[{N:"gVarRef",name:"Q{http://saxon.sf.net/generated-variable}gg350475321",bSlot:"267"}]}]}]},{N:"callT",line:"39",name:"Q{MyFunctions}AVT",bSlot:"268",C:[{N:"withParam",name:"Q{}avt-string",flags:"c",as:"?NA nQ{}regex",C:[{N:"axis",line:"40",name:"attribute",nodeTest:"NA nQ{}regex"}]},{N:"withParam",name:"Q{}default",flags:"c",as:"1AS",C:[{N:"str",val:""}]},{N:"withParam",name:"Q{}role",flags:"c",as:"?NA",C:[{N:"treat",line:"42",as:"NA",diag:"8|0|XTTE0590|role",C:[{N:"check", +card:"?",diag:"8|0|XTTE0590|role",C:[{N:"lookup",C:[{N:"gVarRef",name:"Q{}roles",bSlot:"269"},{N:"str",val:"regex"}]}]}]}]}]},{N:"callT",line:"44",name:"Q{MyFunctions}AVT",bSlot:"270",C:[{N:"withParam",name:"Q{}avt-string",flags:"c",as:"?NA nQ{}flags",C:[{N:"axis",line:"45",name:"attribute",nodeTest:"NA nQ{}flags"}]},{N:"withParam",name:"Q{}default",flags:"c",as:"1AS",C:[{N:"str",val:""}]},{N:"withParam",name:"Q{}role",flags:"c",as:"?NA",C:[{N:"treat",line:"47",as:"NA",diag:"8|0|XTTE0590|role",C:[{N:"check", +card:"?",diag:"8|0|XTTE0590|role",C:[{N:"lookup",C:[{N:"gVarRef",name:"Q{}roles",bSlot:"271"},{N:"str",val:"flags"}]}]}]}]}]},{N:"applyT",line:"49",flags:"c",bSlot:"-1",C:[{N:"axis",role:"select",name:"child",nodeTest:"NE"}]}]}]}]}]},{N:"templateRule",prec:"0",prio:"0.0",seq:"266",rank:"1",minImp:"0",slots:"4",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}key",flags:"s",line:"14",module:"key.xsl",C:[{N:"p.nodeTest",role:"match",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}key"},{N:"sequence", +role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"15",C:[{N:"param",name:"Q{}static-context",slot:"0",flags:"t",as:"1FM",C:[{N:"map",role:"select",size:"0"},{N:"treat",role:"conversion",as:"FM",diag:"8|0|XTTE0590|static-context",C:[{N:"check",card:"1",diag:"8|0|XTTE0590|static-context",C:[{N:"supplied",slot:"0"}]}]}]},{N:"param",line:"16",name:"Q{}default-collation",slot:"1", +flags:"t",as:"?NA",C:[{N:"empty",role:"select"},{N:"treat",role:"conversion",as:"NA",diag:"8|0|XTTE0590|default-collation",C:[{N:"check",card:"?",diag:"8|0|XTTE0590|default-collation",C:[{N:"supplied",slot:"1"}]}]}]},{N:"let",line:"17","var":"Q{}composite",as:"1AB",slot:"2",eval:"16",C:[{N:"treat",as:"AB",diag:"3|0|XTTE0570|composite",C:[{N:"check",card:"1",diag:"3|0|XTTE0570|composite",C:[{N:"cvUntyped",to:"AB",diag:"3|0|XTTE0570|composite",C:[{N:"data",diag:"3|0|XTTE0570|composite",C:[{N:"first", +C:[{N:"sequence",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}composite"},{N:"false"}]}]}]}]}]}]},{N:"elem",line:"20",name:"key",nsuri:"http://ns.saxonica.com/xslt/export",flags:"d",C:[{N:"sequence",C:[{N:"att",name:"name",flags:"l",C:[{N:"ufCall",name:"Q{MyFunctions}EQName",tailCall:"false",bSlot:"272",eval:"16 16",C:[{N:"check",card:"1",diag:"0|0||f:EQName",C:[{N:"cvUntyped",to:"AS",C:[{N:"attVal",name:"Q{}name",chk:"0"}]}]},{N:"dot",type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}key"}]}]}, +{N:"att",name:"binds",flags:"l",C:[{N:"str",val:""}]},{N:"att",name:"flags",flags:"l",C:[{N:"fn",name:"concat",C:[{N:"str",val:"u"},{N:"fn",name:"string",C:[{N:"filter",flags:"ip",C:[{N:"str",val:"b"},{N:"lookup",C:[{N:"varRef",name:"Q{}static-context",slot:"0"},{N:"str",val:"backward-compatibility"}]}]}]},{N:"fn",name:"string",C:[{N:"filter",flags:"ib",C:[{N:"str",val:"c"},{N:"varRef",name:"Q{}composite",slot:"2"}]}]}]}]},{N:"att",name:"module",flags:"l",C:[{N:"lastOf",C:[{N:"fn",name:"tokenize", +C:[{N:"cvUntyped",to:"AS",C:[{N:"attVal",name:"Q{http://ns.saxonica.com/xslt/export}baseUri",chk:"0"}]},{N:"str",val:"/"},{N:"str",val:""}]}]}]},{N:"att",name:"baseUri",flags:"l",C:[{N:"convert",from:"AZ",to:"AS",C:[{N:"attVal",name:"Q{http://ns.saxonica.com/xslt/export}baseUri",chk:"0"}]}]},{N:"att",name:"ns",flags:"l",C:[{N:"let","var":"Q{}context",as:"1NE",slot:"3",eval:"16",C:[{N:"dot",type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}key"},{N:"choose",module:"namespaces.xsl",line:"47",C:[{N:"fn", +name:"exists",C:[{N:"slash",simple:"1",C:[{N:"varRef",name:"Q{}context",slot:"3"},{N:"axis",name:"attribute",nodeTest:"NA nQ{http://ns.saxonica.com/xslt/export}ns"}]}]},{N:"check",line:"48",card:"1",diag:"5|0|XTTE0780|f:encode-namespaces#1",C:[{N:"cvUntyped",to:"AS",diag:"5|0|XTTE0780|f:encode-namespaces#1",C:[{N:"data",diag:"5|0|XTTE0780|f:encode-namespaces#1",C:[{N:"slash",simple:"1",C:[{N:"varRef",name:"Q{}context",slot:"3"},{N:"axis",name:"attribute",nodeTest:"NA nQ{http://ns.saxonica.com/xslt/export}ns"}]}]}]}]}, +{N:"true"},{N:"fn",line:"58",name:"string-join",C:[{N:"forEach",C:[{N:"slash",simple:"1",C:[{N:"varRef",name:"Q{}context",slot:"3"},{N:"axis",name:"namespace",nodeTest:"NN"}]},{N:"fn",name:"concat",C:[{N:"fn",name:"name",C:[{N:"dot",type:"1NN"}]},{N:"str",val:"="},{N:"choose",C:[{N:"vc",op:"eq",onEmpty:"0",comp:"CCC",C:[{N:"ifCall",name:"Q{http://www.w3.org/2005/xpath-functions/map}get",type:"*",C:[{N:"gVarRef",name:"Q{}known-namespaces",bSlot:"273"},{N:"fn",name:"name",C:[{N:"dot",type:"1NN"}]}]}, +{N:"data",diag:"1|1||eq",C:[{N:"dot",type:"1NN"}]}]},{N:"str",val:"~"},{N:"true"},{N:"data",diag:"0|2||fn:concat",C:[{N:"dot",type:"1NN"}]}]}]}]},{N:"str",val:" "}]}]}]}]},{N:"forEach",line:"21",C:[{N:"first",C:[{N:"sequence",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}collation"},{N:"varRef",name:"Q{}default-collation",slot:"1"}]}]},{N:"att",line:"22",name:"collation",flags:"l",C:[{N:"convert",from:"AZ",to:"AS",C:[{N:"data",C:[{N:"dot",type:"1NA"}]}]}]}]},{N:"callT",line:"24",name:"Q{}record-location", +bSlot:"274"},{N:"elem",line:"25",name:"pattern",nsuri:"http://ns.saxonica.com/xslt/export",flags:"dl",C:[{N:"sequence",C:[{N:"att",name:"role",flags:"l",C:[{N:"str",val:"match"}]},{N:"att",name:"xpath",flags:"l",C:[{N:"convert",from:"AZ",to:"AS",C:[{N:"attVal",name:"Q{}match",chk:"0"}]}]}]}]},{N:"elem",line:"26",name:"data",nsuri:"http://ns.saxonica.com/xslt/export",flags:"dl",C:[{N:"sequence",C:[{N:"att",name:"role",flags:"l",C:[{N:"str",val:"use"}]},{N:"choose",line:"28",C:[{N:"fn",name:"exists", +C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}use"}]},{N:"elem",line:"29",name:"xpath",nsuri:"http://ns.saxonica.com/xslt/export",flags:"dl",C:[{N:"sequence",C:[{N:"att",name:"xpath",flags:"l",C:[{N:"convert",from:"AZ",to:"AS",C:[{N:"attVal",name:"Q{}use",chk:"0"}]}]},{N:"att",name:"line",flags:"l",C:[{N:"convert",from:"ADI",to:"AS",C:[{N:"ufCall",name:"Q{MyFunctions}line-number",tailCall:"false",bSlot:"275",eval:"16",C:[{N:"dot",type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}key"}]}]}]}]}]}, +{N:"true"},{N:"applyT",line:"32",flags:"c",bSlot:"-1",C:[{N:"axis",role:"select",name:"child",nodeTest:"NE"}]}]}]}]}]}]}]}]}]},{N:"templateRule",prec:"0",prio:"0.0",seq:"377",rank:"1",minImp:"0",slots:"0",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}context-item",flags:"s",as:"*NA",line:"1610",module:"XSLT-SEF-compiler.xsl",C:[{N:"p.nodeTest",role:"match",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}context-item"},{N:"att",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ saxon=~ t=MyTypes xs=~ xsl=~ xml=~", +line:"1611",name:"cxt",C:[{N:"fn",name:"string-join",C:[{N:"convert",from:"A",to:"AS",C:[{N:"data",C:[{N:"first",C:[{N:"sequence",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{http://ns.saxonica.com/xslt/export}asJ"},{N:"str",val:"1"}]}]}]}]},{N:"str",val:" "}]}]}]},{N:"templateRule",prec:"0",prio:"0.5",seq:"387",rank:"2",minImp:"0",slots:"0",matches:"NA nQ{}*",flags:"s",line:"1739",module:"XSLT-SEF-compiler.xsl",C:[{N:"p.withUpper",role:"match",axis:"parent",upFirst:"false",C:[{N:"p.nodeTest",test:"NA nQ{}*"}, +{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}*"}]},{N:"dot",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ saxon=~ t=MyTypes xs=~ xsl=~ xml=~",line:"1740",type:"1NA nQ{}*"}]},{N:"templateRule",prec:"0",prio:"-0.5",seq:"228",rank:"0",minImp:"0",slots:"12",matches:"NA",flags:"s",as:"1NE",line:"559",module:"creating-new-nodes.xsl",C:[{N:"p.nodeTest",role:"match",test:"NA"}, +{N:"check",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~",line:"560",card:"1",diag:'7|0|XTTE0505|match="@*" mode="sef"',C:[{N:"sequence",C:[{N:"param",name:"Q{}attr",slot:"0",as:"*NA",C:[{N:"empty",role:"select"},{N:"treat",role:"conversion",as:"NA",diag:"8|0|XTTE0590|attr",C:[{N:"supplied",slot:"0"}]}]},{N:"param",line:"561",name:"Q{}xpath-default-namespace",slot:"1", +flags:"t",as:"?NA",C:[{N:"empty",role:"select"},{N:"treat",role:"conversion",as:"NA",diag:"8|0|XTTE0590|xpath-default-namespace",C:[{N:"check",card:"?",diag:"8|0|XTTE0590|xpath-default-namespace",C:[{N:"supplied",slot:"1"}]}]}]},{N:"param",line:"562",name:"Q{}static-context",slot:"2",flags:"t",C:[{N:"map",role:"select",size:"0"},{N:"supplied",role:"conversion",slot:"2"}]},{N:"param",line:"563",name:"Q{}namespace-aliases",slot:"3",flags:"t",as:"1FM",C:[{N:"map",role:"select",size:"0"},{N:"treat",role:"conversion", +as:"FM",diag:"8|0|XTTE0590|namespace-aliases",C:[{N:"check",card:"1",diag:"8|0|XTTE0590|namespace-aliases",C:[{N:"supplied",slot:"3"}]}]}]},{N:"param",line:"564",name:"Q{}default-collation",slot:"4",flags:"t",as:"?NA",C:[{N:"empty",role:"select"},{N:"treat",role:"conversion",as:"NA",diag:"8|0|XTTE0590|default-collation",C:[{N:"check",card:"?",diag:"8|0|XTTE0590|default-collation",C:[{N:"supplied",slot:"4"}]}]}]},{N:"let",line:"572","var":"Q{}namespace-aliases",as:"?FM",slot:"5",eval:"7",C:[{N:"treat", +as:"FM",diag:"3|0|XTTE0570|namespace-aliases",C:[{N:"check",card:"?",diag:"3|0|XTTE0570|namespace-aliases",C:[{N:"lookup",C:[{N:"varRef",name:"Q{}static-context",slot:"2"},{N:"str",val:"namespace-aliases"}]}]}]},{N:"let",line:"578","var":"Q{}attribute-name",as:"1AQ",slot:"6",eval:"16",C:[{N:"choose",C:[{N:"and",op:"and",C:[{N:"fn",name:"exists",C:[{N:"fn",name:"prefix-from-QName",C:[{N:"fn",name:"node-name",C:[{N:"dot",type:"1NA"}]}]}]},{N:"fn",name:"exists",C:[{N:"varRef",name:"Q{}namespace-aliases", +slot:"5"}]}]},{N:"let","var":"Q{}original-name",as:"1AQ",slot:"7",eval:"16",C:[{N:"check",card:"1",diag:"0|0||f:map-aliased-name",C:[{N:"fn",name:"node-name",C:[{N:"dot",type:"1NA"}]}]},{N:"let","var":"Q{}namespace-aliases",as:"1FM",slot:"8",eval:"16",C:[{N:"check",card:"1",diag:"0|1||f:map-aliased-name",C:[{N:"varRef",name:"Q{}namespace-aliases",slot:"5"}]},{N:"let",line:"523","var":"Q{}original-uri",as:"1AU",slot:"9",eval:"8",C:[{N:"fn",name:"namespace-uri-from-QName",C:[{N:"varRef",name:"Q{}original-name", +slot:"7"}]},{N:"let",line:"526","var":"Q{}new-uri",as:"1AS",slot:"10",eval:"16",C:[{N:"choose",C:[{N:"or",op:"or",C:[{N:"fn",name:"empty",C:[{N:"varRef",name:"Q{}namespace-aliases",slot:"8"}]},{N:"fn",name:"not",C:[{N:"ifCall",name:"Q{http://www.w3.org/2005/xpath-functions/map}contains",type:"1AB",C:[{N:"varRef",name:"Q{}namespace-aliases",slot:"8"},{N:"varRef",name:"Q{}original-uri",slot:"9"}]}]}]},{N:"convert",line:"527",from:"AU",to:"AS",diag:"3|0|XTTE0570|new-uri",C:[{N:"varRef",name:"Q{}original-uri", +slot:"9"}]},{N:"true"},{N:"treat",line:"530",as:"AS",diag:"3|0|XTTE0570|new-uri",C:[{N:"check",card:"1",diag:"3|0|XTTE0570|new-uri",C:[{N:"cvUntyped",to:"AS",diag:"3|0|XTTE0570|new-uri",C:[{N:"data",diag:"3|0|XTTE0570|new-uri",C:[{N:"subscript",C:[{N:"ifCall",name:"Q{http://www.w3.org/2005/xpath-functions/map}get",type:"*",C:[{N:"varRef",name:"Q{}namespace-aliases",slot:"8"},{N:"varRef",name:"Q{}original-uri",slot:"9"}]},{N:"int",val:"2"}]}]}]}]}]}]},{N:"choose",line:"535",C:[{N:"vc",op:"eq",onEmpty:"0", +comp:"CCC",C:[{N:"varRef",name:"Q{}original-uri",slot:"9"},{N:"varRef",name:"Q{}new-uri",slot:"10"}]},{N:"varRef",line:"536",name:"Q{}original-name",slot:"7"},{N:"true"},{N:"let",line:"539","var":"Q{}prefix",as:"?",slot:"11",eval:"7",C:[{N:"first",C:[{N:"ifCall",name:"Q{http://www.w3.org/2005/xpath-functions/map}get",type:"*",C:[{N:"varRef",name:"Q{}namespace-aliases",slot:"8"},{N:"varRef",name:"Q{}original-uri",slot:"9"}]}]},{N:"fn",line:"546",name:"QName",C:[{N:"varRef",name:"Q{}new-uri",slot:"10"}, +{N:"fn",name:"concat",C:[{N:"choose",C:[{N:"vc",op:"eq",onEmpty:"0",comp:"GAC|http://www.w3.org/2005/xpath-functions/collation/codepoint",C:[{N:"atomSing",card:"?",diag:"1|0||eq",C:[{N:"varRef",name:"Q{}prefix",slot:"11"}]},{N:"str",val:"#default"}]},{N:"empty"},{N:"true"},{N:"fn",name:"concat",C:[{N:"atomSing",card:"?",diag:"0|0||fn:concat",C:[{N:"varRef",name:"Q{}prefix",slot:"11"}]},{N:"str",val:":"}]}]},{N:"fn",name:"local-name-from-QName",C:[{N:"varRef",name:"Q{}original-name",slot:"7"}]}]}]}]}]}]}]}]}]}, +{N:"true"},{N:"check",card:"1",diag:"3|0|XTTE0570|attribute-name",C:[{N:"fn",name:"node-name",C:[{N:"dot",type:"1NA"}]}]}]},{N:"elem",line:"579",name:"att",nsuri:"http://ns.saxonica.com/xslt/export",flags:"d",C:[{N:"sequence",C:[{N:"att",name:"name",flags:"l",C:[{N:"fn",name:"string",C:[{N:"varRef",name:"Q{}attribute-name",slot:"6"}]}]},{N:"att",name:"nsuri",flags:"l",C:[{N:"convert",from:"AU",to:"AS",C:[{N:"fn",name:"namespace-uri-from-QName",C:[{N:"varRef",name:"Q{}attribute-name",slot:"6"}]}]}]}, +{N:"att",name:"sType",flags:"l",C:[{N:"gVarRef",name:"Q{}SJ.SINGLE_ATTRIBUTE",bSlot:"276"}]},{N:"varRef",line:"580",name:"Q{}attr",slot:"0"},{N:"callT",line:"581",name:"Q{}value-template",bSlot:"277"}]}]}]}]}]}]}]},{N:"templateRule",prec:"0",prio:"0.0",seq:"344",part:"4",rank:"1",minImp:"0",slots:"0",matches:"NA nQ{http://www.w3.org/1999/XSL/Transform}extension-element-prefixes",flags:"s",line:"71",module:"attributes.xsl",C:[{N:"p.nodeTest",role:"match",test:"NA nQ{http://www.w3.org/1999/XSL/Transform}extension-element-prefixes"}, +{N:"empty",role:"action"}]},{N:"templateRule",prec:"0",prio:"1.0",seq:"390",rank:"3",minImp:"0",slots:"0",matches:"NA nQ{http://ns.saxonica.com/xslt/export}precLabel",flags:"s",line:"1755",module:"XSLT-SEF-compiler.xsl",C:[{N:"p.nodeTest",role:"match",test:"NA nQ{http://ns.saxonica.com/xslt/export}precLabel"},{N:"empty",role:"action"}]},{N:"templateRule",prec:"0",prio:"1.0",seq:"211",rank:"3",minImp:"0",slots:"0",matches:"NA nQ{}namespace",flags:"s",line:"128",module:"creating-new-nodes.xsl",C:[{N:"p.withUpper", +role:"match",axis:"parent",upFirst:"false",C:[{N:"p.nodeTest",test:"NA nQ{}namespace"},{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}*"}]},{N:"att",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~",line:"129",name:"nsuri",C:[{N:"convert",from:"AZ",to:"AS",C:[{N:"data",C:[{N:"dot",type:"1NA nQ{}namespace"}]}]}]}]},{N:"templateRule",prec:"0",prio:"1.0", +seq:"244",rank:"3",minImp:"0",slots:"2",matches:"NA nQ{}group-adjacent",flags:"s",line:"82",module:"grouping.xsl",C:[{N:"p.withUpper",role:"match",axis:"parent",upFirst:"false",C:[{N:"p.nodeTest",test:"NA nQ{}group-adjacent"},{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}for-each-group"}]},{N:"sequence",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~", +line:"83",C:[{N:"param",name:"Q{}xpath-default-namespace",slot:"0",flags:"t",as:"?NA",C:[{N:"empty",role:"select"},{N:"treat",role:"conversion",as:"NA",diag:"8|0|XTTE0590|xpath-default-namespace",C:[{N:"check",card:"?",diag:"8|0|XTTE0590|xpath-default-namespace",C:[{N:"supplied",slot:"0"}]}]}]},{N:"param",line:"84",name:"Q{}default-collation",slot:"1",flags:"t",as:"?NA",C:[{N:"empty",role:"select"},{N:"treat",role:"conversion",as:"NA",diag:"8|0|XTTE0590|default-collation",C:[{N:"check",card:"?",diag:"8|0|XTTE0590|default-collation", +C:[{N:"supplied",slot:"1"}]}]}]},{N:"elem",line:"85",name:"data",nsuri:"http://ns.saxonica.com/xslt/export",flags:"d",C:[{N:"sequence",C:[{N:"att",name:"role",flags:"l",C:[{N:"str",val:"key"}]},{N:"choose",line:"87",C:[{N:"ufCall",name:"Q{MyFunctions}boolean-string",tailCall:"false",bSlot:"278",eval:"7 0",C:[{N:"check",card:"?",diag:"0|0||f:boolean-string",C:[{N:"slash",simple:"2",C:[{N:"axis",name:"parent",nodeTest:"N u[NE,ND]"},{N:"axis",name:"attribute",nodeTest:"NA nQ{}composite"}]}]},{N:"false"}]}, +{N:"elem",line:"88",name:"xpath",nsuri:"http://ns.saxonica.com/xslt/export",flags:"dl",C:[{N:"sequence",C:[{N:"att",name:"xpath",flags:"l",C:[{N:"convert",from:"AZ",to:"AS",C:[{N:"data",C:[{N:"dot",type:"1NA nQ{}group-adjacent"}]}]}]},{N:"att",name:"line",flags:"l",C:[{N:"convert",from:"ADI",to:"AS",C:[{N:"ufCall",name:"Q{MyFunctions}line-number",tailCall:"false",bSlot:"279",eval:"16",C:[{N:"dot",type:"1NA nQ{}group-adjacent"}]}]}]},{N:"varRef",line:"89",name:"Q{}xpath-default-namespace",slot:"0"}]}]}, +{N:"true"},{N:"elem",line:"93",name:"check",nsuri:"http://ns.saxonica.com/xslt/export",flags:"dl",C:[{N:"sequence",C:[{N:"att",name:"card",flags:"l",C:[{N:"str",val:"1"}]},{N:"att",module:"lib.xsl",line:"286",name:"diag",flags:"l",C:[{N:"gVarRef",name:"Q{http://saxon.sf.net/generated-variable}gg1194870779",bSlot:"280"}]},{N:"elem",line:"95",name:"xpath",nsuri:"http://ns.saxonica.com/xslt/export",flags:"dl",C:[{N:"sequence",C:[{N:"att",name:"xpath",flags:"l",C:[{N:"convert",from:"AZ",to:"AS",C:[{N:"data", +C:[{N:"dot",type:"1NA nQ{}group-adjacent"}]}]}]},{N:"att",name:"line",flags:"l",C:[{N:"convert",from:"ADI",to:"AS",C:[{N:"ufCall",name:"Q{MyFunctions}line-number",tailCall:"false",bSlot:"281",eval:"16",C:[{N:"dot",type:"1NA nQ{}group-adjacent"}]}]}]},{N:"varRef",line:"96",name:"Q{}xpath-default-namespace",slot:"0"}]}]}]}]}]}]}]},{N:"callT",line:"102",name:"Q{MyFunctions}AVT",bSlot:"282",flags:"t",C:[{N:"withParam",name:"Q{}avt-string",flags:"c",as:"?NA nQ{}collation",C:[{N:"check",line:"103",card:"?", +diag:"8|0|XTTE0590|avt-string",C:[{N:"slash",simple:"2",C:[{N:"axis",name:"parent",nodeTest:"N u[NE,ND]"},{N:"axis",name:"attribute",nodeTest:"NA nQ{}collation"}]}]}]},{N:"withParam",name:"Q{}default",flags:"c",as:"?AS",C:[{N:"treat",line:"104",as:"AS",diag:"8|0|XTTE0590|default",C:[{N:"check",card:"?",diag:"8|0|XTTE0590|default",C:[{N:"cvUntyped",to:"AS",diag:"8|0|XTTE0590|default",C:[{N:"data",diag:"8|0|XTTE0590|default",C:[{N:"first",C:[{N:"sequence",C:[{N:"varRef",name:"Q{}default-collation", +slot:"1"},{N:"str",val:"http://www.w3.org/2005/xpath-functions/collation/codepoint"}]}]}]}]}]}]}]},{N:"withParam",name:"Q{}role",flags:"c",as:"?NA",C:[{N:"treat",line:"105",as:"NA",diag:"8|0|XTTE0590|role",C:[{N:"check",card:"?",diag:"8|0|XTTE0590|role",C:[{N:"lookup",C:[{N:"gVarRef",name:"Q{}roles",bSlot:"283"},{N:"str",val:"collation"}]}]}]}]}]}]}]},{N:"templateRule",prec:"0",prio:"1.0",seq:"390",rank:"3",minImp:"0",slots:"0",matches:"NA nQ{http://ns.saxonica.com/xslt/export}lineNr",flags:"s",line:"1755", +module:"XSLT-SEF-compiler.xsl",C:[{N:"p.nodeTest",role:"match",test:"NA nQ{http://ns.saxonica.com/xslt/export}lineNr"},{N:"empty",role:"action"}]},{N:"templateRule",prec:"0",prio:"0.0",seq:"344",rank:"1",minImp:"0",slots:"0",matches:"NA nQ{http://www.w3.org/1999/XSL/Transform}xpath-default-namespace",flags:"s",line:"71",module:"attributes.xsl",C:[{N:"p.nodeTest",role:"match",test:"NA nQ{http://www.w3.org/1999/XSL/Transform}xpath-default-namespace"},{N:"empty",role:"action"}]},{N:"templateRule",prec:"0", +prio:"1.0",seq:"390",rank:"3",minImp:"0",slots:"0",matches:"NA nQ{http://ns.saxonica.com/xslt/export}baseUri",flags:"s",line:"1755",module:"XSLT-SEF-compiler.xsl",C:[{N:"p.nodeTest",role:"match",test:"NA nQ{http://ns.saxonica.com/xslt/export}baseUri"},{N:"empty",role:"action"}]},{N:"templateRule",prec:"0",prio:"1.0",seq:"390",rank:"3",minImp:"0",slots:"0",matches:"NA nQ{http://ns.saxonica.com/xslt/export}minImp",flags:"s",line:"1755",module:"XSLT-SEF-compiler.xsl",C:[{N:"p.nodeTest",role:"match", +test:"NA nQ{http://ns.saxonica.com/xslt/export}minImp"},{N:"empty",role:"action"}]},{N:"templateRule",prec:"0",prio:"0.0",seq:"344",part:"1",rank:"1",minImp:"0",slots:"0",matches:"NA nQ{http://www.w3.org/1999/XSL/Transform}expand-text",flags:"s",line:"71",module:"attributes.xsl",C:[{N:"p.nodeTest",role:"match",test:"NA nQ{http://www.w3.org/1999/XSL/Transform}expand-text"},{N:"empty",role:"action"}]},{N:"templateRule",prec:"0",prio:"1.0",seq:"245",rank:"3",minImp:"0",slots:"1",matches:"NA nQ{}group-ending-with", +flags:"s",line:"108",module:"grouping.xsl",C:[{N:"p.withUpper",role:"match",axis:"parent",upFirst:"false",C:[{N:"p.nodeTest",test:"NA nQ{}group-ending-with"},{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}for-each-group"}]},{N:"sequence",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~",line:"109",C:[{N:"param",name:"Q{}xpath-default-namespace", +slot:"0",flags:"t",as:"?NA",C:[{N:"empty",role:"select"},{N:"treat",role:"conversion",as:"NA",diag:"8|0|XTTE0590|xpath-default-namespace",C:[{N:"check",card:"?",diag:"8|0|XTTE0590|xpath-default-namespace",C:[{N:"supplied",slot:"0"}]}]}]},{N:"elem",line:"110",name:"pattern",nsuri:"http://ns.saxonica.com/xslt/export",flags:"d",C:[{N:"sequence",C:[{N:"att",name:"role",flags:"l",C:[{N:"str",val:"match"}]},{N:"att",name:"xpath",flags:"l",C:[{N:"convert",from:"AZ",to:"AS",C:[{N:"data",C:[{N:"dot",type:"1NA"}]}]}]}, +{N:"varRef",line:"111",name:"Q{}xpath-default-namespace",slot:"0"}]}]},{N:"elem",line:"113",name:"str",nsuri:"http://ns.saxonica.com/xslt/export",flags:"d",C:[{N:"sequence",C:[{N:"att",name:"role",flags:"l",C:[{N:"str",val:"collation"}]},{N:"att",name:"val",flags:"l",C:[{N:"str",val:"http://www.w3.org/2005/xpath-functions/collation/codepoint"}]}]}]}]}]},{N:"templateRule",prec:"0",prio:"1.0",seq:"243",rank:"3",minImp:"0",slots:"2",matches:"NA nQ{}group-by",flags:"s",line:"68",module:"grouping.xsl", +C:[{N:"p.withUpper",role:"match",axis:"parent",upFirst:"false",C:[{N:"p.nodeTest",test:"NA nQ{}group-by"},{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}for-each-group"}]},{N:"sequence",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~",line:"69",C:[{N:"param",name:"Q{}xpath-default-namespace",slot:"0",flags:"t",as:"?NA",C:[{N:"empty",role:"select"}, +{N:"treat",role:"conversion",as:"NA",diag:"8|0|XTTE0590|xpath-default-namespace",C:[{N:"check",card:"?",diag:"8|0|XTTE0590|xpath-default-namespace",C:[{N:"supplied",slot:"0"}]}]}]},{N:"param",line:"70",name:"Q{}default-collation",slot:"1",flags:"t",as:"?NA",C:[{N:"empty",role:"select"},{N:"treat",role:"conversion",as:"NA",diag:"8|0|XTTE0590|default-collation",C:[{N:"check",card:"?",diag:"8|0|XTTE0590|default-collation",C:[{N:"supplied",slot:"1"}]}]}]},{N:"elem",line:"73",name:"xpath",nsuri:"http://ns.saxonica.com/xslt/export", +flags:"d",C:[{N:"sequence",C:[{N:"att",name:"role",flags:"l",C:[{N:"str",val:"key"}]},{N:"att",name:"xpath",flags:"l",C:[{N:"fn",name:"concat",C:[{N:"str",val:"data(("},{N:"convert",from:"AZ",to:"AS",C:[{N:"data",C:[{N:"dot",type:"1NA nQ{}group-by"}]}]},{N:"str",val:"))"}]}]},{N:"att",name:"line",flags:"l",C:[{N:"convert",from:"ADI",to:"AS",C:[{N:"ufCall",name:"Q{MyFunctions}line-number",tailCall:"false",bSlot:"284",eval:"16",C:[{N:"dot",type:"1NA nQ{}group-by"}]}]}]},{N:"varRef",line:"74",name:"Q{}xpath-default-namespace", +slot:"0"}]}]},{N:"callT",line:"76",name:"Q{MyFunctions}AVT",bSlot:"285",flags:"t",C:[{N:"withParam",name:"Q{}avt-string",flags:"c",as:"?NA nQ{}collation",C:[{N:"check",line:"77",card:"?",diag:"8|0|XTTE0590|avt-string",C:[{N:"slash",simple:"2",C:[{N:"axis",name:"parent",nodeTest:"N u[NE,ND]"},{N:"axis",name:"attribute",nodeTest:"NA nQ{}collation"}]}]}]},{N:"withParam",name:"Q{}default",flags:"c",as:"?AS",C:[{N:"treat",line:"78",as:"AS",diag:"8|0|XTTE0590|default",C:[{N:"check",card:"?",diag:"8|0|XTTE0590|default", +C:[{N:"cvUntyped",to:"AS",diag:"8|0|XTTE0590|default",C:[{N:"data",diag:"8|0|XTTE0590|default",C:[{N:"first",C:[{N:"sequence",C:[{N:"varRef",name:"Q{}default-collation",slot:"1"},{N:"str",val:"http://www.w3.org/2005/xpath-functions/collation/codepoint"}]}]}]}]}]}]}]},{N:"withParam",name:"Q{}role",flags:"c",as:"?NA",C:[{N:"treat",line:"79",as:"NA",diag:"8|0|XTTE0590|role",C:[{N:"check",card:"?",diag:"8|0|XTTE0590|role",C:[{N:"lookup",C:[{N:"gVarRef",name:"Q{}roles",bSlot:"286"},{N:"str",val:"collation"}]}]}]}]}]}]}]}, +{N:"templateRule",prec:"0",prio:"0.0",seq:"344",part:"6",rank:"1",minImp:"0",slots:"0",matches:"NA nQ{http://www.w3.org/1999/XSL/Transform}default-mode",flags:"s",line:"71",module:"attributes.xsl",C:[{N:"p.nodeTest",role:"match",test:"NA nQ{http://www.w3.org/1999/XSL/Transform}default-mode"},{N:"empty",role:"action"}]},{N:"templateRule",prec:"0",prio:"1.0",seq:"384",rank:"3",minImp:"0",slots:"0",matches:"NA nQ{}as",flags:"s",line:"1713",module:"XSLT-SEF-compiler.xsl",C:[{N:"p.withUpper",role:"match", +axis:"parent",upFirst:"false",C:[{N:"p.nodeTest",test:"NA nQ{}as"},{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}*"}]},{N:"compAtt",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ saxon=~ t=MyTypes xs=~ xsl=~ xml=~",line:"1714",C:[{N:"fn",role:"name",name:"name",C:[{N:"dot",type:"1NA nQ{}as"}]},{N:"fn",role:"select",name:"replace",C:[{N:"cvUntyped",to:"AS",C:[{N:"data", +diag:"0|0||fn:replace",C:[{N:"dot",type:"1NA nQ{}as"}]}]},{N:"str",val:"\\s+"},{N:"str",val:""},{N:"str",val:""}]}]}]},{N:"templateRule",prec:"0",prio:"0.0",seq:"229",rank:"1",minImp:"0",slots:"0",matches:"NA nQ{http://ns.saxonica.com/xslt/export}exclude",flags:"s",line:"585",module:"creating-new-nodes.xsl",C:[{N:"p.nodeTest",role:"match",test:"NA nQ{http://ns.saxonica.com/xslt/export}exclude"},{N:"empty",role:"action"}]},{N:"templateRule",prec:"0",prio:"1.0",seq:"388",rank:"3",minImp:"0",slots:"0", +matches:"NA nQ{http://ns.saxonica.com/xslt/export}ns",flags:"s",line:"1744",module:"XSLT-SEF-compiler.xsl",C:[{N:"p.nodeTest",role:"match",test:"NA nQ{http://ns.saxonica.com/xslt/export}ns"},{N:"choose",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ saxon=~ t=MyTypes xs=~ xsl=~ xml=~",line:"1745",C:[{N:"fn",name:"not",C:[{N:"gc",op:"=",card:"N:1",comp:"GAC|http://www.w3.org/2005/xpath-functions/collation/codepoint", +C:[{N:"data",diag:"1|1||=",C:[{N:"slash",simple:"2",C:[{N:"slash",simple:"2",C:[{N:"axis",name:"parent",nodeTest:"N u[NE,ND]"},{N:"axis",name:"parent",nodeTest:"N u[NE,ND]"}]},{N:"axis",name:"attribute",nodeTest:"NA nQ{http://ns.saxonica.com/xslt/export}ns"}]}]},{N:"data",diag:"1|0||=",C:[{N:"dot",type:"1NA nQ{http://ns.saxonica.com/xslt/export}ns"}]}]}]},{N:"att",line:"1746",name:"ns",C:[{N:"convert",from:"AZ",to:"AS",C:[{N:"data",C:[{N:"dot",type:"1NA nQ{http://ns.saxonica.com/xslt/export}ns"}]}]}]}]}]}, +{N:"templateRule",prec:"0",prio:"0.0",seq:"344",part:"2",rank:"1",minImp:"0",slots:"0",matches:"NA nQ{http://www.w3.org/1999/XSL/Transform}inherit-namespaces",flags:"s",line:"71",module:"attributes.xsl",C:[{N:"p.nodeTest",role:"match",test:"NA nQ{http://www.w3.org/1999/XSL/Transform}inherit-namespaces"},{N:"empty",role:"action"}]},{N:"templateRule",prec:"0",prio:"0.0",seq:"344",part:"7",rank:"1",minImp:"0",slots:"0",matches:"NA nQ{http://www.w3.org/1999/XSL/Transform}version",flags:"s",line:"71", +module:"attributes.xsl",C:[{N:"p.nodeTest",role:"match",test:"NA nQ{http://www.w3.org/1999/XSL/Transform}version"},{N:"empty",role:"action"}]},{N:"templateRule",prec:"0",prio:"1.0",seq:"200",rank:"3",minImp:"0",slots:"2",matches:"NA nQ{}use-attribute-sets",flags:"s",line:"287",module:"callable-components.xsl",C:[{N:"p.withUpper",role:"match",axis:"parent",upFirst:"false",C:[{N:"p.nodeTest",test:"NA nQ{}use-attribute-sets"},{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}*"}]},{N:"sequence", +role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ saxon=~ t=MyTypes xs=~ xsl=~ xml=~",line:"288",C:[{N:"param",name:"Q{}defined-attribute-sets",slot:"0",flags:"t",as:"*AS",C:[{N:"empty",role:"select"},{N:"treat",role:"conversion",as:"AS",diag:"8|0|XTTE0590|defined-attribute-sets",C:[{N:"cvUntyped",to:"AS",diag:"8|0|XTTE0590|defined-attribute-sets",C:[{N:"data",diag:"8|0|XTTE0590|defined-attribute-sets", +C:[{N:"supplied",slot:"0"}]}]}]}]},{N:"let",line:"289","var":"Q{}this",as:"1",slot:"1",eval:"16",C:[{N:"dot",type:"1NA"},{N:"forEach",line:"290",C:[{N:"fn",name:"tokenize",C:[{N:"cvUntyped",to:"AS",C:[{N:"data",diag:"0|0||fn:tokenize",C:[{N:"dot",type:"1NA"}]}]}]},{N:"sequence",line:"291",C:[{N:"choose",C:[{N:"fn",name:"not",C:[{N:"gc",op:"=",card:"N:1",comp:"GAC|http://www.w3.org/2005/xpath-functions/collation/codepoint",C:[{N:"varRef",name:"Q{}defined-attribute-sets",slot:"0"},{N:"dot",type:"1AS"}]}]}, +{N:"ufCall",line:"292",name:"Q{MyFunctions}syntax-error-at",tailCall:"false",bSlot:"287",eval:"0 16 6",C:[{N:"str",val:"XTSE0710"},{N:"fn",name:"concat",C:[{N:"str",val:'Undefined attribute set "'},{N:"dot",type:"1AS"},{N:"str",val:'"'}]},{N:"varRef",name:"Q{}this",slot:"1"}]}]},{N:"elem",line:"294",name:"useAS",nsuri:"http://ns.saxonica.com/xslt/export",flags:"d",C:[{N:"sequence",C:[{N:"att",name:"name",flags:"l",C:[{N:"dot",type:"1AS"}]},{N:"att",name:"bSlot",flags:"l",C:[{N:"str",val:""}]},{N:"att", +name:"sType",flags:"l",C:[{N:"gVarRef",name:"Q{}SJ.MULIPLE_ATTRIBUTE",bSlot:"288"}]}]}]}]}]}]}]}]},{N:"templateRule",prec:"0",prio:"0.0",seq:"344",part:"5",rank:"1",minImp:"0",slots:"0",matches:"NA nQ{http://www.w3.org/1999/XSL/Transform}exclude-result-prefixes",flags:"s",line:"71",module:"attributes.xsl",C:[{N:"p.nodeTest",role:"match",test:"NA nQ{http://www.w3.org/1999/XSL/Transform}exclude-result-prefixes"},{N:"empty",role:"action"}]},{N:"templateRule",prec:"0",prio:"0.5",seq:"383",rank:"2",minImp:"0", +slots:"0",matches:"NA nQ{}select",flags:"s",line:"1709",module:"XSLT-SEF-compiler.xsl",C:[{N:"p.withUpper",role:"match",axis:"parent",upFirst:"false",C:[{N:"p.nodeTest",test:"NA nQ{}select"},{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}*"}]},{N:"applyT",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ saxon=~ t=MyTypes xs=~ xsl=~ xml=~",line:"1710",mode:"Q{}create.xpath", +flags:"t",bSlot:"289",C:[{N:"dot",role:"select",type:"1NA nQ{}select"}]}]},{N:"templateRule",prec:"0",prio:"1.0",seq:"200",rank:"3",minImp:"0",slots:"2",matches:"NA nQ{http://www.w3.org/1999/XSL/Transform}use-attribute-sets",flags:"s",line:"287",module:"callable-components.xsl",C:[{N:"p.nodeTest",role:"match",test:"NA nQ{http://www.w3.org/1999/XSL/Transform}use-attribute-sets"},{N:"sequence",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ saxon=~ t=MyTypes xs=~ xsl=~ xml=~", +line:"288",C:[{N:"param",name:"Q{}defined-attribute-sets",slot:"0",flags:"t",as:"*AS",C:[{N:"empty",role:"select"},{N:"treat",role:"conversion",as:"AS",diag:"8|0|XTTE0590|defined-attribute-sets",C:[{N:"cvUntyped",to:"AS",diag:"8|0|XTTE0590|defined-attribute-sets",C:[{N:"data",diag:"8|0|XTTE0590|defined-attribute-sets",C:[{N:"supplied",slot:"0"}]}]}]}]},{N:"let",line:"289","var":"Q{}this",as:"1",slot:"1",eval:"16",C:[{N:"dot",type:"1NA"},{N:"forEach",line:"290",C:[{N:"fn",name:"tokenize",C:[{N:"cvUntyped", +to:"AS",C:[{N:"data",diag:"0|0||fn:tokenize",C:[{N:"dot",type:"1NA"}]}]}]},{N:"sequence",line:"291",C:[{N:"choose",C:[{N:"fn",name:"not",C:[{N:"gc",op:"=",card:"N:1",comp:"GAC|http://www.w3.org/2005/xpath-functions/collation/codepoint",C:[{N:"varRef",name:"Q{}defined-attribute-sets",slot:"0"},{N:"dot",type:"1AS"}]}]},{N:"ufCall",line:"292",name:"Q{MyFunctions}syntax-error-at",tailCall:"false",bSlot:"287",eval:"0 16 6",C:[{N:"str",val:"XTSE0710"},{N:"fn",name:"concat",C:[{N:"str",val:'Undefined attribute set "'}, +{N:"dot",type:"1AS"},{N:"str",val:'"'}]},{N:"varRef",name:"Q{}this",slot:"1"}]}]},{N:"elem",line:"294",name:"useAS",nsuri:"http://ns.saxonica.com/xslt/export",flags:"d",C:[{N:"sequence",C:[{N:"att",name:"name",flags:"l",C:[{N:"dot",type:"1AS"}]},{N:"att",name:"bSlot",flags:"l",C:[{N:"str",val:""}]},{N:"att",name:"sType",flags:"l",C:[{N:"gVarRef",name:"Q{}SJ.MULIPLE_ATTRIBUTE",bSlot:"288"}]}]}]}]}]}]}]}]},{N:"templateRule",prec:"0",prio:"1.0",seq:"245",rank:"3",minImp:"0",slots:"1",matches:"NA nQ{}group-starting-with", +flags:"s",line:"108",module:"grouping.xsl",C:[{N:"p.withUpper",role:"match",axis:"parent",upFirst:"false",C:[{N:"p.nodeTest",test:"NA nQ{}group-starting-with"},{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}for-each-group"}]},{N:"sequence",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~",line:"109",C:[{N:"param",name:"Q{}xpath-default-namespace", +slot:"0",flags:"t",as:"?NA",C:[{N:"empty",role:"select"},{N:"treat",role:"conversion",as:"NA",diag:"8|0|XTTE0590|xpath-default-namespace",C:[{N:"check",card:"?",diag:"8|0|XTTE0590|xpath-default-namespace",C:[{N:"supplied",slot:"0"}]}]}]},{N:"elem",line:"110",name:"pattern",nsuri:"http://ns.saxonica.com/xslt/export",flags:"d",C:[{N:"sequence",C:[{N:"att",name:"role",flags:"l",C:[{N:"str",val:"match"}]},{N:"att",name:"xpath",flags:"l",C:[{N:"convert",from:"AZ",to:"AS",C:[{N:"data",C:[{N:"dot",type:"1NA"}]}]}]}, +{N:"varRef",line:"111",name:"Q{}xpath-default-namespace",slot:"0"}]}]},{N:"elem",line:"113",name:"str",nsuri:"http://ns.saxonica.com/xslt/export",flags:"d",C:[{N:"sequence",C:[{N:"att",name:"role",flags:"l",C:[{N:"str",val:"collation"}]},{N:"att",name:"val",flags:"l",C:[{N:"str",val:"http://www.w3.org/2005/xpath-functions/collation/codepoint"}]}]}]}]}]},{N:"templateRule",prec:"0",prio:"0.0",seq:"344",part:"3",rank:"1",minImp:"0",slots:"0",matches:"NA nQ{http://www.w3.org/1999/XSL/Transform}default-collation", +flags:"s",line:"71",module:"attributes.xsl",C:[{N:"p.nodeTest",role:"match",test:"NA nQ{http://www.w3.org/1999/XSL/Transform}default-collation"},{N:"empty",role:"action"}]},{N:"templateRule",prec:"0",prio:"2.0",seq:"198",rank:"7",minImp:"0",slots:"0",matches:"NA nQ{}name",flags:"s",line:"280",module:"callable-components.xsl",C:[{N:"p.withUpper",role:"match",axis:"parent",upFirst:"false",C:[{N:"p.withPredicate",C:[{N:"p.nodeTest",test:"NA nQ{}name"},{N:"vc",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ saxon=~ t=MyTypes xs=~ xsl=~ xml=~", +line:"280",op:"eq",onEmpty:"0",comp:"CCC",C:[{N:"cast",flags:"a",as:"1AS",C:[{N:"data",diag:"1|0||=",C:[{N:"dot",type:"1NA nQ{}name"}]}]},{N:"str",val:"xsl:initial-template"}]}]},{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}template"}]},{N:"att",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ saxon=~ t=MyTypes xs=~ xsl=~ xml=~",line:"281",name:"name",C:[{N:"str",val:"Q{http://www.w3.org/1999/XSL/Transform}initial-template"}]}]}, +{N:"templateRule",prec:"0",prio:"1.0",seq:"389",rank:"3",minImp:"0",slots:"0",matches:"NA nQ{http://ns.saxonica.com/xslt/export}defaultElementNS",flags:"s",line:"1750",module:"XSLT-SEF-compiler.xsl",C:[{N:"p.nodeTest",role:"match",test:"NA nQ{http://ns.saxonica.com/xslt/export}defaultElementNS"},{N:"att",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ saxon=~ t=MyTypes xs=~ xsl=~ xml=~", +line:"1751",name:"defaultElementNS",C:[{N:"convert",from:"AZ",to:"AS",C:[{N:"data",C:[{N:"dot",type:"1NA nQ{http://ns.saxonica.com/xslt/export}defaultElementNS"}]}]}]}]},{N:"templateRule",prec:"0",prio:"1.0",seq:"252",rank:"3",minImp:"0",slots:"0",matches:"NA nQ{}use-accumulators",flags:"s",line:"54",module:"merging.xsl",C:[{N:"p.withUpper",role:"match",axis:"parent",upFirst:"false",C:[{N:"p.nodeTest",test:"NA nQ{}use-accumulators"},{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}merge-source"}]}, +{N:"att",role:"action",ns:"=http://ns.saxonica.com/xslt/export array=~ doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~",line:"55",name:"accum",C:[{N:"convert",from:"AZ",to:"AS",C:[{N:"data",C:[{N:"dot",type:"1NA nQ{}use-accumulators"}]}]}]}]},{N:"templateRule",prec:"0",prio:"1.0",seq:"147",rank:"3",minImp:"0",slots:"1",matches:"NA nQ{}use-accumulators",flags:"s",line:"56",module:"rules.xsl",C:[{N:"p.withUpper", +role:"match",axis:"parent",upFirst:"false",C:[{N:"p.nodeTest",test:"NA nQ{}use-accumulators"},{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}mode"}]},{N:"sequence",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~",line:"57",C:[{N:"param",name:"Q{}accumulators",slot:"0",flags:"t",as:"*NE",C:[{N:"empty",role:"select"},{N:"treat",role:"conversion", +as:"NE",diag:"8|0|XTTE0590|accumulators",C:[{N:"supplied",slot:"0"}]}]},{N:"att",line:"64",name:"useAcc",C:[{N:"fn",name:"string-join",C:[{N:"convert",from:"A",to:"AS",C:[{N:"choose",C:[{N:"vc",op:"eq",onEmpty:"0",comp:"GAC|http://www.w3.org/2005/xpath-functions/collation/codepoint",C:[{N:"cast",flags:"a",as:"1AS",C:[{N:"data",diag:"1|0||=",C:[{N:"dot",type:"1NA nQ{}use-accumulators"}]}]},{N:"str",val:"#all"}]},{N:"fn",name:"string-join",C:[{N:"data",diag:"0|0||fn:string-join",C:[{N:"conditionalSort", +C:[{N:"fn",name:"exists",C:[{N:"tail",start:"2",C:[{N:"varRef",name:"Q{}accumulators",slot:"0"}]}]},{N:"docOrder",intra:"0",C:[{N:"slash",simple:"2",C:[{N:"varRef",name:"Q{}accumulators",slot:"0"},{N:"axis",name:"attribute",nodeTest:"NA nQ{}name"}]}]}]}]},{N:"str",val:" "}]},{N:"true"},{N:"data",C:[{N:"dot",type:"1NA nQ{}use-accumulators"}]}]}]},{N:"str",val:" "}]}]}]}]},{N:"templateRule",prec:"0",prio:"1.15",seq:"151",rank:"5",minImp:"0",slots:"0",matches:"NA nQ{}mode",flags:"s",line:"165",module:"rules.xsl", +C:[{N:"p.withUpper",role:"match",axis:"parent",upFirst:"false",C:[{N:"p.withPredicate",C:[{N:"p.nodeTest",test:"NA nQ{}mode"},{N:"vc",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~",line:"165",op:"eq",onEmpty:"0",comp:"CCC",C:[{N:"cast",flags:"a",as:"1AS",C:[{N:"data",diag:"1|0||=",C:[{N:"dot",type:"1NA nQ{}mode"}]}]},{N:"str",val:"#current"}]}]},{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}*"}]}, +{N:"choose",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~",line:"167",C:[{N:"fn",name:"exists",C:[{N:"sequence",C:[{N:"fn",name:"reverse",C:[{N:"slash",simple:"1",C:[{N:"dot",type:"1NA nQ{}mode"},{N:"axis",name:"ancestor",nodeTest:"NE nQ{http://www.w3.org/1999/XSL/Transform}function"}]}]},{N:"fn",name:"reverse",C:[{N:"filter",flags:"b",C:[{N:"slash",simple:"1", +C:[{N:"dot",type:"1NA nQ{}mode"},{N:"axis",name:"ancestor",nodeTest:"NE nQ{http://www.w3.org/1999/XSL/Transform}variable"}]},{N:"slash",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",module:"normalize.xsl",line:"795",C:[{N:"dot",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~", +module:"rules.xsl",line:"167",type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}variable"},{N:"fn",name:"exists",C:[{N:"axis",name:"parent",nodeTest:"NE u[NE u[NE nQ{http://www.w3.org/1999/XSL/Transform}stylesheet,NE nQ{http://www.w3.org/1999/XSL/Transform}transform],NE nQ{http://www.w3.org/1999/XSL/Transform}package]"}]}]}]}]}]}]},{N:"att",line:"168",name:"mode",C:[{N:"str",val:"#unnamed"}]},{N:"true"},{N:"att",line:"171",name:"flags",C:[{N:"str",val:"c"}]}]}]},{N:"templateRule",prec:"0",prio:"1.1", +seq:"152",rank:"4",minImp:"0",slots:"0",matches:"NA nQ{}mode",flags:"s",line:"175",module:"rules.xsl",C:[{N:"p.withUpper",role:"match",axis:"parent",upFirst:"false",C:[{N:"p.nodeTest",test:"NA nQ{}mode"},{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}*"}]},{N:"copyOf",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~",line:"176",flags:"c",C:[{N:"dot", +type:"1NA nQ{}mode"}]}]},{N:"templateRule",prec:"0",prio:"-0.5",seq:"230",rank:"0",minImp:"0",slots:"2",matches:"NT",flags:"s",as:"1NE",line:"587",module:"creating-new-nodes.xsl",C:[{N:"p.nodeTest",role:"match",test:"NT"},{N:"check",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~",line:"588",card:"1",diag:'7|0|XTTE0505|match="text()" mode="sef"',C:[{N:"sequence", +C:[{N:"param",name:"Q{}attr",slot:"0",as:"*NA",C:[{N:"empty",role:"select"},{N:"treat",role:"conversion",as:"NA",diag:"8|0|XTTE0590|attr",C:[{N:"supplied",slot:"0"}]}]},{N:"param",line:"590",name:"Q{}expand-text",slot:"1",flags:"t",as:"1AB",C:[{N:"false",role:"select"},{N:"treat",role:"conversion",as:"AB",diag:"8|0|XTTE0590|expand-text",C:[{N:"check",card:"1",diag:"8|0|XTTE0590|expand-text",C:[{N:"cvUntyped",to:"AB",diag:"8|0|XTTE0590|expand-text",C:[{N:"data",diag:"8|0|XTTE0590|expand-text",C:[{N:"supplied", +slot:"1"}]}]}]}]}]},{N:"choose",line:"595",C:[{N:"varRef",name:"Q{}expand-text",slot:"1"},{N:"callT",line:"596",name:"Q{}value-template",bSlot:"290",flags:"t",C:[{N:"withParam",name:"Q{}attr",flags:"c",as:"*NA",C:[{N:"varRef",line:"597",name:"Q{}attr",slot:"0"}]}]},{N:"true"},{N:"elem",line:"606",name:"valueOf",nsuri:"http://ns.saxonica.com/xslt/export",flags:"d",C:[{N:"sequence",C:[{N:"att",name:"sType",flags:"l",C:[{N:"gVarRef",name:"Q{}SJ.SINGLE_TEXT",bSlot:"291"}]},{N:"varRef",line:"607",name:"Q{}attr", +slot:"0"},{N:"elem",line:"608",name:"str",nsuri:"http://ns.saxonica.com/xslt/export",flags:"dl",C:[{N:"att",name:"val",flags:"l",C:[{N:"convert",from:"AZ",to:"AS",C:[{N:"data",C:[{N:"dot",type:"1NT"}]}]}]}]}]}]}]}]}]}]}]}]},{N:"co",id:"220",binds:"94",C:[{N:"globalVariable",name:"Q{http://saxon.sf.net/generated-variable}gg98264771",as:"*NE",line:"135",module:"sequenceType.xsl",visibility:"PRIVATE",C:[{N:"slash",ns:"err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ saxon=~ t=MyTypes xs=~ xsl=~ xml=~", +line:"135",simple:"1",C:[{N:"gVarRef",name:"Q{}type.hierarchy.tree",bSlot:"0"},{N:"axis",name:"descendant",nodeTest:"NE"}]}]}]},{N:"co",id:"273",binds:"",C:[{N:"globalVariable",name:"Q{}TypeHierarchy.SAME_TYPE",as:"1AS",line:"162",module:"type.xsl",visibility:"PRIVATE",flags:"s",C:[{N:"str",val:"EQ"}]}]},{N:"co",id:"274",binds:"",C:[{N:"function",name:"Q{MyTypes}toString",line:"323",module:"type.xsl",eval:"8",flags:"pU",as:"1AS",slots:"1",C:[{N:"arg",name:"Q{}type",as:"1FM"},{N:"fn",role:"body",ns:"doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~", +line:"325",name:"serialize",C:[{N:"varRef",name:"Q{}type",slot:"0"},{N:"map",size:"1",C:[{N:"str",val:"method"},{N:"str",val:"json"}]}]}]}]},{N:"co",id:"275",binds:"",C:[{N:"globalVariable",name:"Q{}ST.SINGLE_TEXT",as:"1FM k[AS] v[1AS]",line:"33",module:"sequenceType.xsl",visibility:"PRIVATE",C:[{N:"map",size:"2",C:[{N:"str",val:"o"},{N:"str",val:"1"},{N:"str",val:"p"},{N:"str",val:"NT"}]}]}]},{N:"co",id:"120",binds:"276 277 278 279 171 119 119",C:[{N:"globalVariable",name:"Q{}literalTypes",as:"1FM k[AS] v[1F]", +line:"1007",module:"type.xsl",visibility:"PRIVATE",C:[{N:"ifCall",ns:"doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~",line:"1007",name:"Q{http://www.w3.org/2005/xpath-functions/map}merge",type:"1FM",C:[{N:"sequence",C:[{N:"ifCall",name:"Q{http://www.w3.org/2005/xpath-functions/map}entry",type:"1FM",C:[{N:"str",val:"dec"},{N:"gVarRef",name:"Q{}ST.SINGLE_DECIMAL",bSlot:"0"}]},{N:"ifCall",name:"Q{http://www.w3.org/2005/xpath-functions/map}entry", +type:"1FM",C:[{N:"str",val:"dbl"},{N:"gVarRef",name:"Q{}ST.SINGLE_DOUBLE",bSlot:"1"}]},{N:"ifCall",name:"Q{http://www.w3.org/2005/xpath-functions/map}entry",type:"1FM",C:[{N:"str",val:"int"},{N:"gVarRef",name:"Q{}ST.SINGLE_INTEGER",bSlot:"2"}]},{N:"ifCall",name:"Q{http://www.w3.org/2005/xpath-functions/map}entry",type:"1FM",C:[{N:"str",val:"flt"},{N:"gVarRef",name:"Q{}ST.SINGLE_FLOAT",bSlot:"3"}]},{N:"ifCall",name:"Q{http://www.w3.org/2005/xpath-functions/map}entry",type:"1FM",C:[{N:"str",val:"str"}, +{N:"gVarRef",name:"Q{}ST.SINGLE_STRING",bSlot:"4"}]},{N:"ifCall",name:"Q{http://www.w3.org/2005/xpath-functions/map}entry",type:"1FM",C:[{N:"str",val:"true"},{N:"gVarRef",name:"Q{}ST.SINGLE_BOOLEAN",bSlot:"5"}]},{N:"ifCall",name:"Q{http://www.w3.org/2005/xpath-functions/map}entry",type:"1FM",C:[{N:"str",val:"false"},{N:"gVarRef",name:"Q{}ST.SINGLE_BOOLEAN",bSlot:"6"}]}]},{N:"map",size:"2",C:[{N:"str",val:"duplicates"},{N:"str",val:"reject"},{N:"str",val:"duplicates-error-code"},{N:"str",val:"FOJS0003"}]}]}]}]}, +{N:"co",id:"173",binds:"",C:[{N:"globalVariable",name:"Q{}ST.SINGLE_ITEM",as:"1FM k[AS] v[1AS]",line:"11",module:"sequenceType.xsl",visibility:"PRIVATE",C:[{N:"map",size:"2",C:[{N:"str",val:"o"},{N:"str",val:"1"},{N:"str",val:"p"},{N:"str",val:""}]}]}]},{N:"co",id:"280",binds:"",C:[{N:"globalVariable",name:"Q{}ST.SINGLE_NODE",as:"1FM k[AS] v[1AS]",line:"32",module:"sequenceType.xsl",visibility:"PRIVATE",C:[{N:"map",size:"2",C:[{N:"str",val:"o"},{N:"str",val:"1"},{N:"str",val:"p"},{N:"str",val:"N"}]}]}]}, +{N:"co",id:"146",binds:"",C:[{N:"globalVariable",name:"Q{}ST.MULTIPLE_ITEM",as:"1FM k[AS] v[1AS]",line:"12",module:"sequenceType.xsl",visibility:"PRIVATE",C:[{N:"map",size:"2",C:[{N:"str",val:"o"},{N:"str",val:"*"},{N:"str",val:"p"},{N:"str",val:""}]}]}]},{N:"co",id:"261",binds:"61",C:[{N:"function",name:"Q{MyFunctions}record-namespaces",line:"15",module:"namespaces.xsl",eval:"16",flags:"pU",as:"?AS",slots:"9",C:[{N:"arg",name:"Q{}context",as:"1NE"},{N:"arg",name:"Q{}excluded",as:"*AS"},{N:"choose", +role:"body",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"19",C:[{N:"gc",op:"=",card:"N:1",comp:"CCC",C:[{N:"varRef",name:"Q{}excluded",slot:"1"},{N:"str",val:"#all"}]},{N:"str",val:""},{N:"true"},{N:"let",line:"23","var":"Q{}exNS",as:"?NA",slot:"2",eval:"7",C:[{N:"check",line:"139",card:"?",diag:"5|0|XTTE0780|f:innermostExNs#1",C:[{N:"forEach",C:[{N:"forEach",C:[{N:"varRef",line:"23", +name:"Q{}context",slot:"0"},{N:"first",C:[{N:"filter",flags:"b",C:[{N:"axis",name:"ancestor-or-self",nodeTest:"NE"},{N:"fn",name:"exists",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{http://ns.saxonica.com/xslt/export}ns"}]}]}]}]},{N:"axis",name:"attribute",nodeTest:"NA nQ{http://ns.saxonica.com/xslt/export}ns"}]}]},{N:"choose",line:"25",C:[{N:"or",op:"or",C:[{N:"fn",name:"empty",C:[{N:"varRef",name:"Q{}excluded",slot:"1"}]},{N:"fn",name:"empty",C:[{N:"varRef",name:"Q{}exNS",slot:"2"}]}]},{N:"fn", +line:"26",name:"string",C:[{N:"varRef",name:"Q{}exNS",slot:"2"}]},{N:"true"},{N:"let",line:"29","var":"Q{}all",slot:"3",eval:"8",C:[{N:"ifCall",line:"88",name:"Q{http://www.w3.org/2005/xpath-functions/map}merge",type:"1FM",C:[{N:"forEach",C:[{N:"fn",name:"tokenize",C:[{N:"fn",name:"string",C:[{N:"varRef",line:"29",name:"Q{}exNS",slot:"2"}]}]},{N:"let","var":"Q{}p",slot:"4",eval:"4",C:[{N:"fn",name:"tokenize",C:[{N:"dot",type:"1AS"},{N:"str",val:"="},{N:"str",val:""}]},{N:"let","var":"Q{}prefix",slot:"5", +eval:"7",C:[{N:"first",C:[{N:"varRef",name:"Q{}p",slot:"4"}]},{N:"let","var":"Q{}uri",slot:"6",eval:"7",C:[{N:"subscript",C:[{N:"varRef",name:"Q{}p",slot:"4"},{N:"int",val:"2"}]},{N:"ifCall",name:"Q{http://www.w3.org/2005/xpath-functions/map}entry",type:"1FM",C:[{N:"check",card:"1",diag:"0|0||map:entry",C:[{N:"varRef",name:"Q{}prefix",slot:"5"}]},{N:"choose",C:[{N:"vc",op:"eq",onEmpty:"0",comp:"CCC",C:[{N:"varRef",name:"Q{}uri",slot:"6"},{N:"str",val:"~"}]},{N:"ifCall",name:"Q{http://www.w3.org/2005/xpath-functions/map}get", +type:"*",C:[{N:"gVarRef",name:"Q{}known-namespaces",bSlot:"0"},{N:"check",card:"1",diag:"0|1||map:get",C:[{N:"varRef",name:"Q{}prefix",slot:"5"}]}]},{N:"true"},{N:"varRef",name:"Q{}uri",slot:"6"}]}]}]}]}]}]},{N:"map",size:"2",C:[{N:"str",val:"duplicates"},{N:"str",val:"use-first"},{N:"str",val:"duplicates-error-code"},{N:"str",val:"FOJS0003"}]}]},{N:"let",line:"32","var":"Q{http://saxon.sf.net/generated-variable}v0",as:"1FM",slot:"7",eval:"13",C:[{N:"check",card:"1",diag:"0|0||map:get",C:[{N:"varRef", +name:"Q{}all",slot:"3"}]},{N:"cvUntyped",line:"31",to:"AS",diag:"5|0|XTTE0780|f:record-namespaces#2",C:[{N:"cast",flags:"a",as:"1AZ",C:[{N:"fn",name:"string-join",C:[{N:"forEach",C:[{N:"filter",flags:"b",C:[{N:"ifCall",name:"Q{http://www.w3.org/2005/xpath-functions/map}keys",type:"*A",C:[{N:"check",card:"1",diag:"0|0||map:keys",C:[{N:"varRef",name:"Q{}all",slot:"3"}]}]},{N:"gc",op:"!=",card:"1:1",comp:"GAC|http://www.w3.org/2005/xpath-functions/collation/codepoint",C:[{N:"dot",type:"1A"},{N:"str", +val:"xml"}]}]},{N:"let",line:"32","var":"Q{}uri",slot:"8",eval:"4",C:[{N:"ifCall",name:"Q{http://www.w3.org/2005/xpath-functions/map}get",type:"*",C:[{N:"varRef",name:"Q{http://saxon.sf.net/generated-variable}v0",slot:"7"},{N:"dot",type:"1A"}]},{N:"choose",line:"33",C:[{N:"fn",name:"not",C:[{N:"gc",op:"=",card:"M:N",comp:"GAC|http://www.w3.org/2005/xpath-functions/collation/codepoint",C:[{N:"data",diag:"1|0||=",C:[{N:"varRef",name:"Q{}uri",slot:"8"}]},{N:"varRef",name:"Q{}excluded",slot:"1"}]}]}, +{N:"fn",line:"34",name:"concat",C:[{N:"dot",type:"1A"},{N:"str",val:"="},{N:"atomSing",card:"?",diag:"0|2||fn:concat",C:[{N:"varRef",name:"Q{}uri",slot:"8"}]}]}]}]}]},{N:"str",val:" "}]}]}]}]}]}]}]}]}]}]},{N:"co",id:"54",binds:"4 241 150 147",C:[{N:"mode",name:"Q{}serialization-property",onNo:"TC",flags:"W",patternSlots:"0",C:[{N:"templateRule",prec:"0",prio:"-0.25",seq:"202",rank:"1",minImp:"0",slots:"0",matches:"NA nQ{http://ns.saxonica.com/xslt/export}*",flags:"s",line:"112",module:"output.xsl", +C:[{N:"p.nodeTest",role:"match",test:"NA nQ{http://ns.saxonica.com/xslt/export}*"},{N:"empty",role:"action"}]},{N:"templateRule",prec:"0",prio:"-0.5",seq:"203",rank:"0",minImp:"0",slots:"1",matches:"NA",flags:"s",line:"114",module:"output.xsl",C:[{N:"p.nodeTest",role:"match",test:"NA"},{N:"sequence",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"115",C:[{N:"param", +name:"Q{}group",slot:"0",flags:"i",as:"+NA",C:[{N:"treat",role:"conversion",as:"NA",diag:"8|0|XTTE0590|group",C:[{N:"check",card:"+",diag:"8|0|XTTE0590|group",C:[{N:"supplied",slot:"0"}]}]}]},{N:"choose",line:"117",C:[{N:"vc",op:"gt",onEmpty:"0",comp:"CAVC",C:[{N:"fn",name:"count",C:[{N:"fn",name:"distinct-values",C:[{N:"data",diag:"0|0||fn:distinct-values",C:[{N:"varRef",name:"Q{}group",slot:"0"}]}]}]},{N:"int",val:"1"}]},{N:"ufCall",line:"120",name:"Q{MyFunctions}syntax-error-at",tailCall:"false", +bSlot:"0",eval:"0 16 16",C:[{N:"str",val:"XTSE1560"},{N:"fn",name:"concat",C:[{N:"str",val:"xsl:output declarations contain conflicting values for property "},{N:"fn",name:"name",C:[{N:"dot",type:"1NA"}]},{N:"str",val:":"},{N:"fn",name:"string-join",C:[{N:"fn",name:"distinct-values",C:[{N:"data",diag:"0|0||fn:distinct-values",C:[{N:"varRef",name:"Q{}group",slot:"0"}]}]},{N:"str",val:","}]}]},{N:"check",card:"1",diag:"0|2||f:syntax-error-at",C:[{N:"first",C:[{N:"varRef",name:"Q{}group",slot:"0"}]}]}]}]}, +{N:"choose",line:"123",C:[{N:"and",op:"and",C:[{N:"vc",op:"eq",onEmpty:"0",comp:"CCC",C:[{N:"fn",name:"local-name",C:[{N:"dot",type:"1NA"}]},{N:"str",val:"version"}]},{N:"vc",op:"eq",onEmpty:"0",comp:"CCC",C:[{N:"fn",name:"namespace-uri",C:[{N:"dot",type:"1NA"}]},{N:"str",val:""}]}]},{N:"elem",line:"125",name:"property",nsuri:"http://ns.saxonica.com/xslt/export",flags:"d",C:[{N:"sequence",C:[{N:"att",name:"name",flags:"l",C:[{N:"str",val:"version"}]},{N:"att",name:"value",flags:"l",C:[{N:"convert", +from:"AZ",to:"AS",C:[{N:"data",C:[{N:"dot",type:"1NA"}]}]}]}]}]},{N:"and",line:"127",op:"and",C:[{N:"gc",op:"=",card:"N:1",comp:"CCC",C:[{N:"gVarRef",name:"Q{}serialization-properties",bSlot:"1"},{N:"fn",name:"local-name",C:[{N:"dot",type:"1NA"}]}]},{N:"vc",op:"eq",onEmpty:"0",comp:"CCC",C:[{N:"fn",name:"namespace-uri",C:[{N:"dot",type:"1NA"}]},{N:"str",val:""}]}]},{N:"elem",line:"129",name:"property",nsuri:"http://ns.saxonica.com/xslt/export",flags:"d",C:[{N:"sequence",C:[{N:"att",name:"name",flags:"l", +C:[{N:"fn",name:"local-name",C:[{N:"dot",type:"1NA"}]}]},{N:"att",name:"value",flags:"l",C:[{N:"convert",from:"AZ",to:"AS",C:[{N:"data",C:[{N:"dot",type:"1NA"}]}]}]}]}]},{N:"vc",line:"131",op:"ne",onEmpty:"0",comp:"CCC",C:[{N:"fn",name:"namespace-uri",C:[{N:"dot",type:"1NA"}]},{N:"str",val:""}]},{N:"elem",line:"133",name:"property",nsuri:"http://ns.saxonica.com/xslt/export",flags:"d",C:[{N:"sequence",C:[{N:"att",name:"name",flags:"l",C:[{N:"ufCall",name:"Q{MyFunctions}EQName",tailCall:"false",bSlot:"2", +eval:"16 16",C:[{N:"fn",name:"name",C:[{N:"dot",type:"1NA"}]},{N:"check",card:"1",diag:"0|1||f:EQName",C:[{N:"axis",name:"parent",nodeTest:"N u[NE,ND]"}]}]}]},{N:"att",name:"value",flags:"l",C:[{N:"convert",from:"AZ",to:"AS",C:[{N:"data",C:[{N:"dot",type:"1NA"}]}]}]}]}]}]}]}]},{N:"templateRule",prec:"0",prio:"0.0",seq:"204",part:"1",rank:"2",minImp:"0",slots:"4",matches:"NA nQ{}suppress-indentation",flags:"s",line:"138",module:"output.xsl",C:[{N:"p.nodeTest",role:"match",test:"NA nQ{}suppress-indentation"}, +{N:"sequence",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"139",C:[{N:"param",name:"Q{}group",slot:"0",flags:"i",as:"+NA",C:[{N:"treat",role:"conversion",as:"NA",diag:"8|0|XTTE0590|group",C:[{N:"check",card:"+",diag:"8|0|XTTE0590|group",C:[{N:"supplied",slot:"0"}]}]}]},{N:"let",line:"140","var":"Q{}decl",as:"*N u[NE,ND]",slot:"1",eval:"4",C:[{N:"axis",name:"parent", +nodeTest:"N u[NE,ND]"},{N:"let",line:"142","var":"Q{http://saxon.sf.net/generated-variable}v1",as:"?AS",slot:"2",eval:"13",C:[{N:"convert",from:"AU",to:"AS",C:[{N:"fn",name:"namespace-uri-for-prefix",C:[{N:"str",val:""},{N:"check",card:"1",diag:"0|1||fn:namespace-uri-for-prefix",C:[{N:"varRef",name:"Q{}decl",slot:"1"}]}]}]},{N:"let","var":"Q{http://saxon.sf.net/generated-variable}v0",as:"1NE i[NE,N u[NE,ND]]",slot:"3",eval:"13",C:[{N:"check",card:"1",diag:"0|1||f:EQName",C:[{N:"varRef",name:"Q{}decl", +slot:"1"}]},{N:"elem",name:"property",nsuri:"http://ns.saxonica.com/xslt/export",flags:"d",C:[{N:"sequence",C:[{N:"att",name:"name",flags:"l",C:[{N:"fn",name:"local-name",C:[{N:"dot",type:"1NA"}]}]},{N:"att",name:"value",flags:"l",C:[{N:"fn",name:"string-join",C:[{N:"forEach",C:[{N:"forEach",C:[{N:"varRef",name:"Q{}group",slot:"0"},{N:"fn",name:"tokenize",C:[{N:"cvUntyped",to:"AS",C:[{N:"data",diag:"0|0||fn:tokenize",C:[{N:"dot",type:"1NA"}]}]}]}]},{N:"ufCall",name:"Q{MyFunctions}EQName",tailCall:"false", +bSlot:"3",eval:"16 6 0 6",C:[{N:"dot",type:"1AS"},{N:"varRef",name:"Q{http://saxon.sf.net/generated-variable}v0",slot:"3"},{N:"str",val:"XTSE0010"},{N:"varRef",name:"Q{http://saxon.sf.net/generated-variable}v1",slot:"2"}]}]},{N:"str",val:" "}]}]}]}]}]}]}]}]}]},{N:"templateRule",prec:"0",prio:"0.0",seq:"204",rank:"2",minImp:"0",slots:"4",matches:"NA nQ{}cdata-section-elements",flags:"s",line:"138",module:"output.xsl",C:[{N:"p.nodeTest",role:"match",test:"NA nQ{}cdata-section-elements"},{N:"sequence", +role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"139",C:[{N:"param",name:"Q{}group",slot:"0",flags:"i",as:"+NA",C:[{N:"treat",role:"conversion",as:"NA",diag:"8|0|XTTE0590|group",C:[{N:"check",card:"+",diag:"8|0|XTTE0590|group",C:[{N:"supplied",slot:"0"}]}]}]},{N:"let",line:"140","var":"Q{}decl",as:"*N u[NE,ND]",slot:"1",eval:"4",C:[{N:"axis",name:"parent",nodeTest:"N u[NE,ND]"}, +{N:"let",line:"142","var":"Q{http://saxon.sf.net/generated-variable}v1",as:"?AS",slot:"2",eval:"13",C:[{N:"convert",from:"AU",to:"AS",C:[{N:"fn",name:"namespace-uri-for-prefix",C:[{N:"str",val:""},{N:"check",card:"1",diag:"0|1||fn:namespace-uri-for-prefix",C:[{N:"varRef",name:"Q{}decl",slot:"1"}]}]}]},{N:"let","var":"Q{http://saxon.sf.net/generated-variable}v0",as:"1NE i[NE,N u[NE,ND]]",slot:"3",eval:"13",C:[{N:"check",card:"1",diag:"0|1||f:EQName",C:[{N:"varRef",name:"Q{}decl",slot:"1"}]},{N:"elem", +name:"property",nsuri:"http://ns.saxonica.com/xslt/export",flags:"d",C:[{N:"sequence",C:[{N:"att",name:"name",flags:"l",C:[{N:"fn",name:"local-name",C:[{N:"dot",type:"1NA"}]}]},{N:"att",name:"value",flags:"l",C:[{N:"fn",name:"string-join",C:[{N:"forEach",C:[{N:"forEach",C:[{N:"varRef",name:"Q{}group",slot:"0"},{N:"fn",name:"tokenize",C:[{N:"cvUntyped",to:"AS",C:[{N:"data",diag:"0|0||fn:tokenize",C:[{N:"dot",type:"1NA"}]}]}]}]},{N:"ufCall",name:"Q{MyFunctions}EQName",tailCall:"false",bSlot:"3",eval:"16 6 0 6", +C:[{N:"dot",type:"1AS"},{N:"varRef",name:"Q{http://saxon.sf.net/generated-variable}v0",slot:"3"},{N:"str",val:"XTSE0010"},{N:"varRef",name:"Q{http://saxon.sf.net/generated-variable}v1",slot:"2"}]}]},{N:"str",val:" "}]}]}]}]}]}]}]}]}]}]}]},{N:"co",id:"281",binds:"6 176",C:[{N:"globalVariable",name:"Q{}SJ.MULTIPLE_MAP",as:"1AS",line:"63",module:"sequenceType.xsl",visibility:"PRIVATE",C:[{N:"ufCall",ns:"err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ saxon=~ t=MyTypes xs=~ xsl=~ xml=~", +line:"63",name:"Q{MyTypes}unmarshalType",tailCall:"false",bSlot:"0",eval:"6",C:[{N:"gVarRef",name:"Q{}ST.MULTIPLE_MAP",bSlot:"1"}]}]}]},{N:"co",id:"189",binds:"189",C:[{N:"function",name:"Q{MyFunctions}requiresNodeTest",line:"1177",module:"xpath.xsl",eval:"16",flags:"pU",as:"1AB",slots:"1",C:[{N:"arg",name:"Q{}node",as:"1NE"},{N:"tailCallLoop",role:"body",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions js=~ map=~ saxon=~ t=MyTypes xs=~ xsl=~ xml=~", +line:"1188",C:[{N:"choose",C:[{N:"fn",name:"exists",C:[{N:"slash",simple:"1",C:[{N:"varRef",name:"Q{}node",slot:"0"},{N:"axis",name:"self",nodeTest:"NE u[NE nQ{http://ns.saxonica.com/xslt/export}axis,NE nQ{http://ns.saxonica.com/xslt/export}root]"}]}]},{N:"true"},{N:"fn",name:"exists",C:[{N:"slash",simple:"1",C:[{N:"varRef",name:"Q{}node",slot:"0"},{N:"axis",name:"self",nodeTest:"NE nQ{http://ns.saxonica.com/xslt/export}slash"}]}]},{N:"ufCall",name:"Q{MyFunctions}requiresNodeTest",tailCall:"self", +bSlot:"0",eval:"16",C:[{N:"check",card:"1",diag:"0|0||f:requiresNodeTest",C:[{N:"slash",C:[{N:"varRef",name:"Q{}node",slot:"0"},{N:"first",C:[{N:"axis",name:"child",nodeTest:"NE"}]}]}]}]},{N:"true"},{N:"false"}]}]}]}]},{N:"co",id:"263",binds:"103 98 99",C:[{N:"template",name:"Q{}constructSimpleContent",flags:"os",as:"1NE",line:"298",module:"creating-new-nodes.xsl",slots:"3",C:[{N:"sequence",role:"body",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~", +line:"299",C:[{N:"param",name:"Q{}static-context",slot:"0",flags:"t",as:"1FM",C:[{N:"map",role:"select",size:"0"},{N:"treat",role:"conversion",as:"FM",diag:"8|0|XTTE0590|static-context",C:[{N:"check",card:"1",diag:"8|0|XTTE0590|static-context",C:[{N:"supplied",slot:"0"}]}]}]},{N:"let",line:"321","var":"Q{}parts",as:"1",slot:"1",eval:"16",C:[{N:"check",line:"322",card:"1",diag:"3|0|XTTE0570|parts",C:[{N:"applyT",mode:"Q{}select.or.sequence",bSlot:"0",C:[{N:"dot",role:"select",flags:"a"}]}]},{N:"elem", +line:"325",name:"fn",nsuri:"http://ns.saxonica.com/xslt/export",flags:"d",C:[{N:"sequence",C:[{N:"att",name:"name",flags:"l",C:[{N:"str",val:"string-join"}]},{N:"lookup",line:"326",C:[{N:"gVarRef",name:"Q{}roles",bSlot:"1"},{N:"str",val:"select"}]},{N:"let",line:"327","var":"Q{}content",as:"1NE",slot:"2",eval:"9",C:[{N:"elem",line:"328",name:"constructSimpleContent",nsuri:"http://ns.saxonica.com/xslt/export",flags:"d",C:[{N:"varRef",line:"329",name:"Q{}parts",slot:"1"}]},{N:"sequence",line:"333", +C:[{N:"choose",C:[{N:"and",op:"and",C:[{N:"lookup",C:[{N:"varRef",name:"Q{}static-context",slot:"0"},{N:"str",val:"backward-compatibility"}]},{N:"fn",name:"empty",C:[{N:"slash",simple:"1",C:[{N:"treat",as:"N",diag:"14|2|XPTY0020|",C:[{N:"dot",flags:"a"}]},{N:"axis",name:"attribute",nodeTest:"NA nQ{}separator"}]}]}]},{N:"elem",line:"334",name:"first",nsuri:"http://ns.saxonica.com/xslt/export",flags:"dl",C:[{N:"varRef",line:"335",name:"Q{}content",slot:"2"}]},{N:"true"},{N:"varRef",line:"339",name:"Q{}content", +slot:"2"}]},{N:"choose",line:"343",C:[{N:"fn",name:"exists",C:[{N:"slash",simple:"1",C:[{N:"treat",as:"N",diag:"14|12|XPTY0020|",C:[{N:"dot",flags:"a"}]},{N:"axis",name:"self",nodeTest:"NE u[NE u[NE nQ{http://www.w3.org/1999/XSL/Transform}comment,NE nQ{http://www.w3.org/1999/XSL/Transform}processing-instruction],NE nQ{http://www.w3.org/1999/XSL/Transform}namespace]"}]}]},{N:"elem",line:"344",name:"str",nsuri:"http://ns.saxonica.com/xslt/export",flags:"dl",C:[{N:"att",name:"val",flags:"l",C:[{N:"str", +val:" "}]}]},{N:"fn",line:"346",name:"exists",C:[{N:"filter",flags:"b",C:[{N:"slash",simple:"1",C:[{N:"treat",as:"N",diag:"14|2|XPTY0020|",C:[{N:"dot",flags:"a"}]},{N:"axis",name:"attribute",nodeTest:"NA nQ{}separator"}]},{N:"fn",name:"contains",C:[{N:"cvUntyped",to:"AS",C:[{N:"data",diag:"0|0||fn:contains",C:[{N:"dot",type:"1NA nQ{}separator"}]}]},{N:"str",val:"{"}]}]}]},{N:"forEach",line:"347",C:[{N:"slash",simple:"1",C:[{N:"treat",as:"N",diag:"14|2|XPTY0020|",C:[{N:"dot",flags:"a"}]},{N:"axis", +name:"attribute",nodeTest:"NA nQ{}separator"}]},{N:"callT",line:"348",name:"Q{}value-template",bSlot:"2"}]},{N:"fn",line:"351",name:"exists",C:[{N:"slash",simple:"1",C:[{N:"treat",as:"N",diag:"14|2|XPTY0020|",C:[{N:"dot",flags:"a"}]},{N:"axis",name:"attribute",nodeTest:"NA nQ{}separator"}]}]},{N:"elem",line:"352",name:"str",nsuri:"http://ns.saxonica.com/xslt/export",flags:"dl",C:[{N:"att",name:"val",flags:"l",C:[{N:"convert",from:"AZ",to:"AS",C:[{N:"data",C:[{N:"slash",simple:"1",C:[{N:"treat",as:"N", +diag:"14|2|XPTY0020|",C:[{N:"dot",flags:"a"}]},{N:"axis",name:"attribute",nodeTest:"NA nQ{}separator"}]}]}]}]}]},{N:"true"},{N:"elem",line:"355",name:"str",nsuri:"http://ns.saxonica.com/xslt/export",flags:"dl",C:[{N:"att",name:"val",flags:"l",C:[{N:"choose",C:[{N:"fn",line:"324",name:"exists",C:[{N:"slash",simple:"1",C:[{N:"treat",as:"N",diag:"14|2|XPTY0020|",C:[{N:"dot",flags:"a"}]},{N:"axis",name:"attribute",nodeTest:"NA nQ{}select"}]}]},{N:"str",val:" "},{N:"true"},{N:"str",val:""}]}]}]}]}]}]}]}]}]}]}]}]}, +{N:"co",id:"282",binds:"",C:[{N:"function",name:"Q{MyFunctions}combinedRelationship",line:"296",module:"type.xsl",eval:"16",flags:"pU",as:"1AS",slots:"2",C:[{N:"arg",name:"Q{}rel1",as:"1AS"},{N:"arg",name:"Q{}rel2",as:"1AS"},{N:"choose",role:"body",ns:"doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~",line:"314",C:[{N:"vc",op:"eq",onEmpty:"0",comp:"CCC",C:[{N:"varRef",name:"Q{}rel1",slot:"0"},{N:"varRef",name:"Q{}rel2", +slot:"1"}]},{N:"varRef",name:"Q{}rel1",slot:"0"},{N:"gc",op:"=",card:"N:1",comp:"CCC",C:[{N:"sequence",C:[{N:"varRef",name:"Q{}rel1",slot:"0"},{N:"varRef",name:"Q{}rel2",slot:"1"}]},{N:"str",val:"DJ"}]},{N:"str",val:"DJ"},{N:"vc",op:"eq",onEmpty:"0",comp:"CCC",C:[{N:"varRef",name:"Q{}rel1",slot:"0"},{N:"str",val:"EQ"}]},{N:"varRef",name:"Q{}rel2",slot:"1"},{N:"vc",op:"eq",onEmpty:"0",comp:"CCC",C:[{N:"varRef",name:"Q{}rel2",slot:"1"},{N:"str",val:"EQ"}]},{N:"varRef",name:"Q{}rel1",slot:"0"},{N:"true"}, +{N:"str",val:"OV"}]}]}]},{N:"co",id:"283",binds:"61",C:[{N:"function",name:"Q{MyFunctions}decode-namespaces",line:"74",module:"namespaces.xsl",eval:"8",flags:"pU",as:"?FM",slots:"4",C:[{N:"arg",name:"Q{}ns",as:"*"},{N:"ifCall",role:"body",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"88",name:"Q{http://www.w3.org/2005/xpath-functions/map}merge",type:"1FM",C:[{N:"forEach",C:[{N:"fn", +name:"tokenize",C:[{N:"fn",name:"string",C:[{N:"check",card:"?",diag:"0|0||fn:string",C:[{N:"varRef",name:"Q{}ns",slot:"0"}]}]}]},{N:"let","var":"Q{}p",slot:"1",eval:"4",C:[{N:"fn",name:"tokenize",C:[{N:"dot",type:"1AS"},{N:"str",val:"="},{N:"str",val:""}]},{N:"let","var":"Q{}prefix",slot:"2",eval:"7",C:[{N:"first",C:[{N:"varRef",name:"Q{}p",slot:"1"}]},{N:"let","var":"Q{}uri",slot:"3",eval:"7",C:[{N:"subscript",C:[{N:"varRef",name:"Q{}p",slot:"1"},{N:"int",val:"2"}]},{N:"ifCall",name:"Q{http://www.w3.org/2005/xpath-functions/map}entry", +type:"1FM",C:[{N:"check",card:"1",diag:"0|0||map:entry",C:[{N:"varRef",name:"Q{}prefix",slot:"2"}]},{N:"choose",C:[{N:"vc",op:"eq",onEmpty:"0",comp:"CCC",C:[{N:"varRef",name:"Q{}uri",slot:"3"},{N:"str",val:"~"}]},{N:"ifCall",name:"Q{http://www.w3.org/2005/xpath-functions/map}get",type:"*",C:[{N:"gVarRef",name:"Q{}known-namespaces",bSlot:"0"},{N:"check",card:"1",diag:"0|1||map:get",C:[{N:"varRef",name:"Q{}prefix",slot:"2"}]}]},{N:"true"},{N:"varRef",name:"Q{}uri",slot:"3"}]}]}]}]}]}]},{N:"map",size:"2", +C:[{N:"str",val:"duplicates"},{N:"str",val:"use-first"},{N:"str",val:"duplicates-error-code"},{N:"str",val:"FOJS0003"}]}]}]}]},{N:"co",id:"284",binds:"61",C:[{N:"function",name:"Q{MyFunctions}encode-namespaces",line:"44",module:"namespaces.xsl",eval:"16",flags:"pU",as:"1AS",slots:"1",C:[{N:"arg",name:"Q{}context",as:"1NE"},{N:"choose",role:"body",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~", +line:"47",C:[{N:"fn",name:"exists",C:[{N:"slash",simple:"1",C:[{N:"varRef",name:"Q{}context",slot:"0"},{N:"axis",name:"attribute",nodeTest:"NA nQ{http://ns.saxonica.com/xslt/export}ns"}]}]},{N:"check",line:"48",card:"1",diag:"5|0|XTTE0780|f:encode-namespaces#1",C:[{N:"cvUntyped",to:"AS",diag:"5|0|XTTE0780|f:encode-namespaces#1",C:[{N:"data",diag:"5|0|XTTE0780|f:encode-namespaces#1",C:[{N:"slash",simple:"1",C:[{N:"varRef",name:"Q{}context",slot:"0"},{N:"axis",name:"attribute",nodeTest:"NA nQ{http://ns.saxonica.com/xslt/export}ns"}]}]}]}]}, +{N:"true"},{N:"fn",line:"58",name:"string-join",C:[{N:"forEach",C:[{N:"slash",simple:"1",C:[{N:"varRef",name:"Q{}context",slot:"0"},{N:"axis",name:"namespace",nodeTest:"NN"}]},{N:"fn",name:"concat",C:[{N:"fn",name:"name",C:[{N:"dot",type:"1NN"}]},{N:"str",val:"="},{N:"choose",C:[{N:"vc",op:"eq",onEmpty:"0",comp:"CCC",C:[{N:"ifCall",name:"Q{http://www.w3.org/2005/xpath-functions/map}get",type:"*",C:[{N:"gVarRef",name:"Q{}known-namespaces",bSlot:"0"},{N:"fn",name:"name",C:[{N:"dot",type:"1NN"}]}]}, +{N:"data",diag:"1|1||eq",C:[{N:"dot",type:"1NN"}]}]},{N:"str",val:"~"},{N:"true"},{N:"data",diag:"0|2||fn:concat",C:[{N:"dot",type:"1NN"}]}]}]}]},{N:"str",val:" "}]}]}]}]},{N:"co",id:"285",binds:"6 286",C:[{N:"globalVariable",name:"Q{}SJ.SINGLE_NCNAME",as:"1AS",line:"56",module:"sequenceType.xsl",visibility:"PRIVATE",C:[{N:"ufCall",ns:"err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ saxon=~ t=MyTypes xs=~ xsl=~ xml=~",line:"56",name:"Q{MyTypes}unmarshalType",tailCall:"false",bSlot:"0", +eval:"6",C:[{N:"gVarRef",name:"Q{}ST.SINGLE_NCNAME",bSlot:"1"}]}]}]},{N:"co",id:"183",binds:"6 171",C:[{N:"globalVariable",name:"Q{}SJ.SINGLE_STRING",as:"1AS",line:"59",module:"sequenceType.xsl",visibility:"PRIVATE",C:[{N:"ufCall",ns:"err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ saxon=~ t=MyTypes xs=~ xsl=~ xml=~",line:"59",name:"Q{MyTypes}unmarshalType",tailCall:"false",bSlot:"0",eval:"6",C:[{N:"gVarRef",name:"Q{}ST.SINGLE_STRING",bSlot:"1"}]}]}]},{N:"co",id:"215",binds:"94",C:[{N:"globalVariable", +name:"Q{}types",as:"1FM k[AS] v[1F]",line:"415",module:"type.xsl",slots:"6",visibility:"PRIVATE",C:[{N:"ifCall",ns:"doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~",line:"417",name:"Q{http://www.w3.org/2005/xpath-functions/map}merge",type:"1FM",C:[{N:"sequence",C:[{N:"forEach",C:[{N:"slash",simple:"1",C:[{N:"gVarRef",name:"Q{}type.hierarchy.tree",bSlot:"0"},{N:"axis",name:"descendant",nodeTest:"NE"}]},{N:"let", +line:"418","var":"Q{}isAtomic",as:"1AB",slot:"2",eval:"8",C:[{N:"fn",name:"starts-with",C:[{N:"fn",name:"name",C:[{N:"dot",type:"1NE"}]},{N:"str",val:"xs:"}]},{N:"let",line:"419","var":"Q{http://saxon.sf.net/generated-variable}v0",as:"1AB",slot:"3",eval:"13",C:[{N:"fn",name:"not",C:[{N:"varRef",name:"Q{}isAtomic",slot:"2"}]},{N:"ifCall",name:"Q{http://www.w3.org/2005/xpath-functions/map}entry",type:"1FM",C:[{N:"fn",name:"concat",C:[{N:"fn",name:"name",C:[{N:"dot",type:"1NE"}]},{N:"filter",flags:"ib", +C:[{N:"str",val:"()"},{N:"varRef",name:"Q{http://saxon.sf.net/generated-variable}v0",slot:"3"}]}]},{N:"ifCall",line:"425",name:"Q{http://www.w3.org/2005/xpath-functions/map}merge",type:"1FM",C:[{N:"sequence",C:[{N:"ifCall",name:"Q{http://www.w3.org/2005/xpath-functions/map}entry",type:"1FM",C:[{N:"str",val:"supertypes"},{N:"slash",C:[{N:"fn",name:"reverse",C:[{N:"slash",simple:"1",C:[{N:"dot",type:"1NE"},{N:"axis",name:"ancestor",nodeTest:"NE"}]}]},{N:"let","var":"Q{}n",slot:"4",eval:"8",C:[{N:"fn", +name:"name",C:[{N:"dot",type:"1NE"}]},{N:"let","var":"Q{http://saxon.sf.net/generated-variable}v1",as:"1AB",slot:"5",eval:"13",C:[{N:"fn",name:"not",C:[{N:"fn",name:"starts-with",C:[{N:"varRef",name:"Q{}n",slot:"4"},{N:"str",val:"xs:"}]}]},{N:"fn",name:"concat",C:[{N:"varRef",name:"Q{}n",slot:"4"},{N:"filter",flags:"ib",C:[{N:"str",val:"()"},{N:"varRef",name:"Q{http://saxon.sf.net/generated-variable}v1",slot:"5"}]}]}]}]}]}]},{N:"ifCall",line:"426",name:"Q{http://www.w3.org/2005/xpath-functions/map}entry", +type:"1FM",C:[{N:"str",val:"isPlain"},{N:"varRef",name:"Q{}isAtomic",slot:"2"}]}]},{N:"map",size:"2",C:[{N:"str",val:"duplicates"},{N:"str",val:"reject"},{N:"str",val:"duplicates-error-code"},{N:"str",val:"XTDE3365"}]}]}]}]}]}]},{N:"map",size:"1",C:[{N:"str",val:"empty-sequence()"},{N:"map",size:"1",C:[{N:"str",val:"isPlain"},{N:"false"}]}]}]},{N:"map",size:"2",C:[{N:"str",val:"duplicates"},{N:"str",val:"reject"},{N:"str",val:"duplicates-error-code"},{N:"str",val:"XTDE3365"}]}]}]}]},{N:"co",id:"287", +binds:"",C:[{N:"function",name:"Q{MyFunctions}element-available",line:"305",module:"XSLT-syntax.xsl",eval:"16",flags:"pU",as:"1AB",slots:"1",C:[{N:"arg",name:"Q{}name",as:"1AS"},{N:"gc",role:"body",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"307",op:"=",card:"N:1",comp:"CCC",C:[{N:"literal",count:"77",C:[{N:"str",val:"accept"},{N:"str",val:"accumulator"},{N:"str",val:"accumulator-rule"}, +{N:"str",val:"analyze-string"},{N:"str",val:"apply-imports"},{N:"str",val:"apply-templates"},{N:"str",val:"assert"},{N:"str",val:"attribute"},{N:"str",val:"attribute-set"},{N:"str",val:"break"},{N:"str",val:"call-template"},{N:"str",val:"catch"},{N:"str",val:"character-map"},{N:"str",val:"choose"},{N:"str",val:"comment"},{N:"str",val:"context-item"},{N:"str",val:"copy"},{N:"str",val:"copy-of"},{N:"str",val:"decimal-format"},{N:"str",val:"document"},{N:"str",val:"element"},{N:"str",val:"evaluate"}, +{N:"str",val:"expose"},{N:"str",val:"fallback"},{N:"str",val:"for-each"},{N:"str",val:"for-each-group"},{N:"str",val:"fork"},{N:"str",val:"function"},{N:"str",val:"global-context-item"},{N:"str",val:"if"},{N:"str",val:"import"},{N:"str",val:"include"},{N:"str",val:"iterate"},{N:"str",val:"key"},{N:"str",val:"map"},{N:"str",val:"map-entry"},{N:"str",val:"matching-substring"},{N:"str",val:"merge"},{N:"str",val:"merge-action"},{N:"str",val:"merge-key"},{N:"str",val:"merge-source"},{N:"str",val:"message"}, +{N:"str",val:"mode"},{N:"str",val:"namespace"},{N:"str",val:"namespace-alias"},{N:"str",val:"next-iteration"},{N:"str",val:"next-match"},{N:"str",val:"non-matching-substring"},{N:"str",val:"number"},{N:"str",val:"on-completion"},{N:"str",val:"on-empty"},{N:"str",val:"on-non-empty"},{N:"str",val:"otherwise"},{N:"str",val:"output"},{N:"str",val:"output-character"},{N:"str",val:"override"},{N:"str",val:"package"},{N:"str",val:"param"},{N:"str",val:"perform-sort"},{N:"str",val:"preserve-space"},{N:"str", +val:"processing-instruction"},{N:"str",val:"result-document"},{N:"str",val:"sequence"},{N:"str",val:"sort"},{N:"str",val:"source-document"},{N:"str",val:"strip-space"},{N:"str",val:"stylesheet"},{N:"str",val:"template"},{N:"str",val:"text"},{N:"str",val:"transform"},{N:"str",val:"try"},{N:"str",val:"use-package"},{N:"str",val:"value-of"},{N:"str",val:"variable"},{N:"str",val:"when"},{N:"str",val:"where-populated"},{N:"str",val:"with-param"}]},{N:"varRef",name:"Q{}name",slot:"0"}]}]}]},{N:"co",id:"288", +binds:"",C:[{N:"function",name:"Q{MyFunctions}selectAndContent",line:"22",module:"normalize4.xsl",eval:"16",flags:"pU",as:"1AB",slots:"1",C:[{N:"arg",name:"Q{}instruction",as:"1NE"},{N:"and",role:"body",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"24",op:"and",C:[{N:"fn",name:"exists",C:[{N:"slash",simple:"1",C:[{N:"varRef",name:"Q{}instruction",slot:"0"},{N:"axis",name:"attribute", +nodeTest:"NA nQ{}select"}]}]},{N:"fn",name:"exists",C:[{N:"slash",C:[{N:"varRef",name:"Q{}instruction",slot:"0"},{N:"sequence",C:[{N:"axis",name:"child",nodeTest:"NE d[NE,NE nQ{http://www.w3.org/1999/XSL/Transform}fallback]"},{N:"filter",flags:"b",C:[{N:"axis",name:"child",nodeTest:"NT"},{N:"fn",name:"boolean",C:[{N:"fn",name:"normalize-space",C:[{N:"fn",name:"string",C:[{N:"dot",type:"1NT"}]}]}]}]}]}]}]}]}]}]},{N:"co",id:"289",binds:"155",C:[{N:"function",name:"Q{MyTypes}data",line:"901",module:"type.xsl", +eval:"9",flags:"pU",as:"1NE",slots:"2",C:[{N:"arg",name:"Q{}expression",as:"1NE"},{N:"arg",name:"Q{}diag",as:"1AS"},{N:"elem",role:"body",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~",line:"904",name:"data",nsuri:"http://ns.saxonica.com/xslt/export",flags:"d",C:[{N:"sequence",C:[{N:"att",name:"sType",flags:"l",C:[{N:"gVarRef",name:"Q{}SJ.MULTIPLE_ATOMIC",bSlot:"0"}]}, +{N:"slash",line:"905",simple:"1",C:[{N:"varRef",name:"Q{}expression",slot:"0"},{N:"axis",name:"attribute",nodeTest:"NA nQ{}role"}]},{N:"varRef",line:"905",name:"Q{}expression",slot:"0"}]}]}]}]},{N:"co",id:"290",binds:"",C:[{N:"function",name:"Q{MyTypes}typeOf",line:"1196",module:"type.xsl",eval:"16",flags:"pU",as:"1AS",slots:"1",C:[{N:"arg",name:"Q{}item",as:"1"},{N:"choose",role:"body",ns:"doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~", +line:"1199",C:[{N:"instance",of:"1N",C:[{N:"varRef",name:"Q{}item",slot:"0"}]},{N:"choose",line:"1201",C:[{N:"instance",of:"1NE",C:[{N:"varRef",name:"Q{}item",slot:"0"}]},{N:"str",val:"NE"},{N:"instance",line:"1202",of:"1NA",C:[{N:"varRef",name:"Q{}item",slot:"0"}]},{N:"str",val:"NA"},{N:"instance",line:"1203",of:"1NT",C:[{N:"varRef",name:"Q{}item",slot:"0"}]},{N:"str",val:"NT"},{N:"instance",line:"1204",of:"1NC",C:[{N:"varRef",name:"Q{}item",slot:"0"}]},{N:"str",val:"NC"},{N:"instance",line:"1205", +of:"1NP",C:[{N:"varRef",name:"Q{}item",slot:"0"}]},{N:"str",val:"NP"},{N:"instance",line:"1206",of:"1ND",C:[{N:"varRef",name:"Q{}item",slot:"0"}]},{N:"str",val:"ND"},{N:"true"},{N:"str",val:"N"}]},{N:"instance",line:"1210",of:"1A",C:[{N:"varRef",name:"Q{}item",slot:"0"}]},{N:"choose",line:"1212",C:[{N:"instance",of:"1AS",C:[{N:"varRef",name:"Q{}item",slot:"0"}]},{N:"str",val:"AS"},{N:"instance",line:"1213",of:"1AB",C:[{N:"varRef",name:"Q{}item",slot:"0"}]},{N:"str",val:"AB"},{N:"instance",line:"1214", +of:"1AD",C:[{N:"varRef",name:"Q{}item",slot:"0"}]},{N:"str",val:"AD"},{N:"instance",line:"1215",of:"1ADI",C:[{N:"varRef",name:"Q{}item",slot:"0"}]},{N:"str",val:"ADI"},{N:"instance",line:"1216",of:"1AQ",C:[{N:"varRef",name:"Q{}item",slot:"0"}]},{N:"str",val:"AQ"},{N:"instance",line:"1217",of:"1AU",C:[{N:"varRef",name:"Q{}item",slot:"0"}]},{N:"str",val:"AU"},{N:"instance",line:"1218",of:"1AA",C:[{N:"varRef",name:"Q{}item",slot:"0"}]},{N:"str",val:"AA"},{N:"instance",line:"1219",of:"1AM",C:[{N:"varRef", +name:"Q{}item",slot:"0"}]},{N:"str",val:"AM"},{N:"instance",line:"1220",of:"1AT",C:[{N:"varRef",name:"Q{}item",slot:"0"}]},{N:"str",val:"AT"},{N:"instance",line:"1221",of:"1AR",C:[{N:"varRef",name:"Q{}item",slot:"0"}]},{N:"str",val:"AR"},{N:"instance",line:"1222",of:"1AO",C:[{N:"varRef",name:"Q{}item",slot:"0"}]},{N:"str",val:"AO"},{N:"instance",line:"1223",of:"1AF",C:[{N:"varRef",name:"Q{}item",slot:"0"}]},{N:"str",val:"AF"},{N:"instance",line:"1224",of:"1A2",C:[{N:"varRef",name:"Q{}item",slot:"0"}]}, +{N:"str",val:"A2"},{N:"instance",line:"1225",of:"1AX",C:[{N:"varRef",name:"Q{}item",slot:"0"}]},{N:"str",val:"AX"},{N:"instance",line:"1226",of:"1AZ",C:[{N:"varRef",name:"Q{}item",slot:"0"}]},{N:"str",val:"AZ"},{N:"true"},{N:"str",val:"A"}]},{N:"instance",line:"1230",of:"1F",C:[{N:"varRef",name:"Q{}item",slot:"0"}]},{N:"choose",line:"1232",C:[{N:"instance",of:"1FM",C:[{N:"varRef",name:"Q{}item",slot:"0"}]},{N:"str",val:"FM"},{N:"instance",line:"1233",of:"1FM",C:[{N:"varRef",name:"Q{}item",slot:"0"}]}, +{N:"str",val:"FA"},{N:"true"},{N:"str",val:"F"}]},{N:"true"},{N:"str",val:"J"}]}]}]},{N:"co",id:"291",binds:"",C:[{N:"globalVariable",name:"Q{}TypeHierarchy.DISJOINT",as:"1AS",line:"165",module:"type.xsl",visibility:"PRIVATE",flags:"s",C:[{N:"str",val:"DJ"}]}]},{N:"co",id:"121",binds:"",C:[{N:"function",name:"Q{MyTypes}marshalType",line:"192",module:"sequenceType.xsl",eval:"16",flags:"pmU",as:"1FM",slots:"1",C:[{N:"arg",name:"Q{}type",as:"1AS"},{N:"treat",role:"body",ns:"err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ saxon=~ t=MyTypes xs=~ xsl=~ xml=~", +line:"194",as:"FM",diag:"5|0|XTTE0780|t:marshalType#1",C:[{N:"ifCall",name:"Q{http://saxon.sf.net/}marshal-type",type:"1F",C:[{N:"varRef",name:"Q{}type",slot:"0"}]}]}]}]},{N:"co",id:"279",binds:"",C:[{N:"globalVariable",name:"Q{}ST.SINGLE_FLOAT",as:"1FM k[AS] v[1AS]",line:"19",module:"sequenceType.xsl",visibility:"PRIVATE",C:[{N:"map",size:"2",C:[{N:"str",val:"o"},{N:"str",val:"1"},{N:"str",val:"p"},{N:"str",val:"AF"}]}]}]},{N:"co",id:"56",binds:"212",C:[{N:"mode",name:"Q{}expand-character-maps", +onNo:"DC",flags:"W",patternSlots:"0",C:[{N:"templateRule",prec:"0",prio:"0.5",seq:"207",rank:"0",minImp:"0",slots:"1",matches:"NE n*:charMap",flags:"s",as:"1NE",line:"156",module:"output.xsl",C:[{N:"p.withPredicate",role:"match",C:[{N:"p.nodeTest",test:"NE n*:charMap"},{N:"axis",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"156",name:"attribute",nodeTest:"NA nQ{}use-character-maps"}]}, +{N:"sequence",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"157",C:[{N:"param",name:"Q{}charMaps",slot:"0",as:"*NE",C:[{N:"empty",role:"select"},{N:"treat",role:"conversion",as:"NE",diag:"8|0|XTTE0590|charMaps",C:[{N:"supplied",slot:"0"}]}]},{N:"copy",line:"159",flags:"cin",sit:"1NE n*:charMap",C:[{N:"sequence",role:"content",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}name"}, +{N:"forEach",line:"160",C:[{N:"fn",name:"tokenize",C:[{N:"cvUntyped",to:"AS",C:[{N:"attVal",name:"Q{}use-character-maps",chk:"0"}]}]},{N:"callT",line:"161",name:"Q{}expandCharMapRef",bSlot:"0",C:[{N:"withParam",name:"Q{}charMapRef",flags:"c",as:"1AS",C:[{N:"fn",line:"162",name:"normalize-space",C:[{N:"dot",type:"1AS"}]}]},{N:"withParam",name:"Q{}charMaps",flags:"c",as:"*NE",C:[{N:"varRef",line:"163",name:"Q{}charMaps",slot:"0"}]}]}]},{N:"axis",line:"166",name:"child",nodeTest:"NE n*:m"}]}]}]}]}]}]}, +{N:"co",id:"232",vis:"PRIVATE",binds:"",C:[{N:"globalVariable",name:"Q{}QUOT",as:"1ADI",line:"21",module:"XSLT-value-template.xsl",visibility:"PRIVATE",C:[{N:"int",val:"34"}]}]},{N:"co",id:"286",binds:"",C:[{N:"globalVariable",name:"Q{}ST.SINGLE_NCNAME",as:"1FM k[AS] v[1AS]",line:"29",module:"sequenceType.xsl",visibility:"PRIVATE",C:[{N:"map",size:"2",C:[{N:"str",val:"o"},{N:"str",val:"1"},{N:"str",val:"p"},{N:"str",val:"ASNTNC"}]}]}]},{N:"co",id:"171",binds:"",C:[{N:"globalVariable",name:"Q{}ST.SINGLE_STRING", +as:"1FM k[AS] v[1AS]",line:"24",module:"sequenceType.xsl",visibility:"PRIVATE",C:[{N:"map",size:"2",C:[{N:"str",val:"o"},{N:"str",val:"1"},{N:"str",val:"p"},{N:"str",val:"AS"}]}]}]},{N:"co",id:"277",binds:"",C:[{N:"globalVariable",name:"Q{}ST.SINGLE_DOUBLE",as:"1FM k[AS] v[1AS]",line:"17",module:"sequenceType.xsl",visibility:"PRIVATE",C:[{N:"map",size:"2",C:[{N:"str",val:"o"},{N:"str",val:"1"},{N:"str",val:"p"},{N:"str",val:"AO"}]}]}]},{N:"co",id:"262",binds:"",C:[{N:"template",name:"Q{}check-select", +flags:"os",as:"0",line:"58",module:"lib.xsl",slots:"0",C:[{N:"choose",role:"body",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~",line:"59",C:[{N:"fn",name:"empty",C:[{N:"slash",simple:"1",C:[{N:"treat",as:"N",diag:"14|2|XPTY0020|",C:[{N:"dot",flags:"a"}]},{N:"axis",name:"attribute",nodeTest:"NA nQ{}select"}]}]},{N:"check",line:"60",card:"0",diag:"7|0|XTTE0505|check-select", +C:[{N:"fn",name:"error",C:[{N:"qName",pre:"",uri:"http://www.w3.org/2005/xqt-errors",loc:"XTSE0010"},{N:"fn",name:"concat",C:[{N:"fn",name:"name",C:[{N:"treat",as:"N",diag:"0|0||fn:name",C:[{N:"dot",flags:"a"}]}]},{N:"str",val:" must have @select"}]}]}]}]}]}]},{N:"co",id:"292",binds:"",C:[{N:"globalVariable",name:"Q{}ST.SINGLE_ATOMIC",as:"1FM k[AS] v[1AS]",line:"14",module:"sequenceType.xsl",visibility:"PRIVATE",C:[{N:"map",size:"2",C:[{N:"str",val:"o"},{N:"str",val:"1"},{N:"str",val:"p"},{N:"str", +val:"A"}]}]}]},{N:"co",id:"293",binds:"6 146",C:[{N:"globalVariable",name:"Q{}SJ.MULTIPLE_ITEM",as:"1AS",line:"46",module:"sequenceType.xsl",visibility:"PRIVATE",C:[{N:"ufCall",ns:"err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ saxon=~ t=MyTypes xs=~ xsl=~ xml=~",line:"46",name:"Q{MyTypes}unmarshalType",tailCall:"false",bSlot:"0",eval:"6",C:[{N:"gVarRef",name:"Q{}ST.MULTIPLE_ITEM",bSlot:"1"}]}]}]},{N:"co",id:"294",binds:"",C:[{N:"function",name:"Q{MyFunctions}typeCardinality",line:"32", +module:"type.xsl",eval:"16",flags:"pU",as:"1AS",slots:"1",C:[{N:"arg",name:"Q{}type",as:"1AS"},{N:"choose",role:"body",ns:"doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~",line:"43",C:[{N:"gc",op:"=",card:"N:1",comp:"CCC",C:[{N:"literal",count:"2",C:[{N:"str",val:"empty-sequence()"},{N:"str",val:"error()0"}]},{N:"varRef",name:"Q{}type",slot:"0"}]},{N:"str",val:"0"},{N:"fn",name:"matches",C:[{N:"varRef",name:"Q{}type", +slot:"0"},{N:"str",val:"[*?+]$"},{N:"str",val:""}]},{N:"fn",name:"substring",C:[{N:"varRef",name:"Q{}type",slot:"0"},{N:"fn",name:"string-length",C:[{N:"varRef",name:"Q{}type",slot:"0"}]}]},{N:"true"},{N:"str",val:"1"}]}]}]},{N:"co",id:"176",binds:"",C:[{N:"globalVariable",name:"Q{}ST.MULTIPLE_MAP",as:"1FM k[AS] v[1AS]",line:"41",module:"sequenceType.xsl",visibility:"PRIVATE",C:[{N:"map",size:"2",C:[{N:"str",val:"o"},{N:"str",val:"*"},{N:"str",val:"p"},{N:"str",val:"FM"}]}]}]},{N:"co",id:"264",binds:"147", +C:[{N:"mode",name:"Q{}normalize-serialization-property",onNo:"TC",flags:"W",patternSlots:"0",C:[{N:"templateRule",prec:"0",prio:"-0.5",seq:"205",rank:"0",minImp:"0",slots:"0",matches:"NA",flags:"s",as:"1AS",line:"145",module:"output.xsl",C:[{N:"p.nodeTest",role:"match",test:"NA"},{N:"fn",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"146",name:"string",C:[{N:"dot", +type:"1NA"}]}]},{N:"templateRule",prec:"0",prio:"0.0",seq:"206",part:"1",rank:"1",minImp:"0",slots:"3",matches:"NA nQ{}suppress-indentation",flags:"s",as:"1AS",line:"149",module:"output.xsl",C:[{N:"p.nodeTest",role:"match",test:"NA nQ{}suppress-indentation"},{N:"let",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"150","var":"Q{}decl",as:"*N u[NE,ND]",slot:"0",eval:"4", +C:[{N:"axis",name:"parent",nodeTest:"N u[NE,ND]"},{N:"let",line:"151","var":"Q{http://saxon.sf.net/generated-variable}v1",as:"?AS",slot:"1",eval:"13",C:[{N:"convert",from:"AU",to:"AS",C:[{N:"fn",name:"namespace-uri-for-prefix",C:[{N:"str",val:""},{N:"check",card:"1",diag:"0|1||fn:namespace-uri-for-prefix",C:[{N:"varRef",name:"Q{}decl",slot:"0"}]}]}]},{N:"let","var":"Q{http://saxon.sf.net/generated-variable}v0",as:"1NE i[NE,N u[NE,ND]]",slot:"2",eval:"13",C:[{N:"check",card:"1",diag:"0|1||f:EQName", +C:[{N:"varRef",name:"Q{}decl",slot:"0"}]},{N:"fn",name:"string-join",C:[{N:"forEach",C:[{N:"fn",name:"tokenize",C:[{N:"cvUntyped",to:"AS",C:[{N:"data",diag:"0|0||fn:tokenize",C:[{N:"dot",type:"1NA"}]}]}]},{N:"ufCall",name:"Q{MyFunctions}EQName",tailCall:"false",bSlot:"0",eval:"16 6 0 6",C:[{N:"dot",type:"1AS"},{N:"varRef",name:"Q{http://saxon.sf.net/generated-variable}v0",slot:"2"},{N:"str",val:"XTSE0010"},{N:"varRef",name:"Q{http://saxon.sf.net/generated-variable}v1",slot:"1"}]}]},{N:"str",val:" "}]}]}]}]}]}, +{N:"templateRule",prec:"0",prio:"0.5",seq:"206",part:"2",rank:"2",minImp:"0",slots:"3",matches:"NA nQ{}method",flags:"s",as:"1AS",line:"149",module:"output.xsl",C:[{N:"p.withPredicate",role:"match",C:[{N:"p.nodeTest",test:"NA nQ{}method"},{N:"fn",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"149",name:"contains",C:[{N:"cvUntyped",to:"AS",C:[{N:"data",diag:"0|0||fn:contains",C:[{N:"dot", +type:"1NA nQ{}method"}]}]},{N:"str",val:":"}]}]},{N:"let",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"150","var":"Q{}decl",as:"*N u[NE,ND]",slot:"0",eval:"4",C:[{N:"axis",name:"parent",nodeTest:"N u[NE,ND]"},{N:"let",line:"151","var":"Q{http://saxon.sf.net/generated-variable}v1",as:"?AS",slot:"1",eval:"13",C:[{N:"convert",from:"AU",to:"AS",C:[{N:"fn",name:"namespace-uri-for-prefix", +C:[{N:"str",val:""},{N:"check",card:"1",diag:"0|1||fn:namespace-uri-for-prefix",C:[{N:"varRef",name:"Q{}decl",slot:"0"}]}]}]},{N:"let","var":"Q{http://saxon.sf.net/generated-variable}v0",as:"1NE i[NE,N u[NE,ND]]",slot:"2",eval:"13",C:[{N:"check",card:"1",diag:"0|1||f:EQName",C:[{N:"varRef",name:"Q{}decl",slot:"0"}]},{N:"fn",name:"string-join",C:[{N:"forEach",C:[{N:"fn",name:"tokenize",C:[{N:"cvUntyped",to:"AS",C:[{N:"data",diag:"0|0||fn:tokenize",C:[{N:"dot",type:"1NA"}]}]}]},{N:"ufCall",name:"Q{MyFunctions}EQName", +tailCall:"false",bSlot:"0",eval:"16 6 0 6",C:[{N:"dot",type:"1AS"},{N:"varRef",name:"Q{http://saxon.sf.net/generated-variable}v0",slot:"2"},{N:"str",val:"XTSE0010"},{N:"varRef",name:"Q{http://saxon.sf.net/generated-variable}v1",slot:"1"}]}]},{N:"str",val:" "}]}]}]}]}]},{N:"templateRule",prec:"0",prio:"0.0",seq:"206",rank:"1",minImp:"0",slots:"3",matches:"NA nQ{}cdata-section-elements",flags:"s",as:"1AS",line:"149",module:"output.xsl",C:[{N:"p.nodeTest",role:"match",test:"NA nQ{}cdata-section-elements"}, +{N:"let",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"150","var":"Q{}decl",as:"*N u[NE,ND]",slot:"0",eval:"4",C:[{N:"axis",name:"parent",nodeTest:"N u[NE,ND]"},{N:"let",line:"151","var":"Q{http://saxon.sf.net/generated-variable}v1",as:"?AS",slot:"1",eval:"13",C:[{N:"convert",from:"AU",to:"AS",C:[{N:"fn",name:"namespace-uri-for-prefix",C:[{N:"str",val:""},{N:"check", +card:"1",diag:"0|1||fn:namespace-uri-for-prefix",C:[{N:"varRef",name:"Q{}decl",slot:"0"}]}]}]},{N:"let","var":"Q{http://saxon.sf.net/generated-variable}v0",as:"1NE i[NE,N u[NE,ND]]",slot:"2",eval:"13",C:[{N:"check",card:"1",diag:"0|1||f:EQName",C:[{N:"varRef",name:"Q{}decl",slot:"0"}]},{N:"fn",name:"string-join",C:[{N:"forEach",C:[{N:"fn",name:"tokenize",C:[{N:"cvUntyped",to:"AS",C:[{N:"data",diag:"0|0||fn:tokenize",C:[{N:"dot",type:"1NA"}]}]}]},{N:"ufCall",name:"Q{MyFunctions}EQName",tailCall:"false", +bSlot:"0",eval:"16 6 0 6",C:[{N:"dot",type:"1AS"},{N:"varRef",name:"Q{http://saxon.sf.net/generated-variable}v0",slot:"2"},{N:"str",val:"XTSE0010"},{N:"varRef",name:"Q{http://saxon.sf.net/generated-variable}v1",slot:"1"}]}]},{N:"str",val:" "}]}]}]}]}]}]}]},{N:"co",id:"295",binds:"",C:[{N:"globalVariable",name:"Q{}TypeHierarchy.SUBSUMES",as:"1AS",line:"163",module:"type.xsl",visibility:"PRIVATE",flags:"s",C:[{N:"str",val:"GT"}]}]},{N:"co",id:"267",binds:"93",C:[{N:"globalVariable",name:"Q{http://saxon.sf.net/generated-variable}gg342547835", +as:"1AS",line:"286",module:"lib.xsl",visibility:"PRIVATE",C:[{N:"fn",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~",line:"286",name:"string-join",C:[{N:"sequence",C:[{N:"fn",name:"string",C:[{N:"ifCall",name:"Q{http://www.w3.org/2005/xpath-functions/map}get",type:"*",C:[{N:"gVarRef",name:"Q{}roleKind",bSlot:"0"},{N:"str",val:"TYPE_OP"}]}]},{N:"literal",count:"3",C:[{N:"str", +val:"0"},{N:"str",val:"XPTY0004"},{N:"str",val:"ixsl:remove-attribute/@object"}]}]},{N:"str",val:"|"}]}]}]},{N:"co",id:"233",vis:"PRIVATE",binds:"",C:[{N:"globalVariable",name:"Q{}COLON",as:"1ADI",line:"19",module:"XSLT-value-template.xsl",visibility:"PRIVATE",C:[{N:"int",val:"58"}]}]},{N:"co",id:"188",binds:"",C:[{N:"function",name:"Q{MyFunctions}line-loc",line:"403",module:"lib.xsl",eval:"8",flags:"pU",as:"1AS",slots:"7",C:[{N:"arg",name:"Q{}node",as:"1N"},{N:"let",role:"body",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~", +line:"405","var":"Q{}containingElement",as:"*N u[NE,ND]",slot:"1",eval:"4",C:[{N:"forEach",C:[{N:"varRef",name:"Q{}node",slot:"0"},{N:"sequence",C:[{N:"slash",simple:"1",C:[{N:"axis",name:"self",nodeTest:"NA"},{N:"axis",name:"parent",nodeTest:"N u[NE,ND]"}]},{N:"slash",simple:"1",C:[{N:"axis",name:"self",nodeTest:"NT"},{N:"axis",name:"parent",nodeTest:"N u[NE,ND]"}]},{N:"axis",name:"self",nodeTest:"NE"}]}]},{N:"cvUntyped",line:"408",to:"AS",diag:"5|0|XTTE0780|f:line-loc#1",C:[{N:"cast",flags:"a", +as:"1AZ",C:[{N:"fn",name:"string-join",C:[{N:"convert",from:"AZ",to:"AS",C:[{N:"data",C:[{N:"mergeAdj",C:[{N:"let","var":"Q{}lineNumber",as:"1ADI",slot:"2",eval:"16",C:[{N:"let",line:"409","var":"Q{}lineAtt",as:"*NA",slot:"3",eval:"4",C:[{N:"forEach",C:[{N:"varRef",name:"Q{}containingElement",slot:"1"},{N:"lastOf",C:[{N:"docOrder",intra:"1",C:[{N:"slash",C:[{N:"fn",name:"reverse",C:[{N:"axis",name:"ancestor-or-self",nodeTest:"NE"}]},{N:"sequence",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}line"}, +{N:"axis",name:"attribute",nodeTest:"NA nQ{http://ns.saxonica.com/xslt/export}lineNr"}]}]}]}]}]},{N:"choose",line:"411",C:[{N:"gc",op:">=",card:"N:1",comp:"GAC|http://www.w3.org/2005/xpath-functions/collation/codepoint",C:[{N:"data",diag:"1|0||>=",C:[{N:"varRef",name:"Q{}lineAtt",slot:"3"}]},{N:"int",val:"0"}]},{N:"check",line:"412",card:"1",diag:"3|0|XTTE0570|lineNumber",C:[{N:"cast",flags:"ae",as:"?ADI",C:[{N:"atomSing",card:"?",diag:"2|0||cast as",C:[{N:"varRef",name:"Q{}lineAtt",slot:"3"}]}]}]}, +{N:"true"},{N:"check",line:"416",card:"1",diag:"3|0|XTTE0570|lineNumber",C:[{N:"javaCall",name:"Q{http://saxon.sf.net/}line-number",arg0type:"?N u[NE,ND]",C:[{N:"check",card:"?",diag:"0|0||line-number",C:[{N:"varRef",name:"Q{}containingElement",slot:"1"}]}]}]}]}]},{N:"sequence",line:"423",C:[{N:"choose",C:[{N:"vc",op:"ge",onEmpty:"0",comp:"CAVC",C:[{N:"varRef",name:"Q{}lineNumber",slot:"2"},{N:"int",val:"0"}]},{N:"valueOf",C:[{N:"fn",name:"concat",C:[{N:"str",val:" on line "},{N:"convert",from:"ADI", +to:"AS",C:[{N:"varRef",name:"Q{}lineNumber",slot:"2"}]}]}]}]},{N:"let",line:"426","var":"Q{}module",as:"?",slot:"4",eval:"7",C:[{N:"first",C:[{N:"sequence",C:[{N:"forEach",C:[{N:"varRef",name:"Q{}containingElement",slot:"1"},{N:"lastOf",C:[{N:"docOrder",intra:"1",C:[{N:"slash",C:[{N:"fn",name:"reverse",C:[{N:"axis",name:"ancestor-or-self",nodeTest:"NE"}]},{N:"sequence",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{http://ns.saxonica.com/xslt/export}baseUri"},{N:"axis",name:"attribute",nodeTest:"NA nQ{}baseUri"}]}]}]}]}]}, +{N:"fn",name:"base-uri",C:[{N:"check",card:"?",diag:"0|0||fn:base-uri",C:[{N:"varRef",name:"Q{}containingElement",slot:"1"}]}]}]}]},{N:"choose",line:"427",C:[{N:"varRef",name:"Q{}module",slot:"4"},{N:"valueOf",C:[{N:"fn",line:"433",name:"concat",C:[{N:"str",val:" in "},{N:"let","var":"Q{}tokens",as:"*AS",slot:"5",eval:"4",C:[{N:"fn",name:"tokenize",C:[{N:"treat",line:"427",as:"AS",diag:"0|0||f:abbreviated-module-uri",C:[{N:"check",card:"1",diag:"0|0||f:abbreviated-module-uri",C:[{N:"cvUntyped",to:"AS", +C:[{N:"data",diag:"0|0||f:abbreviated-module-uri",C:[{N:"varRef",name:"Q{}module",slot:"4"}]}]}]}]},{N:"str",val:"/"},{N:"str",val:""}]},{N:"let",line:"434","var":"Q{}n",as:"1ADI",slot:"6",eval:"8",C:[{N:"fn",name:"count",C:[{N:"varRef",name:"Q{}tokens",slot:"5"}]},{N:"fn",line:"435",name:"concat",C:[{N:"subscript",C:[{N:"varRef",name:"Q{}tokens",slot:"5"},{N:"arith",op:"-",calc:"i-i",C:[{N:"varRef",name:"Q{}n",slot:"6"},{N:"int",val:"1"}]}]},{N:"str",val:"/"},{N:"subscript",C:[{N:"varRef",name:"Q{}tokens", +slot:"5"},{N:"varRef",name:"Q{}n",slot:"6"}]}]}]}]}]}]}]}]}]}]}]}]}]},{N:"str",val:""}]}]}]}]}]}]},{N:"co",id:"179",binds:"93",C:[{N:"globalVariable",name:"Q{http://saxon.sf.net/generated-variable}gg342834466",as:"1AS",line:"286",module:"lib.xsl",visibility:"PRIVATE",C:[{N:"fn",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~",line:"286",name:"string-join",C:[{N:"sequence", +C:[{N:"fn",name:"string",C:[{N:"ifCall",name:"Q{http://www.w3.org/2005/xpath-functions/map}get",type:"*",C:[{N:"gVarRef",name:"Q{}roleKind",bSlot:"0"},{N:"str",val:"TYPE_OP"}]}]},{N:"literal",count:"3",C:[{N:"str",val:"0"},{N:"str",val:"XPTY0004"},{N:"str",val:"xsl:accumulator-rule/@select"}]}]},{N:"str",val:"|"}]}]}]},{N:"co",id:"251",binds:"50 140",C:[{N:"globalVariable",name:"Q{http://saxon.sf.net/generated-variable}gg717132147",as:"+AU",line:"21",module:"sorting.xsl",visibility:"PRIVATE",C:[{N:"sequence", +ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~",line:"21",C:[{N:"gVarRef",name:"Q{}codepoint.collation",bSlot:"0"},{N:"gVarRef",name:"Q{}html-ascii-case-insensitive.collation",bSlot:"1"}]}]}]},{N:"co",id:"219",binds:"6 275",C:[{N:"globalVariable",name:"Q{}SJ.SINGLE_TEXT",as:"1AS",line:"49",module:"sequenceType.xsl",visibility:"PRIVATE",C:[{N:"ufCall",ns:"err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ saxon=~ t=MyTypes xs=~ xsl=~ xml=~", +line:"49",name:"Q{MyTypes}unmarshalType",tailCall:"false",bSlot:"0",eval:"6",C:[{N:"gVarRef",name:"Q{}ST.SINGLE_TEXT",bSlot:"1"}]}]}]},{N:"co",id:"296",binds:"",C:[{N:"function",name:"Q{MyFunctions}text-nodes",line:"233",module:"lib.xsl",eval:"4",flags:"pU",as:"*N",slots:"2",C:[{N:"arg",name:"Q{}context",as:"1NE"},{N:"arg",name:"Q{}xml-space-preserve",as:"1AB"},{N:"choose",role:"body",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~", +line:"242",C:[{N:"varRef",name:"Q{}xml-space-preserve",slot:"1"},{N:"slash",simple:"1",C:[{N:"varRef",name:"Q{}context",slot:"0"},{N:"axis",name:"child",nodeTest:"NT"}]},{N:"true"},{N:"filter",flags:"b",C:[{N:"slash",simple:"1",C:[{N:"varRef",name:"Q{}context",slot:"0"},{N:"axis",name:"child",nodeTest:"NT"}]},{N:"fn",name:"matches",C:[{N:"cvUntyped",to:"AS",C:[{N:"data",diag:"0|0||fn:matches",C:[{N:"dot",type:"1NT"}]}]},{N:"str",val:"\\S"},{N:"str",val:""}]}]}]}]}]},{N:"co",id:"65",binds:"152",C:[{N:"template", +name:"Q{}strip-space",flags:"os",as:"*NE",line:"1481",module:"XSLT-SEF-compiler.xsl",slots:"9",C:[{N:"sequence",role:"body",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ saxon=~ t=MyTypes xs=~ xsl=~ xml=~",line:"1483",C:[{N:"param",name:"Q{}precedence-map",slot:"0",flags:"tr",as:"1FM k[AS] v[1ADI]",C:[{N:"treat",role:"conversion",as:"FM k[AS] v[1ADI]",diag:"8|0|XTTE0590|precedence-map",C:[{N:"check", +card:"1",diag:"8|0|XTTE0590|precedence-map",C:[{N:"supplied",slot:"0"}]}]}]},{N:"param",line:"1484",name:"Q{}xpath-default-namespace",slot:"1",flags:"t",as:"?NA",C:[{N:"empty",role:"select"},{N:"treat",role:"conversion",as:"NA",diag:"8|0|XTTE0590|xpath-default-namespace",C:[{N:"check",card:"?",diag:"8|0|XTTE0590|xpath-default-namespace",C:[{N:"supplied",slot:"1"}]}]}]},{N:"choose",line:"1485",C:[{N:"fn",name:"exists",C:[{N:"slash",simple:"1",C:[{N:"treat",as:"N",diag:"14|3|XPTY0020|",C:[{N:"dot", +flags:"a"}]},{N:"axis",name:"child",nodeTest:"NE u[NE nQ{http://www.w3.org/1999/XSL/Transform}strip-space,NE nQ{http://www.w3.org/1999/XSL/Transform}preserve-space]"}]}]},{N:"elem",line:"1547",name:"strip",nsuri:"http://ns.saxonica.com/xslt/export",flags:"d",C:[{N:"forEach",line:"1548",C:[{N:"forEachGroup",line:"1487",algorithm:"by",C:[{N:"treat",role:"select",as:"NE",diag:"3|0|XTTE0570|unique",C:[{N:"forEachGroup",algorithm:"by",C:[{N:"sort",role:"select",C:[{N:"forEach",role:"select",C:[{N:"slash", +simple:"1",C:[{N:"treat",as:"N",diag:"14|3|XPTY0020|",C:[{N:"dot",flags:"a"}]},{N:"axis",name:"child",nodeTest:"NE u[NE nQ{http://www.w3.org/1999/XSL/Transform}strip-space,NE nQ{http://www.w3.org/1999/XSL/Transform}preserve-space]"}]},{N:"let",line:"1490","var":"Q{}isStrip",as:"1AB",slot:"2",eval:"8",C:[{N:"fn",name:"exists",C:[{N:"axis",name:"self",nodeTest:"NE nQ{http://www.w3.org/1999/XSL/Transform}strip-space"}]},{N:"let",line:"1494","var":"Q{http://saxon.sf.net/generated-variable}v2",as:"1AS", +slot:"3",eval:"13",C:[{N:"choose",C:[{N:"varRef",name:"Q{}isStrip",slot:"2"},{N:"str",val:"s"},{N:"true"},{N:"str",val:"p"}]},{N:"let",line:"1496","var":"Q{http://saxon.sf.net/generated-variable}v0",as:"1AS",slot:"4",eval:"13",C:[{N:"convert",from:"AB",to:"AS",C:[{N:"varRef",name:"Q{}isStrip",slot:"2"}]},{N:"let",line:"1492","var":"Q{}precedence",as:"1ADI",slot:"5",eval:"16",C:[{N:"check",card:"1",diag:"3|0|XTTE0570|precedence",C:[{N:"ifCall",name:"Q{http://www.w3.org/2005/xpath-functions/map}get", +type:"*",C:[{N:"varRef",name:"Q{}precedence-map",slot:"0"},{N:"fn",name:"string",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{http://ns.saxonica.com/xslt/export}precLabel"}]}]}]},{N:"let",line:"1503","var":"Q{http://saxon.sf.net/generated-variable}v1",as:"1AS",slot:"6",eval:"13",C:[{N:"convert",from:"ADI",to:"AS",C:[{N:"varRef",name:"Q{}precedence",slot:"5"}]},{N:"forEach",line:"1493",C:[{N:"fn",name:"tokenize",C:[{N:"cvUntyped",to:"AS",C:[{N:"attVal",name:"Q{}elements",chk:"0"}]}]},{N:"compElem", +line:"1494",C:[{N:"varRef",role:"name",name:"Q{http://saxon.sf.net/generated-variable}v2",slot:"3"},{N:"sequence",role:"content",line:"1495",C:[{N:"att",name:"elements",flags:"l",C:[{N:"dot",type:"1AS"}]},{N:"att",line:"1496",name:"strip",flags:"l",C:[{N:"varRef",name:"Q{http://saxon.sf.net/generated-variable}v0",slot:"4"}]},{N:"att",line:"1502",name:"test",flags:"l",C:[{N:"fn",name:"concat",C:[{N:"str",val:"NE"},{N:"choose",C:[{N:"vc",op:"eq",onEmpty:"0",comp:"GAC|http://www.w3.org/2005/xpath-functions/collation/codepoint", +C:[{N:"dot",type:"1AS"},{N:"str",val:"*"}]},{N:"str",val:""},{N:"true"},{N:"fn",name:"concat",C:[{N:"str",val:" n"},{N:"dot",type:"1AS"}]}]}]}]},{N:"att",line:"1503",name:"prec",flags:"l",C:[{N:"varRef",name:"Q{http://saxon.sf.net/generated-variable}v1",slot:"6"}]},{N:"att",line:"1512",name:"priority",flags:"l",C:[{N:"convert",from:"AD",to:"AS",C:[{N:"choose",C:[{N:"vc",op:"eq",onEmpty:"0",comp:"GAC|http://www.w3.org/2005/xpath-functions/collation/codepoint",C:[{N:"dot",type:"1AS"},{N:"str",val:"*"}]}, +{N:"dec",val:"-0.5"},{N:"fn",name:"contains",C:[{N:"dot",type:"1AS"},{N:"str",val:"*"}]},{N:"dec",val:"-0.25"},{N:"true"},{N:"int",val:"0"}]}]}]}]}]}]}]}]}]}]}]}]},{N:"sortKey",line:"1520",comp:"DESC|DblSC",C:[{N:"fn",role:"select",name:"number",C:[{N:"attVal",name:"Q{}prec",chk:"0"}]},{N:"str",role:"order",val:"descending"},{N:"str",role:"lang",val:""},{N:"str",role:"caseOrder",val:"#default"},{N:"str",role:"stable",val:"yes"},{N:"str",role:"collation",val:"http://www.w3.org/2005/xpath-functions/collation/codepoint"}]}, +{N:"sortKey",line:"1521",comp:"DESC|DblSC",C:[{N:"fn",role:"select",name:"number",C:[{N:"attVal",name:"Q{}priority",chk:"0"}]},{N:"str",role:"order",val:"descending"},{N:"str",role:"lang",val:""},{N:"str",role:"caseOrder",val:"#default"},{N:"str",role:"stable",val:"yes"},{N:"str",role:"collation",val:"http://www.w3.org/2005/xpath-functions/collation/codepoint"}]}]},{N:"attVal",role:"key",line:"1525",name:"Q{}elements",chk:"0"},{N:"str",role:"collation",val:"http://www.w3.org/2005/xpath-functions/collation/codepoint"}, +{N:"let",role:"content",line:"1527","var":"Q{}highest-precedence",as:"?AO",slot:"7",eval:"8",C:[{N:"fn",name:"max",C:[{N:"slash",C:[{N:"currentGroup"},{N:"fn",name:"number",C:[{N:"attVal",name:"Q{}prec",chk:"0"}]}]}]},{N:"let",line:"1529","var":"Q{}active",slot:"8",eval:"8",C:[{N:"filter",flags:"",C:[{N:"currentGroup"},{N:"vc",op:"eq",comp:"QUNC",C:[{N:"attVal",name:"Q{}prec",chk:"0"},{N:"varRef",name:"Q{}highest-precedence",slot:"7"}]}]},{N:"sequence",line:"1530",C:[{N:"choose",C:[{N:"and",op:"and", +C:[{N:"fn",name:"exists",C:[{N:"filter",flags:"b",C:[{N:"varRef",name:"Q{}active",slot:"8"},{N:"fn",name:"exists",C:[{N:"axis",name:"self",nodeTest:"NE nQ{http://ns.saxonica.com/xslt/export}s"}]}]}]},{N:"fn",name:"exists",C:[{N:"filter",flags:"b",C:[{N:"varRef",name:"Q{}active",slot:"8"},{N:"fn",name:"exists",C:[{N:"axis",name:"self",nodeTest:"NE nQ{http://ns.saxonica.com/xslt/export}p"}]}]}]}]},{N:"ufCall",line:"1533",name:"Q{MyFunctions}syntax-error",tailCall:"false",bSlot:"0",eval:"0 16",C:[{N:"str", +val:"XTSE0270"},{N:"fn",name:"concat",C:[{N:"str",val:"Conflicting strip and preserve space declarations for "},{N:"attVal",name:"Q{}elements",chk:"0"},{N:"str",val:" at highest import precedence"}]}]}]},{N:"first",line:"1535",C:[{N:"varRef",name:"Q{}active",slot:"8"}]}]}]}]}]}]},{N:"attVal",role:"key",line:"1540",name:"Q{}prec",chk:"0"},{N:"sortKey",role:"sort",line:"1541",comp:"DESC|DblSC",C:[{N:"fn",role:"select",name:"number",C:[{N:"attVal",name:"Q{}prec",chk:"0"}]},{N:"str",role:"order",val:"descending"}, +{N:"str",role:"lang",val:""},{N:"str",role:"caseOrder",val:"#default"},{N:"str",role:"stable",val:"yes"},{N:"str",role:"collation",val:"http://www.w3.org/2005/xpath-functions/collation/codepoint"}]},{N:"str",role:"collation",val:"http://www.w3.org/2005/xpath-functions/collation/codepoint"},{N:"sort",role:"content",line:"1542",C:[{N:"currentGroup",role:"select"},{N:"sortKey",line:"1543",comp:"DESC|DblSC",C:[{N:"fn",role:"select",name:"number",C:[{N:"attVal",name:"Q{}priority",chk:"0"}]},{N:"str",role:"order", +val:"descending"},{N:"str",role:"lang",val:""},{N:"str",role:"caseOrder",val:"#default"},{N:"str",role:"stable",val:"yes"},{N:"str",role:"collation",val:"http://www.w3.org/2005/xpath-functions/collation/codepoint"}]}]}]},{N:"copy",line:"1550",flags:"cinl",sit:"1NE",C:[{N:"sequence",role:"content",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}test"},{N:"axis",name:"attribute",nodeTest:"NA nQ{}prec"},{N:"axis",name:"attribute",nodeTest:"NA nQ{}code"}]}]}]}]}]}]}]}]},{N:"co",id:"182",binds:"6 173", +C:[{N:"globalVariable",name:"Q{}SJ.SINGLE_ITEM",as:"1AS",line:"45",module:"sequenceType.xsl",visibility:"PRIVATE",C:[{N:"ufCall",ns:"err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ saxon=~ t=MyTypes xs=~ xsl=~ xml=~",line:"45",name:"Q{MyTypes}unmarshalType",tailCall:"false",bSlot:"0",eval:"6",C:[{N:"gVarRef",name:"Q{}ST.SINGLE_ITEM",bSlot:"1"}]}]}]},{N:"co",id:"270",binds:"93",C:[{N:"globalVariable",name:"Q{http://saxon.sf.net/generated-variable}gg350475321",as:"1AS",line:"286",module:"lib.xsl", +visibility:"PRIVATE",C:[{N:"fn",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~",line:"286",name:"string-join",C:[{N:"sequence",C:[{N:"fn",name:"string",C:[{N:"ifCall",name:"Q{http://www.w3.org/2005/xpath-functions/map}get",type:"*",C:[{N:"gVarRef",name:"Q{}roleKind",bSlot:"0"},{N:"str",val:"TYPE_OP"}]}]},{N:"literal",count:"3",C:[{N:"str",val:"0"},{N:"str",val:"XPTY0004"}, +{N:"str",val:"xsl:analyze-string/@select"}]}]},{N:"str",val:"|"}]}]}]},{N:"co",id:"297",binds:"",C:[{N:"function",name:"Q{MyFunctions}escapeAVT",line:"152",module:"lib.xsl",eval:"8",flags:"pU",as:"1AS",slots:"1",C:[{N:"arg",name:"Q{}s",as:"1AS"},{N:"fn",role:"body",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~",line:"154",name:"replace",C:[{N:"fn",name:"replace",C:[{N:"varRef", +name:"Q{}s",slot:"0"},{N:"str",val:"\\{"},{N:"str",val:"{{"},{N:"str",val:""}]},{N:"str",val:"\\}"},{N:"str",val:"}}"},{N:"str",val:""}]}]}]},{N:"co",id:"298",binds:"",C:[{N:"function",name:"Q{MyFunctions}QNameToEQ",line:"170",module:"lib.xsl",eval:"8",flags:"pU",as:"1AS",slots:"1",C:[{N:"arg",name:"Q{}qname",as:"1AQ"},{N:"fn",role:"body",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~", +line:"172",name:"concat",C:[{N:"str",val:"Q{"},{N:"fn",name:"namespace-uri-from-QName",C:[{N:"varRef",name:"Q{}qname",slot:"0"}]},{N:"str",val:"}"},{N:"fn",name:"local-name-from-QName",C:[{N:"varRef",name:"Q{}qname",slot:"0"}]}]}]}]},{N:"co",id:"299",binds:"6 258",C:[{N:"globalVariable",name:"Q{}SJ.SINGLE_URI",as:"1AS",line:"55",module:"sequenceType.xsl",visibility:"PRIVATE",C:[{N:"ufCall",ns:"err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ saxon=~ t=MyTypes xs=~ xsl=~ xml=~",line:"55", +name:"Q{MyTypes}unmarshalType",tailCall:"false",bSlot:"0",eval:"6",C:[{N:"gVarRef",name:"Q{}ST.SINGLE_URI",bSlot:"1"}]}]}]},{N:"co",id:"175",binds:"6 260",C:[{N:"globalVariable",name:"Q{}SJ.SINGLE_MAP",as:"1AS",line:"62",module:"sequenceType.xsl",visibility:"PRIVATE",C:[{N:"ufCall",ns:"err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ saxon=~ t=MyTypes xs=~ xsl=~ xml=~",line:"62",name:"Q{MyTypes}unmarshalType",tailCall:"false",bSlot:"0",eval:"6",C:[{N:"gVarRef",name:"Q{}ST.SINGLE_MAP", +bSlot:"1"}]}]}]},{N:"co",id:"190",binds:"93",C:[{N:"globalVariable",name:"Q{http://saxon.sf.net/generated-variable}gg575438308",as:"1AS",line:"286",module:"lib.xsl",visibility:"PRIVATE",C:[{N:"fn",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~",line:"286",name:"string-join",C:[{N:"sequence",C:[{N:"fn",name:"string",C:[{N:"ifCall",name:"Q{http://www.w3.org/2005/xpath-functions/map}get", +type:"*",C:[{N:"gVarRef",name:"Q{}roleKind",bSlot:"0"},{N:"str",val:"TYPE_OP"}]}]},{N:"literal",count:"3",C:[{N:"str",val:"0"},{N:"str",val:""},{N:"str",val:"xsl:evaluate"}]}]},{N:"str",val:"|"}]}]}]},{N:"co",id:"98",binds:"",C:[{N:"globalVariable",name:"Q{}roles",as:"1FM k[AS] v[1NA]",line:"601",module:"XSLT-SEF-compiler.xsl",visibility:"PRIVATE",C:[{N:"ifCall",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ saxon=~ t=MyTypes xs=~ xsl=~ xml=~", +line:"611",name:"Q{http://www.w3.org/2005/xpath-functions/map}merge",type:"1FM",C:[{N:"forEach",C:[{N:"literal",count:"30",C:[{N:"str",val:"action"},{N:"str",val:"select"},{N:"str",val:"match"},{N:"str",val:"body"},{N:"str",val:"content"},{N:"str",val:"sort"},{N:"str",val:"caseOrder"},{N:"str",val:"dataType"},{N:"str",val:"collation"},{N:"str",val:"name"},{N:"str",val:"namespace"},{N:"str",val:"on-completion"},{N:"str",val:"baseUri"},{N:"str",val:"href"},{N:"str",val:"regex"},{N:"str",val:"flags"}, +{N:"str",val:"forEachItem"},{N:"str",val:"forEachStream"},{N:"str",val:"selectRows"},{N:"str",val:"startAt"},{N:"str",val:"format"},{N:"str",val:"count"},{N:"str",val:"gpSep"},{N:"str",val:"gpSize"},{N:"str",val:"stable"},{N:"str",val:"order"},{N:"str",val:"ordinal"},{N:"str",val:"lang"},{N:"str",val:"error"},{N:"str",val:"terminate"}]},{N:"ifCall",line:"612",name:"Q{http://www.w3.org/2005/xpath-functions/map}entry",type:"1FM",C:[{N:"dot",type:"1AS"},{N:"att",line:"613",name:"role",C:[{N:"dot",type:"1AS"}]}]}]}, +{N:"map",size:"2",C:[{N:"str",val:"duplicates"},{N:"str",val:"reject"},{N:"str",val:"duplicates-error-code"},{N:"str",val:"XTDE3365"}]}]}]}]},{N:"co",id:"235",vis:"PRIVATE",binds:"",C:[{N:"globalVariable",name:"Q{}RBRACE",as:"1ADI",line:"18",module:"XSLT-value-template.xsl",visibility:"PRIVATE",C:[{N:"int",val:"125"}]}]},{N:"co",id:"268",binds:"93",C:[{N:"globalVariable",name:"Q{http://saxon.sf.net/generated-variable}gg1182959658",as:"1AS",line:"286",module:"lib.xsl",visibility:"PRIVATE",C:[{N:"fn", +ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~",line:"286",name:"string-join",C:[{N:"sequence",C:[{N:"fn",name:"string",C:[{N:"ifCall",name:"Q{http://www.w3.org/2005/xpath-functions/map}get",type:"*",C:[{N:"gVarRef",name:"Q{}roleKind",bSlot:"0"},{N:"str",val:"TYPE_OP"}]}]},{N:"literal",count:"3",C:[{N:"str",val:"0"},{N:"str",val:"XPTY0004"},{N:"str",val:"ixsl:set-style/@object"}]}]}, +{N:"str",val:"|"}]}]}]},{N:"co",id:"187",binds:"93",C:[{N:"globalVariable",name:"Q{http://saxon.sf.net/generated-variable}gg1956358668",as:"1AS",line:"286",module:"lib.xsl",visibility:"PRIVATE",C:[{N:"fn",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~",line:"286",name:"string-join",C:[{N:"sequence",C:[{N:"fn",name:"string",C:[{N:"ifCall",name:"Q{http://www.w3.org/2005/xpath-functions/map}get", +type:"*",C:[{N:"gVarRef",name:"Q{}roleKind",bSlot:"0"},{N:"str",val:"TYPE_OP"}]}]},{N:"literal",count:"3",C:[{N:"str",val:"0"},{N:"str",val:"XTDE0980"},{N:"str",val:"xsl:number/@value"}]}]},{N:"str",val:"|"}]}]}]},{N:"co",id:"271",binds:"93",C:[{N:"globalVariable",name:"Q{http://saxon.sf.net/generated-variable}gg1194870779",as:"1AS",line:"286",module:"lib.xsl",visibility:"PRIVATE",C:[{N:"fn",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~", +line:"286",name:"string-join",C:[{N:"sequence",C:[{N:"fn",name:"string",C:[{N:"ifCall",name:"Q{http://www.w3.org/2005/xpath-functions/map}get",type:"*",C:[{N:"gVarRef",name:"Q{}roleKind",bSlot:"0"},{N:"str",val:"TYPE_OP"}]}]},{N:"literal",count:"3",C:[{N:"str",val:"0"},{N:"str",val:"XTTE1100"},{N:"str",val:"group-adjacent"}]}]},{N:"str",val:"|"}]}]}]},{N:"co",id:"300",binds:"",C:[{N:"globalVariable",name:"Q{}ST.OPTIONAL_DOCUMENT",as:"1FM k[AS] v[1AS]",line:"31",module:"sequenceType.xsl",visibility:"PRIVATE", +C:[{N:"map",size:"2",C:[{N:"str",val:"o"},{N:"str",val:"?"},{N:"str",val:"p"},{N:"str",val:"ND"}]}]}]},{N:"co",id:"301",binds:"",C:[{N:"globalVariable",name:"Q{}platform",as:"1AS",line:"214",module:"XSLT-SEF-compiler.xsl",visibility:"PUBLIC",flags:"s",C:[{N:"str",val:"JS"}]}]},{N:"co",id:"302",binds:"",C:[{N:"function",name:"Q{coBindings}find-reference",line:"191",module:"component-bindings.xsl",eval:"4",flags:"pU",as:"*AS",slots:"2",C:[{N:"arg",name:"Q{}bindings",as:"*AS"},{N:"arg",name:"Q{}name", +as:"1AS"},{N:"choose",role:"body",ns:"=http://ns.saxonica.com/xslt/export co=coBindings doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"200",C:[{N:"fn",name:"exists",C:[{N:"fn",name:"index-of",C:[{N:"varRef",name:"Q{}bindings",slot:"0"},{N:"varRef",name:"Q{}name",slot:"1"}]}]},{N:"varRef",name:"Q{}bindings",slot:"0"},{N:"true"},{N:"sequence",C:[{N:"varRef",name:"Q{}bindings",slot:"0"},{N:"varRef",name:"Q{}name",slot:"1"}]}]}]}]}, +{N:"co",id:"266",binds:"6 303",C:[{N:"globalVariable",name:"Q{}SJ.SINGLE_COMMENT",as:"1AS",line:"51",module:"sequenceType.xsl",visibility:"PRIVATE",C:[{N:"ufCall",ns:"err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ saxon=~ t=MyTypes xs=~ xsl=~ xml=~",line:"51",name:"Q{MyTypes}unmarshalType",tailCall:"false",bSlot:"0",eval:"6",C:[{N:"gVarRef",name:"Q{}ST.SINGLE_COMMENT",bSlot:"1"}]}]}]},{N:"co",id:"265",binds:"6 304",C:[{N:"globalVariable",name:"Q{}SJ.SINGLE_ELEMENT",as:"1AS",line:"50", +module:"sequenceType.xsl",visibility:"PRIVATE",C:[{N:"ufCall",ns:"err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ saxon=~ t=MyTypes xs=~ xsl=~ xml=~",line:"50",name:"Q{MyTypes}unmarshalType",tailCall:"false",bSlot:"0",eval:"6",C:[{N:"gVarRef",name:"Q{}ST.SINGLE_ELEMENT",bSlot:"1"}]}]}]},{N:"co",id:"305",binds:"131",C:[{N:"globalVariable",name:"Q{http://saxon.sf.net/generated-variable}gg1929760689",as:"+",line:"286",module:"XSLT-SEF-compiler.xsl",visibility:"PRIVATE",C:[{N:"sequence", +ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ saxon=~ t=MyTypes xs=~ xsl=~ xml=~",line:"286",C:[{N:"str",val:"XSLT compiler version:"},{N:"gVarRef",name:"Q{}compiler.version",bSlot:"0"}]}]}]},{N:"co",id:"306",binds:"",C:[{N:"function",name:"Q{MyFunctions}get-excluded-namespaces",line:"832",module:"static.xsl",eval:"4",flags:"pU",as:"*AS",slots:"3",C:[{N:"arg",name:"Q{}origin",as:"1NE"},{N:"forEach", +role:"body",ns:"doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions t=MyTypes xs=~ xsl=~ xml=~",line:"841",C:[{N:"docOrder",intra:"1",C:[{N:"slash",C:[{N:"slash",C:[{N:"varRef",name:"Q{}origin",slot:"0"},{N:"fn",name:"reverse",C:[{N:"axis",name:"ancestor-or-self",nodeTest:"NE"}]}]},{N:"choose",C:[{N:"fn",name:"exists",C:[{N:"axis",name:"self",nodeTest:"NE nQ{http://www.w3.org/1999/XSL/Transform}*"}]},{N:"sequence",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}exclude-result-prefixes"}, +{N:"axis",name:"attribute",nodeTest:"NA nQ{}extension-element-prefixes"}]},{N:"true"},{N:"sequence",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{http://www.w3.org/1999/XSL/Transform}exclude-result-prefixes"},{N:"axis",name:"attribute",nodeTest:"NA nQ{http://www.w3.org/1999/XSL/Transform}extension-element-prefixes"}]}]}]}]},{N:"let",line:"842","var":"Q{}owner",as:"*N u[NE,ND]",slot:"1",eval:"4",C:[{N:"axis",name:"parent",nodeTest:"N u[NE,ND]"},{N:"choose",line:"844",C:[{N:"vc",op:"eq",onEmpty:"0", +comp:"CCC",C:[{N:"fn",name:"normalize-space",C:[{N:"fn",name:"string",C:[{N:"dot",type:"1NA"}]}]},{N:"str",val:"#all"}]},{N:"forEach",line:"845",C:[{N:"slash",simple:"2",C:[{N:"varRef",name:"Q{}owner",slot:"1"},{N:"axis",name:"namespace",nodeTest:"NN"}]},{N:"fn",name:"string",C:[{N:"dot",type:"1NN"}]}]},{N:"true"},{N:"let",line:"855","var":"Q{http://saxon.sf.net/generated-variable}v0",as:"1NE i[NE,N u[NE,ND]]",slot:"2",eval:"13",C:[{N:"check",card:"1",diag:"0|1||fn:namespace-uri-for-prefix",C:[{N:"varRef", +name:"Q{}owner",slot:"1"}]},{N:"forEach",C:[{N:"forEach",C:[{N:"fn",name:"tokenize",C:[{N:"cvUntyped",to:"AS",C:[{N:"data",diag:"0|0||fn:tokenize",C:[{N:"dot",type:"1NA"}]}]}]},{N:"fn",name:"namespace-uri-for-prefix",C:[{N:"choose",C:[{N:"vc",op:"eq",onEmpty:"0",comp:"CCC",C:[{N:"dot",type:"1AS"},{N:"str",val:"#default"}]},{N:"str",val:""},{N:"true"},{N:"dot",type:"1AS"}]},{N:"varRef",name:"Q{http://saxon.sf.net/generated-variable}v0",slot:"2"}]}]},{N:"fn",name:"string",C:[{N:"dot",type:"1AU"}]}]}]}]}]}]}]}]}, +{N:"co",id:"307",binds:"",C:[{N:"function",name:"Q{MyTypes}withOccurrenceIndicator",line:"1190",module:"type.xsl",eval:"8",flags:"pU",as:"1AS",slots:"2",C:[{N:"arg",name:"Q{}type",as:"1AS"},{N:"arg",name:"Q{}indicator",as:"1AS"},{N:"fn",role:"body",ns:"doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~",line:"1193",name:"concat",C:[{N:"varRef",name:"Q{}indicator",slot:"1"},{N:"fn",name:"replace",C:[{N:"varRef",name:"Q{}type", +slot:"0"},{N:"str",val:"^[01*?+]"},{N:"str",val:""},{N:"str",val:""}]}]}]}]},{N:"co",id:"308",binds:"",C:[{N:"function",name:"Q{MyFunctions}distinct-values-retaining-order",line:"449",module:"lib.xsl",eval:"4",flags:"pU",as:"*A",slots:"1",C:[{N:"arg",name:"Q{}in",as:"*A"},{N:"forEachGroup",role:"body",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~",line:"451",algorithm:"by", +C:[{N:"varRef",role:"select",name:"Q{}in",slot:"0"},{N:"dot",role:"key",type:"1A"},{N:"str",role:"collation",val:"http://www.w3.org/2005/xpath-functions/collation/codepoint"},{N:"dot",role:"content",line:"452",type:"1A"}]}]}]},{N:"co",id:"309",binds:"174 83 22 305 82 30 143 167 22 79 15",C:[{N:"mode",name:"Q{}compile-complete",onNo:"TC",flags:"W",patternSlots:"0",C:[{N:"templateRule",prec:"0",prio:"-0.5",seq:"370",rank:"0",minImp:"0",slots:"12",matches:"ND",flags:"s",line:"274",module:"XSLT-SEF-compiler.xsl", +C:[{N:"p.nodeTest",role:"match",test:"ND"},{N:"sequence",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ saxon=~ t=MyTypes xs=~ xsl=~ xml=~",line:"275",C:[{N:"param",name:"Q{}options",slot:"0",as:"1FM",C:[{N:"gVarRef",role:"select",name:"Q{}options",bSlot:"0"},{N:"treat",role:"conversion",as:"FM",diag:"8|0|XTTE0590|options",C:[{N:"check",card:"1",diag:"8|0|XTTE0590|options",C:[{N:"supplied", +slot:"0"}]}]}]},{N:"param",line:"276",name:"Q{}defaultHTML5",slot:"1",as:"1AB",C:[{N:"gVarRef",role:"select",name:"Q{}defaultHTML5",bSlot:"1"},{N:"treat",role:"conversion",as:"AB",diag:"8|0|XTTE0590|defaultHTML5",C:[{N:"check",card:"1",diag:"8|0|XTTE0590|defaultHTML5",C:[{N:"cvUntyped",to:"AB",diag:"8|0|XTTE0590|defaultHTML5",C:[{N:"data",diag:"8|0|XTTE0590|defaultHTML5",C:[{N:"supplied",slot:"1"}]}]}]}]}]},{N:"let",line:"280","var":"Q{}start.time",slot:"2",eval:"16",C:[{N:"ufCall",name:"Q{MyFunctions}timestamp", +tailCall:"false",bSlot:"2"},{N:"sequence",line:"284",C:[{N:"choose",C:[{N:"and",op:"and",C:[{N:"lookup",C:[{N:"varRef",name:"Q{}options",slot:"0"},{N:"str",val:"timing"}]},{N:"fn",name:"exists",C:[{N:"subscript",C:[{N:"varRef",name:"Q{}start.time",slot:"2"},{N:"int",val:"2"}]}]}]},{N:"sequence",line:"286",C:[{N:"message",C:[{N:"gVarRef",role:"select",name:"Q{http://saxon.sf.net/generated-variable}gg1929760689",bSlot:"3"},{N:"str",role:"terminate",val:"no"},{N:"str",role:"error",val:"Q{http://www.w3.org/2005/xqt-errors}XTMM9000"}]}, +{N:"message",line:"287",C:[{N:"sequence",role:"select",C:[{N:"str",val:"Started @"},{N:"varRef",name:"Q{}start.time",slot:"2"}]},{N:"str",role:"terminate",val:"no"},{N:"str",role:"error",val:"Q{http://www.w3.org/2005/xqt-errors}XTMM9000"}]}]}]},{N:"let",line:"296","var":"Q{}tempFromComp",as:"1ND",slot:"3",eval:"16",C:[{N:"doc",line:"297",C:[{N:"applyT",mode:"Q{}compile",bSlot:"4",C:[{N:"axis",role:"select",name:"child",nodeTest:"NE"},{N:"withParam",name:"Q{}options",flags:"t",as:"1FM",C:[{N:"varRef", +line:"298",name:"Q{}options",slot:"0"}]},{N:"withParam",name:"Q{}params",flags:"t",as:"1FM k[AQ]",C:[{N:"gVarRef",line:"300",name:"Q{}staticParameters",bSlot:"5"}]}]}]},{N:"sequence",line:"305",C:[{N:"choose",C:[{N:"or",op:"or",C:[{N:"or",op:"or",C:[{N:"lookup",C:[{N:"varRef",name:"Q{}options",slot:"0"},{N:"str",val:"justStatic"}]},{N:"lookup",C:[{N:"varRef",name:"Q{}options",slot:"0"},{N:"str",val:"justNormalize"}]}]},{N:"lookup",C:[{N:"varRef",name:"Q{}options",slot:"0"},{N:"str",val:"noXPath"}]}]}, +{N:"varRef",line:"306",name:"Q{}tempFromComp",slot:"3"},{N:"true"},{N:"sequence",line:"309",C:[{N:"choose",C:[{N:"lookup",C:[{N:"varRef",name:"Q{}options",slot:"0"},{N:"str",val:"statistics"}]},{N:"message",line:"310",C:[{N:"valueOf",role:"select",C:[{N:"fn",name:"concat",C:[{N:"str",val:"XPath statistics: "},{N:"convert",from:"ADI",to:"AS",C:[{N:"fn",name:"count",C:[{N:"slash",simple:"2",C:[{N:"slash",simple:"1",C:[{N:"varRef",name:"Q{}tempFromComp",slot:"3"},{N:"axis",name:"child",nodeTest:"NE"}]}, +{N:"axis",name:"child",nodeTest:"NE nQ{http://ns.saxonica.com/xslt/export}co"}]}]}]},{N:"str",val:" components\n "},{N:"convert",from:"ADI",to:"AS",C:[{N:"fn",name:"count",C:[{N:"slash",simple:"2",C:[{N:"slash",simple:"2",C:[{N:"slash",simple:"1",C:[{N:"varRef",name:"Q{}tempFromComp",slot:"3"},{N:"axis",name:"child",nodeTest:"NE"}]},{N:"axis",name:"child",nodeTest:"NE nQ{http://ns.saxonica.com/xslt/export}co"}]},{N:"axis",name:"descendant",nodeTest:"NE"}]}]}]},{N:"str",val:" elements\n "}, +{N:"convert",from:"ADI",to:"AS",C:[{N:"fn",name:"count",C:[{N:"slash",simple:"2",C:[{N:"slash",simple:"2",C:[{N:"slash",simple:"2",C:[{N:"slash",simple:"1",C:[{N:"varRef",name:"Q{}tempFromComp",slot:"3"},{N:"axis",name:"child",nodeTest:"NE"}]},{N:"axis",name:"child",nodeTest:"NE nQ{http://ns.saxonica.com/xslt/export}co"}]},{N:"axis",name:"descendant-or-self",nodeTest:"NE"}]},{N:"axis",name:"attribute",nodeTest:"NA"}]}]}]},{N:"str",val:" attributes\n "},{N:"convert",from:"ADI", +to:"AS",C:[{N:"fn",name:"count",C:[{N:"slash",simple:"1",C:[{N:"varRef",name:"Q{}tempFromComp",slot:"3"},{N:"axis",name:"descendant",nodeTest:"NE nQ{http://ns.saxonica.com/xslt/export}xpath"}]}]}]},{N:"str",val:" XPath expressions\n "},{N:"convert",from:"ADI",to:"AS",C:[{N:"fn",name:"count",C:[{N:"slash",simple:"1",C:[{N:"varRef",name:"Q{}tempFromComp",slot:"3"},{N:"axis",name:"descendant",nodeTest:"NE nQ{http://ns.saxonica.com/xslt/export}pattern"}]}]}]},{N:"str",val:" patterns "}]}]}, +{N:"str",role:"terminate",val:"no"},{N:"str",role:"error",val:"Q{http://www.w3.org/2005/xqt-errors}XTMM9000"}]}]},{N:"choose",line:"316",C:[{N:"lookup",C:[{N:"varRef",name:"Q{}options",slot:"0"},{N:"str",val:"traceProgress"}]},{N:"message",line:"321",C:[{N:"sequence",role:"select",C:[{N:"str",val:"Starting XPath compiling:"},{N:"fn",name:"count",C:[{N:"slash",simple:"1",C:[{N:"varRef",name:"Q{}tempFromComp",slot:"3"},{N:"axis",name:"descendant",nodeTest:"NE nQ{http://ns.saxonica.com/xslt/export}xpath"}]}]}, +{N:"str",val:"expressions"},{N:"fn",name:"count",C:[{N:"slash",simple:"1",C:[{N:"varRef",name:"Q{}tempFromComp",slot:"3"},{N:"axis",name:"descendant",nodeTest:"NE nQ{http://ns.saxonica.com/xslt/export}pattern"}]}]},{N:"str",val:"patterns"}]},{N:"str",role:"terminate",val:"no"},{N:"str",role:"error",val:"Q{http://www.w3.org/2005/xqt-errors}XTMM9000"}]}]},{N:"let",line:"323","var":"Q{}temp",as:"1ND",slot:"4",eval:"16",C:[{N:"doc",line:"324",C:[{N:"applyT",mode:"Q{}process-xpath",bSlot:"6",C:[{N:"varRef", +role:"select",name:"Q{}tempFromComp",slot:"3"},{N:"withParam",name:"Q{}options",flags:"t",as:"1FM",C:[{N:"varRef",line:"325",name:"Q{}options",slot:"0"}]},{N:"withParam",name:"Q{}defaultHTML5",flags:"t",as:"1AB",C:[{N:"varRef",line:"327",name:"Q{}defaultHTML5",slot:"1"}]}]}]},{N:"sequence",line:"330",C:[{N:"choose",C:[{N:"lookup",C:[{N:"varRef",name:"Q{}options",slot:"0"},{N:"str",val:"statistics"}]},{N:"message",line:"331",C:[{N:"valueOf",role:"select",C:[{N:"fn",name:"concat",C:[{N:"str",val:"Final statistics: "}, +{N:"convert",from:"ADI",to:"AS",C:[{N:"fn",name:"count",C:[{N:"slash",simple:"2",C:[{N:"slash",simple:"1",C:[{N:"varRef",name:"Q{}temp",slot:"4"},{N:"axis",name:"child",nodeTest:"NE"}]},{N:"axis",name:"child",nodeTest:"NE nQ{http://ns.saxonica.com/xslt/export}co"}]}]}]},{N:"str",val:" components\n "},{N:"convert",from:"ADI",to:"AS",C:[{N:"fn",name:"count",C:[{N:"slash",simple:"2",C:[{N:"slash",simple:"2",C:[{N:"slash",simple:"1",C:[{N:"varRef",name:"Q{}temp",slot:"4"},{N:"axis", +name:"child",nodeTest:"NE"}]},{N:"axis",name:"child",nodeTest:"NE nQ{http://ns.saxonica.com/xslt/export}co"}]},{N:"axis",name:"descendant",nodeTest:"NE"}]}]}]},{N:"str",val:" elements "},{N:"convert",from:"ADI",to:"AS",C:[{N:"fn",name:"count",C:[{N:"slash",simple:"2",C:[{N:"slash",simple:"2",C:[{N:"slash",simple:"2",C:[{N:"slash",simple:"1",C:[{N:"varRef",name:"Q{}temp",slot:"4"},{N:"axis",name:"child",nodeTest:"NE"}]},{N:"axis",name:"child",nodeTest:"NE nQ{http://ns.saxonica.com/xslt/export}co"}]}, +{N:"axis",name:"descendant-or-self",nodeTest:"NE"}]},{N:"axis",name:"attribute",nodeTest:"NA"}]}]}]},{N:"str",val:" attributes\n "}]}]},{N:"str",role:"terminate",val:"no"},{N:"str",role:"error",val:"Q{http://www.w3.org/2005/xqt-errors}XTMM9000"}]}]},{N:"choose",line:"336",C:[{N:"lookup",C:[{N:"varRef",name:"Q{}options",slot:"0"},{N:"str",val:"noBindings"}]},{N:"varRef",line:"337",name:"Q{}temp",slot:"4"},{N:"true"},{N:"sequence",line:"340",C:[{N:"choose",C:[{N:"lookup",C:[{N:"varRef", +name:"Q{}options",slot:"0"},{N:"str",val:"traceProgress"}]},{N:"message",line:"341",C:[{N:"str",role:"select",val:"Starting Component binding"},{N:"str",role:"terminate",val:"no"},{N:"str",role:"error",val:"Q{http://www.w3.org/2005/xqt-errors}XTMM9000"}]}]},{N:"applyT",line:"343",mode:"Q{}process-bindings",bSlot:"7",C:[{N:"varRef",role:"select",name:"Q{}temp",slot:"4"},{N:"withParam",name:"Q{}options",flags:"t",as:"1FM",C:[{N:"varRef",line:"345",name:"Q{}options",slot:"0"}]}]}]}]}]}]}]}]},{N:"let", +line:"352","var":"Q{}duration",as:"1AR",slot:"5",eval:"16",C:[{N:"arith",op:"-",calc:"t-t",C:[{N:"ufCall",line:"351",name:"Q{MyFunctions}timestamp",tailCall:"false",bSlot:"8"},{N:"varRef",name:"Q{}start.time",slot:"2"}]},{N:"sequence",line:"353",C:[{N:"choose",C:[{N:"lookup",C:[{N:"varRef",name:"Q{}options",slot:"0"},{N:"str",val:"timing"}]},{N:"message",line:"362",C:[{N:"sequence",role:"select",C:[{N:"str",val:"Stylesheet compilation time:"},{N:"let","var":"Q{}h",slot:"6",eval:"8",C:[{N:"fn",name:"hours-from-duration", +C:[{N:"varRef",name:"Q{}duration",slot:"5"}]},{N:"let","var":"Q{http://saxon.sf.net/generated-variable}v0",as:"1AB",slot:"7",eval:"13",C:[{N:"vc",op:"ne",comp:"CAVC",C:[{N:"varRef",name:"Q{}h",slot:"6"},{N:"int",val:"0"}]},{N:"let","var":"Q{}m",slot:"8",eval:"8",C:[{N:"fn",name:"minutes-from-duration",C:[{N:"varRef",name:"Q{}duration",slot:"5"}]},{N:"let","var":"Q{http://saxon.sf.net/generated-variable}v1",as:"1AB",slot:"9",eval:"13",C:[{N:"vc",op:"ne",comp:"CAVC",C:[{N:"varRef",name:"Q{}m",slot:"8"}, +{N:"int",val:"0"}]},{N:"fn",name:"string-join",C:[{N:"sequence",C:[{N:"filter",flags:"ib",C:[{N:"fn",name:"concat",C:[{N:"varRef",name:"Q{}h",slot:"6"},{N:"str",val:"h"}]},{N:"varRef",name:"Q{http://saxon.sf.net/generated-variable}v0",slot:"7"}]},{N:"filter",flags:"ib",C:[{N:"fn",name:"concat",C:[{N:"varRef",name:"Q{}m",slot:"8"},{N:"str",val:"m"}]},{N:"varRef",name:"Q{http://saxon.sf.net/generated-variable}v1",slot:"9"}]},{N:"fn",name:"concat",C:[{N:"fn",name:"seconds-from-duration",C:[{N:"varRef", +name:"Q{}duration",slot:"5"}]},{N:"str",val:"s"}]}]},{N:"str",val:" "}]}]}]}]}]}]},{N:"str",role:"terminate",val:"no"},{N:"str",role:"error",val:"Q{http://www.w3.org/2005/xqt-errors}XTMM9000"}]}]},{N:"let",line:"365","var":"Q{}errorCount",slot:"10",eval:"16",C:[{N:"ufCall",name:"Q{MyFunctions}message-count",tailCall:"false",bSlot:"9",eval:"6",C:[{N:"gVarRef",name:"Q{}XTSE0010",bSlot:"10"}]},{N:"choose",line:"366",C:[{N:"vc",op:"gt",onEmpty:"0",comp:"GAC|http://www.w3.org/2005/xpath-functions/collation/codepoint", +C:[{N:"varRef",name:"Q{}errorCount",slot:"10"},{N:"int",val:"0"}]},{N:"let",line:"367","var":"Q{http://saxon.sf.net/generated-variable}v2",as:"1AB",slot:"11",eval:"13",C:[{N:"vc",op:"ne",onEmpty:"0",comp:"GAC|http://www.w3.org/2005/xpath-functions/collation/codepoint",C:[{N:"varRef",name:"Q{}errorCount",slot:"10"},{N:"int",val:"1"}]},{N:"message",C:[{N:"valueOf",role:"select",C:[{N:"fn",name:"concat",C:[{N:"convert",from:"ADI",to:"AS",C:[{N:"varRef",name:"Q{}errorCount",slot:"10"}]},{N:"str",val:" error"}, +{N:"fn",name:"string",C:[{N:"filter",flags:"ib",C:[{N:"str",val:"s"},{N:"varRef",name:"Q{http://saxon.sf.net/generated-variable}v2",slot:"11"}]}]},{N:"str",val:" during compilation"}]}]},{N:"str",role:"terminate",val:"no"},{N:"str",role:"error",val:"Q{http://www.w3.org/2005/xqt-errors}XTMM9000"}]}]}]}]}]}]}]}]}]}]}]}]}]}]},{N:"co",id:"238",binds:"192",C:[{N:"globalVariable",name:"Q{}declaration-names",as:"*AS",line:"260",module:"XSLT-syntax.xsl",visibility:"PRIVATE",C:[{N:"slash",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~", +line:"260",C:[{N:"gVarRef",name:"Q{}top-level-declarations",bSlot:"0"},{N:"fn",name:"name",C:[{N:"dot",type:"1NE"}]}]}]}]},{N:"co",id:"156",binds:"4 185 185",C:[{N:"function",name:"Q{MyTypes}type-error",line:"1172",module:"type.xsl",eval:"4",flags:"pU",as:"*",slots:"5",C:[{N:"arg",name:"Q{}suppliedType",as:"1FM"},{N:"arg",name:"Q{}requiredType",as:"1FM"},{N:"arg",name:"Q{}diag",as:"1AS"},{N:"arg",name:"Q{}expression",as:"1NE"},{N:"tailCallLoop",role:"body",ns:"doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~", +line:"1177",C:[{N:"let","var":"Q{}parts",as:"*AS",slot:"4",eval:"4",C:[{N:"fn",name:"tokenize",C:[{N:"varRef",name:"Q{}diag",slot:"2"},{N:"str",val:"\\|"},{N:"str",val:""}]},{N:"ufCall",line:"1184",name:"Q{MyFunctions}syntax-error-at",tailCall:"foreign",bSlot:"0",eval:"16 16 6",C:[{N:"check",card:"1",diag:"0|0||f:syntax-error-at",C:[{N:"subscript",C:[{N:"varRef",name:"Q{}parts",slot:"4"},{N:"int",val:"3"}]}]},{N:"fn",name:"concat",C:[{N:"str",val:"Required type of "},{N:"subscript",C:[{N:"varRef", +name:"Q{}parts",slot:"4"},{N:"int",val:"4"}]},{N:"str",val:" is "},{N:"ufCall",name:"Q{MyTypes}displayType",tailCall:"false",bSlot:"1",eval:"6",C:[{N:"varRef",name:"Q{}requiredType",slot:"1"}]},{N:"str",val:"; actual type is "},{N:"ufCall",name:"Q{MyTypes}displayType",tailCall:"false",bSlot:"2",eval:"6",C:[{N:"varRef",name:"Q{}suppliedType",slot:"0"}]}]},{N:"varRef",name:"Q{}expression",slot:"3"}]}]}]}]}]},{N:"co",id:"184",binds:"93",C:[{N:"globalVariable",name:"Q{http://saxon.sf.net/generated-variable}gg1614992995", +as:"1AS",line:"286",module:"lib.xsl",visibility:"PRIVATE",C:[{N:"fn",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~",line:"286",name:"string-join",C:[{N:"sequence",C:[{N:"fn",name:"string",C:[{N:"ifCall",name:"Q{http://www.w3.org/2005/xpath-functions/map}get",type:"*",C:[{N:"gVarRef",name:"Q{}roleKind",bSlot:"0"},{N:"str",val:"TYPE_OP"}]}]},{N:"literal",count:"3",C:[{N:"str", +val:"0"},{N:"str",val:"XTTE0505"},{N:"str",val:"template result"}]}]},{N:"str",val:"|"}]}]}]},{N:"co",id:"310",binds:"",C:[{N:"function",name:"Q{MyTypes}type-error",line:"1164",module:"type.xsl",eval:"8",flags:"pU",as:"*",slots:"2",C:[{N:"arg",name:"Q{}suppliedType",as:"1FM"},{N:"arg",name:"Q{}requiredType",as:"1FM"},{N:"fn",role:"body",ns:"doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~",line:"1169",name:"error", +C:[{N:"qName",pre:"",uri:"http://www.w3.org/2005/xqt-errors",loc:"XTTE0590"},{N:"fn",name:"concat",C:[{N:"str",val:"Wrong type "},{N:"fn",line:"325",name:"serialize",C:[{N:"varRef",line:"1169",name:"Q{}suppliedType",slot:"0"},{N:"map",size:"1",C:[{N:"str",val:"method"},{N:"str",val:"json"}]}]},{N:"str",val:" for ??? - expecting "},{N:"fn",line:"325",name:"serialize",C:[{N:"varRef",line:"1169",name:"Q{}requiredType",slot:"1"},{N:"map",size:"1",C:[{N:"str",val:"method"},{N:"str",val:"json"}]}]}]}]}]}]}, +{N:"co",id:"269",binds:"93",C:[{N:"globalVariable",name:"Q{http://saxon.sf.net/generated-variable}gg1248786194",as:"1AS",line:"286",module:"lib.xsl",visibility:"PRIVATE",C:[{N:"fn",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~",line:"286",name:"string-join",C:[{N:"sequence",C:[{N:"fn",name:"string",C:[{N:"ifCall",name:"Q{http://www.w3.org/2005/xpath-functions/map}get", +type:"*",C:[{N:"gVarRef",name:"Q{}roleKind",bSlot:"0"},{N:"str",val:"TYPE_OP"}]}]},{N:"literal",count:"3",C:[{N:"str",val:"0"},{N:"str",val:"XPTY0004"},{N:"str",val:"ixsl:set-attribute/@object"}]}]},{N:"str",val:"|"}]}]}]},{N:"co",id:"311",binds:"",C:[{N:"function",name:"Q{MyFunctions}plainAtt",line:"842",module:"normalize.xsl",eval:"4",flags:"pU",as:"*NA",slots:"1",C:[{N:"arg",name:"Q{}context",as:"1NE"},{N:"forEach",role:"body",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~", +line:"844",C:[{N:"varRef",name:"Q{}context",slot:"0"},{N:"filter",flags:"b",C:[{N:"axis",name:"attribute",nodeTest:"NA"},{N:"fn",name:"not",C:[{N:"fn",name:"namespace-uri",C:[{N:"dot",type:"1NA"}]}]}]}]}]}]},{N:"co",id:"172",binds:"93",C:[{N:"globalVariable",name:"Q{http://saxon.sf.net/generated-variable}gg1102782217",as:"1AS",line:"286",module:"lib.xsl",visibility:"PRIVATE",C:[{N:"fn",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~", +line:"286",name:"string-join",C:[{N:"sequence",C:[{N:"fn",name:"string",C:[{N:"ifCall",name:"Q{http://www.w3.org/2005/xpath-functions/map}get",type:"*",C:[{N:"gVarRef",name:"Q{}roleKind",bSlot:"0"},{N:"str",val:"TYPE_OP"}]}]},{N:"literal",count:"3",C:[{N:"str",val:"0"},{N:"str",val:"XTDE0030"},{N:"str",val:"xsl:number/@lang"}]}]},{N:"str",val:"|"}]}]}]},{N:"co",id:"191",binds:"93",C:[{N:"globalVariable",name:"Q{http://saxon.sf.net/generated-variable}gg1522250355",as:"1AS",line:"286",module:"lib.xsl", +visibility:"PRIVATE",C:[{N:"fn",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~",line:"286",name:"string-join",C:[{N:"sequence",C:[{N:"fn",name:"string",C:[{N:"ifCall",name:"Q{http://www.w3.org/2005/xpath-functions/map}get",type:"*",C:[{N:"gVarRef",name:"Q{}roleKind",bSlot:"0"},{N:"str",val:"TYPE_OP"}]}]},{N:"literal",count:"3",C:[{N:"str",val:"0"},{N:"str",val:"XTTE0570"}, +{N:"str",val:"check"}]}]},{N:"str",val:"|"}]}]}]},{N:"co",id:"154",binds:"154",C:[{N:"function",name:"Q{MyTypes}itemTypeRelationship",line:"234",module:"type.xsl",eval:"16",flags:"pU",as:"1AS",slots:"10",C:[{N:"arg",name:"Q{}required",as:"1FM"},{N:"arg",name:"Q{}supplied",as:"1FM"},{N:"tailCallLoop",role:"body",ns:"doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~",line:"245",C:[{N:"let","var":"Q{}primaryRel",slot:"2", +eval:"16",C:[{N:"let","var":"Q{}R",as:"1AS",slot:"3",eval:"16",C:[{N:"treat",as:"AS",diag:"0|0||t:alphaRelationship",C:[{N:"check",card:"1",diag:"0|0||t:alphaRelationship",C:[{N:"cvUntyped",to:"AS",C:[{N:"data",diag:"0|0||t:alphaRelationship",C:[{N:"lookup",C:[{N:"varRef",name:"Q{}required",slot:"0"},{N:"str",val:"p"}]}]}]}]}]},{N:"let","var":"Q{}S",as:"1AS",slot:"4",eval:"16",C:[{N:"treat",as:"AS",diag:"0|1||t:alphaRelationship",C:[{N:"check",card:"1",diag:"0|1||t:alphaRelationship",C:[{N:"cvUntyped", +to:"AS",C:[{N:"data",diag:"0|1||t:alphaRelationship",C:[{N:"lookup",C:[{N:"varRef",name:"Q{}supplied",slot:"1"},{N:"str",val:"p"}]}]}]}]}]},{N:"choose",line:"185",C:[{N:"vc",op:"eq",onEmpty:"0",comp:"CCC",C:[{N:"varRef",name:"Q{}R",slot:"3"},{N:"varRef",name:"Q{}S",slot:"4"}]},{N:"str",val:"EQ"},{N:"fn",name:"starts-with",C:[{N:"varRef",name:"Q{}R",slot:"3"},{N:"varRef",name:"Q{}S",slot:"4"}]},{N:"str",val:"LT"},{N:"fn",name:"starts-with",C:[{N:"varRef",name:"Q{}S",slot:"4"},{N:"varRef",name:"Q{}R", +slot:"3"}]},{N:"str",val:"GT"},{N:"true"},{N:"str",val:"DJ"}]}]}]},{N:"choose",line:"248",C:[{N:"or",op:"or",C:[{N:"or",op:"or",C:[{N:"vc",op:"ne",onEmpty:"0",comp:"GAC|http://www.w3.org/2005/xpath-functions/collation/codepoint",C:[{N:"varRef",name:"Q{}primaryRel",slot:"2"},{N:"str",val:"EQ"}]},{N:"fn",name:"starts-with",C:[{N:"treat",as:"AS",diag:"0|0||fn:starts-with",C:[{N:"check",card:"?",diag:"0|0||fn:starts-with",C:[{N:"cvUntyped",to:"AS",C:[{N:"data",diag:"0|0||fn:starts-with",C:[{N:"lookup", +C:[{N:"varRef",name:"Q{}required",slot:"0"},{N:"str",val:"p"}]}]}]}]}]},{N:"str",val:"A"}]}]},{N:"vc",op:"eq",onEmpty:"0",comp:"GAC|http://www.w3.org/2005/xpath-functions/collation/codepoint",C:[{N:"atomSing",card:"?",diag:"1|0||eq",C:[{N:"lookup",C:[{N:"varRef",name:"Q{}required",slot:"0"},{N:"str",val:"p"}]}]},{N:"str",val:""}]}]},{N:"varRef",line:"249",name:"Q{}primaryRel",slot:"2"},{N:"true"},{N:"let",line:"252","var":"Q{}R",slot:"5",eval:"4",C:[{N:"lookup",C:[{N:"varRef",name:"Q{}required",slot:"0"}, +{N:"str",val:"n"}]},{N:"let",line:"253","var":"Q{}S",slot:"6",eval:"4",C:[{N:"lookup",C:[{N:"varRef",name:"Q{}supplied",slot:"1"},{N:"str",val:"n"}]},{N:"let",line:"266","var":"Q{}nameRel",as:"1AS",slot:"7",eval:"16",C:[{N:"choose",C:[{N:"and",op:"and",C:[{N:"fn",name:"exists",C:[{N:"varRef",name:"Q{}R",slot:"5"}]},{N:"fn",name:"empty",C:[{N:"varRef",name:"Q{}S",slot:"6"}]}]},{N:"str",val:"LT"},{N:"and",op:"and",C:[{N:"fn",name:"exists",C:[{N:"varRef",name:"Q{}S",slot:"6"}]},{N:"fn",name:"empty", +C:[{N:"varRef",name:"Q{}R",slot:"5"}]}]},{N:"str",val:"GT"},{N:"fn",name:"deep-equal",C:[{N:"varRef",name:"Q{}R",slot:"5"},{N:"varRef",name:"Q{}S",slot:"6"}]},{N:"str",val:"EQ"},{N:"true"},{N:"str",val:"DJ"}]},{N:"choose",line:"268",C:[{N:"vc",op:"ne",onEmpty:"0",comp:"CCC",C:[{N:"varRef",name:"Q{}nameRel",slot:"7"},{N:"str",val:"EQ"}]},{N:"varRef",line:"269",name:"Q{}nameRel",slot:"7"},{N:"true"},{N:"let",line:"272","var":"Q{}R",slot:"8",eval:"4",C:[{N:"lookup",C:[{N:"varRef",name:"Q{}required", +slot:"0"},{N:"str",val:"e"}]},{N:"let",line:"273","var":"Q{}S",slot:"9",eval:"4",C:[{N:"lookup",C:[{N:"varRef",name:"Q{}supplied",slot:"1"},{N:"str",val:"e"}]},{N:"choose",line:"285",C:[{N:"and",op:"and",C:[{N:"fn",name:"exists",C:[{N:"varRef",name:"Q{}R",slot:"8"}]},{N:"fn",name:"empty",C:[{N:"varRef",name:"Q{}S",slot:"9"}]}]},{N:"str",val:"LT"},{N:"and",op:"and",C:[{N:"fn",name:"exists",C:[{N:"varRef",name:"Q{}S",slot:"9"}]},{N:"fn",name:"empty",C:[{N:"varRef",name:"Q{}R",slot:"8"}]}]},{N:"str", +val:"GT"},{N:"and",op:"and",C:[{N:"fn",name:"not",C:[{N:"varRef",name:"Q{}R",slot:"8"}]},{N:"fn",name:"not",C:[{N:"varRef",name:"Q{}S",slot:"9"}]}]},{N:"str",val:"EQ"},{N:"true"},{N:"ufCall",name:"Q{MyTypes}itemTypeRelationship",tailCall:"self",bSlot:"0",eval:"16 16",C:[{N:"treat",as:"FM",diag:"0|0||t:itemTypeRelationship",C:[{N:"check",card:"1",diag:"0|0||t:itemTypeRelationship",C:[{N:"varRef",name:"Q{}R",slot:"8"}]}]},{N:"treat",as:"FM",diag:"0|1||t:itemTypeRelationship",C:[{N:"check",card:"1", +diag:"0|1||t:itemTypeRelationship",C:[{N:"varRef",name:"Q{}S",slot:"9"}]}]}]}]}]}]}]}]}]}]}]}]}]}]}]},{N:"co",id:"244",binds:"",C:[{N:"globalVariable",name:"Q{http://saxon.sf.net/generated-variable}gg1507604180",as:"1AS",line:"341",module:"XSLT-syntax.xsl",visibility:"PRIVATE",C:[{N:"fn",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"341",name:"string-join",C:[{N:"convert",from:"A", +to:"AS",C:[{N:"sequence",C:[{N:"str",val:"DO NOT EDIT: compiled with initial template compileXSLTschema "},{N:"fn",name:"current-dateTime"}]}]},{N:"str",val:" "}]}]}]},{N:"co",id:"234",vis:"PRIVATE",binds:"",C:[{N:"globalVariable",name:"Q{}LBRACE",as:"1ADI",line:"17",module:"XSLT-value-template.xsl",visibility:"PRIVATE",C:[{N:"int",val:"123"}]}]},{N:"co",id:"312",vis:"PRIVATE",binds:"",C:[{N:"function",name:"Q{MyFunctions}pvt-emit-expression",line:"29",module:"XSLT-value-template.xsl",eval:"9",flags:"pU", +as:"1NA",slots:"1",C:[{N:"arg",name:"Q{}in",as:"1AS"},{N:"att",role:"body",ns:"doc=http://www.saxonica.com/ns/documentation f=MyFunctions xs=~ xsl=~ xml=~",line:"32",name:"expression",C:[{N:"varRef",name:"Q{}in",slot:"0"}]}]}]},{N:"co",id:"313",binds:"",C:[{N:"globalVariable",name:"Q{}bind-with-accumulators",as:"1AB",line:"22",module:"component-bindings.xsl",visibility:"PRIVATE",flags:"s",C:[{N:"true"}]}]},{N:"co",id:"237",binds:"4",C:[{N:"function",name:"Q{MyFunctions}missingAttribute",line:"836", +module:"normalize.xsl",eval:"4",flags:"pU",as:"*",slots:"2",C:[{N:"arg",name:"Q{}context",as:"1NE"},{N:"arg",name:"Q{}attribute",as:"1AS"},{N:"forEach",role:"body",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"839",C:[{N:"varRef",name:"Q{}context",slot:"0"},{N:"ufCall",name:"Q{MyFunctions}syntax-error-at",tailCall:"false",bSlot:"0",eval:"0 16 16",C:[{N:"str",val:"XTSE0010"}, +{N:"fn",name:"concat",C:[{N:"fn",name:"name",C:[{N:"dot",type:"1NE"}]},{N:"str",val:" requires an @"},{N:"varRef",name:"Q{}attribute",slot:"1"},{N:"str",val:" attribute"}]},{N:"dot",type:"1NE"}]}]}]}]},{N:"co",id:"118",binds:"258",C:[{N:"globalVariable",name:"Q{}atomicTypes",as:"1FM k[AS] v[1FM k[AS] v[1AS]]",line:"1008",module:"type.xsl",visibility:"PRIVATE",C:[{N:"ifCall",ns:"doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~", +line:"1008",name:"Q{http://www.w3.org/2005/xpath-functions/map}entry",type:"1FM",C:[{N:"str",val:"AU"},{N:"gVarRef",name:"Q{}ST.SINGLE_URI",bSlot:"0"}]}]}]},{N:"co",id:"85",binds:"157 4 193 4 4 152 28 84 60 58 58 58 88 170 185 4 4 53 53 4 49 4 168 152 213 85 157",C:[{N:"mode",name:"Q{}process-module",onNo:"FF",flags:"F",patternSlots:"0",C:[{N:"templateRule",prec:"0",prio:"1.45",seq:"1",rank:"1",minImp:"0",slots:"0",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}*",flags:"s",line:"114",module:"static.xsl", +C:[{N:"p.withUpper",role:"match",axis:"parent",upFirst:"false",C:[{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}*"},{N:"p.nodeTest",test:"ND"}]},{N:"ufCall",role:"action",ns:"doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions t=MyTypes xs=~ xsl=~ xml=~",line:"115",name:"Q{MyFunctions}syntax-error",tailCall:"false",bSlot:"0",eval:"16",C:[{N:"fn",name:"concat",C:[{N:"fn",name:"name",C:[{N:"dot",type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}*"}]}, +{N:"str",val:" must not appear at the outermost level of a stylesheet module"}]}]}]},{N:"templateRule",prec:"0",prio:"1.4",seq:"0",rank:"0",minImp:"0",slots:"0",matches:"NE",flags:"s",as:"1FM",line:"90",module:"static.xsl",C:[{N:"p.withUpper",role:"match",axis:"parent",upFirst:"false",C:[{N:"p.nodeTest",test:"NE"},{N:"p.nodeTest",test:"ND"}]},{N:"check",role:"action",ns:"doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions t=MyTypes xs=~ xsl=~ xml=~",line:"92", +card:"1",diag:'7|0|XTTE0505|match="/*" mode="process-module"',C:[{N:"sequence",C:[{N:"choose",C:[{N:"fn",name:"empty",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{http://www.w3.org/1999/XSL/Transform}version"}]},{N:"treat",line:"94",as:"FM",diag:'7|0|XTTE0505|match="/*" mode="process-module"',C:[{N:"ufCall",name:"Q{MyFunctions}syntax-error-at",tailCall:"false",bSlot:"1",eval:"0 16 16",C:[{N:"str",val:"XTSE0150"},{N:"choose",C:[{N:"fn",name:"exists",C:[{N:"axis",name:"self",nodeTest:"NE nQ{http://ns.saxonica.com/xslt/export}package"}]}, +{N:"str",val:"Supplied stylesheet is a SEF package"},{N:"true"},{N:"str",val:"Simplified stylesheet root element lacks @xsl:version"}]},{N:"dot",type:"1NE"}]}]}]},{N:"treat",line:"109",as:"FM",diag:'7|0|XTTE0505|match="/*" mode="process-module"',C:[{N:"applyT",flags:"ct",bSlot:"-1",C:[{N:"slash",role:"select",line:"97",simple:"1",C:[{N:"doc",C:[{N:"elem",line:"98",name:"xsl:stylesheet",nsuri:"http://www.w3.org/1999/XSL/Transform",flags:"l",C:[{N:"sequence",C:[{N:"att",name:"version",flags:"l",C:[{N:"convert", +from:"AZ",to:"AS",C:[{N:"attVal",name:"Q{http://www.w3.org/1999/XSL/Transform}version",chk:"0"}]}]},{N:"att",line:"99",name:"xml:base",nsuri:"http://www.w3.org/XML/1998/namespace",flags:"l",C:[{N:"convert",from:"AU",to:"AS",C:[{N:"fn",name:"base-uri",C:[{N:"dot",type:"1NE"}]}]}]},{N:"elem",line:"101",name:"xsl:template",nsuri:"http://www.w3.org/1999/XSL/Transform",flags:"l",C:[{N:"sequence",C:[{N:"att",name:"match",flags:"l",C:[{N:"str",val:"/"}]},{N:"copy",line:"103",flags:"cinl",sit:"1NE",C:[{N:"sequence", +role:"content",C:[{N:"axis",name:"attribute",nodeTest:"NA"},{N:"axis",name:"child",nodeTest:"N u[NT,NP,NE,NC]"}]}]}]}]}]}]}]},{N:"axis",line:"109",name:"child",nodeTest:"NE"}]}]}]}]}]}]},{N:"templateRule",prec:"0",prio:"1.5",seq:"3",rank:"2",minImp:"0",slots:"56",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}package",flags:"s",line:"130",module:"static.xsl",C:[{N:"p.withUpper",role:"match",axis:"parent",upFirst:"false",C:[{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}package"}, +{N:"p.nodeTest",test:"ND"}]},{N:"sequence",role:"action",ns:"doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ saxon=~ t=MyTypes xs=~ xsl=~ xml=~",line:"131",C:[{N:"param",name:"Q{}options",slot:"0",flags:"t",as:"1FM",C:[{N:"map",role:"select",size:"0"},{N:"treat",role:"conversion",as:"FM",diag:"8|0|XTTE0590|options",C:[{N:"check",card:"1",diag:"8|0|XTTE0590|options",C:[{N:"supplied",slot:"0"}]}]}]},{N:"param",line:"138",name:"Q{}moduleLabel", +slot:"1",flags:"t",as:"1AS",C:[{N:"str",role:"select",val:"A"},{N:"treat",role:"conversion",as:"AS",diag:"8|0|XTTE0590|moduleLabel",C:[{N:"check",card:"1",diag:"8|0|XTTE0590|moduleLabel",C:[{N:"cvUntyped",to:"AS",diag:"8|0|XTTE0590|moduleLabel",C:[{N:"data",diag:"8|0|XTTE0590|moduleLabel",C:[{N:"supplied",slot:"1"}]}]}]}]}]},{N:"param",line:"146",name:"Q{}precLabel",slot:"2",flags:"t",as:"1AS",C:[{N:"str",role:"select",val:"A"},{N:"treat",role:"conversion",as:"AS",diag:"8|0|XTTE0590|precLabel",C:[{N:"check", +card:"1",diag:"8|0|XTTE0590|precLabel",C:[{N:"cvUntyped",to:"AS",diag:"8|0|XTTE0590|precLabel",C:[{N:"data",diag:"8|0|XTTE0590|precLabel",C:[{N:"supplied",slot:"2"}]}]}]}]}]},{N:"param",line:"147",name:"Q{}static-vars",slot:"3",flags:"t",as:"1FM",C:[{N:"map",role:"select",size:"0"},{N:"treat",role:"conversion",as:"FM",diag:"8|0|XTTE0590|static-vars",C:[{N:"check",card:"1",diag:"8|0|XTTE0590|static-vars",C:[{N:"supplied",slot:"3"}]}]}]},{N:"param",line:"148",name:"Q{}static-isParam",slot:"4",flags:"t", +as:"1FM",C:[{N:"map",role:"select",size:"0"},{N:"treat",role:"conversion",as:"FM",diag:"8|0|XTTE0590|static-isParam",C:[{N:"check",card:"1",diag:"8|0|XTTE0590|static-isParam",C:[{N:"supplied",slot:"4"}]}]}]},{N:"param",line:"149",name:"Q{}var-slots",slot:"5",flags:"t",as:"1FM",C:[{N:"map",role:"select",size:"0"},{N:"treat",role:"conversion",as:"FM",diag:"8|0|XTTE0590|var-slots",C:[{N:"check",card:"1",diag:"8|0|XTTE0590|var-slots",C:[{N:"supplied",slot:"5"}]}]}]},{N:"param",line:"150",name:"Q{}next-slot", +slot:"6",flags:"t",as:"1ADI",C:[{N:"int",role:"select",val:"0"},{N:"treat",role:"conversion",as:"ADI",diag:"8|0|XTTE0590|next-slot",C:[{N:"check",card:"1",diag:"8|0|XTTE0590|next-slot",C:[{N:"cvUntyped",to:"ADI",diag:"8|0|XTTE0590|next-slot",C:[{N:"data",diag:"8|0|XTTE0590|next-slot",C:[{N:"supplied",slot:"6"}]}]}]}]}]},{N:"param",line:"151",name:"Q{}imported",slot:"7",as:"1AB",C:[{N:"false",role:"select"},{N:"treat",role:"conversion",as:"AB",diag:"8|0|XTTE0590|imported",C:[{N:"check",card:"1",diag:"8|0|XTTE0590|imported", +C:[{N:"cvUntyped",to:"AB",diag:"8|0|XTTE0590|imported",C:[{N:"data",diag:"8|0|XTTE0590|imported",C:[{N:"supplied",slot:"7"}]}]}]}]}]},{N:"param",line:"152",name:"Q{}top-level",slot:"8",flags:"t",as:"1AB",C:[{N:"true",role:"select"},{N:"treat",role:"conversion",as:"AB",diag:"8|0|XTTE0590|top-level",C:[{N:"check",card:"1",diag:"8|0|XTTE0590|top-level",C:[{N:"cvUntyped",to:"AB",diag:"8|0|XTTE0590|top-level",C:[{N:"data",diag:"8|0|XTTE0590|top-level",C:[{N:"supplied",slot:"8"}]}]}]}]}]},{N:"param",line:"153", +name:"Q{}params",slot:"9",flags:"t",as:"1FM k[AQ]",C:[{N:"map",role:"select",size:"0"},{N:"treat",role:"conversion",as:"FM k[AQ]",diag:"8|0|XTTE0590|params",C:[{N:"check",card:"1",diag:"8|0|XTTE0590|params",C:[{N:"supplied",slot:"9"}]}]}]},{N:"param",line:"154",name:"Q{}stylesheet-stack",slot:"10",flags:"t",as:"*AU",C:[{N:"fn",role:"select",name:"base-uri",C:[{N:"dot",type:"1NE"}]},{N:"treat",role:"conversion",as:"AU",diag:"8|0|XTTE0590|stylesheet-stack",C:[{N:"cvUntyped",to:"AU",diag:"8|0|XTTE0590|stylesheet-stack", +C:[{N:"data",diag:"8|0|XTTE0590|stylesheet-stack",C:[{N:"supplied",slot:"10"}]}]}]}]},{N:"param",line:"155",name:"Q{}stylesheet-base-uri",slot:"11",flags:"t",as:"1AU",C:[{N:"check",role:"select",card:"1",diag:"8|0|XTTE0600|stylesheet-base-uri",C:[{N:"fn",name:"base-uri",C:[{N:"dot",type:"1NE"}]}]},{N:"treat",role:"conversion",as:"AU",diag:"8|0|XTTE0590|stylesheet-base-uri",C:[{N:"check",card:"1",diag:"8|0|XTTE0590|stylesheet-base-uri",C:[{N:"cvUntyped",to:"AU",diag:"8|0|XTTE0590|stylesheet-base-uri", +C:[{N:"data",diag:"8|0|XTTE0590|stylesheet-base-uri",C:[{N:"supplied",slot:"11"}]}]}]}]}]},{N:"param",line:"156",name:"Q{}parent-version",slot:"12",flags:"t",as:"?AD",C:[{N:"empty",role:"select"},{N:"treat",role:"conversion",as:"AD",diag:"8|0|XTTE0590|parent-version",C:[{N:"check",card:"?",diag:"8|0|XTTE0590|parent-version",C:[{N:"cvUntyped",to:"AD",diag:"8|0|XTTE0590|parent-version",C:[{N:"data",diag:"8|0|XTTE0590|parent-version",C:[{N:"supplied",slot:"12"}]}]}]}]}]},{N:"let",line:"160","var":"Q{}version", +as:"1AD",slot:"20",eval:"9",C:[{N:"callT",line:"161",name:"Q{}XSLT-version",bSlot:"2"},{N:"let",line:"163","var":"Q{}xpath-default-namespace",as:"?NA",slot:"21",eval:"8",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}xpath-default-namespace"},{N:"let",line:"170","var":"Q{}stylesheet-properties",as:"*NA",slot:"22",eval:"4",C:[{N:"sequence",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}default-mode"},{N:"axis",name:"attribute",nodeTest:"NA nQ{}expand-text"},{N:"choose",C:[{N:"and",op:"and",C:[{N:"fn", +name:"exists",C:[{N:"varRef",name:"Q{}parent-version",slot:"12"}]},{N:"vc",op:"ne",onEmpty:"0",comp:"CAVC",C:[{N:"varRef",name:"Q{}version",slot:"20"},{N:"varRef",name:"Q{}parent-version",slot:"12"}]}]},{N:"axis",name:"attribute",nodeTest:"NA nQ{}version"}]}]},{N:"sequence",line:"174",C:[{N:"forEach",C:[{N:"filter",flags:"b",C:[{N:"axis",name:"child",nodeTest:"NT"},{N:"fn",name:"boolean",C:[{N:"fn",name:"normalize-space",C:[{N:"fn",name:"string",C:[{N:"dot",type:"1NT"}]}]}]}]},{N:"ufCall",line:"186", +name:"Q{MyFunctions}syntax-error-at",tailCall:"false",bSlot:"3",eval:"0 16 16",C:[{N:"str",val:"XTSE0120"},{N:"cvUntyped",line:"177",to:"AS",diag:"3|0|XTTE0570|message",C:[{N:"cast",flags:"a",as:"1AZ",C:[{N:"fn",name:"string-join",C:[{N:"convert",from:"AZ",to:"AS",C:[{N:"data",C:[{N:"mergeAdj",C:[{N:"sequence",C:[{N:"valueOf",C:[{N:"fn",name:"name",C:[{N:"check",card:"?",diag:"0|0||fn:name",C:[{N:"axis",name:"parent",nodeTest:"N u[NE,ND]"}]}]}]},{N:"valueOf",line:"178",C:[{N:"str",val:" cannot have non-whitespace text node children. "}]}, +{N:"choose",line:"180",C:[{N:"fn",name:"exists",C:[{N:"slash",simple:"1",C:[{N:"dot",type:"1NT"},{N:"axis",name:"preceding-sibling",nodeTest:"NE"}]}]},{N:"valueOf",C:[{N:"fn",name:"concat",C:[{N:"str",val:"Found '"},{N:"fn",name:"normalize-space",C:[{N:"cvUntyped",to:"AS",C:[{N:"data",diag:"0|0||fn:normalize-space",C:[{N:"dot",type:"1NT"}]}]}]},{N:"str",val:"' just after "},{N:"let",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~", +"var":"Q{}node",as:"1N",slot:"23",eval:"16",C:[{N:"check",ns:"doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ saxon=~ t=MyTypes xs=~ xsl=~ xml=~",card:"1",diag:"0|0||f:path",C:[{N:"first",C:[{N:"slash",simple:"1",C:[{N:"dot",type:"1NT"},{N:"axis",name:"preceding-sibling",nodeTest:"NE"}]}]}]},{N:"choose",module:"lib.xsl",line:"396",C:[{N:"fn",name:"exists",C:[{N:"slash",simple:"1",C:[{N:"varRef",name:"Q{}node",slot:"23"},{N:"axis",name:"attribute", +nodeTest:"NA nQ{}loc"}]}]},{N:"cvUntyped",to:"AS",diag:"5|0|XTTE0780|f:path#1",C:[{N:"cast",flags:"a",as:"1AZ",C:[{N:"fn",name:"string",C:[{N:"convert",from:"AZ",to:"AS",C:[{N:"data",C:[{N:"slash",simple:"1",C:[{N:"varRef",name:"Q{}node",slot:"23"},{N:"axis",name:"attribute",nodeTest:"NA nQ{}loc"}]}]}]}]}]}]},{N:"true"},{N:"cvUntyped",line:"398",to:"AS",diag:"5|0|XTTE0780|f:path#1",C:[{N:"cast",flags:"a",as:"1AZ",C:[{N:"fn",name:"name",C:[{N:"varRef",name:"Q{}node",slot:"23"}]}]}]}]}]}]}]},{N:"fn", +line:"181",name:"exists",C:[{N:"axis",name:"following-sibling",nodeTest:"NE"}]},{N:"valueOf",line:"181",C:[{N:"fn",name:"concat",C:[{N:"str",val:"Found '"},{N:"fn",name:"normalize-space",C:[{N:"cvUntyped",to:"AS",C:[{N:"data",diag:"0|0||fn:normalize-space",C:[{N:"dot",type:"1NT"}]}]}]},{N:"str",val:"' just before "},{N:"let",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~", +"var":"Q{}node",as:"1N",slot:"24",eval:"16",C:[{N:"check",ns:"doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ saxon=~ t=MyTypes xs=~ xsl=~ xml=~",card:"1",diag:"0|0||f:path",C:[{N:"first",C:[{N:"axis",name:"following-sibling",nodeTest:"NE"}]}]},{N:"choose",module:"lib.xsl",line:"396",C:[{N:"fn",name:"exists",C:[{N:"slash",simple:"1",C:[{N:"varRef",name:"Q{}node",slot:"24"},{N:"axis",name:"attribute",nodeTest:"NA nQ{}loc"}]}]},{N:"cvUntyped", +to:"AS",diag:"5|0|XTTE0780|f:path#1",C:[{N:"cast",flags:"a",as:"1AZ",C:[{N:"fn",name:"string",C:[{N:"convert",from:"AZ",to:"AS",C:[{N:"data",C:[{N:"slash",simple:"1",C:[{N:"varRef",name:"Q{}node",slot:"24"},{N:"axis",name:"attribute",nodeTest:"NA nQ{}loc"}]}]}]}]}]}]},{N:"true"},{N:"cvUntyped",line:"398",to:"AS",diag:"5|0|XTTE0780|f:path#1",C:[{N:"cast",flags:"a",as:"1AZ",C:[{N:"fn",name:"name",C:[{N:"varRef",name:"Q{}node",slot:"24"}]}]}]}]}]}]}]},{N:"true"},{N:"valueOf",line:"182",C:[{N:"fn",name:"concat", +C:[{N:"str",val:"Found '"},{N:"fn",name:"normalize-space",C:[{N:"cvUntyped",to:"AS",C:[{N:"data",diag:"0|0||fn:normalize-space",C:[{N:"dot",type:"1NT"}]}]}]},{N:"str",val:"'"}]}]}]}]}]}]}]},{N:"str",val:""}]}]}]},{N:"check",card:"1",diag:"0|2||f:syntax-error-at",C:[{N:"axis",name:"parent",nodeTest:"N u[NE,ND]"}]}]}]},{N:"forEach",line:"189",C:[{N:"filter",flags:"b",C:[{N:"axis",name:"child",nodeTest:"NE"},{N:"vc",op:"eq",onEmpty:"0",comp:"CCC",C:[{N:"fn",name:"namespace-uri",C:[{N:"dot",type:"1NE"}]}, +{N:"str",val:""}]}]},{N:"ufCall",line:"190",name:"Q{MyFunctions}syntax-error-at",tailCall:"false",bSlot:"4",eval:"0 16 16",C:[{N:"str",val:"XTSE0130"},{N:"fn",name:"concat",C:[{N:"check",card:"?",diag:"0|0||fn:concat",C:[{N:"slash",C:[{N:"axis",name:"parent",nodeTest:"N u[NE,ND]"},{N:"fn",name:"name",C:[{N:"dot",type:"1N u[NE,ND]"}]}]}]},{N:"str",val:" cannot have a no-namespace child element:"},{N:"fn",name:"name",C:[{N:"dot",type:"1NE"}]}]},{N:"dot",type:"1NE"}]}]},{N:"choose",line:"193",C:[{N:"vc", +op:"gt",onEmpty:"0",comp:"CAVC",C:[{N:"fn",name:"count",C:[{N:"axis",name:"child",nodeTest:"NE nQ{http://www.w3.org/1999/XSL/Transform}global-context-item"}]},{N:"int",val:"1"}]},{N:"ufCall",line:"194",name:"Q{MyFunctions}syntax-error",tailCall:"false",bSlot:"5",eval:"0 0",C:[{N:"str",val:"XTSE3087"},{N:"str",val:"A stylesheet module may not contain more than one xsl:global-context-item element"}]}]},{N:"let",line:"202","var":"Q{}not-discarded",as:"1AB",slot:"25",eval:"16",C:[{N:"choose",line:"204", +C:[{N:"fn",name:"exists",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}use-when"}]},{N:"callT",line:"205",name:"Q{}check-use-when",bSlot:"6"},{N:"true"},{N:"true"}]},{N:"let",line:"213","var":"Q{}result",as:"1FM",slot:"26",eval:"16",C:[{N:"treat",line:"219",as:"FM",diag:"3|0|XTTE0570|result",C:[{N:"check",card:"1",diag:"3|0|XTTE0570|result",C:[{N:"iterate",C:[{N:"choose",role:"select",C:[{N:"varRef",name:"Q{}not-discarded",slot:"25"},{N:"axis",name:"child",nodeTest:"NE nQ{http://www.w3.org/1999/XSL/Transform}*"}]}, +{N:"params",role:"params",line:"220",C:[{N:"param",name:"Q{}components",slot:"13",as:"*NE",C:[{N:"empty",role:"select"},{N:"treat",role:"conversion",as:"NE",diag:"8|0|XTTE0590|components",C:[{N:"supplied",slot:"13"}]}]},{N:"param",line:"221",name:"Q{}inner-static-vars",slot:"14",as:"1FM",C:[{N:"varRef",role:"select",name:"Q{}static-vars",slot:"3"},{N:"treat",role:"conversion",as:"FM",diag:"8|0|XTTE0590|inner-static-vars",C:[{N:"check",card:"1",diag:"8|0|XTTE0590|inner-static-vars",C:[{N:"supplied", +slot:"14"}]}]}]},{N:"param",line:"222",name:"Q{}static-isParam",slot:"15",as:"1FM",C:[{N:"varRef",role:"select",name:"Q{}static-isParam",slot:"4"},{N:"treat",role:"conversion",as:"FM",diag:"8|0|XTTE0590|static-isParam",C:[{N:"check",card:"1",diag:"8|0|XTTE0590|static-isParam",C:[{N:"supplied",slot:"15"}]}]}]},{N:"param",line:"224",name:"Q{}vars-in-import",slot:"16",as:"1FM",C:[{N:"map",role:"select",size:"0"},{N:"treat",role:"conversion",as:"FM",diag:"8|0|XTTE0590|vars-in-import",C:[{N:"check",card:"1", +diag:"8|0|XTTE0590|vars-in-import",C:[{N:"supplied",slot:"16"}]}]}]},{N:"param",line:"225",name:"Q{}isParam-in-import",slot:"17",as:"1FM",C:[{N:"map",role:"select",size:"0"},{N:"treat",role:"conversion",as:"FM",diag:"8|0|XTTE0590|isParam-in-import",C:[{N:"check",card:"1",diag:"8|0|XTTE0590|isParam-in-import",C:[{N:"supplied",slot:"17"}]}]}]},{N:"param",line:"226",name:"Q{}var-slots",slot:"18",as:"1FM",C:[{N:"varRef",role:"select",name:"Q{}var-slots",slot:"5"},{N:"treat",role:"conversion",as:"FM", +diag:"8|0|XTTE0590|var-slots",C:[{N:"check",card:"1",diag:"8|0|XTTE0590|var-slots",C:[{N:"supplied",slot:"18"}]}]}]},{N:"param",line:"227",name:"Q{}next-slot",slot:"19",as:"1ADI",C:[{N:"varRef",role:"select",name:"Q{}next-slot",slot:"6"},{N:"treat",role:"conversion",as:"ADI",diag:"8|0|XTTE0590|next-slot",C:[{N:"check",card:"1",diag:"8|0|XTTE0590|next-slot",C:[{N:"cvUntyped",to:"ADI",diag:"8|0|XTTE0590|next-slot",C:[{N:"data",diag:"8|0|XTTE0590|next-slot",C:[{N:"supplied",slot:"19"}]}]}]}]}]}]},{N:"ifCall", +role:"on-completion",line:"255",name:"Q{http://www.w3.org/2005/xpath-functions/map}merge",type:"1FM",C:[{N:"sequence",C:[{N:"ifCall",name:"Q{http://www.w3.org/2005/xpath-functions/map}entry",type:"1FM",C:[{N:"str",val:"components"},{N:"varRef",name:"Q{}components",slot:"13"}]},{N:"ifCall",name:"Q{http://www.w3.org/2005/xpath-functions/map}entry",type:"1FM",C:[{N:"str",val:"static-vars"},{N:"varRef",name:"Q{}inner-static-vars",slot:"14"}]},{N:"ifCall",name:"Q{http://www.w3.org/2005/xpath-functions/map}entry", +type:"1FM",C:[{N:"str",val:"static-isParam"},{N:"varRef",name:"Q{}static-isParam",slot:"15"}]},{N:"ifCall",name:"Q{http://www.w3.org/2005/xpath-functions/map}entry",type:"1FM",C:[{N:"str",val:"var-slots"},{N:"varRef",name:"Q{}var-slots",slot:"18"}]},{N:"ifCall",name:"Q{http://www.w3.org/2005/xpath-functions/map}entry",type:"1FM",C:[{N:"str",val:"next-slot"},{N:"varRef",name:"Q{}next-slot",slot:"19"}]}]},{N:"map",size:"2",C:[{N:"str",val:"duplicates"},{N:"str",val:"reject"},{N:"str",val:"duplicates-error-code"}, +{N:"str",val:"FOJS0003"}]}]},{N:"let",role:"action",line:"262","var":"Q{}possible.component",as:"?NE",slot:"27",eval:"7",C:[{N:"treat",line:"263",as:"NE",diag:"3|0|XTTE0570|possible.component",C:[{N:"check",card:"?",diag:"3|0|XTTE0570|possible.component",C:[{N:"applyT",mode:"Q{}static",bSlot:"7",C:[{N:"dot",role:"select",type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}*"},{N:"withParam",name:"Q{}static-vars",flags:"t",as:"1FM",C:[{N:"varRef",line:"264",name:"Q{}inner-static-vars",slot:"14"}]},{N:"withParam", +name:"Q{}var-slots",flags:"t",as:"1FM",C:[{N:"varRef",line:"265",name:"Q{}var-slots",slot:"18"}]},{N:"withParam",name:"Q{}next-slot",flags:"t",as:"1ADI",C:[{N:"varRef",line:"266",name:"Q{}next-slot",slot:"19"}]},{N:"withParam",name:"Q{}static-isParam",flags:"t",as:"1FM",C:[{N:"varRef",line:"267",name:"Q{}static-isParam",slot:"15"}]},{N:"withParam",name:"Q{}xpath-default-namespace",flags:"t",as:"?NA",C:[{N:"varRef",line:"268",name:"Q{}xpath-default-namespace",slot:"21"}]},{N:"withParam",name:"Q{}XSLT-version", +flags:"t",as:"1AD",C:[{N:"varRef",line:"269",name:"Q{}version",slot:"20"}]},{N:"withParam",name:"Q{}stylesheet-properties",flags:"t",as:"*NA",C:[{N:"varRef",line:"270",name:"Q{}stylesheet-properties",slot:"22"}]},{N:"withParam",name:"Q{}has-uniform-static-context",flags:"t",as:"1AB",C:[{N:"ufCall",line:"271",name:"Q{MyFunctions}has-uniform-static-context",tailCall:"false",bSlot:"8",eval:"16",C:[{N:"dot",type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}*"}]}]}]}]}]},{N:"let",line:"276","var":"Q{}isStaticVariable", +as:"1AB",slot:"28",eval:"16",C:[{N:"ufCall",name:"Q{MyFunctions}boolean-string",tailCall:"false",bSlot:"9",eval:"7 0",C:[{N:"slash",simple:"1",C:[{N:"filter",flags:"b",C:[{N:"varRef",name:"Q{}possible.component",slot:"27"},{N:"fn",name:"exists",C:[{N:"axis",name:"self",nodeTest:"NE nQ{http://www.w3.org/1999/XSL/Transform}variable"}]}]},{N:"axis",name:"attribute",nodeTest:"NA nQ{}static"}]},{N:"false"}]},{N:"let",line:"277","var":"Q{}isStaticParam",as:"1AB",slot:"29",eval:"16",C:[{N:"ufCall",name:"Q{MyFunctions}boolean-string", +tailCall:"false",bSlot:"10",eval:"7 0",C:[{N:"slash",simple:"1",C:[{N:"filter",flags:"b",C:[{N:"varRef",name:"Q{}possible.component",slot:"27"},{N:"fn",name:"exists",C:[{N:"axis",name:"self",nodeTest:"NE nQ{http://www.w3.org/1999/XSL/Transform}param"}]}]},{N:"axis",name:"attribute",nodeTest:"NA nQ{}static"}]},{N:"false"}]},{N:"choose",line:"280",C:[{N:"or",line:"278",op:"or",C:[{N:"varRef",name:"Q{}isStaticParam",slot:"29"},{N:"varRef",name:"Q{}isStaticVariable",slot:"28"}]},{N:"let",line:"286","var":"Q{}name", +as:"?AQ",slot:"30",eval:"7",C:[{N:"choose",C:[{N:"fn",name:"contains",C:[{N:"cvUntyped",to:"AS",C:[{N:"attVal",name:"Q{}name",chk:"0"}]},{N:"str",val:":"}]},{N:"fn",name:"resolve-QName",C:[{N:"cvUntyped",to:"AS",C:[{N:"attVal",name:"Q{}name",chk:"0"}]},{N:"dot",type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}*"}]},{N:"true"},{N:"fn",name:"QName",C:[{N:"str",val:""},{N:"check",card:"1",diag:"0|1||fn:QName",C:[{N:"cvUntyped",to:"AS",C:[{N:"attVal",name:"Q{}name",chk:"0"}]}]}]}]},{N:"let",line:"287", +"var":"Q{}value",slot:"31",eval:"8",C:[{N:"forEach",line:"290",C:[{N:"varRef",name:"Q{}possible.component",slot:"27"},{N:"let",line:"291","var":"Q{}isRequired",slot:"32",eval:"16",C:[{N:"ufCall",name:"Q{MyFunctions}boolean-string",tailCall:"false",bSlot:"11",eval:"8 0",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}required"},{N:"false"}]},{N:"let",line:"292","var":"Q{}isSupplied",as:"1AB",slot:"33",eval:"8",C:[{N:"ifCall",name:"Q{http://www.w3.org/2005/xpath-functions/map}contains",type:"1AB",C:[{N:"varRef", +name:"Q{}params",slot:"9"},{N:"check",card:"1",diag:"0|1||map:contains",C:[{N:"varRef",name:"Q{}name",slot:"30"}]}]},{N:"choose",line:"295",C:[{N:"fn",name:"exists",C:[{N:"axis",name:"child",nodeTest:"N u[NT,NP,NE,NC]"}]},{N:"choose",line:"310",C:[{N:"fn",name:"exists",C:[{N:"sequence",line:"297",C:[{N:"axis",name:"child",nodeTest:"NE"},{N:"filter",flags:"b",C:[{N:"axis",name:"child",nodeTest:"NT"},{N:"fn",name:"boolean",C:[{N:"fn",name:"normalize-space",C:[{N:"fn",name:"string",C:[{N:"dot",type:"1NT"}]}]}]}]}]}]}, +{N:"fn",name:"error",C:[{N:"fn",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~",module:"lib.xsl",line:"29",name:"QName",C:[{N:"str",val:"http://www.w3.org/2005/xqt-errors"},{N:"choose",ns:"doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ saxon=~ t=MyTypes xs=~ xsl=~ xml=~",module:"static.xsl",line:"310",C:[{N:"fn", +name:"exists",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}select"}]},{N:"str",val:"XTSE0620"},{N:"true"},{N:"str",val:"XTSE0010"}]}]},{N:"fn",name:"concat",C:[{N:"str",val:"Static "},{N:"fn",name:"local-name",C:[{N:"dot",type:"1NE"}]},{N:"str",val:" "},{N:"attVal",name:"Q{}name",chk:"0"},{N:"str",val:" must not have a sequence constructor"}]}]}]},{N:"and",line:"312",op:"and",C:[{N:"varRef",name:"Q{}isRequired",slot:"32"},{N:"fn",name:"exists",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}select"}]}]}, +{N:"fn",line:"315",name:"error",C:[{N:"qName",pre:"",uri:"http://www.w3.org/2005/xqt-errors",loc:"XTSE0010"},{N:"fn",name:"concat",C:[{N:"str",val:"Required static "},{N:"fn",name:"local-name",C:[{N:"dot",type:"1NE"}]},{N:"str",val:" "},{N:"attVal",name:"Q{}name",chk:"0"},{N:"str",val:" must not have a default value"}]}]},{N:"and",line:"317",op:"and",C:[{N:"varRef",name:"Q{}isStaticVariable",slot:"28"},{N:"gc",op:"!=",card:"N:1",comp:"CCC",C:[{N:"forEach",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}visibility"}, +{N:"fn",name:"normalize-space",C:[{N:"fn",name:"string",C:[{N:"dot",type:"1NA nQ{}visibility"}]}]}]},{N:"str",val:"private"}]}]},{N:"fn",line:"320",name:"error",C:[{N:"qName",pre:"",uri:"http://www.w3.org/2005/xqt-errors",loc:"XTSE0020"},{N:"fn",name:"concat",C:[{N:"str",val:"Static "},{N:"fn",name:"local-name",C:[{N:"dot",type:"1NE"}]},{N:"str",val:" "},{N:"attVal",name:"Q{}name",chk:"0"},{N:"str",val:" may only have private visibility"}]}]},{N:"and",line:"323",op:"and",C:[{N:"and",op:"and",C:[{N:"and", +op:"and",C:[{N:"and",op:"and",C:[{N:"varRef",name:"Q{}isStaticParam",slot:"29"},{N:"fn",name:"empty",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}select"}]}]},{N:"fn",name:"not",C:[{N:"varRef",name:"Q{}isSupplied",slot:"33"}]}]},{N:"fn",name:"exists",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}as"}]}]},{N:"fn",name:"not",C:[{N:"fn",name:"matches",C:[{N:"cvUntyped",to:"AS",C:[{N:"attVal",name:"Q{}as",chk:"0"}]},{N:"str",val:"(\\*|\\?)\\s*?"},{N:"str",val:""}]}]}]},{N:"fn",line:"326",name:"error", +C:[{N:"qName",pre:"",uri:"http://www.w3.org/2005/xqt-errors",loc:"XTDE0700"},{N:"fn",name:"concat",C:[{N:"str",val:"No value for implicitly mandatory static parameter "},{N:"attVal",name:"Q{}name",chk:"0"},{N:"str",val:" has been supplied"}]}]},{N:"and",line:"328",op:"and",C:[{N:"varRef",name:"Q{}isStaticParam",slot:"29"},{N:"varRef",name:"Q{}isSupplied",slot:"33"}]},{N:"let",line:"329","var":"Q{}supplied",slot:"34",eval:"4",C:[{N:"ifCall",name:"Q{http://www.w3.org/2005/xpath-functions/map}get",type:"*", +C:[{N:"varRef",name:"Q{}params",slot:"9"},{N:"check",card:"1",diag:"0|1||map:get",C:[{N:"varRef",name:"Q{}name",slot:"30"}]}]},{N:"choose",line:"332",C:[{N:"and",op:"and",C:[{N:"fn",name:"exists",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}as"}]},{N:"instance",of:"1AZ",C:[{N:"varRef",name:"Q{}supplied",slot:"34"}]}]},{N:"let",line:"334","var":"Q{}targetType",slot:"35",eval:"4",C:[{N:"lookup",C:[{N:"treat",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions js=~ map=~ saxon=~ t=MyTypes xs=~ xsl=~ xml=~", +module:"xpath.xsl",line:"1527",as:"FM",diag:"5|0|XTTE0780|f:parse-sequence-type#3",C:[{N:"ifCall",name:"Q{http://saxon.sf.net/}parse-sequence-type",type:"1F",C:[{N:"check",ns:"doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ saxon=~ t=MyTypes xs=~ xsl=~ xml=~",module:"static.xsl",line:"334",card:"1",diag:"0|0||f:parse-sequence-type",C:[{N:"cvUntyped",to:"AS",C:[{N:"attVal",name:"Q{}as",chk:"0"}]}]},{N:"dot",ns:"doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ saxon=~ t=MyTypes xs=~ xsl=~ xml=~", +module:"static.xsl",line:"334",type:"1NE"},{N:"str",val:""}]}]},{N:"str",val:"p"}]},{N:"let",line:"335","var":"Q{http://saxon.sf.net/generated-variable}v0",as:"1AS",slot:"36",eval:"13",C:[{N:"treat",as:"AS",diag:"0|1||f:cast",C:[{N:"check",card:"1",diag:"0|1||f:cast",C:[{N:"cvUntyped",to:"AS",C:[{N:"data",diag:"0|1||f:cast",C:[{N:"varRef",name:"Q{}targetType",slot:"35"}]}]}]}]},{N:"forEach",C:[{N:"varRef",name:"Q{}supplied",slot:"34"},{N:"ufCall",name:"Q{MyFunctions}cast",tailCall:"false",bSlot:"12", +eval:"16 6",C:[{N:"atomSing",diag:"0|0||f:cast",C:[{N:"dot"}]},{N:"varRef",name:"Q{http://saxon.sf.net/generated-variable}v0",slot:"36"}]}]}]}]},{N:"fn",line:"337",name:"exists",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}as"}]},{N:"let",line:"339","var":"Q{}targetType",slot:"37",eval:"4",C:[{N:"lookup",C:[{N:"treat",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions js=~ map=~ saxon=~ t=MyTypes xs=~ xsl=~ xml=~", +module:"xpath.xsl",line:"1527",as:"FM",diag:"5|0|XTTE0780|f:parse-sequence-type#3",C:[{N:"ifCall",name:"Q{http://saxon.sf.net/}parse-sequence-type",type:"1F",C:[{N:"check",ns:"doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ saxon=~ t=MyTypes xs=~ xsl=~ xml=~",module:"static.xsl",line:"339",card:"1",diag:"0|0||f:parse-sequence-type",C:[{N:"cvUntyped",to:"AS",C:[{N:"attVal",name:"Q{}as",chk:"0"}]}]},{N:"dot",ns:"doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ saxon=~ t=MyTypes xs=~ xsl=~ xml=~", +module:"static.xsl",line:"339",type:"1NE"},{N:"str",val:""}]}]},{N:"str",val:"p"}]},{N:"let",line:"341","var":"Q{http://saxon.sf.net/generated-variable}v1",as:"1AS",slot:"38",eval:"13",C:[{N:"treat",as:"AS",diag:"0|1||f:isInstance",C:[{N:"check",card:"1",diag:"0|1||f:isInstance",C:[{N:"cvUntyped",to:"AS",C:[{N:"data",diag:"0|1||f:isInstance",C:[{N:"varRef",name:"Q{}targetType",slot:"37"}]}]}]}]},{N:"choose",C:[{N:"every","var":"Q{}item",slot:"39",C:[{N:"varRef",name:"Q{}supplied",slot:"34"},{N:"ufCall", +name:"Q{MyFunctions}isInstance",tailCall:"false",bSlot:"13",eval:"6 6",C:[{N:"varRef",name:"Q{}item",slot:"39"},{N:"varRef",name:"Q{http://saxon.sf.net/generated-variable}v1",slot:"38"}]}]},{N:"varRef",line:"342",name:"Q{}supplied",slot:"34"},{N:"true"},{N:"fn",line:"346",name:"error",C:[{N:"qName",pre:"",uri:"",loc:"XTDE0050"},{N:"fn",name:"concat",C:[{N:"str",val:"Supplied value of static parameter "},{N:"attVal",name:"Q{}name",chk:"0"},{N:"str",val:" does not match the required type"}]}]}]}]}]}, +{N:"true"},{N:"varRef",line:"351",name:"Q{}supplied",slot:"34"}]}]},{N:"and",line:"356",op:"and",C:[{N:"and",op:"and",C:[{N:"varRef",name:"Q{}isStaticParam",slot:"29"},{N:"varRef",name:"Q{}isRequired",slot:"32"}]},{N:"fn",name:"not",C:[{N:"varRef",name:"Q{}isSupplied",slot:"33"}]}]},{N:"fn",line:"359",name:"error",C:[{N:"qName",pre:"",uri:"http://www.w3.org/2005/xqt-errors",loc:"XTDE0050"},{N:"fn",name:"concat",C:[{N:"str",val:"No value for required static parameter "},{N:"attVal",name:"Q{}name", +chk:"0"},{N:"str",val:" has been supplied"}]}]},{N:"fn",line:"361",name:"exists",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}select"}]},{N:"let",line:"365","var":"Q{}xpath",as:"1AS",slot:"40",eval:"16",C:[{N:"choose",line:"367",C:[{N:"fn",name:"exists",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}as"}]},{N:"let",line:"368","var":"Q{}type",slot:"41",eval:"16",C:[{N:"treat",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions js=~ map=~ saxon=~ t=MyTypes xs=~ xsl=~ xml=~", +module:"xpath.xsl",line:"1527",as:"FM",diag:"5|0|XTTE0780|f:parse-sequence-type#3",C:[{N:"ifCall",name:"Q{http://saxon.sf.net/}parse-sequence-type",type:"1F",C:[{N:"check",ns:"doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ saxon=~ t=MyTypes xs=~ xsl=~ xml=~",module:"static.xsl",line:"368",card:"1",diag:"0|0||f:parse-sequence-type",C:[{N:"cvUntyped",to:"AS",C:[{N:"attVal",name:"Q{}as",chk:"0"}]}]},{N:"dot",ns:"doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ saxon=~ t=MyTypes xs=~ xsl=~ xml=~", +module:"static.xsl",line:"368",type:"1NE"},{N:"str",val:""}]}]},{N:"choose",line:"371",C:[{N:"and",op:"and",C:[{N:"fn",name:"starts-with",C:[{N:"treat",as:"AS",diag:"0|0||fn:starts-with",C:[{N:"check",card:"?",diag:"0|0||fn:starts-with",C:[{N:"cvUntyped",to:"AS",C:[{N:"data",diag:"0|0||fn:starts-with",C:[{N:"lookup",C:[{N:"varRef",name:"Q{}type",slot:"41"},{N:"str",val:"p"}]}]}]}]}]},{N:"str",val:"A"}]},{N:"gc",op:"=",card:"M:N",comp:"GAC|http://www.w3.org/2005/xpath-functions/collation/codepoint", +C:[{N:"data",diag:"1|0||=",C:[{N:"lookup",C:[{N:"varRef",name:"Q{}type",slot:"41"},{N:"str",val:"o"}]}]},{N:"literal",count:"2",C:[{N:"str",val:"1"},{N:"str",val:"?"}]}]}]},{N:"cvUntyped",to:"AS",diag:"3|0|XTTE0570|xpath",C:[{N:"cast",flags:"a",as:"1AZ",C:[{N:"fn",name:"concat",C:[{N:"fn",name:"string",C:[{N:"convert",from:"AZ",to:"AS",C:[{N:"attVal",name:"Q{}as",chk:"0"}]}]},{N:"str",val:"("},{N:"fn",name:"string",C:[{N:"convert",from:"AZ",to:"AS",C:[{N:"attVal",name:"Q{}select",chk:"0"}]}]},{N:"str", +val:")"}]}]}]},{N:"fn",line:"372",name:"starts-with",C:[{N:"treat",as:"AS",diag:"0|0||fn:starts-with",C:[{N:"check",card:"?",diag:"0|0||fn:starts-with",C:[{N:"cvUntyped",to:"AS",C:[{N:"data",diag:"0|0||fn:starts-with",C:[{N:"lookup",C:[{N:"varRef",name:"Q{}type",slot:"41"},{N:"str",val:"p"}]}]}]}]}]},{N:"str",val:"A"}]},{N:"cvUntyped",line:"372",to:"AS",diag:"3|0|XTTE0570|xpath",C:[{N:"cast",flags:"a",as:"1AZ",C:[{N:"fn",name:"concat",C:[{N:"str",val:"("},{N:"fn",name:"string",C:[{N:"convert",from:"AZ", +to:"AS",C:[{N:"attVal",name:"Q{}select",chk:"0"}]}]},{N:"str",val:") ! "},{N:"ufCall",name:"Q{MyTypes}displayType",tailCall:"false",bSlot:"14",eval:"16",C:[{N:"ifCall",ns:"doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~",module:"type.xsl",line:"320",name:"Q{http://www.w3.org/2005/xpath-functions/map}remove",type:"1FM",C:[{N:"ifCall",name:"Q{http://www.w3.org/2005/xpath-functions/map}put",type:"1FM",C:[{N:"varRef", +ns:"doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ saxon=~ t=MyTypes xs=~ xsl=~ xml=~",module:"static.xsl",line:"372",name:"Q{}type",slot:"41"},{N:"str",val:"o"},{N:"str",val:"1"}]},{N:"str",val:"code"}]}]},{N:"str",val:"(.)"}]}]}]},{N:"true"},{N:"cvUntyped",line:"373",to:"AS",diag:"3|0|XTTE0570|xpath",C:[{N:"cast",flags:"a",as:"1AZ",C:[{N:"fn",name:"concat",C:[{N:"str",val:"("},{N:"fn",name:"string",C:[{N:"convert",from:"AZ",to:"AS",C:[{N:"attVal", +name:"Q{}select",chk:"0"}]}]},{N:"str",val:") treat as "},{N:"fn",name:"string",C:[{N:"convert",from:"AZ",to:"AS",C:[{N:"attVal",name:"Q{}as",chk:"0"}]}]}]}]}]}]}]},{N:"true"},{N:"cvUntyped",line:"376",to:"AS",diag:"3|0|XTTE0570|xpath",C:[{N:"cast",flags:"a",as:"1AZ",C:[{N:"fn",name:"string",C:[{N:"convert",from:"AZ",to:"AS",C:[{N:"attVal",name:"Q{}select",chk:"0"}]}]}]}]}]},{N:"let",line:"379","var":"Q{}nsContext",as:"1NE c~untyped",slot:"42",eval:"9",C:[{N:"let",line:"380","var":"Q{}dot",as:"1", +slot:"43",eval:"16",C:[{N:"dot",type:"1NE"},{N:"compElem",line:"381",C:[{N:"str",role:"name",val:"dummy"},{N:"fn",role:"namespace",name:"string",C:[{N:"convert",from:"AZ",to:"AS",C:[{N:"data",C:[{N:"varRef",name:"Q{}xpath-default-namespace",slot:"21"}]}]}]},{N:"forEach",role:"content",line:"382",C:[{N:"filter",flags:"b",C:[{N:"fn",name:"in-scope-prefixes",C:[{N:"dot",type:"1NE"}]},{N:"fn",name:"boolean",C:[{N:"dot",type:"1AS"}]}]},{N:"compAtt",line:"384",flags:"l",C:[{N:"fn",role:"name",name:"concat", +C:[{N:"dot",type:"1AS"},{N:"str",val:":d"}]},{N:"fn",role:"namespace",name:"string",C:[{N:"convert",from:"AU",to:"AS",C:[{N:"fn",name:"namespace-uri-for-prefix",C:[{N:"dot",type:"1AS"},{N:"varRef",name:"Q{}dot",slot:"43"}]}]}]},{N:"str",role:"select",val:""}]}]}]}]},{N:"try",line:"392",flags:"r",C:[{N:"evaluate",dxns:"",C:[{N:"varRef",role:"xpath",name:"Q{}xpath",slot:"40"},{N:"empty",role:"cxt"},{N:"fn",role:"baseUri",name:"string",C:[{N:"convert",from:"AU",to:"AS",C:[{N:"fn",name:"base-uri",C:[{N:"dot", +type:"1NE"}]}]}]},{N:"varRef",role:"nsCxt",name:"Q{}nsContext",slot:"42"},{N:"str",role:"sa",val:"no"},{N:"ifCall",role:"options",name:"Q{http://www.w3.org/2005/xpath-functions/map}merge",type:"1FM",C:[{N:"sequence",C:[{N:"map",size:"1",C:[{N:"str",val:"allow-xslt-functions"},{N:"true"}]},{N:"ifCall",name:"Q{http://www.w3.org/2005/xpath-functions/map}entry",type:"1FM",C:[{N:"str",val:"var-slots"},{N:"varRef",name:"Q{}var-slots",slot:"18"}]}]},{N:"map",size:"2",C:[{N:"str",val:"duplicates"},{N:"str", +val:"reject"},{N:"str",val:"duplicates-error-code"},{N:"str",val:"FOJS0003"}]}]},{N:"varRef",role:"wp",name:"Q{}inner-static-vars",slot:"14"}]},{N:"catch",errors:"Q{http://www.w3.org/2005/xqt-errors}XPDY0050",C:[{N:"fn",line:"394",name:"error",C:[{N:"qName",pre:"",uri:"http://www.w3.org/2005/xqt-errors",loc:"XTDE0050X"},{N:"treat",as:"AS",diag:"0|1||fn:error",C:[{N:"check",card:"1",diag:"0|1||fn:error",C:[{N:"cvUntyped",to:"AS",C:[{N:"data",diag:"0|1||fn:error",C:[{N:"ifCall",name:"Q{http://saxon.sf.net/}dynamic-error-info", +type:"*",C:[{N:"str",val:"description"}]}]}]}]}]}]}]},{N:"catch",errors:"Q{http://www.w3.org/2005/xqt-errors}XTDE3160",C:[{N:"ufCall",line:"399",name:"Q{MyFunctions}syntax-error-at",tailCall:"false",bSlot:"15",eval:"0 16 16",C:[{N:"str",val:"XTDE3160"},{N:"fn",line:"398",name:"replace",C:[{N:"treat",as:"AS",diag:"0|0||fn:replace",C:[{N:"check",card:"?",diag:"0|0||fn:replace",C:[{N:"cvUntyped",to:"AS",C:[{N:"data",diag:"0|0||fn:replace",C:[{N:"ifCall",name:"Q{http://saxon.sf.net/}dynamic-error-info", +type:"*",C:[{N:"str",val:"description"}]}]}]}]}]},{N:"str",val:"Static error in XPath expression supplied to xsl:evaluate:"},{N:"str",val:"Error in static expression:"},{N:"str",val:""}]},{N:"dot",type:"1NE"}]}]}]}]}]},{N:"fn",line:"414",name:"exists",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}as"}]},{N:"empty"},{N:"true"},{N:"str",val:""}]}]}]}]},{N:"let",line:"424","var":"Q{}m",as:"1FM",slot:"44",eval:"16",C:[{N:"choose",C:[{N:"varRef",name:"Q{}imported",slot:"7"},{N:"varRef",name:"Q{}vars-in-import", +slot:"16"},{N:"true"},{N:"varRef",name:"Q{}inner-static-vars",slot:"14"}]},{N:"sequence",line:"425",C:[{N:"choose",C:[{N:"ifCall",name:"Q{http://www.w3.org/2005/xpath-functions/map}contains",type:"1AB",C:[{N:"varRef",name:"Q{}m",slot:"44"},{N:"check",card:"1",diag:"0|1||map:contains",C:[{N:"varRef",name:"Q{}name",slot:"30"}]}]},{N:"choose",line:"427",C:[{N:"and",op:"and",C:[{N:"instance",of:"1F",C:[{N:"varRef",name:"Q{}value",slot:"31"}]},{N:"and",op:"and",C:[{N:"fn",name:"not",C:[{N:"instance",of:"1FA", +C:[{N:"varRef",name:"Q{}value",slot:"31"}]}]},{N:"fn",name:"not",C:[{N:"instance",of:"1FM",C:[{N:"varRef",name:"Q{}value",slot:"31"}]}]}]}]},{N:"message",line:"428",C:[{N:"valueOf",role:"select",C:[{N:"fn",name:"concat",C:[{N:"str",val:"Warning: unable to check consistency of multiply-defined variable "},{N:"fn",name:"string",C:[{N:"convert",from:"AQ",to:"AS",C:[{N:"varRef",name:"Q{}name",slot:"30"}]}]},{N:"str",val:" with function(*) type\n "}]}]},{N:"str",role:"terminate", +val:"no"},{N:"str",role:"error",val:"Q{http://www.w3.org/2005/xqt-errors}XTMM9000"}]},{N:"fn",line:"431",name:"not",C:[{N:"fn",name:"deep-equal",C:[{N:"ifCall",name:"Q{http://www.w3.org/2005/xpath-functions/map}get",type:"*",C:[{N:"varRef",name:"Q{}m",slot:"44"},{N:"check",card:"1",diag:"0|1||map:get",C:[{N:"varRef",name:"Q{}name",slot:"30"}]}]},{N:"varRef",name:"Q{}value",slot:"31"}]}]},{N:"ufCall",line:"434",name:"Q{MyFunctions}syntax-error-at",tailCall:"false",bSlot:"16",eval:"0 16 16",C:[{N:"str", +val:"XTSE3450"},{N:"fn",name:"concat",C:[{N:"str",val:"Conflicting values for static variable "},{N:"varRef",name:"Q{}name",slot:"30"},{N:"str",val:"\n"},{N:"check",line:"435",card:"?",diag:"0|3||fn:concat",C:[{N:"ufCall",name:"Q{MyFunctions}serialize",tailCall:"false",bSlot:"17",eval:"6",C:[{N:"varRef",name:"Q{}value",slot:"31"}]}]},{N:"str",val:"\nand:\n"},{N:"check",line:"437",card:"?",diag:"0|5||fn:concat",C:[{N:"ufCall",name:"Q{MyFunctions}serialize",tailCall:"false",bSlot:"18",eval:"4",C:[{N:"ifCall", +name:"Q{http://www.w3.org/2005/xpath-functions/map}get",type:"*",C:[{N:"varRef",name:"Q{}m",slot:"44"},{N:"check",card:"1",diag:"0|1||map:get",C:[{N:"varRef",name:"Q{}name",slot:"30"}]}]}]}]},{N:"str",val:"*#xA;"}]},{N:"check",line:"437",card:"1",diag:"0|2||f:syntax-error-at",C:[{N:"varRef",name:"Q{}possible.component",slot:"27"}]}]}]}]},{N:"choose",line:"446",C:[{N:"let","var":"Q{}m",slot:"45",eval:"16",C:[{N:"choose",C:[{N:"varRef",name:"Q{}imported",slot:"7"},{N:"varRef",name:"Q{}isParam-in-import", +slot:"17"},{N:"true"},{N:"varRef",name:"Q{}static-isParam",slot:"15"}]},{N:"and",op:"and",C:[{N:"ifCall",name:"Q{http://www.w3.org/2005/xpath-functions/map}contains",type:"1AB",C:[{N:"varRef",name:"Q{}m",slot:"45"},{N:"check",card:"1",diag:"0|1||map:contains",C:[{N:"varRef",name:"Q{}name",slot:"30"}]}]},{N:"or",op:"or",C:[{N:"and",op:"and",C:[{N:"fn",name:"exists",C:[{N:"axis",name:"self",nodeTest:"NE nQ{http://www.w3.org/1999/XSL/Transform}param"}]},{N:"fn",name:"not",C:[{N:"ifCall",name:"Q{http://www.w3.org/2005/xpath-functions/map}get", +type:"*",C:[{N:"varRef",name:"Q{}m",slot:"45"},{N:"check",card:"1",diag:"0|1||map:get",C:[{N:"varRef",name:"Q{}name",slot:"30"}]}]}]}]},{N:"ifCall",name:"Q{http://www.w3.org/2005/xpath-functions/map}get",type:"*",C:[{N:"varRef",name:"Q{}m",slot:"45"},{N:"check",card:"1",diag:"0|1||map:get",C:[{N:"varRef",name:"Q{}name",slot:"30"}]}]}]}]}]},{N:"ufCall",line:"449",name:"Q{MyFunctions}syntax-error-at",tailCall:"false",bSlot:"19",eval:"0 16 16",C:[{N:"str",val:"XTSE3450"},{N:"fn",name:"concat",C:[{N:"str", +val:"Conflicting declarations for static param/variable "},{N:"varRef",name:"Q{}name",slot:"30"}]},{N:"check",card:"1",diag:"0|2||f:syntax-error-at",C:[{N:"varRef",name:"Q{}possible.component",slot:"27"}]}]}]},{N:"let",line:"460","var":"Q{}this-slot",as:"1A",slot:"46",eval:"16",C:[{N:"arith",op:"+",calc:"i+i",C:[{N:"varRef",name:"Q{}next-slot",slot:"19"},{N:"choose",C:[{N:"instance",of:"1F",C:[{N:"varRef",name:"Q{}value",slot:"31"}]},{N:"fn",name:"function-arity",C:[{N:"treat",as:"F",diag:"0|0||fn:function-arity", +C:[{N:"check",card:"1",diag:"0|0||fn:function-arity",C:[{N:"varRef",name:"Q{}value",slot:"31"}]}]}]},{N:"true"},{N:"int",val:"0"}]}]},{N:"let",line:"465","var":"Q{}grounded-value",as:"1AB",slot:"47",eval:"16",C:[{N:"or",op:"or",C:[{N:"or",op:"or",C:[{N:"or",op:"or",C:[{N:"fn",name:"empty",C:[{N:"varRef",name:"Q{}value",slot:"31"}]},{N:"instance",of:"1AB",C:[{N:"varRef",name:"Q{}value",slot:"31"}]}]},{N:"instance",of:"1AS",C:[{N:"varRef",name:"Q{}value",slot:"31"}]}]},{N:"instance",of:"1ADI",C:[{N:"varRef", +name:"Q{}value",slot:"31"}]}]},{N:"nextIteration",line:"505",C:[{N:"withParam",name:"Q{}inner-static-vars",as:"1FM",slot:"14",C:[{N:"ifCall",name:"Q{http://www.w3.org/2005/xpath-functions/map}put",type:"1FM",C:[{N:"varRef",name:"Q{}inner-static-vars",slot:"14"},{N:"check",card:"1",diag:"0|1||map:put",C:[{N:"varRef",name:"Q{}name",slot:"30"}]},{N:"varRef",name:"Q{}value",slot:"31"}]}]},{N:"withParam",name:"Q{}static-isParam",as:"1FM",slot:"15",C:[{N:"ifCall",line:"506",name:"Q{http://www.w3.org/2005/xpath-functions/map}put", +type:"1FM",C:[{N:"varRef",name:"Q{}static-isParam",slot:"15"},{N:"check",card:"1",diag:"0|1||map:put",C:[{N:"varRef",name:"Q{}name",slot:"30"}]},{N:"varRef",name:"Q{}isStaticParam",slot:"29"}]}]},{N:"withParam",name:"Q{}vars-in-import",as:"1FM",slot:"16",C:[{N:"choose",line:"512",C:[{N:"varRef",name:"Q{}imported",slot:"7"},{N:"ifCall",name:"Q{http://www.w3.org/2005/xpath-functions/map}put",type:"1FM",C:[{N:"varRef",name:"Q{}vars-in-import",slot:"16"},{N:"check",card:"1",diag:"0|1||map:put",C:[{N:"varRef", +name:"Q{}name",slot:"30"}]},{N:"varRef",name:"Q{}value",slot:"31"}]},{N:"true"},{N:"varRef",name:"Q{}vars-in-import",slot:"16"}]}]},{N:"withParam",name:"Q{}isParam-in-import",as:"1FM",slot:"17",C:[{N:"choose",line:"518",C:[{N:"varRef",name:"Q{}imported",slot:"7"},{N:"ifCall",name:"Q{http://www.w3.org/2005/xpath-functions/map}put",type:"1FM",C:[{N:"varRef",name:"Q{}isParam-in-import",slot:"17"},{N:"check",card:"1",diag:"0|1||map:put",C:[{N:"varRef",name:"Q{}name",slot:"30"}]},{N:"varRef",name:"Q{}value", +slot:"31"}]},{N:"true"},{N:"varRef",name:"Q{}isParam-in-import",slot:"17"}]}]},{N:"withParam",name:"Q{}components",as:"*NE",slot:"13",C:[{N:"sequence",line:"525",C:[{N:"varRef",name:"Q{}components",slot:"13"},{N:"choose",C:[{N:"varRef",name:"Q{}grounded-value",slot:"47"},{N:"choose",line:"468",C:[{N:"varRef",name:"Q{}grounded-value",slot:"47"},{N:"let",line:"489","var":"Q{http://saxon.sf.net/generated-variable}v4",as:"1AB",slot:"48",eval:"13",C:[{N:"instance",of:"1ADI",C:[{N:"varRef",name:"Q{}value", +slot:"31"}]},{N:"let",line:"485","var":"Q{http://saxon.sf.net/generated-variable}v3",as:"1AB",slot:"49",eval:"13",C:[{N:"instance",of:"1AS",C:[{N:"varRef",name:"Q{}value",slot:"31"}]},{N:"let",line:"476","var":"Q{http://saxon.sf.net/generated-variable}v2",as:"1AB",slot:"50",eval:"13",C:[{N:"instance",of:"1AB",C:[{N:"varRef",name:"Q{}value",slot:"31"}]},{N:"check",line:"469",card:"?",diag:"3|0|XTTE0570|variable.component",C:[{N:"forEach",C:[{N:"varRef",name:"Q{}possible.component",slot:"27"},{N:"copy", +line:"471",flags:"cin",sit:"1",C:[{N:"sequence",role:"content",C:[{N:"axis",name:"attribute",nodeTest:"NA"},{N:"choose",line:"473",C:[{N:"fn",name:"empty",C:[{N:"varRef",name:"Q{}value",slot:"31"}]},{N:"att",line:"474",name:"select",flags:"l",C:[{N:"str",val:"()"}]},{N:"varRef",line:"476",name:"Q{http://saxon.sf.net/generated-variable}v2",slot:"50"},{N:"att",line:"483",name:"select",flags:"l",C:[{N:"choose",C:[{N:"varRef",name:"Q{}value",slot:"31"},{N:"str",val:"true()"},{N:"true"},{N:"str",val:"false()"}]}]}, +{N:"varRef",line:"485",name:"Q{http://saxon.sf.net/generated-variable}v3",slot:"49"},{N:"att",line:"487",name:"select",flags:"l",C:[{N:"convert",from:"AZ",to:"AS",C:[{N:"cast",flags:"a",as:"1AZ",C:[{N:"fn",name:"concat",C:[{N:"str",val:"'"},{N:"fn",name:"replace",C:[{N:"treat",as:"AS",diag:"0|0||fn:replace",C:[{N:"check",card:"?",diag:"0|0||fn:replace",C:[{N:"cvUntyped",to:"AS",C:[{N:"data",diag:"0|0||fn:replace",C:[{N:"varRef",name:"Q{}value",slot:"31"}]}]}]}]},{N:"str",val:"'"},{N:"str",val:"''"}, +{N:"str",val:""}]},{N:"str",val:"'"}]}]}]}]},{N:"varRef",line:"489",name:"Q{http://saxon.sf.net/generated-variable}v4",slot:"48"},{N:"att",line:"490",name:"select",flags:"l",C:[{N:"fn",name:"string-join",C:[{N:"convert",from:"A",to:"AS",C:[{N:"data",C:[{N:"mergeAdj",C:[{N:"varRef",name:"Q{}value",slot:"31"}]}]}]},{N:"str",val:" "}]}]},{N:"true"},{N:"axis",line:"493",name:"child",nodeTest:"N"}]}]}]}]}]}]}]}]}]},{N:"true"},{N:"varRef",name:"Q{}possible.component",slot:"27"}]}]}]},{N:"withParam",name:"Q{}var-slots", +as:"1FM",slot:"18",C:[{N:"ifCall",line:"526",name:"Q{http://www.w3.org/2005/xpath-functions/map}put",type:"1FM",C:[{N:"varRef",name:"Q{}var-slots",slot:"18"},{N:"check",card:"1",diag:"0|1||map:put",C:[{N:"varRef",name:"Q{}name",slot:"30"}]},{N:"varRef",name:"Q{}this-slot",slot:"46"}]}]},{N:"withParam",name:"Q{}next-slot",as:"1ADI",slot:"19",C:[{N:"arith",line:"527",op:"+",calc:"i+i",C:[{N:"varRef",name:"Q{}this-slot",slot:"46"},{N:"int",val:"1"}]}]}]}]}]}]}]}]}]},{N:"fn",line:"530",name:"exists", +C:[{N:"slash",simple:"1",C:[{N:"varRef",name:"Q{}possible.component",slot:"27"},{N:"axis",name:"self",nodeTest:"NE u[NE nQ{http://www.w3.org/1999/XSL/Transform}import,NE nQ{http://www.w3.org/1999/XSL/Transform}include]"}]}]},{N:"let",line:"532","var":"Q{}imported",as:"1AB",slot:"51",eval:"8",C:[{N:"fn",name:"exists",C:[{N:"slash",simple:"1",C:[{N:"varRef",name:"Q{}possible.component",slot:"27"},{N:"axis",name:"self",nodeTest:"NE nQ{http://www.w3.org/1999/XSL/Transform}import"}]}]},{N:"let",line:"533", +"var":"Q{}doc",as:"1ND",slot:"52",eval:"16",C:[{N:"check",line:"534",card:"1",diag:"3|0|XTTE0570|doc",C:[{N:"sequence",C:[{N:"choose",C:[{N:"fn",name:"empty",C:[{N:"slash",simple:"1",C:[{N:"varRef",name:"Q{}possible.component",slot:"27"},{N:"axis",name:"attribute",nodeTest:"NA nQ{}href"}]}]},{N:"treat",line:"536",as:"ND",diag:"3|0|XTTE0570|doc",C:[{N:"ufCall",name:"Q{MyFunctions}syntax-error-at",tailCall:"false",bSlot:"20",eval:"16 16",C:[{N:"fn",name:"concat",C:[{N:"slash",C:[{N:"varRef",name:"Q{}possible.component", +slot:"27"},{N:"fn",name:"name",C:[{N:"dot",type:"1NE"}]}]},{N:"str",val:" must have an @href attribute"}]},{N:"check",card:"1",diag:"0|1||f:syntax-error-at",C:[{N:"varRef",name:"Q{}possible.component",slot:"27"}]}]}]}]},{N:"choose",line:"538",C:[{N:"fn",name:"exists",C:[{N:"slash",simple:"1",C:[{N:"varRef",name:"Q{}possible.component",slot:"27"},{N:"axis",name:"child",nodeTest:"N u[NT,NP,NE,NC]"}]}]},{N:"treat",line:"540",as:"ND",diag:"3|0|XTTE0570|doc",C:[{N:"ufCall",name:"Q{MyFunctions}syntax-error-at", +tailCall:"false",bSlot:"21",eval:"0 16 16",C:[{N:"str",val:"XTSE0260"},{N:"fn",name:"concat",C:[{N:"slash",C:[{N:"varRef",name:"Q{}possible.component",slot:"27"},{N:"fn",name:"name",C:[{N:"dot",type:"1NE"}]}]},{N:"str",val:" must be empty"}]},{N:"check",card:"1",diag:"0|2||f:syntax-error-at",C:[{N:"varRef",name:"Q{}possible.component",slot:"27"}]}]}]}]},{N:"choose",line:"542",C:[{N:"fn",name:"exists",C:[{N:"filter",flags:"b",C:[{N:"slash",C:[{N:"varRef",name:"Q{}possible.component",slot:"27"},{N:"except", +op:"except",C:[{N:"axis",name:"attribute",nodeTest:"NA"},{N:"docOrder",intra:"1",C:[{N:"sequence",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}href"},{N:"axis",name:"attribute",nodeTest:"NA nQ{}expand-text"}]}]}]}]},{N:"vc",op:"eq",onEmpty:"0",comp:"CCC",C:[{N:"fn",name:"namespace-uri",C:[{N:"dot",type:"1NA"}]},{N:"str",val:""}]}]}]},{N:"treat",line:"543",as:"ND",diag:"3|0|XTTE0570|doc",C:[{N:"ufCall",name:"Q{MyFunctions}wrongAttribute",tailCall:"false",bSlot:"22",eval:"4",C:[{N:"check",card:"+", +diag:"0|0||f:wrongAttribute",C:[{N:"filter",flags:"b",C:[{N:"except",op:"except",C:[{N:"slash",simple:"1",C:[{N:"varRef",name:"Q{}possible.component",slot:"27"},{N:"axis",name:"attribute",nodeTest:"NA"}]},{N:"axis",name:"attribute",nodeTest:"NA nQ{}href"}]},{N:"vc",op:"eq",onEmpty:"0",comp:"CCC",C:[{N:"fn",name:"namespace-uri",C:[{N:"dot",type:"1NA"}]},{N:"str",val:""}]}]}]}]}]}]},{N:"let",line:"545","var":"Q{}uri",as:"?AU",slot:"53",eval:"8",C:[{N:"fn",name:"resolve-uri",C:[{N:"cvUntyped",to:"AS", +C:[{N:"data",diag:"0|0||fn:resolve-uri",C:[{N:"slash",simple:"1",C:[{N:"varRef",name:"Q{}possible.component",slot:"27"},{N:"axis",name:"attribute",nodeTest:"NA nQ{}href"}]}]}]},{N:"check",card:"1",diag:"0|1||fn:resolve-uri",C:[{N:"convert",from:"AU",to:"AS",C:[{N:"first",C:[{N:"sequence",C:[{N:"fn",name:"base-uri",C:[{N:"dot",type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}*"}]},{N:"varRef",name:"Q{}stylesheet-base-uri",slot:"11"}]}]}]}]}]},{N:"sequence",line:"546",C:[{N:"choose",C:[{N:"gc",op:"=", +card:"N:1",comp:"CCC",C:[{N:"varRef",name:"Q{}stylesheet-stack",slot:"10"},{N:"varRef",name:"Q{}uri",slot:"53"}]},{N:"treat",line:"553",as:"ND",diag:"3|0|XTTE0570|doc",C:[{N:"ufCall",name:"Q{MyFunctions}syntax-error",tailCall:"false",bSlot:"23",eval:"16 16",C:[{N:"choose",C:[{N:"varRef",name:"Q{}imported",slot:"51"},{N:"str",val:"XTSE0210"},{N:"true"},{N:"str",val:"XTSE0180"}]},{N:"fn",name:"concat",C:[{N:"str",val:"Document "},{N:"varRef",name:"Q{}uri",slot:"53"},{N:"str",val:" is recursively including or importing itself"}]}]}]}]}, +{N:"choose",line:"555",C:[{N:"lookup",C:[{N:"varRef",name:"Q{}options",slot:"0"},{N:"str",val:"traceProgress"}]},{N:"treat",line:"556",as:"ND",diag:"3|0|XTTE0570|doc",C:[{N:"message",C:[{N:"sequence",role:"select",C:[{N:"str",val:"Import/Include static processing for"},{N:"varRef",name:"Q{}uri",slot:"53"}]},{N:"str",role:"terminate",val:"no"},{N:"str",role:"error",val:"Q{http://www.w3.org/2005/xqt-errors}XTMM9000"}]}]}]},{N:"callT",line:"559",name:"Q{}collect-doc",bSlot:"24",C:[{N:"withParam",name:"Q{}uri", +flags:"c",as:"?AU",C:[{N:"varRef",line:"560",name:"Q{}uri",slot:"53"}]}]}]}]}]}]},{N:"sequence",line:"564",C:[{N:"choose",C:[{N:"lookup",C:[{N:"varRef",name:"Q{}options",slot:"0"},{N:"str",val:"debugStatic"}]},{N:"sequence",line:"565",C:[{N:"message",C:[{N:"sequence",role:"select",C:[{N:"str",val:"$doc:"},{N:"fn",name:"serialize",C:[{N:"slash",simple:"1",C:[{N:"varRef",name:"Q{}doc",slot:"52"},{N:"axis",name:"child",nodeTest:"NE"}]}]}]},{N:"str",role:"terminate",val:"no"},{N:"str",role:"error",val:"Q{http://www.w3.org/2005/xqt-errors}XTMM9000"}]}, +{N:"message",line:"566",C:[{N:"sequence",role:"select",C:[{N:"str",val:"base-uri($doc):"},{N:"fn",name:"base-uri",C:[{N:"check",card:"?",diag:"0|0||fn:base-uri",C:[{N:"slash",simple:"1",C:[{N:"varRef",name:"Q{}doc",slot:"52"},{N:"axis",name:"child",nodeTest:"NE"}]}]}]}]},{N:"str",role:"terminate",val:"no"},{N:"str",role:"error",val:"Q{http://www.w3.org/2005/xqt-errors}XTMM9000"}]}]}]},{N:"let",line:"569","var":"Q{}collected",as:"1FM",slot:"54",eval:"16",C:[{N:"let",line:"573","var":"Q{}suffix",as:"1AS", +slot:"55",eval:"8",C:[{N:"fn",name:"codepoints-to-string",C:[{N:"arith",op:"-",calc:"i-i",C:[{N:"int",val:"50000"},{N:"cvUntyped",line:"571",to:"ADI",diag:"3|0|XTTE0570|index",C:[{N:"cast",flags:"a",as:"1AZ",C:[{N:"numSeqFmt",C:[{N:"nodeNum",role:"value",level:"single",C:[{N:"dot",role:"select",type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}*"},{N:"p.venn",role:"count",op:"union",C:[{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}import"},{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}include"}]}]}, +{N:"str",role:"startAt",val:"0"}]}]}]}]}]},{N:"treat",line:"574",as:"FM",diag:"3|0|XTTE0570|collected",C:[{N:"check",card:"1",diag:"3|0|XTTE0570|collected",C:[{N:"applyT",mode:"Q{}process-module",bSlot:"25",C:[{N:"slash",role:"select",simple:"1",C:[{N:"varRef",name:"Q{}doc",slot:"52"},{N:"axis",name:"child",nodeTest:"NE"}]},{N:"withParam",name:"Q{}imported",as:"1AB",C:[{N:"varRef",line:"577",name:"Q{}imported",slot:"51"}]},{N:"withParam",name:"Q{}top-level",flags:"t",as:"1AB",C:[{N:"false"}]},{N:"withParam", +name:"Q{}static-vars",flags:"t",as:"1FM",C:[{N:"varRef",line:"578",name:"Q{}inner-static-vars",slot:"14"}]},{N:"withParam",name:"Q{}var-slots",flags:"t",as:"1FM",C:[{N:"varRef",line:"579",name:"Q{}var-slots",slot:"18"}]},{N:"withParam",name:"Q{}next-slot",flags:"t",as:"1ADI",C:[{N:"varRef",line:"580",name:"Q{}next-slot",slot:"19"}]},{N:"withParam",name:"Q{}static-isParam",flags:"t",as:"1FM",C:[{N:"varRef",line:"581",name:"Q{}static-isParam",slot:"15"}]},{N:"withParam",name:"Q{}stylesheet-stack",flags:"t", +as:"*AU",C:[{N:"sequence",line:"582",C:[{N:"varRef",name:"Q{}stylesheet-stack",slot:"10"},{N:"fn",name:"base-uri",C:[{N:"varRef",name:"Q{}doc",slot:"52"}]}]}]},{N:"withParam",name:"Q{}parent-version",flags:"t",as:"1AD",C:[{N:"varRef",line:"583",name:"Q{}version",slot:"20"}]},{N:"withParam",name:"Q{}precLabel",flags:"t",as:"1AS",C:[{N:"choose",line:"589",C:[{N:"varRef",name:"Q{}imported",slot:"51"},{N:"fn",name:"concat",C:[{N:"varRef",name:"Q{}moduleLabel",slot:"1"},{N:"varRef",name:"Q{}suffix",slot:"55"}]}, +{N:"true"},{N:"varRef",name:"Q{}precLabel",slot:"2"}]}]},{N:"withParam",name:"Q{}moduleLabel",flags:"t",as:"1AS",C:[{N:"fn",line:"590",name:"concat",C:[{N:"varRef",name:"Q{}moduleLabel",slot:"1"},{N:"varRef",name:"Q{}suffix",slot:"55"}]}]}]}]}]}]},{N:"sequence",line:"593",C:[{N:"choose",C:[{N:"lookup",C:[{N:"varRef",name:"Q{}options",slot:"0"},{N:"str",val:"debugStatic"}]},{N:"message",line:"594",C:[{N:"sequence",role:"select",C:[{N:"str",val:"$collected:"},{N:"fn",name:"serialize",C:[{N:"varRef", +name:"Q{}collected",slot:"54"},{N:"map",size:"1",C:[{N:"str",val:"method"},{N:"str",val:"adaptive"}]}]}]},{N:"str",role:"terminate",val:"no"},{N:"str",role:"error",val:"Q{http://www.w3.org/2005/xqt-errors}XTMM9000"}]}]},{N:"nextIteration",line:"598",C:[{N:"withParam",name:"Q{}components",as:"*NE",slot:"13",C:[{N:"sequence",C:[{N:"varRef",name:"Q{}components",slot:"13"},{N:"treat",as:"NE",diag:"8|0|XTTE0590|components",C:[{N:"lookup",C:[{N:"varRef",name:"Q{}collected",slot:"54"},{N:"str",val:"components"}]}]}]}]}, +{N:"withParam",name:"Q{}inner-static-vars",as:"1FM",slot:"14",C:[{N:"ifCall",line:"604",name:"Q{http://www.w3.org/2005/xpath-functions/map}merge",type:"1FM",C:[{N:"sequence",C:[{N:"choose",C:[{N:"varRef",name:"Q{}imported",slot:"51"},{N:"varRef",name:"Q{}inner-static-vars",slot:"14"}]},{N:"treat",as:"FM",diag:"0|0||map:merge",C:[{N:"lookup",C:[{N:"varRef",name:"Q{}collected",slot:"54"},{N:"str",val:"static-vars"}]}]}]},{N:"map",size:"2",C:[{N:"str",val:"duplicates"},{N:"str",val:"use-first"},{N:"str", +val:"duplicates-error-code"},{N:"str",val:"FOJS0003"}]}]}]},{N:"withParam",name:"Q{}static-isParam",as:"1FM",slot:"15",C:[{N:"ifCall",line:"610",name:"Q{http://www.w3.org/2005/xpath-functions/map}merge",type:"1FM",C:[{N:"sequence",C:[{N:"choose",C:[{N:"varRef",name:"Q{}imported",slot:"51"},{N:"varRef",name:"Q{}static-isParam",slot:"15"}]},{N:"treat",as:"FM",diag:"0|0||map:merge",C:[{N:"lookup",C:[{N:"varRef",name:"Q{}collected",slot:"54"},{N:"str",val:"static-isParam"}]}]}]},{N:"map",size:"2",C:[{N:"str", +val:"duplicates"},{N:"str",val:"use-first"},{N:"str",val:"duplicates-error-code"},{N:"str",val:"FOJS0003"}]}]}]},{N:"withParam",name:"Q{}var-slots",as:"1FM",slot:"18",C:[{N:"treat",line:"611",as:"FM",diag:"8|0|XTTE0590|var-slots",C:[{N:"check",card:"1",diag:"8|0|XTTE0590|var-slots",C:[{N:"lookup",C:[{N:"varRef",name:"Q{}collected",slot:"54"},{N:"str",val:"var-slots"}]}]}]}]},{N:"withParam",name:"Q{}next-slot",as:"1ADI",slot:"19",C:[{N:"treat",line:"612",as:"ADI",diag:"8|0|XTTE0590|next-slot",C:[{N:"check", +card:"1",diag:"8|0|XTTE0590|next-slot",C:[{N:"cvUntyped",to:"ADI",diag:"8|0|XTTE0590|next-slot",C:[{N:"data",diag:"8|0|XTTE0590|next-slot",C:[{N:"lookup",C:[{N:"varRef",name:"Q{}collected",slot:"54"},{N:"str",val:"next-slot"}]}]}]}]}]}]}]}]}]}]}]}]},{N:"true"},{N:"nextIteration",line:"619",C:[{N:"withParam",name:"Q{}components",as:"*NE",slot:"13",C:[{N:"sequence",C:[{N:"varRef",name:"Q{}components",slot:"13"},{N:"varRef",name:"Q{}possible.component",slot:"27"}]}]}]}]}]}]}]}]}]}]},{N:"varRef",line:"625", +name:"Q{}result",slot:"26"}]}]}]}]}]}]}]}]},{N:"templateRule",prec:"0",prio:"1.4",seq:"2",rank:"0",minImp:"0",slots:"0",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}package",flags:"s",line:"118",module:"static.xsl",C:[{N:"p.nodeTest",role:"match",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}package"},{N:"ufCall",role:"action",ns:"doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions t=MyTypes xs=~ xsl=~ xml=~",line:"119",name:"Q{MyFunctions}syntax-error", +tailCall:"false",bSlot:"26",eval:"16",C:[{N:"fn",name:"concat",C:[{N:"fn",name:"name",C:[{N:"dot",type:"1NE"}]},{N:"str",val:" can only be a child of a document-node, not a '"},{N:"fn",name:"name",C:[{N:"check",card:"?",diag:"0|0||fn:name",C:[{N:"axis",name:"parent",nodeTest:"N u[NE,ND]"}]}]},{N:"str",val:"' element"}]}]}]},{N:"templateRule",prec:"0",prio:"1.5",seq:"3",rank:"2",minImp:"0",slots:"56",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}transform",flags:"s",line:"130",module:"static.xsl", +C:[{N:"p.withUpper",role:"match",axis:"parent",upFirst:"false",C:[{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}transform"},{N:"p.nodeTest",test:"ND"}]},{N:"sequence",role:"action",ns:"doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ saxon=~ t=MyTypes xs=~ xsl=~ xml=~",line:"131",C:[{N:"param",name:"Q{}options",slot:"0",flags:"t",as:"1FM",C:[{N:"map",role:"select",size:"0"},{N:"treat",role:"conversion",as:"FM",diag:"8|0|XTTE0590|options", +C:[{N:"check",card:"1",diag:"8|0|XTTE0590|options",C:[{N:"supplied",slot:"0"}]}]}]},{N:"param",line:"138",name:"Q{}moduleLabel",slot:"1",flags:"t",as:"1AS",C:[{N:"str",role:"select",val:"A"},{N:"treat",role:"conversion",as:"AS",diag:"8|0|XTTE0590|moduleLabel",C:[{N:"check",card:"1",diag:"8|0|XTTE0590|moduleLabel",C:[{N:"cvUntyped",to:"AS",diag:"8|0|XTTE0590|moduleLabel",C:[{N:"data",diag:"8|0|XTTE0590|moduleLabel",C:[{N:"supplied",slot:"1"}]}]}]}]}]},{N:"param",line:"146",name:"Q{}precLabel",slot:"2", +flags:"t",as:"1AS",C:[{N:"str",role:"select",val:"A"},{N:"treat",role:"conversion",as:"AS",diag:"8|0|XTTE0590|precLabel",C:[{N:"check",card:"1",diag:"8|0|XTTE0590|precLabel",C:[{N:"cvUntyped",to:"AS",diag:"8|0|XTTE0590|precLabel",C:[{N:"data",diag:"8|0|XTTE0590|precLabel",C:[{N:"supplied",slot:"2"}]}]}]}]}]},{N:"param",line:"147",name:"Q{}static-vars",slot:"3",flags:"t",as:"1FM",C:[{N:"map",role:"select",size:"0"},{N:"treat",role:"conversion",as:"FM",diag:"8|0|XTTE0590|static-vars",C:[{N:"check", +card:"1",diag:"8|0|XTTE0590|static-vars",C:[{N:"supplied",slot:"3"}]}]}]},{N:"param",line:"148",name:"Q{}static-isParam",slot:"4",flags:"t",as:"1FM",C:[{N:"map",role:"select",size:"0"},{N:"treat",role:"conversion",as:"FM",diag:"8|0|XTTE0590|static-isParam",C:[{N:"check",card:"1",diag:"8|0|XTTE0590|static-isParam",C:[{N:"supplied",slot:"4"}]}]}]},{N:"param",line:"149",name:"Q{}var-slots",slot:"5",flags:"t",as:"1FM",C:[{N:"map",role:"select",size:"0"},{N:"treat",role:"conversion",as:"FM",diag:"8|0|XTTE0590|var-slots", +C:[{N:"check",card:"1",diag:"8|0|XTTE0590|var-slots",C:[{N:"supplied",slot:"5"}]}]}]},{N:"param",line:"150",name:"Q{}next-slot",slot:"6",flags:"t",as:"1ADI",C:[{N:"int",role:"select",val:"0"},{N:"treat",role:"conversion",as:"ADI",diag:"8|0|XTTE0590|next-slot",C:[{N:"check",card:"1",diag:"8|0|XTTE0590|next-slot",C:[{N:"cvUntyped",to:"ADI",diag:"8|0|XTTE0590|next-slot",C:[{N:"data",diag:"8|0|XTTE0590|next-slot",C:[{N:"supplied",slot:"6"}]}]}]}]}]},{N:"param",line:"151",name:"Q{}imported",slot:"7",as:"1AB", +C:[{N:"false",role:"select"},{N:"treat",role:"conversion",as:"AB",diag:"8|0|XTTE0590|imported",C:[{N:"check",card:"1",diag:"8|0|XTTE0590|imported",C:[{N:"cvUntyped",to:"AB",diag:"8|0|XTTE0590|imported",C:[{N:"data",diag:"8|0|XTTE0590|imported",C:[{N:"supplied",slot:"7"}]}]}]}]}]},{N:"param",line:"152",name:"Q{}top-level",slot:"8",flags:"t",as:"1AB",C:[{N:"true",role:"select"},{N:"treat",role:"conversion",as:"AB",diag:"8|0|XTTE0590|top-level",C:[{N:"check",card:"1",diag:"8|0|XTTE0590|top-level",C:[{N:"cvUntyped", +to:"AB",diag:"8|0|XTTE0590|top-level",C:[{N:"data",diag:"8|0|XTTE0590|top-level",C:[{N:"supplied",slot:"8"}]}]}]}]}]},{N:"param",line:"153",name:"Q{}params",slot:"9",flags:"t",as:"1FM k[AQ]",C:[{N:"map",role:"select",size:"0"},{N:"treat",role:"conversion",as:"FM k[AQ]",diag:"8|0|XTTE0590|params",C:[{N:"check",card:"1",diag:"8|0|XTTE0590|params",C:[{N:"supplied",slot:"9"}]}]}]},{N:"param",line:"154",name:"Q{}stylesheet-stack",slot:"10",flags:"t",as:"*AU",C:[{N:"fn",role:"select",name:"base-uri",C:[{N:"dot", +type:"1NE"}]},{N:"treat",role:"conversion",as:"AU",diag:"8|0|XTTE0590|stylesheet-stack",C:[{N:"cvUntyped",to:"AU",diag:"8|0|XTTE0590|stylesheet-stack",C:[{N:"data",diag:"8|0|XTTE0590|stylesheet-stack",C:[{N:"supplied",slot:"10"}]}]}]}]},{N:"param",line:"155",name:"Q{}stylesheet-base-uri",slot:"11",flags:"t",as:"1AU",C:[{N:"check",role:"select",card:"1",diag:"8|0|XTTE0600|stylesheet-base-uri",C:[{N:"fn",name:"base-uri",C:[{N:"dot",type:"1NE"}]}]},{N:"treat",role:"conversion",as:"AU",diag:"8|0|XTTE0590|stylesheet-base-uri", +C:[{N:"check",card:"1",diag:"8|0|XTTE0590|stylesheet-base-uri",C:[{N:"cvUntyped",to:"AU",diag:"8|0|XTTE0590|stylesheet-base-uri",C:[{N:"data",diag:"8|0|XTTE0590|stylesheet-base-uri",C:[{N:"supplied",slot:"11"}]}]}]}]}]},{N:"param",line:"156",name:"Q{}parent-version",slot:"12",flags:"t",as:"?AD",C:[{N:"empty",role:"select"},{N:"treat",role:"conversion",as:"AD",diag:"8|0|XTTE0590|parent-version",C:[{N:"check",card:"?",diag:"8|0|XTTE0590|parent-version",C:[{N:"cvUntyped",to:"AD",diag:"8|0|XTTE0590|parent-version", +C:[{N:"data",diag:"8|0|XTTE0590|parent-version",C:[{N:"supplied",slot:"12"}]}]}]}]}]},{N:"let",line:"160","var":"Q{}version",as:"1AD",slot:"20",eval:"9",C:[{N:"callT",line:"161",name:"Q{}XSLT-version",bSlot:"2"},{N:"let",line:"163","var":"Q{}xpath-default-namespace",as:"?NA",slot:"21",eval:"8",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}xpath-default-namespace"},{N:"let",line:"170","var":"Q{}stylesheet-properties",as:"*NA",slot:"22",eval:"4",C:[{N:"sequence",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}default-mode"}, +{N:"axis",name:"attribute",nodeTest:"NA nQ{}expand-text"},{N:"choose",C:[{N:"and",op:"and",C:[{N:"fn",name:"exists",C:[{N:"varRef",name:"Q{}parent-version",slot:"12"}]},{N:"vc",op:"ne",onEmpty:"0",comp:"CAVC",C:[{N:"varRef",name:"Q{}version",slot:"20"},{N:"varRef",name:"Q{}parent-version",slot:"12"}]}]},{N:"axis",name:"attribute",nodeTest:"NA nQ{}version"}]}]},{N:"sequence",line:"174",C:[{N:"forEach",C:[{N:"filter",flags:"b",C:[{N:"axis",name:"child",nodeTest:"NT"},{N:"fn",name:"boolean",C:[{N:"fn", +name:"normalize-space",C:[{N:"fn",name:"string",C:[{N:"dot",type:"1NT"}]}]}]}]},{N:"ufCall",line:"186",name:"Q{MyFunctions}syntax-error-at",tailCall:"false",bSlot:"3",eval:"0 16 16",C:[{N:"str",val:"XTSE0120"},{N:"cvUntyped",line:"177",to:"AS",diag:"3|0|XTTE0570|message",C:[{N:"cast",flags:"a",as:"1AZ",C:[{N:"fn",name:"string-join",C:[{N:"convert",from:"AZ",to:"AS",C:[{N:"data",C:[{N:"mergeAdj",C:[{N:"sequence",C:[{N:"valueOf",C:[{N:"fn",name:"name",C:[{N:"check",card:"?",diag:"0|0||fn:name",C:[{N:"axis", +name:"parent",nodeTest:"N u[NE,ND]"}]}]}]},{N:"valueOf",line:"178",C:[{N:"str",val:" cannot have non-whitespace text node children. "}]},{N:"choose",line:"180",C:[{N:"fn",name:"exists",C:[{N:"slash",simple:"1",C:[{N:"dot",type:"1NT"},{N:"axis",name:"preceding-sibling",nodeTest:"NE"}]}]},{N:"valueOf",C:[{N:"fn",name:"concat",C:[{N:"str",val:"Found '"},{N:"fn",name:"normalize-space",C:[{N:"cvUntyped",to:"AS",C:[{N:"data",diag:"0|0||fn:normalize-space",C:[{N:"dot",type:"1NT"}]}]}]},{N:"str",val:"' just after "}, +{N:"let",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~","var":"Q{}node",as:"1N",slot:"23",eval:"16",C:[{N:"check",ns:"doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ saxon=~ t=MyTypes xs=~ xsl=~ xml=~",card:"1",diag:"0|0||f:path",C:[{N:"first",C:[{N:"slash",simple:"1",C:[{N:"dot",type:"1NT"},{N:"axis",name:"preceding-sibling", +nodeTest:"NE"}]}]}]},{N:"choose",module:"lib.xsl",line:"396",C:[{N:"fn",name:"exists",C:[{N:"slash",simple:"1",C:[{N:"varRef",name:"Q{}node",slot:"23"},{N:"axis",name:"attribute",nodeTest:"NA nQ{}loc"}]}]},{N:"cvUntyped",to:"AS",diag:"5|0|XTTE0780|f:path#1",C:[{N:"cast",flags:"a",as:"1AZ",C:[{N:"fn",name:"string",C:[{N:"convert",from:"AZ",to:"AS",C:[{N:"data",C:[{N:"slash",simple:"1",C:[{N:"varRef",name:"Q{}node",slot:"23"},{N:"axis",name:"attribute",nodeTest:"NA nQ{}loc"}]}]}]}]}]}]},{N:"true"}, +{N:"cvUntyped",line:"398",to:"AS",diag:"5|0|XTTE0780|f:path#1",C:[{N:"cast",flags:"a",as:"1AZ",C:[{N:"fn",name:"name",C:[{N:"varRef",name:"Q{}node",slot:"23"}]}]}]}]}]}]}]},{N:"fn",line:"181",name:"exists",C:[{N:"axis",name:"following-sibling",nodeTest:"NE"}]},{N:"valueOf",line:"181",C:[{N:"fn",name:"concat",C:[{N:"str",val:"Found '"},{N:"fn",name:"normalize-space",C:[{N:"cvUntyped",to:"AS",C:[{N:"data",diag:"0|0||fn:normalize-space",C:[{N:"dot",type:"1NT"}]}]}]},{N:"str",val:"' just before "},{N:"let", +ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~","var":"Q{}node",as:"1N",slot:"24",eval:"16",C:[{N:"check",ns:"doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ saxon=~ t=MyTypes xs=~ xsl=~ xml=~",card:"1",diag:"0|0||f:path",C:[{N:"first",C:[{N:"axis",name:"following-sibling",nodeTest:"NE"}]}]},{N:"choose",module:"lib.xsl", +line:"396",C:[{N:"fn",name:"exists",C:[{N:"slash",simple:"1",C:[{N:"varRef",name:"Q{}node",slot:"24"},{N:"axis",name:"attribute",nodeTest:"NA nQ{}loc"}]}]},{N:"cvUntyped",to:"AS",diag:"5|0|XTTE0780|f:path#1",C:[{N:"cast",flags:"a",as:"1AZ",C:[{N:"fn",name:"string",C:[{N:"convert",from:"AZ",to:"AS",C:[{N:"data",C:[{N:"slash",simple:"1",C:[{N:"varRef",name:"Q{}node",slot:"24"},{N:"axis",name:"attribute",nodeTest:"NA nQ{}loc"}]}]}]}]}]}]},{N:"true"},{N:"cvUntyped",line:"398",to:"AS",diag:"5|0|XTTE0780|f:path#1", +C:[{N:"cast",flags:"a",as:"1AZ",C:[{N:"fn",name:"name",C:[{N:"varRef",name:"Q{}node",slot:"24"}]}]}]}]}]}]}]},{N:"true"},{N:"valueOf",line:"182",C:[{N:"fn",name:"concat",C:[{N:"str",val:"Found '"},{N:"fn",name:"normalize-space",C:[{N:"cvUntyped",to:"AS",C:[{N:"data",diag:"0|0||fn:normalize-space",C:[{N:"dot",type:"1NT"}]}]}]},{N:"str",val:"'"}]}]}]}]}]}]}]},{N:"str",val:""}]}]}]},{N:"check",card:"1",diag:"0|2||f:syntax-error-at",C:[{N:"axis",name:"parent",nodeTest:"N u[NE,ND]"}]}]}]},{N:"forEach", +line:"189",C:[{N:"filter",flags:"b",C:[{N:"axis",name:"child",nodeTest:"NE"},{N:"vc",op:"eq",onEmpty:"0",comp:"CCC",C:[{N:"fn",name:"namespace-uri",C:[{N:"dot",type:"1NE"}]},{N:"str",val:""}]}]},{N:"ufCall",line:"190",name:"Q{MyFunctions}syntax-error-at",tailCall:"false",bSlot:"4",eval:"0 16 16",C:[{N:"str",val:"XTSE0130"},{N:"fn",name:"concat",C:[{N:"check",card:"?",diag:"0|0||fn:concat",C:[{N:"slash",C:[{N:"axis",name:"parent",nodeTest:"N u[NE,ND]"},{N:"fn",name:"name",C:[{N:"dot",type:"1N u[NE,ND]"}]}]}]}, +{N:"str",val:" cannot have a no-namespace child element:"},{N:"fn",name:"name",C:[{N:"dot",type:"1NE"}]}]},{N:"dot",type:"1NE"}]}]},{N:"choose",line:"193",C:[{N:"vc",op:"gt",onEmpty:"0",comp:"CAVC",C:[{N:"fn",name:"count",C:[{N:"axis",name:"child",nodeTest:"NE nQ{http://www.w3.org/1999/XSL/Transform}global-context-item"}]},{N:"int",val:"1"}]},{N:"ufCall",line:"194",name:"Q{MyFunctions}syntax-error",tailCall:"false",bSlot:"5",eval:"0 0",C:[{N:"str",val:"XTSE3087"},{N:"str",val:"A stylesheet module may not contain more than one xsl:global-context-item element"}]}]}, +{N:"let",line:"202","var":"Q{}not-discarded",as:"1AB",slot:"25",eval:"16",C:[{N:"choose",line:"204",C:[{N:"fn",name:"exists",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}use-when"}]},{N:"callT",line:"205",name:"Q{}check-use-when",bSlot:"6"},{N:"true"},{N:"true"}]},{N:"let",line:"213","var":"Q{}result",as:"1FM",slot:"26",eval:"16",C:[{N:"treat",line:"219",as:"FM",diag:"3|0|XTTE0570|result",C:[{N:"check",card:"1",diag:"3|0|XTTE0570|result",C:[{N:"iterate",C:[{N:"choose",role:"select",C:[{N:"varRef", +name:"Q{}not-discarded",slot:"25"},{N:"axis",name:"child",nodeTest:"NE nQ{http://www.w3.org/1999/XSL/Transform}*"}]},{N:"params",role:"params",line:"220",C:[{N:"param",name:"Q{}components",slot:"13",as:"*NE",C:[{N:"empty",role:"select"},{N:"treat",role:"conversion",as:"NE",diag:"8|0|XTTE0590|components",C:[{N:"supplied",slot:"13"}]}]},{N:"param",line:"221",name:"Q{}inner-static-vars",slot:"14",as:"1FM",C:[{N:"varRef",role:"select",name:"Q{}static-vars",slot:"3"},{N:"treat",role:"conversion",as:"FM", +diag:"8|0|XTTE0590|inner-static-vars",C:[{N:"check",card:"1",diag:"8|0|XTTE0590|inner-static-vars",C:[{N:"supplied",slot:"14"}]}]}]},{N:"param",line:"222",name:"Q{}static-isParam",slot:"15",as:"1FM",C:[{N:"varRef",role:"select",name:"Q{}static-isParam",slot:"4"},{N:"treat",role:"conversion",as:"FM",diag:"8|0|XTTE0590|static-isParam",C:[{N:"check",card:"1",diag:"8|0|XTTE0590|static-isParam",C:[{N:"supplied",slot:"15"}]}]}]},{N:"param",line:"224",name:"Q{}vars-in-import",slot:"16",as:"1FM",C:[{N:"map", +role:"select",size:"0"},{N:"treat",role:"conversion",as:"FM",diag:"8|0|XTTE0590|vars-in-import",C:[{N:"check",card:"1",diag:"8|0|XTTE0590|vars-in-import",C:[{N:"supplied",slot:"16"}]}]}]},{N:"param",line:"225",name:"Q{}isParam-in-import",slot:"17",as:"1FM",C:[{N:"map",role:"select",size:"0"},{N:"treat",role:"conversion",as:"FM",diag:"8|0|XTTE0590|isParam-in-import",C:[{N:"check",card:"1",diag:"8|0|XTTE0590|isParam-in-import",C:[{N:"supplied",slot:"17"}]}]}]},{N:"param",line:"226",name:"Q{}var-slots", +slot:"18",as:"1FM",C:[{N:"varRef",role:"select",name:"Q{}var-slots",slot:"5"},{N:"treat",role:"conversion",as:"FM",diag:"8|0|XTTE0590|var-slots",C:[{N:"check",card:"1",diag:"8|0|XTTE0590|var-slots",C:[{N:"supplied",slot:"18"}]}]}]},{N:"param",line:"227",name:"Q{}next-slot",slot:"19",as:"1ADI",C:[{N:"varRef",role:"select",name:"Q{}next-slot",slot:"6"},{N:"treat",role:"conversion",as:"ADI",diag:"8|0|XTTE0590|next-slot",C:[{N:"check",card:"1",diag:"8|0|XTTE0590|next-slot",C:[{N:"cvUntyped",to:"ADI", +diag:"8|0|XTTE0590|next-slot",C:[{N:"data",diag:"8|0|XTTE0590|next-slot",C:[{N:"supplied",slot:"19"}]}]}]}]}]}]},{N:"ifCall",role:"on-completion",line:"255",name:"Q{http://www.w3.org/2005/xpath-functions/map}merge",type:"1FM",C:[{N:"sequence",C:[{N:"ifCall",name:"Q{http://www.w3.org/2005/xpath-functions/map}entry",type:"1FM",C:[{N:"str",val:"components"},{N:"varRef",name:"Q{}components",slot:"13"}]},{N:"ifCall",name:"Q{http://www.w3.org/2005/xpath-functions/map}entry",type:"1FM",C:[{N:"str",val:"static-vars"}, +{N:"varRef",name:"Q{}inner-static-vars",slot:"14"}]},{N:"ifCall",name:"Q{http://www.w3.org/2005/xpath-functions/map}entry",type:"1FM",C:[{N:"str",val:"static-isParam"},{N:"varRef",name:"Q{}static-isParam",slot:"15"}]},{N:"ifCall",name:"Q{http://www.w3.org/2005/xpath-functions/map}entry",type:"1FM",C:[{N:"str",val:"var-slots"},{N:"varRef",name:"Q{}var-slots",slot:"18"}]},{N:"ifCall",name:"Q{http://www.w3.org/2005/xpath-functions/map}entry",type:"1FM",C:[{N:"str",val:"next-slot"},{N:"varRef",name:"Q{}next-slot", +slot:"19"}]}]},{N:"map",size:"2",C:[{N:"str",val:"duplicates"},{N:"str",val:"reject"},{N:"str",val:"duplicates-error-code"},{N:"str",val:"FOJS0003"}]}]},{N:"let",role:"action",line:"262","var":"Q{}possible.component",as:"?NE",slot:"27",eval:"7",C:[{N:"treat",line:"263",as:"NE",diag:"3|0|XTTE0570|possible.component",C:[{N:"check",card:"?",diag:"3|0|XTTE0570|possible.component",C:[{N:"applyT",mode:"Q{}static",bSlot:"7",C:[{N:"dot",role:"select",type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}*"}, +{N:"withParam",name:"Q{}static-vars",flags:"t",as:"1FM",C:[{N:"varRef",line:"264",name:"Q{}inner-static-vars",slot:"14"}]},{N:"withParam",name:"Q{}var-slots",flags:"t",as:"1FM",C:[{N:"varRef",line:"265",name:"Q{}var-slots",slot:"18"}]},{N:"withParam",name:"Q{}next-slot",flags:"t",as:"1ADI",C:[{N:"varRef",line:"266",name:"Q{}next-slot",slot:"19"}]},{N:"withParam",name:"Q{}static-isParam",flags:"t",as:"1FM",C:[{N:"varRef",line:"267",name:"Q{}static-isParam",slot:"15"}]},{N:"withParam",name:"Q{}xpath-default-namespace", +flags:"t",as:"?NA",C:[{N:"varRef",line:"268",name:"Q{}xpath-default-namespace",slot:"21"}]},{N:"withParam",name:"Q{}XSLT-version",flags:"t",as:"1AD",C:[{N:"varRef",line:"269",name:"Q{}version",slot:"20"}]},{N:"withParam",name:"Q{}stylesheet-properties",flags:"t",as:"*NA",C:[{N:"varRef",line:"270",name:"Q{}stylesheet-properties",slot:"22"}]},{N:"withParam",name:"Q{}has-uniform-static-context",flags:"t",as:"1AB",C:[{N:"ufCall",line:"271",name:"Q{MyFunctions}has-uniform-static-context",tailCall:"false", +bSlot:"8",eval:"16",C:[{N:"dot",type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}*"}]}]}]}]}]},{N:"let",line:"276","var":"Q{}isStaticVariable",as:"1AB",slot:"28",eval:"16",C:[{N:"ufCall",name:"Q{MyFunctions}boolean-string",tailCall:"false",bSlot:"9",eval:"7 0",C:[{N:"slash",simple:"1",C:[{N:"filter",flags:"b",C:[{N:"varRef",name:"Q{}possible.component",slot:"27"},{N:"fn",name:"exists",C:[{N:"axis",name:"self",nodeTest:"NE nQ{http://www.w3.org/1999/XSL/Transform}variable"}]}]},{N:"axis",name:"attribute", +nodeTest:"NA nQ{}static"}]},{N:"false"}]},{N:"let",line:"277","var":"Q{}isStaticParam",as:"1AB",slot:"29",eval:"16",C:[{N:"ufCall",name:"Q{MyFunctions}boolean-string",tailCall:"false",bSlot:"10",eval:"7 0",C:[{N:"slash",simple:"1",C:[{N:"filter",flags:"b",C:[{N:"varRef",name:"Q{}possible.component",slot:"27"},{N:"fn",name:"exists",C:[{N:"axis",name:"self",nodeTest:"NE nQ{http://www.w3.org/1999/XSL/Transform}param"}]}]},{N:"axis",name:"attribute",nodeTest:"NA nQ{}static"}]},{N:"false"}]},{N:"choose", +line:"280",C:[{N:"or",line:"278",op:"or",C:[{N:"varRef",name:"Q{}isStaticParam",slot:"29"},{N:"varRef",name:"Q{}isStaticVariable",slot:"28"}]},{N:"let",line:"286","var":"Q{}name",as:"?AQ",slot:"30",eval:"7",C:[{N:"choose",C:[{N:"fn",name:"contains",C:[{N:"cvUntyped",to:"AS",C:[{N:"attVal",name:"Q{}name",chk:"0"}]},{N:"str",val:":"}]},{N:"fn",name:"resolve-QName",C:[{N:"cvUntyped",to:"AS",C:[{N:"attVal",name:"Q{}name",chk:"0"}]},{N:"dot",type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}*"}]},{N:"true"}, +{N:"fn",name:"QName",C:[{N:"str",val:""},{N:"check",card:"1",diag:"0|1||fn:QName",C:[{N:"cvUntyped",to:"AS",C:[{N:"attVal",name:"Q{}name",chk:"0"}]}]}]}]},{N:"let",line:"287","var":"Q{}value",slot:"31",eval:"8",C:[{N:"forEach",line:"290",C:[{N:"varRef",name:"Q{}possible.component",slot:"27"},{N:"let",line:"291","var":"Q{}isRequired",slot:"32",eval:"16",C:[{N:"ufCall",name:"Q{MyFunctions}boolean-string",tailCall:"false",bSlot:"11",eval:"8 0",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}required"}, +{N:"false"}]},{N:"let",line:"292","var":"Q{}isSupplied",as:"1AB",slot:"33",eval:"8",C:[{N:"ifCall",name:"Q{http://www.w3.org/2005/xpath-functions/map}contains",type:"1AB",C:[{N:"varRef",name:"Q{}params",slot:"9"},{N:"check",card:"1",diag:"0|1||map:contains",C:[{N:"varRef",name:"Q{}name",slot:"30"}]}]},{N:"choose",line:"295",C:[{N:"fn",name:"exists",C:[{N:"axis",name:"child",nodeTest:"N u[NT,NP,NE,NC]"}]},{N:"choose",line:"310",C:[{N:"fn",name:"exists",C:[{N:"sequence",line:"297",C:[{N:"axis",name:"child", +nodeTest:"NE"},{N:"filter",flags:"b",C:[{N:"axis",name:"child",nodeTest:"NT"},{N:"fn",name:"boolean",C:[{N:"fn",name:"normalize-space",C:[{N:"fn",name:"string",C:[{N:"dot",type:"1NT"}]}]}]}]}]}]},{N:"fn",name:"error",C:[{N:"fn",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~",module:"lib.xsl",line:"29",name:"QName",C:[{N:"str",val:"http://www.w3.org/2005/xqt-errors"},{N:"choose", +ns:"doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ saxon=~ t=MyTypes xs=~ xsl=~ xml=~",module:"static.xsl",line:"310",C:[{N:"fn",name:"exists",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}select"}]},{N:"str",val:"XTSE0620"},{N:"true"},{N:"str",val:"XTSE0010"}]}]},{N:"fn",name:"concat",C:[{N:"str",val:"Static "},{N:"fn",name:"local-name",C:[{N:"dot",type:"1NE"}]},{N:"str",val:" "},{N:"attVal",name:"Q{}name",chk:"0"},{N:"str",val:" must not have a sequence constructor"}]}]}]}, +{N:"and",line:"312",op:"and",C:[{N:"varRef",name:"Q{}isRequired",slot:"32"},{N:"fn",name:"exists",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}select"}]}]},{N:"fn",line:"315",name:"error",C:[{N:"qName",pre:"",uri:"http://www.w3.org/2005/xqt-errors",loc:"XTSE0010"},{N:"fn",name:"concat",C:[{N:"str",val:"Required static "},{N:"fn",name:"local-name",C:[{N:"dot",type:"1NE"}]},{N:"str",val:" "},{N:"attVal",name:"Q{}name",chk:"0"},{N:"str",val:" must not have a default value"}]}]},{N:"and",line:"317", +op:"and",C:[{N:"varRef",name:"Q{}isStaticVariable",slot:"28"},{N:"gc",op:"!=",card:"N:1",comp:"CCC",C:[{N:"forEach",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}visibility"},{N:"fn",name:"normalize-space",C:[{N:"fn",name:"string",C:[{N:"dot",type:"1NA nQ{}visibility"}]}]}]},{N:"str",val:"private"}]}]},{N:"fn",line:"320",name:"error",C:[{N:"qName",pre:"",uri:"http://www.w3.org/2005/xqt-errors",loc:"XTSE0020"},{N:"fn",name:"concat",C:[{N:"str",val:"Static "},{N:"fn",name:"local-name",C:[{N:"dot", +type:"1NE"}]},{N:"str",val:" "},{N:"attVal",name:"Q{}name",chk:"0"},{N:"str",val:" may only have private visibility"}]}]},{N:"and",line:"323",op:"and",C:[{N:"and",op:"and",C:[{N:"and",op:"and",C:[{N:"and",op:"and",C:[{N:"varRef",name:"Q{}isStaticParam",slot:"29"},{N:"fn",name:"empty",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}select"}]}]},{N:"fn",name:"not",C:[{N:"varRef",name:"Q{}isSupplied",slot:"33"}]}]},{N:"fn",name:"exists",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}as"}]}]},{N:"fn", +name:"not",C:[{N:"fn",name:"matches",C:[{N:"cvUntyped",to:"AS",C:[{N:"attVal",name:"Q{}as",chk:"0"}]},{N:"str",val:"(\\*|\\?)\\s*?"},{N:"str",val:""}]}]}]},{N:"fn",line:"326",name:"error",C:[{N:"qName",pre:"",uri:"http://www.w3.org/2005/xqt-errors",loc:"XTDE0700"},{N:"fn",name:"concat",C:[{N:"str",val:"No value for implicitly mandatory static parameter "},{N:"attVal",name:"Q{}name",chk:"0"},{N:"str",val:" has been supplied"}]}]},{N:"and",line:"328",op:"and",C:[{N:"varRef",name:"Q{}isStaticParam", +slot:"29"},{N:"varRef",name:"Q{}isSupplied",slot:"33"}]},{N:"let",line:"329","var":"Q{}supplied",slot:"34",eval:"4",C:[{N:"ifCall",name:"Q{http://www.w3.org/2005/xpath-functions/map}get",type:"*",C:[{N:"varRef",name:"Q{}params",slot:"9"},{N:"check",card:"1",diag:"0|1||map:get",C:[{N:"varRef",name:"Q{}name",slot:"30"}]}]},{N:"choose",line:"332",C:[{N:"and",op:"and",C:[{N:"fn",name:"exists",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}as"}]},{N:"instance",of:"1AZ",C:[{N:"varRef",name:"Q{}supplied", +slot:"34"}]}]},{N:"let",line:"334","var":"Q{}targetType",slot:"35",eval:"4",C:[{N:"lookup",C:[{N:"treat",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions js=~ map=~ saxon=~ t=MyTypes xs=~ xsl=~ xml=~",module:"xpath.xsl",line:"1527",as:"FM",diag:"5|0|XTTE0780|f:parse-sequence-type#3",C:[{N:"ifCall",name:"Q{http://saxon.sf.net/}parse-sequence-type",type:"1F",C:[{N:"check",ns:"doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ saxon=~ t=MyTypes xs=~ xsl=~ xml=~", +module:"static.xsl",line:"334",card:"1",diag:"0|0||f:parse-sequence-type",C:[{N:"cvUntyped",to:"AS",C:[{N:"attVal",name:"Q{}as",chk:"0"}]}]},{N:"dot",ns:"doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ saxon=~ t=MyTypes xs=~ xsl=~ xml=~",module:"static.xsl",line:"334",type:"1NE"},{N:"str",val:""}]}]},{N:"str",val:"p"}]},{N:"let",line:"335","var":"Q{http://saxon.sf.net/generated-variable}v0",as:"1AS",slot:"36",eval:"13",C:[{N:"treat",as:"AS", +diag:"0|1||f:cast",C:[{N:"check",card:"1",diag:"0|1||f:cast",C:[{N:"cvUntyped",to:"AS",C:[{N:"data",diag:"0|1||f:cast",C:[{N:"varRef",name:"Q{}targetType",slot:"35"}]}]}]}]},{N:"forEach",C:[{N:"varRef",name:"Q{}supplied",slot:"34"},{N:"ufCall",name:"Q{MyFunctions}cast",tailCall:"false",bSlot:"12",eval:"16 6",C:[{N:"atomSing",diag:"0|0||f:cast",C:[{N:"dot"}]},{N:"varRef",name:"Q{http://saxon.sf.net/generated-variable}v0",slot:"36"}]}]}]}]},{N:"fn",line:"337",name:"exists",C:[{N:"axis",name:"attribute", +nodeTest:"NA nQ{}as"}]},{N:"let",line:"339","var":"Q{}targetType",slot:"37",eval:"4",C:[{N:"lookup",C:[{N:"treat",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions js=~ map=~ saxon=~ t=MyTypes xs=~ xsl=~ xml=~",module:"xpath.xsl",line:"1527",as:"FM",diag:"5|0|XTTE0780|f:parse-sequence-type#3",C:[{N:"ifCall",name:"Q{http://saxon.sf.net/}parse-sequence-type",type:"1F",C:[{N:"check",ns:"doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ saxon=~ t=MyTypes xs=~ xsl=~ xml=~", +module:"static.xsl",line:"339",card:"1",diag:"0|0||f:parse-sequence-type",C:[{N:"cvUntyped",to:"AS",C:[{N:"attVal",name:"Q{}as",chk:"0"}]}]},{N:"dot",ns:"doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ saxon=~ t=MyTypes xs=~ xsl=~ xml=~",module:"static.xsl",line:"339",type:"1NE"},{N:"str",val:""}]}]},{N:"str",val:"p"}]},{N:"let",line:"341","var":"Q{http://saxon.sf.net/generated-variable}v1",as:"1AS",slot:"38",eval:"13",C:[{N:"treat",as:"AS", +diag:"0|1||f:isInstance",C:[{N:"check",card:"1",diag:"0|1||f:isInstance",C:[{N:"cvUntyped",to:"AS",C:[{N:"data",diag:"0|1||f:isInstance",C:[{N:"varRef",name:"Q{}targetType",slot:"37"}]}]}]}]},{N:"choose",C:[{N:"every","var":"Q{}item",slot:"39",C:[{N:"varRef",name:"Q{}supplied",slot:"34"},{N:"ufCall",name:"Q{MyFunctions}isInstance",tailCall:"false",bSlot:"13",eval:"6 6",C:[{N:"varRef",name:"Q{}item",slot:"39"},{N:"varRef",name:"Q{http://saxon.sf.net/generated-variable}v1",slot:"38"}]}]},{N:"varRef", +line:"342",name:"Q{}supplied",slot:"34"},{N:"true"},{N:"fn",line:"346",name:"error",C:[{N:"qName",pre:"",uri:"",loc:"XTDE0050"},{N:"fn",name:"concat",C:[{N:"str",val:"Supplied value of static parameter "},{N:"attVal",name:"Q{}name",chk:"0"},{N:"str",val:" does not match the required type"}]}]}]}]}]},{N:"true"},{N:"varRef",line:"351",name:"Q{}supplied",slot:"34"}]}]},{N:"and",line:"356",op:"and",C:[{N:"and",op:"and",C:[{N:"varRef",name:"Q{}isStaticParam",slot:"29"},{N:"varRef",name:"Q{}isRequired", +slot:"32"}]},{N:"fn",name:"not",C:[{N:"varRef",name:"Q{}isSupplied",slot:"33"}]}]},{N:"fn",line:"359",name:"error",C:[{N:"qName",pre:"",uri:"http://www.w3.org/2005/xqt-errors",loc:"XTDE0050"},{N:"fn",name:"concat",C:[{N:"str",val:"No value for required static parameter "},{N:"attVal",name:"Q{}name",chk:"0"},{N:"str",val:" has been supplied"}]}]},{N:"fn",line:"361",name:"exists",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}select"}]},{N:"let",line:"365","var":"Q{}xpath",as:"1AS",slot:"40",eval:"16", +C:[{N:"choose",line:"367",C:[{N:"fn",name:"exists",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}as"}]},{N:"let",line:"368","var":"Q{}type",slot:"41",eval:"16",C:[{N:"treat",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions js=~ map=~ saxon=~ t=MyTypes xs=~ xsl=~ xml=~",module:"xpath.xsl",line:"1527",as:"FM",diag:"5|0|XTTE0780|f:parse-sequence-type#3",C:[{N:"ifCall",name:"Q{http://saxon.sf.net/}parse-sequence-type", +type:"1F",C:[{N:"check",ns:"doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ saxon=~ t=MyTypes xs=~ xsl=~ xml=~",module:"static.xsl",line:"368",card:"1",diag:"0|0||f:parse-sequence-type",C:[{N:"cvUntyped",to:"AS",C:[{N:"attVal",name:"Q{}as",chk:"0"}]}]},{N:"dot",ns:"doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ saxon=~ t=MyTypes xs=~ xsl=~ xml=~",module:"static.xsl",line:"368", +type:"1NE"},{N:"str",val:""}]}]},{N:"choose",line:"371",C:[{N:"and",op:"and",C:[{N:"fn",name:"starts-with",C:[{N:"treat",as:"AS",diag:"0|0||fn:starts-with",C:[{N:"check",card:"?",diag:"0|0||fn:starts-with",C:[{N:"cvUntyped",to:"AS",C:[{N:"data",diag:"0|0||fn:starts-with",C:[{N:"lookup",C:[{N:"varRef",name:"Q{}type",slot:"41"},{N:"str",val:"p"}]}]}]}]}]},{N:"str",val:"A"}]},{N:"gc",op:"=",card:"M:N",comp:"GAC|http://www.w3.org/2005/xpath-functions/collation/codepoint",C:[{N:"data",diag:"1|0||=",C:[{N:"lookup", +C:[{N:"varRef",name:"Q{}type",slot:"41"},{N:"str",val:"o"}]}]},{N:"literal",count:"2",C:[{N:"str",val:"1"},{N:"str",val:"?"}]}]}]},{N:"cvUntyped",to:"AS",diag:"3|0|XTTE0570|xpath",C:[{N:"cast",flags:"a",as:"1AZ",C:[{N:"fn",name:"concat",C:[{N:"fn",name:"string",C:[{N:"convert",from:"AZ",to:"AS",C:[{N:"attVal",name:"Q{}as",chk:"0"}]}]},{N:"str",val:"("},{N:"fn",name:"string",C:[{N:"convert",from:"AZ",to:"AS",C:[{N:"attVal",name:"Q{}select",chk:"0"}]}]},{N:"str",val:")"}]}]}]},{N:"fn",line:"372",name:"starts-with", +C:[{N:"treat",as:"AS",diag:"0|0||fn:starts-with",C:[{N:"check",card:"?",diag:"0|0||fn:starts-with",C:[{N:"cvUntyped",to:"AS",C:[{N:"data",diag:"0|0||fn:starts-with",C:[{N:"lookup",C:[{N:"varRef",name:"Q{}type",slot:"41"},{N:"str",val:"p"}]}]}]}]}]},{N:"str",val:"A"}]},{N:"cvUntyped",line:"372",to:"AS",diag:"3|0|XTTE0570|xpath",C:[{N:"cast",flags:"a",as:"1AZ",C:[{N:"fn",name:"concat",C:[{N:"str",val:"("},{N:"fn",name:"string",C:[{N:"convert",from:"AZ",to:"AS",C:[{N:"attVal",name:"Q{}select",chk:"0"}]}]}, +{N:"str",val:") ! "},{N:"ufCall",name:"Q{MyTypes}displayType",tailCall:"false",bSlot:"14",eval:"16",C:[{N:"ifCall",ns:"doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~",module:"type.xsl",line:"320",name:"Q{http://www.w3.org/2005/xpath-functions/map}remove",type:"1FM",C:[{N:"ifCall",name:"Q{http://www.w3.org/2005/xpath-functions/map}put",type:"1FM",C:[{N:"varRef",ns:"doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ saxon=~ t=MyTypes xs=~ xsl=~ xml=~", +module:"static.xsl",line:"372",name:"Q{}type",slot:"41"},{N:"str",val:"o"},{N:"str",val:"1"}]},{N:"str",val:"code"}]}]},{N:"str",val:"(.)"}]}]}]},{N:"true"},{N:"cvUntyped",line:"373",to:"AS",diag:"3|0|XTTE0570|xpath",C:[{N:"cast",flags:"a",as:"1AZ",C:[{N:"fn",name:"concat",C:[{N:"str",val:"("},{N:"fn",name:"string",C:[{N:"convert",from:"AZ",to:"AS",C:[{N:"attVal",name:"Q{}select",chk:"0"}]}]},{N:"str",val:") treat as "},{N:"fn",name:"string",C:[{N:"convert",from:"AZ",to:"AS",C:[{N:"attVal",name:"Q{}as", +chk:"0"}]}]}]}]}]}]}]},{N:"true"},{N:"cvUntyped",line:"376",to:"AS",diag:"3|0|XTTE0570|xpath",C:[{N:"cast",flags:"a",as:"1AZ",C:[{N:"fn",name:"string",C:[{N:"convert",from:"AZ",to:"AS",C:[{N:"attVal",name:"Q{}select",chk:"0"}]}]}]}]}]},{N:"let",line:"379","var":"Q{}nsContext",as:"1NE c~untyped",slot:"42",eval:"9",C:[{N:"let",line:"380","var":"Q{}dot",as:"1",slot:"43",eval:"16",C:[{N:"dot",type:"1NE"},{N:"compElem",line:"381",C:[{N:"str",role:"name",val:"dummy"},{N:"fn",role:"namespace",name:"string", +C:[{N:"convert",from:"AZ",to:"AS",C:[{N:"data",C:[{N:"varRef",name:"Q{}xpath-default-namespace",slot:"21"}]}]}]},{N:"forEach",role:"content",line:"382",C:[{N:"filter",flags:"b",C:[{N:"fn",name:"in-scope-prefixes",C:[{N:"dot",type:"1NE"}]},{N:"fn",name:"boolean",C:[{N:"dot",type:"1AS"}]}]},{N:"compAtt",line:"384",flags:"l",C:[{N:"fn",role:"name",name:"concat",C:[{N:"dot",type:"1AS"},{N:"str",val:":d"}]},{N:"fn",role:"namespace",name:"string",C:[{N:"convert",from:"AU",to:"AS",C:[{N:"fn",name:"namespace-uri-for-prefix", +C:[{N:"dot",type:"1AS"},{N:"varRef",name:"Q{}dot",slot:"43"}]}]}]},{N:"str",role:"select",val:""}]}]}]}]},{N:"try",line:"392",flags:"r",C:[{N:"evaluate",dxns:"",C:[{N:"varRef",role:"xpath",name:"Q{}xpath",slot:"40"},{N:"empty",role:"cxt"},{N:"fn",role:"baseUri",name:"string",C:[{N:"convert",from:"AU",to:"AS",C:[{N:"fn",name:"base-uri",C:[{N:"dot",type:"1NE"}]}]}]},{N:"varRef",role:"nsCxt",name:"Q{}nsContext",slot:"42"},{N:"str",role:"sa",val:"no"},{N:"ifCall",role:"options",name:"Q{http://www.w3.org/2005/xpath-functions/map}merge", +type:"1FM",C:[{N:"sequence",C:[{N:"map",size:"1",C:[{N:"str",val:"allow-xslt-functions"},{N:"true"}]},{N:"ifCall",name:"Q{http://www.w3.org/2005/xpath-functions/map}entry",type:"1FM",C:[{N:"str",val:"var-slots"},{N:"varRef",name:"Q{}var-slots",slot:"18"}]}]},{N:"map",size:"2",C:[{N:"str",val:"duplicates"},{N:"str",val:"reject"},{N:"str",val:"duplicates-error-code"},{N:"str",val:"FOJS0003"}]}]},{N:"varRef",role:"wp",name:"Q{}inner-static-vars",slot:"14"}]},{N:"catch",errors:"Q{http://www.w3.org/2005/xqt-errors}XPDY0050", +C:[{N:"fn",line:"394",name:"error",C:[{N:"qName",pre:"",uri:"http://www.w3.org/2005/xqt-errors",loc:"XTDE0050X"},{N:"treat",as:"AS",diag:"0|1||fn:error",C:[{N:"check",card:"1",diag:"0|1||fn:error",C:[{N:"cvUntyped",to:"AS",C:[{N:"data",diag:"0|1||fn:error",C:[{N:"ifCall",name:"Q{http://saxon.sf.net/}dynamic-error-info",type:"*",C:[{N:"str",val:"description"}]}]}]}]}]}]}]},{N:"catch",errors:"Q{http://www.w3.org/2005/xqt-errors}XTDE3160",C:[{N:"ufCall",line:"399",name:"Q{MyFunctions}syntax-error-at", +tailCall:"false",bSlot:"15",eval:"0 16 16",C:[{N:"str",val:"XTDE3160"},{N:"fn",line:"398",name:"replace",C:[{N:"treat",as:"AS",diag:"0|0||fn:replace",C:[{N:"check",card:"?",diag:"0|0||fn:replace",C:[{N:"cvUntyped",to:"AS",C:[{N:"data",diag:"0|0||fn:replace",C:[{N:"ifCall",name:"Q{http://saxon.sf.net/}dynamic-error-info",type:"*",C:[{N:"str",val:"description"}]}]}]}]}]},{N:"str",val:"Static error in XPath expression supplied to xsl:evaluate:"},{N:"str",val:"Error in static expression:"},{N:"str",val:""}]}, +{N:"dot",type:"1NE"}]}]}]}]}]},{N:"fn",line:"414",name:"exists",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}as"}]},{N:"empty"},{N:"true"},{N:"str",val:""}]}]}]}]},{N:"let",line:"424","var":"Q{}m",as:"1FM",slot:"44",eval:"16",C:[{N:"choose",C:[{N:"varRef",name:"Q{}imported",slot:"7"},{N:"varRef",name:"Q{}vars-in-import",slot:"16"},{N:"true"},{N:"varRef",name:"Q{}inner-static-vars",slot:"14"}]},{N:"sequence",line:"425",C:[{N:"choose",C:[{N:"ifCall",name:"Q{http://www.w3.org/2005/xpath-functions/map}contains", +type:"1AB",C:[{N:"varRef",name:"Q{}m",slot:"44"},{N:"check",card:"1",diag:"0|1||map:contains",C:[{N:"varRef",name:"Q{}name",slot:"30"}]}]},{N:"choose",line:"427",C:[{N:"and",op:"and",C:[{N:"instance",of:"1F",C:[{N:"varRef",name:"Q{}value",slot:"31"}]},{N:"and",op:"and",C:[{N:"fn",name:"not",C:[{N:"instance",of:"1FA",C:[{N:"varRef",name:"Q{}value",slot:"31"}]}]},{N:"fn",name:"not",C:[{N:"instance",of:"1FM",C:[{N:"varRef",name:"Q{}value",slot:"31"}]}]}]}]},{N:"message",line:"428",C:[{N:"valueOf",role:"select", +C:[{N:"fn",name:"concat",C:[{N:"str",val:"Warning: unable to check consistency of multiply-defined variable "},{N:"fn",name:"string",C:[{N:"convert",from:"AQ",to:"AS",C:[{N:"varRef",name:"Q{}name",slot:"30"}]}]},{N:"str",val:" with function(*) type\n "}]}]},{N:"str",role:"terminate",val:"no"},{N:"str",role:"error",val:"Q{http://www.w3.org/2005/xqt-errors}XTMM9000"}]},{N:"fn",line:"431",name:"not",C:[{N:"fn",name:"deep-equal",C:[{N:"ifCall",name:"Q{http://www.w3.org/2005/xpath-functions/map}get", +type:"*",C:[{N:"varRef",name:"Q{}m",slot:"44"},{N:"check",card:"1",diag:"0|1||map:get",C:[{N:"varRef",name:"Q{}name",slot:"30"}]}]},{N:"varRef",name:"Q{}value",slot:"31"}]}]},{N:"ufCall",line:"434",name:"Q{MyFunctions}syntax-error-at",tailCall:"false",bSlot:"16",eval:"0 16 16",C:[{N:"str",val:"XTSE3450"},{N:"fn",name:"concat",C:[{N:"str",val:"Conflicting values for static variable "},{N:"varRef",name:"Q{}name",slot:"30"},{N:"str",val:"\n"},{N:"check",line:"435",card:"?",diag:"0|3||fn:concat",C:[{N:"ufCall", +name:"Q{MyFunctions}serialize",tailCall:"false",bSlot:"17",eval:"6",C:[{N:"varRef",name:"Q{}value",slot:"31"}]}]},{N:"str",val:"\nand:\n"},{N:"check",line:"437",card:"?",diag:"0|5||fn:concat",C:[{N:"ufCall",name:"Q{MyFunctions}serialize",tailCall:"false",bSlot:"18",eval:"4",C:[{N:"ifCall",name:"Q{http://www.w3.org/2005/xpath-functions/map}get",type:"*",C:[{N:"varRef",name:"Q{}m",slot:"44"},{N:"check",card:"1",diag:"0|1||map:get",C:[{N:"varRef",name:"Q{}name",slot:"30"}]}]}]}]},{N:"str",val:"*#xA;"}]}, +{N:"check",line:"437",card:"1",diag:"0|2||f:syntax-error-at",C:[{N:"varRef",name:"Q{}possible.component",slot:"27"}]}]}]}]},{N:"choose",line:"446",C:[{N:"let","var":"Q{}m",slot:"45",eval:"16",C:[{N:"choose",C:[{N:"varRef",name:"Q{}imported",slot:"7"},{N:"varRef",name:"Q{}isParam-in-import",slot:"17"},{N:"true"},{N:"varRef",name:"Q{}static-isParam",slot:"15"}]},{N:"and",op:"and",C:[{N:"ifCall",name:"Q{http://www.w3.org/2005/xpath-functions/map}contains",type:"1AB",C:[{N:"varRef",name:"Q{}m",slot:"45"}, +{N:"check",card:"1",diag:"0|1||map:contains",C:[{N:"varRef",name:"Q{}name",slot:"30"}]}]},{N:"or",op:"or",C:[{N:"and",op:"and",C:[{N:"fn",name:"exists",C:[{N:"axis",name:"self",nodeTest:"NE nQ{http://www.w3.org/1999/XSL/Transform}param"}]},{N:"fn",name:"not",C:[{N:"ifCall",name:"Q{http://www.w3.org/2005/xpath-functions/map}get",type:"*",C:[{N:"varRef",name:"Q{}m",slot:"45"},{N:"check",card:"1",diag:"0|1||map:get",C:[{N:"varRef",name:"Q{}name",slot:"30"}]}]}]}]},{N:"ifCall",name:"Q{http://www.w3.org/2005/xpath-functions/map}get", +type:"*",C:[{N:"varRef",name:"Q{}m",slot:"45"},{N:"check",card:"1",diag:"0|1||map:get",C:[{N:"varRef",name:"Q{}name",slot:"30"}]}]}]}]}]},{N:"ufCall",line:"449",name:"Q{MyFunctions}syntax-error-at",tailCall:"false",bSlot:"19",eval:"0 16 16",C:[{N:"str",val:"XTSE3450"},{N:"fn",name:"concat",C:[{N:"str",val:"Conflicting declarations for static param/variable "},{N:"varRef",name:"Q{}name",slot:"30"}]},{N:"check",card:"1",diag:"0|2||f:syntax-error-at",C:[{N:"varRef",name:"Q{}possible.component",slot:"27"}]}]}]}, +{N:"let",line:"460","var":"Q{}this-slot",as:"1A",slot:"46",eval:"16",C:[{N:"arith",op:"+",calc:"i+i",C:[{N:"varRef",name:"Q{}next-slot",slot:"19"},{N:"choose",C:[{N:"instance",of:"1F",C:[{N:"varRef",name:"Q{}value",slot:"31"}]},{N:"fn",name:"function-arity",C:[{N:"treat",as:"F",diag:"0|0||fn:function-arity",C:[{N:"check",card:"1",diag:"0|0||fn:function-arity",C:[{N:"varRef",name:"Q{}value",slot:"31"}]}]}]},{N:"true"},{N:"int",val:"0"}]}]},{N:"let",line:"465","var":"Q{}grounded-value",as:"1AB",slot:"47", +eval:"16",C:[{N:"or",op:"or",C:[{N:"or",op:"or",C:[{N:"or",op:"or",C:[{N:"fn",name:"empty",C:[{N:"varRef",name:"Q{}value",slot:"31"}]},{N:"instance",of:"1AB",C:[{N:"varRef",name:"Q{}value",slot:"31"}]}]},{N:"instance",of:"1AS",C:[{N:"varRef",name:"Q{}value",slot:"31"}]}]},{N:"instance",of:"1ADI",C:[{N:"varRef",name:"Q{}value",slot:"31"}]}]},{N:"nextIteration",line:"505",C:[{N:"withParam",name:"Q{}inner-static-vars",as:"1FM",slot:"14",C:[{N:"ifCall",name:"Q{http://www.w3.org/2005/xpath-functions/map}put", +type:"1FM",C:[{N:"varRef",name:"Q{}inner-static-vars",slot:"14"},{N:"check",card:"1",diag:"0|1||map:put",C:[{N:"varRef",name:"Q{}name",slot:"30"}]},{N:"varRef",name:"Q{}value",slot:"31"}]}]},{N:"withParam",name:"Q{}static-isParam",as:"1FM",slot:"15",C:[{N:"ifCall",line:"506",name:"Q{http://www.w3.org/2005/xpath-functions/map}put",type:"1FM",C:[{N:"varRef",name:"Q{}static-isParam",slot:"15"},{N:"check",card:"1",diag:"0|1||map:put",C:[{N:"varRef",name:"Q{}name",slot:"30"}]},{N:"varRef",name:"Q{}isStaticParam", +slot:"29"}]}]},{N:"withParam",name:"Q{}vars-in-import",as:"1FM",slot:"16",C:[{N:"choose",line:"512",C:[{N:"varRef",name:"Q{}imported",slot:"7"},{N:"ifCall",name:"Q{http://www.w3.org/2005/xpath-functions/map}put",type:"1FM",C:[{N:"varRef",name:"Q{}vars-in-import",slot:"16"},{N:"check",card:"1",diag:"0|1||map:put",C:[{N:"varRef",name:"Q{}name",slot:"30"}]},{N:"varRef",name:"Q{}value",slot:"31"}]},{N:"true"},{N:"varRef",name:"Q{}vars-in-import",slot:"16"}]}]},{N:"withParam",name:"Q{}isParam-in-import", +as:"1FM",slot:"17",C:[{N:"choose",line:"518",C:[{N:"varRef",name:"Q{}imported",slot:"7"},{N:"ifCall",name:"Q{http://www.w3.org/2005/xpath-functions/map}put",type:"1FM",C:[{N:"varRef",name:"Q{}isParam-in-import",slot:"17"},{N:"check",card:"1",diag:"0|1||map:put",C:[{N:"varRef",name:"Q{}name",slot:"30"}]},{N:"varRef",name:"Q{}value",slot:"31"}]},{N:"true"},{N:"varRef",name:"Q{}isParam-in-import",slot:"17"}]}]},{N:"withParam",name:"Q{}components",as:"*NE",slot:"13",C:[{N:"sequence",line:"525",C:[{N:"varRef", +name:"Q{}components",slot:"13"},{N:"choose",C:[{N:"varRef",name:"Q{}grounded-value",slot:"47"},{N:"choose",line:"468",C:[{N:"varRef",name:"Q{}grounded-value",slot:"47"},{N:"let",line:"489","var":"Q{http://saxon.sf.net/generated-variable}v4",as:"1AB",slot:"48",eval:"13",C:[{N:"instance",of:"1ADI",C:[{N:"varRef",name:"Q{}value",slot:"31"}]},{N:"let",line:"485","var":"Q{http://saxon.sf.net/generated-variable}v3",as:"1AB",slot:"49",eval:"13",C:[{N:"instance",of:"1AS",C:[{N:"varRef",name:"Q{}value",slot:"31"}]}, +{N:"let",line:"476","var":"Q{http://saxon.sf.net/generated-variable}v2",as:"1AB",slot:"50",eval:"13",C:[{N:"instance",of:"1AB",C:[{N:"varRef",name:"Q{}value",slot:"31"}]},{N:"check",line:"469",card:"?",diag:"3|0|XTTE0570|variable.component",C:[{N:"forEach",C:[{N:"varRef",name:"Q{}possible.component",slot:"27"},{N:"copy",line:"471",flags:"cin",sit:"1",C:[{N:"sequence",role:"content",C:[{N:"axis",name:"attribute",nodeTest:"NA"},{N:"choose",line:"473",C:[{N:"fn",name:"empty",C:[{N:"varRef",name:"Q{}value", +slot:"31"}]},{N:"att",line:"474",name:"select",flags:"l",C:[{N:"str",val:"()"}]},{N:"varRef",line:"476",name:"Q{http://saxon.sf.net/generated-variable}v2",slot:"50"},{N:"att",line:"483",name:"select",flags:"l",C:[{N:"choose",C:[{N:"varRef",name:"Q{}value",slot:"31"},{N:"str",val:"true()"},{N:"true"},{N:"str",val:"false()"}]}]},{N:"varRef",line:"485",name:"Q{http://saxon.sf.net/generated-variable}v3",slot:"49"},{N:"att",line:"487",name:"select",flags:"l",C:[{N:"convert",from:"AZ",to:"AS",C:[{N:"cast", +flags:"a",as:"1AZ",C:[{N:"fn",name:"concat",C:[{N:"str",val:"'"},{N:"fn",name:"replace",C:[{N:"treat",as:"AS",diag:"0|0||fn:replace",C:[{N:"check",card:"?",diag:"0|0||fn:replace",C:[{N:"cvUntyped",to:"AS",C:[{N:"data",diag:"0|0||fn:replace",C:[{N:"varRef",name:"Q{}value",slot:"31"}]}]}]}]},{N:"str",val:"'"},{N:"str",val:"''"},{N:"str",val:""}]},{N:"str",val:"'"}]}]}]}]},{N:"varRef",line:"489",name:"Q{http://saxon.sf.net/generated-variable}v4",slot:"48"},{N:"att",line:"490",name:"select",flags:"l", +C:[{N:"fn",name:"string-join",C:[{N:"convert",from:"A",to:"AS",C:[{N:"data",C:[{N:"mergeAdj",C:[{N:"varRef",name:"Q{}value",slot:"31"}]}]}]},{N:"str",val:" "}]}]},{N:"true"},{N:"axis",line:"493",name:"child",nodeTest:"N"}]}]}]}]}]}]}]}]}]},{N:"true"},{N:"varRef",name:"Q{}possible.component",slot:"27"}]}]}]},{N:"withParam",name:"Q{}var-slots",as:"1FM",slot:"18",C:[{N:"ifCall",line:"526",name:"Q{http://www.w3.org/2005/xpath-functions/map}put",type:"1FM",C:[{N:"varRef",name:"Q{}var-slots",slot:"18"}, +{N:"check",card:"1",diag:"0|1||map:put",C:[{N:"varRef",name:"Q{}name",slot:"30"}]},{N:"varRef",name:"Q{}this-slot",slot:"46"}]}]},{N:"withParam",name:"Q{}next-slot",as:"1ADI",slot:"19",C:[{N:"arith",line:"527",op:"+",calc:"i+i",C:[{N:"varRef",name:"Q{}this-slot",slot:"46"},{N:"int",val:"1"}]}]}]}]}]}]}]}]}]},{N:"fn",line:"530",name:"exists",C:[{N:"slash",simple:"1",C:[{N:"varRef",name:"Q{}possible.component",slot:"27"},{N:"axis",name:"self",nodeTest:"NE u[NE nQ{http://www.w3.org/1999/XSL/Transform}import,NE nQ{http://www.w3.org/1999/XSL/Transform}include]"}]}]}, +{N:"let",line:"532","var":"Q{}imported",as:"1AB",slot:"51",eval:"8",C:[{N:"fn",name:"exists",C:[{N:"slash",simple:"1",C:[{N:"varRef",name:"Q{}possible.component",slot:"27"},{N:"axis",name:"self",nodeTest:"NE nQ{http://www.w3.org/1999/XSL/Transform}import"}]}]},{N:"let",line:"533","var":"Q{}doc",as:"1ND",slot:"52",eval:"16",C:[{N:"check",line:"534",card:"1",diag:"3|0|XTTE0570|doc",C:[{N:"sequence",C:[{N:"choose",C:[{N:"fn",name:"empty",C:[{N:"slash",simple:"1",C:[{N:"varRef",name:"Q{}possible.component", +slot:"27"},{N:"axis",name:"attribute",nodeTest:"NA nQ{}href"}]}]},{N:"treat",line:"536",as:"ND",diag:"3|0|XTTE0570|doc",C:[{N:"ufCall",name:"Q{MyFunctions}syntax-error-at",tailCall:"false",bSlot:"20",eval:"16 16",C:[{N:"fn",name:"concat",C:[{N:"slash",C:[{N:"varRef",name:"Q{}possible.component",slot:"27"},{N:"fn",name:"name",C:[{N:"dot",type:"1NE"}]}]},{N:"str",val:" must have an @href attribute"}]},{N:"check",card:"1",diag:"0|1||f:syntax-error-at",C:[{N:"varRef",name:"Q{}possible.component",slot:"27"}]}]}]}]}, +{N:"choose",line:"538",C:[{N:"fn",name:"exists",C:[{N:"slash",simple:"1",C:[{N:"varRef",name:"Q{}possible.component",slot:"27"},{N:"axis",name:"child",nodeTest:"N u[NT,NP,NE,NC]"}]}]},{N:"treat",line:"540",as:"ND",diag:"3|0|XTTE0570|doc",C:[{N:"ufCall",name:"Q{MyFunctions}syntax-error-at",tailCall:"false",bSlot:"21",eval:"0 16 16",C:[{N:"str",val:"XTSE0260"},{N:"fn",name:"concat",C:[{N:"slash",C:[{N:"varRef",name:"Q{}possible.component",slot:"27"},{N:"fn",name:"name",C:[{N:"dot",type:"1NE"}]}]},{N:"str", +val:" must be empty"}]},{N:"check",card:"1",diag:"0|2||f:syntax-error-at",C:[{N:"varRef",name:"Q{}possible.component",slot:"27"}]}]}]}]},{N:"choose",line:"542",C:[{N:"fn",name:"exists",C:[{N:"filter",flags:"b",C:[{N:"slash",C:[{N:"varRef",name:"Q{}possible.component",slot:"27"},{N:"except",op:"except",C:[{N:"axis",name:"attribute",nodeTest:"NA"},{N:"docOrder",intra:"1",C:[{N:"sequence",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}href"},{N:"axis",name:"attribute",nodeTest:"NA nQ{}expand-text"}]}]}]}]}, +{N:"vc",op:"eq",onEmpty:"0",comp:"CCC",C:[{N:"fn",name:"namespace-uri",C:[{N:"dot",type:"1NA"}]},{N:"str",val:""}]}]}]},{N:"treat",line:"543",as:"ND",diag:"3|0|XTTE0570|doc",C:[{N:"ufCall",name:"Q{MyFunctions}wrongAttribute",tailCall:"false",bSlot:"22",eval:"4",C:[{N:"check",card:"+",diag:"0|0||f:wrongAttribute",C:[{N:"filter",flags:"b",C:[{N:"except",op:"except",C:[{N:"slash",simple:"1",C:[{N:"varRef",name:"Q{}possible.component",slot:"27"},{N:"axis",name:"attribute",nodeTest:"NA"}]},{N:"axis",name:"attribute", +nodeTest:"NA nQ{}href"}]},{N:"vc",op:"eq",onEmpty:"0",comp:"CCC",C:[{N:"fn",name:"namespace-uri",C:[{N:"dot",type:"1NA"}]},{N:"str",val:""}]}]}]}]}]}]},{N:"let",line:"545","var":"Q{}uri",as:"?AU",slot:"53",eval:"8",C:[{N:"fn",name:"resolve-uri",C:[{N:"cvUntyped",to:"AS",C:[{N:"data",diag:"0|0||fn:resolve-uri",C:[{N:"slash",simple:"1",C:[{N:"varRef",name:"Q{}possible.component",slot:"27"},{N:"axis",name:"attribute",nodeTest:"NA nQ{}href"}]}]}]},{N:"check",card:"1",diag:"0|1||fn:resolve-uri",C:[{N:"convert", +from:"AU",to:"AS",C:[{N:"first",C:[{N:"sequence",C:[{N:"fn",name:"base-uri",C:[{N:"dot",type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}*"}]},{N:"varRef",name:"Q{}stylesheet-base-uri",slot:"11"}]}]}]}]}]},{N:"sequence",line:"546",C:[{N:"choose",C:[{N:"gc",op:"=",card:"N:1",comp:"CCC",C:[{N:"varRef",name:"Q{}stylesheet-stack",slot:"10"},{N:"varRef",name:"Q{}uri",slot:"53"}]},{N:"treat",line:"553",as:"ND",diag:"3|0|XTTE0570|doc",C:[{N:"ufCall",name:"Q{MyFunctions}syntax-error",tailCall:"false",bSlot:"23", +eval:"16 16",C:[{N:"choose",C:[{N:"varRef",name:"Q{}imported",slot:"51"},{N:"str",val:"XTSE0210"},{N:"true"},{N:"str",val:"XTSE0180"}]},{N:"fn",name:"concat",C:[{N:"str",val:"Document "},{N:"varRef",name:"Q{}uri",slot:"53"},{N:"str",val:" is recursively including or importing itself"}]}]}]}]},{N:"choose",line:"555",C:[{N:"lookup",C:[{N:"varRef",name:"Q{}options",slot:"0"},{N:"str",val:"traceProgress"}]},{N:"treat",line:"556",as:"ND",diag:"3|0|XTTE0570|doc",C:[{N:"message",C:[{N:"sequence",role:"select", +C:[{N:"str",val:"Import/Include static processing for"},{N:"varRef",name:"Q{}uri",slot:"53"}]},{N:"str",role:"terminate",val:"no"},{N:"str",role:"error",val:"Q{http://www.w3.org/2005/xqt-errors}XTMM9000"}]}]}]},{N:"callT",line:"559",name:"Q{}collect-doc",bSlot:"24",C:[{N:"withParam",name:"Q{}uri",flags:"c",as:"?AU",C:[{N:"varRef",line:"560",name:"Q{}uri",slot:"53"}]}]}]}]}]}]},{N:"sequence",line:"564",C:[{N:"choose",C:[{N:"lookup",C:[{N:"varRef",name:"Q{}options",slot:"0"},{N:"str",val:"debugStatic"}]}, +{N:"sequence",line:"565",C:[{N:"message",C:[{N:"sequence",role:"select",C:[{N:"str",val:"$doc:"},{N:"fn",name:"serialize",C:[{N:"slash",simple:"1",C:[{N:"varRef",name:"Q{}doc",slot:"52"},{N:"axis",name:"child",nodeTest:"NE"}]}]}]},{N:"str",role:"terminate",val:"no"},{N:"str",role:"error",val:"Q{http://www.w3.org/2005/xqt-errors}XTMM9000"}]},{N:"message",line:"566",C:[{N:"sequence",role:"select",C:[{N:"str",val:"base-uri($doc):"},{N:"fn",name:"base-uri",C:[{N:"check",card:"?",diag:"0|0||fn:base-uri", +C:[{N:"slash",simple:"1",C:[{N:"varRef",name:"Q{}doc",slot:"52"},{N:"axis",name:"child",nodeTest:"NE"}]}]}]}]},{N:"str",role:"terminate",val:"no"},{N:"str",role:"error",val:"Q{http://www.w3.org/2005/xqt-errors}XTMM9000"}]}]}]},{N:"let",line:"569","var":"Q{}collected",as:"1FM",slot:"54",eval:"16",C:[{N:"let",line:"573","var":"Q{}suffix",as:"1AS",slot:"55",eval:"8",C:[{N:"fn",name:"codepoints-to-string",C:[{N:"arith",op:"-",calc:"i-i",C:[{N:"int",val:"50000"},{N:"cvUntyped",line:"571",to:"ADI",diag:"3|0|XTTE0570|index", +C:[{N:"cast",flags:"a",as:"1AZ",C:[{N:"numSeqFmt",C:[{N:"nodeNum",role:"value",level:"single",C:[{N:"dot",role:"select",type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}*"},{N:"p.venn",role:"count",op:"union",C:[{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}import"},{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}include"}]}]},{N:"str",role:"startAt",val:"0"}]}]}]}]}]},{N:"treat",line:"574",as:"FM",diag:"3|0|XTTE0570|collected",C:[{N:"check",card:"1",diag:"3|0|XTTE0570|collected", +C:[{N:"applyT",mode:"Q{}process-module",bSlot:"25",C:[{N:"slash",role:"select",simple:"1",C:[{N:"varRef",name:"Q{}doc",slot:"52"},{N:"axis",name:"child",nodeTest:"NE"}]},{N:"withParam",name:"Q{}imported",as:"1AB",C:[{N:"varRef",line:"577",name:"Q{}imported",slot:"51"}]},{N:"withParam",name:"Q{}top-level",flags:"t",as:"1AB",C:[{N:"false"}]},{N:"withParam",name:"Q{}static-vars",flags:"t",as:"1FM",C:[{N:"varRef",line:"578",name:"Q{}inner-static-vars",slot:"14"}]},{N:"withParam",name:"Q{}var-slots",flags:"t", +as:"1FM",C:[{N:"varRef",line:"579",name:"Q{}var-slots",slot:"18"}]},{N:"withParam",name:"Q{}next-slot",flags:"t",as:"1ADI",C:[{N:"varRef",line:"580",name:"Q{}next-slot",slot:"19"}]},{N:"withParam",name:"Q{}static-isParam",flags:"t",as:"1FM",C:[{N:"varRef",line:"581",name:"Q{}static-isParam",slot:"15"}]},{N:"withParam",name:"Q{}stylesheet-stack",flags:"t",as:"*AU",C:[{N:"sequence",line:"582",C:[{N:"varRef",name:"Q{}stylesheet-stack",slot:"10"},{N:"fn",name:"base-uri",C:[{N:"varRef",name:"Q{}doc",slot:"52"}]}]}]}, +{N:"withParam",name:"Q{}parent-version",flags:"t",as:"1AD",C:[{N:"varRef",line:"583",name:"Q{}version",slot:"20"}]},{N:"withParam",name:"Q{}precLabel",flags:"t",as:"1AS",C:[{N:"choose",line:"589",C:[{N:"varRef",name:"Q{}imported",slot:"51"},{N:"fn",name:"concat",C:[{N:"varRef",name:"Q{}moduleLabel",slot:"1"},{N:"varRef",name:"Q{}suffix",slot:"55"}]},{N:"true"},{N:"varRef",name:"Q{}precLabel",slot:"2"}]}]},{N:"withParam",name:"Q{}moduleLabel",flags:"t",as:"1AS",C:[{N:"fn",line:"590",name:"concat", +C:[{N:"varRef",name:"Q{}moduleLabel",slot:"1"},{N:"varRef",name:"Q{}suffix",slot:"55"}]}]}]}]}]}]},{N:"sequence",line:"593",C:[{N:"choose",C:[{N:"lookup",C:[{N:"varRef",name:"Q{}options",slot:"0"},{N:"str",val:"debugStatic"}]},{N:"message",line:"594",C:[{N:"sequence",role:"select",C:[{N:"str",val:"$collected:"},{N:"fn",name:"serialize",C:[{N:"varRef",name:"Q{}collected",slot:"54"},{N:"map",size:"1",C:[{N:"str",val:"method"},{N:"str",val:"adaptive"}]}]}]},{N:"str",role:"terminate",val:"no"},{N:"str", +role:"error",val:"Q{http://www.w3.org/2005/xqt-errors}XTMM9000"}]}]},{N:"nextIteration",line:"598",C:[{N:"withParam",name:"Q{}components",as:"*NE",slot:"13",C:[{N:"sequence",C:[{N:"varRef",name:"Q{}components",slot:"13"},{N:"treat",as:"NE",diag:"8|0|XTTE0590|components",C:[{N:"lookup",C:[{N:"varRef",name:"Q{}collected",slot:"54"},{N:"str",val:"components"}]}]}]}]},{N:"withParam",name:"Q{}inner-static-vars",as:"1FM",slot:"14",C:[{N:"ifCall",line:"604",name:"Q{http://www.w3.org/2005/xpath-functions/map}merge", +type:"1FM",C:[{N:"sequence",C:[{N:"choose",C:[{N:"varRef",name:"Q{}imported",slot:"51"},{N:"varRef",name:"Q{}inner-static-vars",slot:"14"}]},{N:"treat",as:"FM",diag:"0|0||map:merge",C:[{N:"lookup",C:[{N:"varRef",name:"Q{}collected",slot:"54"},{N:"str",val:"static-vars"}]}]}]},{N:"map",size:"2",C:[{N:"str",val:"duplicates"},{N:"str",val:"use-first"},{N:"str",val:"duplicates-error-code"},{N:"str",val:"FOJS0003"}]}]}]},{N:"withParam",name:"Q{}static-isParam",as:"1FM",slot:"15",C:[{N:"ifCall",line:"610", +name:"Q{http://www.w3.org/2005/xpath-functions/map}merge",type:"1FM",C:[{N:"sequence",C:[{N:"choose",C:[{N:"varRef",name:"Q{}imported",slot:"51"},{N:"varRef",name:"Q{}static-isParam",slot:"15"}]},{N:"treat",as:"FM",diag:"0|0||map:merge",C:[{N:"lookup",C:[{N:"varRef",name:"Q{}collected",slot:"54"},{N:"str",val:"static-isParam"}]}]}]},{N:"map",size:"2",C:[{N:"str",val:"duplicates"},{N:"str",val:"use-first"},{N:"str",val:"duplicates-error-code"},{N:"str",val:"FOJS0003"}]}]}]},{N:"withParam",name:"Q{}var-slots", +as:"1FM",slot:"18",C:[{N:"treat",line:"611",as:"FM",diag:"8|0|XTTE0590|var-slots",C:[{N:"check",card:"1",diag:"8|0|XTTE0590|var-slots",C:[{N:"lookup",C:[{N:"varRef",name:"Q{}collected",slot:"54"},{N:"str",val:"var-slots"}]}]}]}]},{N:"withParam",name:"Q{}next-slot",as:"1ADI",slot:"19",C:[{N:"treat",line:"612",as:"ADI",diag:"8|0|XTTE0590|next-slot",C:[{N:"check",card:"1",diag:"8|0|XTTE0590|next-slot",C:[{N:"cvUntyped",to:"ADI",diag:"8|0|XTTE0590|next-slot",C:[{N:"data",diag:"8|0|XTTE0590|next-slot", +C:[{N:"lookup",C:[{N:"varRef",name:"Q{}collected",slot:"54"},{N:"str",val:"next-slot"}]}]}]}]}]}]}]}]}]}]}]}]},{N:"true"},{N:"nextIteration",line:"619",C:[{N:"withParam",name:"Q{}components",as:"*NE",slot:"13",C:[{N:"sequence",C:[{N:"varRef",name:"Q{}components",slot:"13"},{N:"varRef",name:"Q{}possible.component",slot:"27"}]}]}]}]}]}]}]}]}]}]},{N:"varRef",line:"625",name:"Q{}result",slot:"26"}]}]}]}]}]}]}]}]},{N:"templateRule",prec:"0",prio:"1.4",seq:"2",rank:"0",minImp:"0",slots:"0",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}transform", +flags:"s",line:"118",module:"static.xsl",C:[{N:"p.nodeTest",role:"match",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}transform"},{N:"ufCall",role:"action",ns:"doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions t=MyTypes xs=~ xsl=~ xml=~",line:"119",name:"Q{MyFunctions}syntax-error",tailCall:"false",bSlot:"26",eval:"16",C:[{N:"fn",name:"concat",C:[{N:"fn",name:"name",C:[{N:"dot",type:"1NE"}]},{N:"str",val:" can only be a child of a document-node, not a '"}, +{N:"fn",name:"name",C:[{N:"check",card:"?",diag:"0|0||fn:name",C:[{N:"axis",name:"parent",nodeTest:"N u[NE,ND]"}]}]},{N:"str",val:"' element"}]}]}]},{N:"templateRule",prec:"0",prio:"1.5",seq:"3",rank:"2",minImp:"0",slots:"56",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}stylesheet",flags:"s",line:"130",module:"static.xsl",C:[{N:"p.withUpper",role:"match",axis:"parent",upFirst:"false",C:[{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}stylesheet"},{N:"p.nodeTest",test:"ND"}]}, +{N:"sequence",role:"action",ns:"doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ saxon=~ t=MyTypes xs=~ xsl=~ xml=~",line:"131",C:[{N:"param",name:"Q{}options",slot:"0",flags:"t",as:"1FM",C:[{N:"map",role:"select",size:"0"},{N:"treat",role:"conversion",as:"FM",diag:"8|0|XTTE0590|options",C:[{N:"check",card:"1",diag:"8|0|XTTE0590|options",C:[{N:"supplied",slot:"0"}]}]}]},{N:"param",line:"138",name:"Q{}moduleLabel",slot:"1",flags:"t",as:"1AS", +C:[{N:"str",role:"select",val:"A"},{N:"treat",role:"conversion",as:"AS",diag:"8|0|XTTE0590|moduleLabel",C:[{N:"check",card:"1",diag:"8|0|XTTE0590|moduleLabel",C:[{N:"cvUntyped",to:"AS",diag:"8|0|XTTE0590|moduleLabel",C:[{N:"data",diag:"8|0|XTTE0590|moduleLabel",C:[{N:"supplied",slot:"1"}]}]}]}]}]},{N:"param",line:"146",name:"Q{}precLabel",slot:"2",flags:"t",as:"1AS",C:[{N:"str",role:"select",val:"A"},{N:"treat",role:"conversion",as:"AS",diag:"8|0|XTTE0590|precLabel",C:[{N:"check",card:"1",diag:"8|0|XTTE0590|precLabel", +C:[{N:"cvUntyped",to:"AS",diag:"8|0|XTTE0590|precLabel",C:[{N:"data",diag:"8|0|XTTE0590|precLabel",C:[{N:"supplied",slot:"2"}]}]}]}]}]},{N:"param",line:"147",name:"Q{}static-vars",slot:"3",flags:"t",as:"1FM",C:[{N:"map",role:"select",size:"0"},{N:"treat",role:"conversion",as:"FM",diag:"8|0|XTTE0590|static-vars",C:[{N:"check",card:"1",diag:"8|0|XTTE0590|static-vars",C:[{N:"supplied",slot:"3"}]}]}]},{N:"param",line:"148",name:"Q{}static-isParam",slot:"4",flags:"t",as:"1FM",C:[{N:"map",role:"select", +size:"0"},{N:"treat",role:"conversion",as:"FM",diag:"8|0|XTTE0590|static-isParam",C:[{N:"check",card:"1",diag:"8|0|XTTE0590|static-isParam",C:[{N:"supplied",slot:"4"}]}]}]},{N:"param",line:"149",name:"Q{}var-slots",slot:"5",flags:"t",as:"1FM",C:[{N:"map",role:"select",size:"0"},{N:"treat",role:"conversion",as:"FM",diag:"8|0|XTTE0590|var-slots",C:[{N:"check",card:"1",diag:"8|0|XTTE0590|var-slots",C:[{N:"supplied",slot:"5"}]}]}]},{N:"param",line:"150",name:"Q{}next-slot",slot:"6",flags:"t",as:"1ADI", +C:[{N:"int",role:"select",val:"0"},{N:"treat",role:"conversion",as:"ADI",diag:"8|0|XTTE0590|next-slot",C:[{N:"check",card:"1",diag:"8|0|XTTE0590|next-slot",C:[{N:"cvUntyped",to:"ADI",diag:"8|0|XTTE0590|next-slot",C:[{N:"data",diag:"8|0|XTTE0590|next-slot",C:[{N:"supplied",slot:"6"}]}]}]}]}]},{N:"param",line:"151",name:"Q{}imported",slot:"7",as:"1AB",C:[{N:"false",role:"select"},{N:"treat",role:"conversion",as:"AB",diag:"8|0|XTTE0590|imported",C:[{N:"check",card:"1",diag:"8|0|XTTE0590|imported",C:[{N:"cvUntyped", +to:"AB",diag:"8|0|XTTE0590|imported",C:[{N:"data",diag:"8|0|XTTE0590|imported",C:[{N:"supplied",slot:"7"}]}]}]}]}]},{N:"param",line:"152",name:"Q{}top-level",slot:"8",flags:"t",as:"1AB",C:[{N:"true",role:"select"},{N:"treat",role:"conversion",as:"AB",diag:"8|0|XTTE0590|top-level",C:[{N:"check",card:"1",diag:"8|0|XTTE0590|top-level",C:[{N:"cvUntyped",to:"AB",diag:"8|0|XTTE0590|top-level",C:[{N:"data",diag:"8|0|XTTE0590|top-level",C:[{N:"supplied",slot:"8"}]}]}]}]}]},{N:"param",line:"153",name:"Q{}params", +slot:"9",flags:"t",as:"1FM k[AQ]",C:[{N:"map",role:"select",size:"0"},{N:"treat",role:"conversion",as:"FM k[AQ]",diag:"8|0|XTTE0590|params",C:[{N:"check",card:"1",diag:"8|0|XTTE0590|params",C:[{N:"supplied",slot:"9"}]}]}]},{N:"param",line:"154",name:"Q{}stylesheet-stack",slot:"10",flags:"t",as:"*AU",C:[{N:"fn",role:"select",name:"base-uri",C:[{N:"dot",type:"1NE"}]},{N:"treat",role:"conversion",as:"AU",diag:"8|0|XTTE0590|stylesheet-stack",C:[{N:"cvUntyped",to:"AU",diag:"8|0|XTTE0590|stylesheet-stack", +C:[{N:"data",diag:"8|0|XTTE0590|stylesheet-stack",C:[{N:"supplied",slot:"10"}]}]}]}]},{N:"param",line:"155",name:"Q{}stylesheet-base-uri",slot:"11",flags:"t",as:"1AU",C:[{N:"check",role:"select",card:"1",diag:"8|0|XTTE0600|stylesheet-base-uri",C:[{N:"fn",name:"base-uri",C:[{N:"dot",type:"1NE"}]}]},{N:"treat",role:"conversion",as:"AU",diag:"8|0|XTTE0590|stylesheet-base-uri",C:[{N:"check",card:"1",diag:"8|0|XTTE0590|stylesheet-base-uri",C:[{N:"cvUntyped",to:"AU",diag:"8|0|XTTE0590|stylesheet-base-uri", +C:[{N:"data",diag:"8|0|XTTE0590|stylesheet-base-uri",C:[{N:"supplied",slot:"11"}]}]}]}]}]},{N:"param",line:"156",name:"Q{}parent-version",slot:"12",flags:"t",as:"?AD",C:[{N:"empty",role:"select"},{N:"treat",role:"conversion",as:"AD",diag:"8|0|XTTE0590|parent-version",C:[{N:"check",card:"?",diag:"8|0|XTTE0590|parent-version",C:[{N:"cvUntyped",to:"AD",diag:"8|0|XTTE0590|parent-version",C:[{N:"data",diag:"8|0|XTTE0590|parent-version",C:[{N:"supplied",slot:"12"}]}]}]}]}]},{N:"let",line:"160","var":"Q{}version", +as:"1AD",slot:"20",eval:"9",C:[{N:"callT",line:"161",name:"Q{}XSLT-version",bSlot:"2"},{N:"let",line:"163","var":"Q{}xpath-default-namespace",as:"?NA",slot:"21",eval:"8",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}xpath-default-namespace"},{N:"let",line:"170","var":"Q{}stylesheet-properties",as:"*NA",slot:"22",eval:"4",C:[{N:"sequence",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}default-mode"},{N:"axis",name:"attribute",nodeTest:"NA nQ{}expand-text"},{N:"choose",C:[{N:"and",op:"and",C:[{N:"fn", +name:"exists",C:[{N:"varRef",name:"Q{}parent-version",slot:"12"}]},{N:"vc",op:"ne",onEmpty:"0",comp:"CAVC",C:[{N:"varRef",name:"Q{}version",slot:"20"},{N:"varRef",name:"Q{}parent-version",slot:"12"}]}]},{N:"axis",name:"attribute",nodeTest:"NA nQ{}version"}]}]},{N:"sequence",line:"174",C:[{N:"forEach",C:[{N:"filter",flags:"b",C:[{N:"axis",name:"child",nodeTest:"NT"},{N:"fn",name:"boolean",C:[{N:"fn",name:"normalize-space",C:[{N:"fn",name:"string",C:[{N:"dot",type:"1NT"}]}]}]}]},{N:"ufCall",line:"186", +name:"Q{MyFunctions}syntax-error-at",tailCall:"false",bSlot:"3",eval:"0 16 16",C:[{N:"str",val:"XTSE0120"},{N:"cvUntyped",line:"177",to:"AS",diag:"3|0|XTTE0570|message",C:[{N:"cast",flags:"a",as:"1AZ",C:[{N:"fn",name:"string-join",C:[{N:"convert",from:"AZ",to:"AS",C:[{N:"data",C:[{N:"mergeAdj",C:[{N:"sequence",C:[{N:"valueOf",C:[{N:"fn",name:"name",C:[{N:"check",card:"?",diag:"0|0||fn:name",C:[{N:"axis",name:"parent",nodeTest:"N u[NE,ND]"}]}]}]},{N:"valueOf",line:"178",C:[{N:"str",val:" cannot have non-whitespace text node children. "}]}, +{N:"choose",line:"180",C:[{N:"fn",name:"exists",C:[{N:"slash",simple:"1",C:[{N:"dot",type:"1NT"},{N:"axis",name:"preceding-sibling",nodeTest:"NE"}]}]},{N:"valueOf",C:[{N:"fn",name:"concat",C:[{N:"str",val:"Found '"},{N:"fn",name:"normalize-space",C:[{N:"cvUntyped",to:"AS",C:[{N:"data",diag:"0|0||fn:normalize-space",C:[{N:"dot",type:"1NT"}]}]}]},{N:"str",val:"' just after "},{N:"let",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~", +"var":"Q{}node",as:"1N",slot:"23",eval:"16",C:[{N:"check",ns:"doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ saxon=~ t=MyTypes xs=~ xsl=~ xml=~",card:"1",diag:"0|0||f:path",C:[{N:"first",C:[{N:"slash",simple:"1",C:[{N:"dot",type:"1NT"},{N:"axis",name:"preceding-sibling",nodeTest:"NE"}]}]}]},{N:"choose",module:"lib.xsl",line:"396",C:[{N:"fn",name:"exists",C:[{N:"slash",simple:"1",C:[{N:"varRef",name:"Q{}node",slot:"23"},{N:"axis",name:"attribute", +nodeTest:"NA nQ{}loc"}]}]},{N:"cvUntyped",to:"AS",diag:"5|0|XTTE0780|f:path#1",C:[{N:"cast",flags:"a",as:"1AZ",C:[{N:"fn",name:"string",C:[{N:"convert",from:"AZ",to:"AS",C:[{N:"data",C:[{N:"slash",simple:"1",C:[{N:"varRef",name:"Q{}node",slot:"23"},{N:"axis",name:"attribute",nodeTest:"NA nQ{}loc"}]}]}]}]}]}]},{N:"true"},{N:"cvUntyped",line:"398",to:"AS",diag:"5|0|XTTE0780|f:path#1",C:[{N:"cast",flags:"a",as:"1AZ",C:[{N:"fn",name:"name",C:[{N:"varRef",name:"Q{}node",slot:"23"}]}]}]}]}]}]}]},{N:"fn", +line:"181",name:"exists",C:[{N:"axis",name:"following-sibling",nodeTest:"NE"}]},{N:"valueOf",line:"181",C:[{N:"fn",name:"concat",C:[{N:"str",val:"Found '"},{N:"fn",name:"normalize-space",C:[{N:"cvUntyped",to:"AS",C:[{N:"data",diag:"0|0||fn:normalize-space",C:[{N:"dot",type:"1NT"}]}]}]},{N:"str",val:"' just before "},{N:"let",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~", +"var":"Q{}node",as:"1N",slot:"24",eval:"16",C:[{N:"check",ns:"doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ saxon=~ t=MyTypes xs=~ xsl=~ xml=~",card:"1",diag:"0|0||f:path",C:[{N:"first",C:[{N:"axis",name:"following-sibling",nodeTest:"NE"}]}]},{N:"choose",module:"lib.xsl",line:"396",C:[{N:"fn",name:"exists",C:[{N:"slash",simple:"1",C:[{N:"varRef",name:"Q{}node",slot:"24"},{N:"axis",name:"attribute",nodeTest:"NA nQ{}loc"}]}]},{N:"cvUntyped", +to:"AS",diag:"5|0|XTTE0780|f:path#1",C:[{N:"cast",flags:"a",as:"1AZ",C:[{N:"fn",name:"string",C:[{N:"convert",from:"AZ",to:"AS",C:[{N:"data",C:[{N:"slash",simple:"1",C:[{N:"varRef",name:"Q{}node",slot:"24"},{N:"axis",name:"attribute",nodeTest:"NA nQ{}loc"}]}]}]}]}]}]},{N:"true"},{N:"cvUntyped",line:"398",to:"AS",diag:"5|0|XTTE0780|f:path#1",C:[{N:"cast",flags:"a",as:"1AZ",C:[{N:"fn",name:"name",C:[{N:"varRef",name:"Q{}node",slot:"24"}]}]}]}]}]}]}]},{N:"true"},{N:"valueOf",line:"182",C:[{N:"fn",name:"concat", +C:[{N:"str",val:"Found '"},{N:"fn",name:"normalize-space",C:[{N:"cvUntyped",to:"AS",C:[{N:"data",diag:"0|0||fn:normalize-space",C:[{N:"dot",type:"1NT"}]}]}]},{N:"str",val:"'"}]}]}]}]}]}]}]},{N:"str",val:""}]}]}]},{N:"check",card:"1",diag:"0|2||f:syntax-error-at",C:[{N:"axis",name:"parent",nodeTest:"N u[NE,ND]"}]}]}]},{N:"forEach",line:"189",C:[{N:"filter",flags:"b",C:[{N:"axis",name:"child",nodeTest:"NE"},{N:"vc",op:"eq",onEmpty:"0",comp:"CCC",C:[{N:"fn",name:"namespace-uri",C:[{N:"dot",type:"1NE"}]}, +{N:"str",val:""}]}]},{N:"ufCall",line:"190",name:"Q{MyFunctions}syntax-error-at",tailCall:"false",bSlot:"4",eval:"0 16 16",C:[{N:"str",val:"XTSE0130"},{N:"fn",name:"concat",C:[{N:"check",card:"?",diag:"0|0||fn:concat",C:[{N:"slash",C:[{N:"axis",name:"parent",nodeTest:"N u[NE,ND]"},{N:"fn",name:"name",C:[{N:"dot",type:"1N u[NE,ND]"}]}]}]},{N:"str",val:" cannot have a no-namespace child element:"},{N:"fn",name:"name",C:[{N:"dot",type:"1NE"}]}]},{N:"dot",type:"1NE"}]}]},{N:"choose",line:"193",C:[{N:"vc", +op:"gt",onEmpty:"0",comp:"CAVC",C:[{N:"fn",name:"count",C:[{N:"axis",name:"child",nodeTest:"NE nQ{http://www.w3.org/1999/XSL/Transform}global-context-item"}]},{N:"int",val:"1"}]},{N:"ufCall",line:"194",name:"Q{MyFunctions}syntax-error",tailCall:"false",bSlot:"5",eval:"0 0",C:[{N:"str",val:"XTSE3087"},{N:"str",val:"A stylesheet module may not contain more than one xsl:global-context-item element"}]}]},{N:"let",line:"202","var":"Q{}not-discarded",as:"1AB",slot:"25",eval:"16",C:[{N:"choose",line:"204", +C:[{N:"fn",name:"exists",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}use-when"}]},{N:"callT",line:"205",name:"Q{}check-use-when",bSlot:"6"},{N:"true"},{N:"true"}]},{N:"let",line:"213","var":"Q{}result",as:"1FM",slot:"26",eval:"16",C:[{N:"treat",line:"219",as:"FM",diag:"3|0|XTTE0570|result",C:[{N:"check",card:"1",diag:"3|0|XTTE0570|result",C:[{N:"iterate",C:[{N:"choose",role:"select",C:[{N:"varRef",name:"Q{}not-discarded",slot:"25"},{N:"axis",name:"child",nodeTest:"NE nQ{http://www.w3.org/1999/XSL/Transform}*"}]}, +{N:"params",role:"params",line:"220",C:[{N:"param",name:"Q{}components",slot:"13",as:"*NE",C:[{N:"empty",role:"select"},{N:"treat",role:"conversion",as:"NE",diag:"8|0|XTTE0590|components",C:[{N:"supplied",slot:"13"}]}]},{N:"param",line:"221",name:"Q{}inner-static-vars",slot:"14",as:"1FM",C:[{N:"varRef",role:"select",name:"Q{}static-vars",slot:"3"},{N:"treat",role:"conversion",as:"FM",diag:"8|0|XTTE0590|inner-static-vars",C:[{N:"check",card:"1",diag:"8|0|XTTE0590|inner-static-vars",C:[{N:"supplied", +slot:"14"}]}]}]},{N:"param",line:"222",name:"Q{}static-isParam",slot:"15",as:"1FM",C:[{N:"varRef",role:"select",name:"Q{}static-isParam",slot:"4"},{N:"treat",role:"conversion",as:"FM",diag:"8|0|XTTE0590|static-isParam",C:[{N:"check",card:"1",diag:"8|0|XTTE0590|static-isParam",C:[{N:"supplied",slot:"15"}]}]}]},{N:"param",line:"224",name:"Q{}vars-in-import",slot:"16",as:"1FM",C:[{N:"map",role:"select",size:"0"},{N:"treat",role:"conversion",as:"FM",diag:"8|0|XTTE0590|vars-in-import",C:[{N:"check",card:"1", +diag:"8|0|XTTE0590|vars-in-import",C:[{N:"supplied",slot:"16"}]}]}]},{N:"param",line:"225",name:"Q{}isParam-in-import",slot:"17",as:"1FM",C:[{N:"map",role:"select",size:"0"},{N:"treat",role:"conversion",as:"FM",diag:"8|0|XTTE0590|isParam-in-import",C:[{N:"check",card:"1",diag:"8|0|XTTE0590|isParam-in-import",C:[{N:"supplied",slot:"17"}]}]}]},{N:"param",line:"226",name:"Q{}var-slots",slot:"18",as:"1FM",C:[{N:"varRef",role:"select",name:"Q{}var-slots",slot:"5"},{N:"treat",role:"conversion",as:"FM", +diag:"8|0|XTTE0590|var-slots",C:[{N:"check",card:"1",diag:"8|0|XTTE0590|var-slots",C:[{N:"supplied",slot:"18"}]}]}]},{N:"param",line:"227",name:"Q{}next-slot",slot:"19",as:"1ADI",C:[{N:"varRef",role:"select",name:"Q{}next-slot",slot:"6"},{N:"treat",role:"conversion",as:"ADI",diag:"8|0|XTTE0590|next-slot",C:[{N:"check",card:"1",diag:"8|0|XTTE0590|next-slot",C:[{N:"cvUntyped",to:"ADI",diag:"8|0|XTTE0590|next-slot",C:[{N:"data",diag:"8|0|XTTE0590|next-slot",C:[{N:"supplied",slot:"19"}]}]}]}]}]}]},{N:"ifCall", +role:"on-completion",line:"255",name:"Q{http://www.w3.org/2005/xpath-functions/map}merge",type:"1FM",C:[{N:"sequence",C:[{N:"ifCall",name:"Q{http://www.w3.org/2005/xpath-functions/map}entry",type:"1FM",C:[{N:"str",val:"components"},{N:"varRef",name:"Q{}components",slot:"13"}]},{N:"ifCall",name:"Q{http://www.w3.org/2005/xpath-functions/map}entry",type:"1FM",C:[{N:"str",val:"static-vars"},{N:"varRef",name:"Q{}inner-static-vars",slot:"14"}]},{N:"ifCall",name:"Q{http://www.w3.org/2005/xpath-functions/map}entry", +type:"1FM",C:[{N:"str",val:"static-isParam"},{N:"varRef",name:"Q{}static-isParam",slot:"15"}]},{N:"ifCall",name:"Q{http://www.w3.org/2005/xpath-functions/map}entry",type:"1FM",C:[{N:"str",val:"var-slots"},{N:"varRef",name:"Q{}var-slots",slot:"18"}]},{N:"ifCall",name:"Q{http://www.w3.org/2005/xpath-functions/map}entry",type:"1FM",C:[{N:"str",val:"next-slot"},{N:"varRef",name:"Q{}next-slot",slot:"19"}]}]},{N:"map",size:"2",C:[{N:"str",val:"duplicates"},{N:"str",val:"reject"},{N:"str",val:"duplicates-error-code"}, +{N:"str",val:"FOJS0003"}]}]},{N:"let",role:"action",line:"262","var":"Q{}possible.component",as:"?NE",slot:"27",eval:"7",C:[{N:"treat",line:"263",as:"NE",diag:"3|0|XTTE0570|possible.component",C:[{N:"check",card:"?",diag:"3|0|XTTE0570|possible.component",C:[{N:"applyT",mode:"Q{}static",bSlot:"7",C:[{N:"dot",role:"select",type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}*"},{N:"withParam",name:"Q{}static-vars",flags:"t",as:"1FM",C:[{N:"varRef",line:"264",name:"Q{}inner-static-vars",slot:"14"}]},{N:"withParam", +name:"Q{}var-slots",flags:"t",as:"1FM",C:[{N:"varRef",line:"265",name:"Q{}var-slots",slot:"18"}]},{N:"withParam",name:"Q{}next-slot",flags:"t",as:"1ADI",C:[{N:"varRef",line:"266",name:"Q{}next-slot",slot:"19"}]},{N:"withParam",name:"Q{}static-isParam",flags:"t",as:"1FM",C:[{N:"varRef",line:"267",name:"Q{}static-isParam",slot:"15"}]},{N:"withParam",name:"Q{}xpath-default-namespace",flags:"t",as:"?NA",C:[{N:"varRef",line:"268",name:"Q{}xpath-default-namespace",slot:"21"}]},{N:"withParam",name:"Q{}XSLT-version", +flags:"t",as:"1AD",C:[{N:"varRef",line:"269",name:"Q{}version",slot:"20"}]},{N:"withParam",name:"Q{}stylesheet-properties",flags:"t",as:"*NA",C:[{N:"varRef",line:"270",name:"Q{}stylesheet-properties",slot:"22"}]},{N:"withParam",name:"Q{}has-uniform-static-context",flags:"t",as:"1AB",C:[{N:"ufCall",line:"271",name:"Q{MyFunctions}has-uniform-static-context",tailCall:"false",bSlot:"8",eval:"16",C:[{N:"dot",type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}*"}]}]}]}]}]},{N:"let",line:"276","var":"Q{}isStaticVariable", +as:"1AB",slot:"28",eval:"16",C:[{N:"ufCall",name:"Q{MyFunctions}boolean-string",tailCall:"false",bSlot:"9",eval:"7 0",C:[{N:"slash",simple:"1",C:[{N:"filter",flags:"b",C:[{N:"varRef",name:"Q{}possible.component",slot:"27"},{N:"fn",name:"exists",C:[{N:"axis",name:"self",nodeTest:"NE nQ{http://www.w3.org/1999/XSL/Transform}variable"}]}]},{N:"axis",name:"attribute",nodeTest:"NA nQ{}static"}]},{N:"false"}]},{N:"let",line:"277","var":"Q{}isStaticParam",as:"1AB",slot:"29",eval:"16",C:[{N:"ufCall",name:"Q{MyFunctions}boolean-string", +tailCall:"false",bSlot:"10",eval:"7 0",C:[{N:"slash",simple:"1",C:[{N:"filter",flags:"b",C:[{N:"varRef",name:"Q{}possible.component",slot:"27"},{N:"fn",name:"exists",C:[{N:"axis",name:"self",nodeTest:"NE nQ{http://www.w3.org/1999/XSL/Transform}param"}]}]},{N:"axis",name:"attribute",nodeTest:"NA nQ{}static"}]},{N:"false"}]},{N:"choose",line:"280",C:[{N:"or",line:"278",op:"or",C:[{N:"varRef",name:"Q{}isStaticParam",slot:"29"},{N:"varRef",name:"Q{}isStaticVariable",slot:"28"}]},{N:"let",line:"286","var":"Q{}name", +as:"?AQ",slot:"30",eval:"7",C:[{N:"choose",C:[{N:"fn",name:"contains",C:[{N:"cvUntyped",to:"AS",C:[{N:"attVal",name:"Q{}name",chk:"0"}]},{N:"str",val:":"}]},{N:"fn",name:"resolve-QName",C:[{N:"cvUntyped",to:"AS",C:[{N:"attVal",name:"Q{}name",chk:"0"}]},{N:"dot",type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}*"}]},{N:"true"},{N:"fn",name:"QName",C:[{N:"str",val:""},{N:"check",card:"1",diag:"0|1||fn:QName",C:[{N:"cvUntyped",to:"AS",C:[{N:"attVal",name:"Q{}name",chk:"0"}]}]}]}]},{N:"let",line:"287", +"var":"Q{}value",slot:"31",eval:"8",C:[{N:"forEach",line:"290",C:[{N:"varRef",name:"Q{}possible.component",slot:"27"},{N:"let",line:"291","var":"Q{}isRequired",slot:"32",eval:"16",C:[{N:"ufCall",name:"Q{MyFunctions}boolean-string",tailCall:"false",bSlot:"11",eval:"8 0",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}required"},{N:"false"}]},{N:"let",line:"292","var":"Q{}isSupplied",as:"1AB",slot:"33",eval:"8",C:[{N:"ifCall",name:"Q{http://www.w3.org/2005/xpath-functions/map}contains",type:"1AB",C:[{N:"varRef", +name:"Q{}params",slot:"9"},{N:"check",card:"1",diag:"0|1||map:contains",C:[{N:"varRef",name:"Q{}name",slot:"30"}]}]},{N:"choose",line:"295",C:[{N:"fn",name:"exists",C:[{N:"axis",name:"child",nodeTest:"N u[NT,NP,NE,NC]"}]},{N:"choose",line:"310",C:[{N:"fn",name:"exists",C:[{N:"sequence",line:"297",C:[{N:"axis",name:"child",nodeTest:"NE"},{N:"filter",flags:"b",C:[{N:"axis",name:"child",nodeTest:"NT"},{N:"fn",name:"boolean",C:[{N:"fn",name:"normalize-space",C:[{N:"fn",name:"string",C:[{N:"dot",type:"1NT"}]}]}]}]}]}]}, +{N:"fn",name:"error",C:[{N:"fn",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~",module:"lib.xsl",line:"29",name:"QName",C:[{N:"str",val:"http://www.w3.org/2005/xqt-errors"},{N:"choose",ns:"doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ saxon=~ t=MyTypes xs=~ xsl=~ xml=~",module:"static.xsl",line:"310",C:[{N:"fn", +name:"exists",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}select"}]},{N:"str",val:"XTSE0620"},{N:"true"},{N:"str",val:"XTSE0010"}]}]},{N:"fn",name:"concat",C:[{N:"str",val:"Static "},{N:"fn",name:"local-name",C:[{N:"dot",type:"1NE"}]},{N:"str",val:" "},{N:"attVal",name:"Q{}name",chk:"0"},{N:"str",val:" must not have a sequence constructor"}]}]}]},{N:"and",line:"312",op:"and",C:[{N:"varRef",name:"Q{}isRequired",slot:"32"},{N:"fn",name:"exists",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}select"}]}]}, +{N:"fn",line:"315",name:"error",C:[{N:"qName",pre:"",uri:"http://www.w3.org/2005/xqt-errors",loc:"XTSE0010"},{N:"fn",name:"concat",C:[{N:"str",val:"Required static "},{N:"fn",name:"local-name",C:[{N:"dot",type:"1NE"}]},{N:"str",val:" "},{N:"attVal",name:"Q{}name",chk:"0"},{N:"str",val:" must not have a default value"}]}]},{N:"and",line:"317",op:"and",C:[{N:"varRef",name:"Q{}isStaticVariable",slot:"28"},{N:"gc",op:"!=",card:"N:1",comp:"CCC",C:[{N:"forEach",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}visibility"}, +{N:"fn",name:"normalize-space",C:[{N:"fn",name:"string",C:[{N:"dot",type:"1NA nQ{}visibility"}]}]}]},{N:"str",val:"private"}]}]},{N:"fn",line:"320",name:"error",C:[{N:"qName",pre:"",uri:"http://www.w3.org/2005/xqt-errors",loc:"XTSE0020"},{N:"fn",name:"concat",C:[{N:"str",val:"Static "},{N:"fn",name:"local-name",C:[{N:"dot",type:"1NE"}]},{N:"str",val:" "},{N:"attVal",name:"Q{}name",chk:"0"},{N:"str",val:" may only have private visibility"}]}]},{N:"and",line:"323",op:"and",C:[{N:"and",op:"and",C:[{N:"and", +op:"and",C:[{N:"and",op:"and",C:[{N:"varRef",name:"Q{}isStaticParam",slot:"29"},{N:"fn",name:"empty",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}select"}]}]},{N:"fn",name:"not",C:[{N:"varRef",name:"Q{}isSupplied",slot:"33"}]}]},{N:"fn",name:"exists",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}as"}]}]},{N:"fn",name:"not",C:[{N:"fn",name:"matches",C:[{N:"cvUntyped",to:"AS",C:[{N:"attVal",name:"Q{}as",chk:"0"}]},{N:"str",val:"(\\*|\\?)\\s*?"},{N:"str",val:""}]}]}]},{N:"fn",line:"326",name:"error", +C:[{N:"qName",pre:"",uri:"http://www.w3.org/2005/xqt-errors",loc:"XTDE0700"},{N:"fn",name:"concat",C:[{N:"str",val:"No value for implicitly mandatory static parameter "},{N:"attVal",name:"Q{}name",chk:"0"},{N:"str",val:" has been supplied"}]}]},{N:"and",line:"328",op:"and",C:[{N:"varRef",name:"Q{}isStaticParam",slot:"29"},{N:"varRef",name:"Q{}isSupplied",slot:"33"}]},{N:"let",line:"329","var":"Q{}supplied",slot:"34",eval:"4",C:[{N:"ifCall",name:"Q{http://www.w3.org/2005/xpath-functions/map}get",type:"*", +C:[{N:"varRef",name:"Q{}params",slot:"9"},{N:"check",card:"1",diag:"0|1||map:get",C:[{N:"varRef",name:"Q{}name",slot:"30"}]}]},{N:"choose",line:"332",C:[{N:"and",op:"and",C:[{N:"fn",name:"exists",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}as"}]},{N:"instance",of:"1AZ",C:[{N:"varRef",name:"Q{}supplied",slot:"34"}]}]},{N:"let",line:"334","var":"Q{}targetType",slot:"35",eval:"4",C:[{N:"lookup",C:[{N:"treat",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions js=~ map=~ saxon=~ t=MyTypes xs=~ xsl=~ xml=~", +module:"xpath.xsl",line:"1527",as:"FM",diag:"5|0|XTTE0780|f:parse-sequence-type#3",C:[{N:"ifCall",name:"Q{http://saxon.sf.net/}parse-sequence-type",type:"1F",C:[{N:"check",ns:"doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ saxon=~ t=MyTypes xs=~ xsl=~ xml=~",module:"static.xsl",line:"334",card:"1",diag:"0|0||f:parse-sequence-type",C:[{N:"cvUntyped",to:"AS",C:[{N:"attVal",name:"Q{}as",chk:"0"}]}]},{N:"dot",ns:"doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ saxon=~ t=MyTypes xs=~ xsl=~ xml=~", +module:"static.xsl",line:"334",type:"1NE"},{N:"str",val:""}]}]},{N:"str",val:"p"}]},{N:"let",line:"335","var":"Q{http://saxon.sf.net/generated-variable}v0",as:"1AS",slot:"36",eval:"13",C:[{N:"treat",as:"AS",diag:"0|1||f:cast",C:[{N:"check",card:"1",diag:"0|1||f:cast",C:[{N:"cvUntyped",to:"AS",C:[{N:"data",diag:"0|1||f:cast",C:[{N:"varRef",name:"Q{}targetType",slot:"35"}]}]}]}]},{N:"forEach",C:[{N:"varRef",name:"Q{}supplied",slot:"34"},{N:"ufCall",name:"Q{MyFunctions}cast",tailCall:"false",bSlot:"12", +eval:"16 6",C:[{N:"atomSing",diag:"0|0||f:cast",C:[{N:"dot"}]},{N:"varRef",name:"Q{http://saxon.sf.net/generated-variable}v0",slot:"36"}]}]}]}]},{N:"fn",line:"337",name:"exists",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}as"}]},{N:"let",line:"339","var":"Q{}targetType",slot:"37",eval:"4",C:[{N:"lookup",C:[{N:"treat",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions js=~ map=~ saxon=~ t=MyTypes xs=~ xsl=~ xml=~", +module:"xpath.xsl",line:"1527",as:"FM",diag:"5|0|XTTE0780|f:parse-sequence-type#3",C:[{N:"ifCall",name:"Q{http://saxon.sf.net/}parse-sequence-type",type:"1F",C:[{N:"check",ns:"doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ saxon=~ t=MyTypes xs=~ xsl=~ xml=~",module:"static.xsl",line:"339",card:"1",diag:"0|0||f:parse-sequence-type",C:[{N:"cvUntyped",to:"AS",C:[{N:"attVal",name:"Q{}as",chk:"0"}]}]},{N:"dot",ns:"doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ saxon=~ t=MyTypes xs=~ xsl=~ xml=~", +module:"static.xsl",line:"339",type:"1NE"},{N:"str",val:""}]}]},{N:"str",val:"p"}]},{N:"let",line:"341","var":"Q{http://saxon.sf.net/generated-variable}v1",as:"1AS",slot:"38",eval:"13",C:[{N:"treat",as:"AS",diag:"0|1||f:isInstance",C:[{N:"check",card:"1",diag:"0|1||f:isInstance",C:[{N:"cvUntyped",to:"AS",C:[{N:"data",diag:"0|1||f:isInstance",C:[{N:"varRef",name:"Q{}targetType",slot:"37"}]}]}]}]},{N:"choose",C:[{N:"every","var":"Q{}item",slot:"39",C:[{N:"varRef",name:"Q{}supplied",slot:"34"},{N:"ufCall", +name:"Q{MyFunctions}isInstance",tailCall:"false",bSlot:"13",eval:"6 6",C:[{N:"varRef",name:"Q{}item",slot:"39"},{N:"varRef",name:"Q{http://saxon.sf.net/generated-variable}v1",slot:"38"}]}]},{N:"varRef",line:"342",name:"Q{}supplied",slot:"34"},{N:"true"},{N:"fn",line:"346",name:"error",C:[{N:"qName",pre:"",uri:"",loc:"XTDE0050"},{N:"fn",name:"concat",C:[{N:"str",val:"Supplied value of static parameter "},{N:"attVal",name:"Q{}name",chk:"0"},{N:"str",val:" does not match the required type"}]}]}]}]}]}, +{N:"true"},{N:"varRef",line:"351",name:"Q{}supplied",slot:"34"}]}]},{N:"and",line:"356",op:"and",C:[{N:"and",op:"and",C:[{N:"varRef",name:"Q{}isStaticParam",slot:"29"},{N:"varRef",name:"Q{}isRequired",slot:"32"}]},{N:"fn",name:"not",C:[{N:"varRef",name:"Q{}isSupplied",slot:"33"}]}]},{N:"fn",line:"359",name:"error",C:[{N:"qName",pre:"",uri:"http://www.w3.org/2005/xqt-errors",loc:"XTDE0050"},{N:"fn",name:"concat",C:[{N:"str",val:"No value for required static parameter "},{N:"attVal",name:"Q{}name", +chk:"0"},{N:"str",val:" has been supplied"}]}]},{N:"fn",line:"361",name:"exists",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}select"}]},{N:"let",line:"365","var":"Q{}xpath",as:"1AS",slot:"40",eval:"16",C:[{N:"choose",line:"367",C:[{N:"fn",name:"exists",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}as"}]},{N:"let",line:"368","var":"Q{}type",slot:"41",eval:"16",C:[{N:"treat",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions js=~ map=~ saxon=~ t=MyTypes xs=~ xsl=~ xml=~", +module:"xpath.xsl",line:"1527",as:"FM",diag:"5|0|XTTE0780|f:parse-sequence-type#3",C:[{N:"ifCall",name:"Q{http://saxon.sf.net/}parse-sequence-type",type:"1F",C:[{N:"check",ns:"doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ saxon=~ t=MyTypes xs=~ xsl=~ xml=~",module:"static.xsl",line:"368",card:"1",diag:"0|0||f:parse-sequence-type",C:[{N:"cvUntyped",to:"AS",C:[{N:"attVal",name:"Q{}as",chk:"0"}]}]},{N:"dot",ns:"doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ saxon=~ t=MyTypes xs=~ xsl=~ xml=~", +module:"static.xsl",line:"368",type:"1NE"},{N:"str",val:""}]}]},{N:"choose",line:"371",C:[{N:"and",op:"and",C:[{N:"fn",name:"starts-with",C:[{N:"treat",as:"AS",diag:"0|0||fn:starts-with",C:[{N:"check",card:"?",diag:"0|0||fn:starts-with",C:[{N:"cvUntyped",to:"AS",C:[{N:"data",diag:"0|0||fn:starts-with",C:[{N:"lookup",C:[{N:"varRef",name:"Q{}type",slot:"41"},{N:"str",val:"p"}]}]}]}]}]},{N:"str",val:"A"}]},{N:"gc",op:"=",card:"M:N",comp:"GAC|http://www.w3.org/2005/xpath-functions/collation/codepoint", +C:[{N:"data",diag:"1|0||=",C:[{N:"lookup",C:[{N:"varRef",name:"Q{}type",slot:"41"},{N:"str",val:"o"}]}]},{N:"literal",count:"2",C:[{N:"str",val:"1"},{N:"str",val:"?"}]}]}]},{N:"cvUntyped",to:"AS",diag:"3|0|XTTE0570|xpath",C:[{N:"cast",flags:"a",as:"1AZ",C:[{N:"fn",name:"concat",C:[{N:"fn",name:"string",C:[{N:"convert",from:"AZ",to:"AS",C:[{N:"attVal",name:"Q{}as",chk:"0"}]}]},{N:"str",val:"("},{N:"fn",name:"string",C:[{N:"convert",from:"AZ",to:"AS",C:[{N:"attVal",name:"Q{}select",chk:"0"}]}]},{N:"str", +val:")"}]}]}]},{N:"fn",line:"372",name:"starts-with",C:[{N:"treat",as:"AS",diag:"0|0||fn:starts-with",C:[{N:"check",card:"?",diag:"0|0||fn:starts-with",C:[{N:"cvUntyped",to:"AS",C:[{N:"data",diag:"0|0||fn:starts-with",C:[{N:"lookup",C:[{N:"varRef",name:"Q{}type",slot:"41"},{N:"str",val:"p"}]}]}]}]}]},{N:"str",val:"A"}]},{N:"cvUntyped",line:"372",to:"AS",diag:"3|0|XTTE0570|xpath",C:[{N:"cast",flags:"a",as:"1AZ",C:[{N:"fn",name:"concat",C:[{N:"str",val:"("},{N:"fn",name:"string",C:[{N:"convert",from:"AZ", +to:"AS",C:[{N:"attVal",name:"Q{}select",chk:"0"}]}]},{N:"str",val:") ! "},{N:"ufCall",name:"Q{MyTypes}displayType",tailCall:"false",bSlot:"14",eval:"16",C:[{N:"ifCall",ns:"doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ t=MyTypes xs=~ xsl=~ xml=~",module:"type.xsl",line:"320",name:"Q{http://www.w3.org/2005/xpath-functions/map}remove",type:"1FM",C:[{N:"ifCall",name:"Q{http://www.w3.org/2005/xpath-functions/map}put",type:"1FM",C:[{N:"varRef", +ns:"doc=http://www.saxonica.com/ns/documentation err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ saxon=~ t=MyTypes xs=~ xsl=~ xml=~",module:"static.xsl",line:"372",name:"Q{}type",slot:"41"},{N:"str",val:"o"},{N:"str",val:"1"}]},{N:"str",val:"code"}]}]},{N:"str",val:"(.)"}]}]}]},{N:"true"},{N:"cvUntyped",line:"373",to:"AS",diag:"3|0|XTTE0570|xpath",C:[{N:"cast",flags:"a",as:"1AZ",C:[{N:"fn",name:"concat",C:[{N:"str",val:"("},{N:"fn",name:"string",C:[{N:"convert",from:"AZ",to:"AS",C:[{N:"attVal", +name:"Q{}select",chk:"0"}]}]},{N:"str",val:") treat as "},{N:"fn",name:"string",C:[{N:"convert",from:"AZ",to:"AS",C:[{N:"attVal",name:"Q{}as",chk:"0"}]}]}]}]}]}]}]},{N:"true"},{N:"cvUntyped",line:"376",to:"AS",diag:"3|0|XTTE0570|xpath",C:[{N:"cast",flags:"a",as:"1AZ",C:[{N:"fn",name:"string",C:[{N:"convert",from:"AZ",to:"AS",C:[{N:"attVal",name:"Q{}select",chk:"0"}]}]}]}]}]},{N:"let",line:"379","var":"Q{}nsContext",as:"1NE c~untyped",slot:"42",eval:"9",C:[{N:"let",line:"380","var":"Q{}dot",as:"1", +slot:"43",eval:"16",C:[{N:"dot",type:"1NE"},{N:"compElem",line:"381",C:[{N:"str",role:"name",val:"dummy"},{N:"fn",role:"namespace",name:"string",C:[{N:"convert",from:"AZ",to:"AS",C:[{N:"data",C:[{N:"varRef",name:"Q{}xpath-default-namespace",slot:"21"}]}]}]},{N:"forEach",role:"content",line:"382",C:[{N:"filter",flags:"b",C:[{N:"fn",name:"in-scope-prefixes",C:[{N:"dot",type:"1NE"}]},{N:"fn",name:"boolean",C:[{N:"dot",type:"1AS"}]}]},{N:"compAtt",line:"384",flags:"l",C:[{N:"fn",role:"name",name:"concat", +C:[{N:"dot",type:"1AS"},{N:"str",val:":d"}]},{N:"fn",role:"namespace",name:"string",C:[{N:"convert",from:"AU",to:"AS",C:[{N:"fn",name:"namespace-uri-for-prefix",C:[{N:"dot",type:"1AS"},{N:"varRef",name:"Q{}dot",slot:"43"}]}]}]},{N:"str",role:"select",val:""}]}]}]}]},{N:"try",line:"392",flags:"r",C:[{N:"evaluate",dxns:"",C:[{N:"varRef",role:"xpath",name:"Q{}xpath",slot:"40"},{N:"empty",role:"cxt"},{N:"fn",role:"baseUri",name:"string",C:[{N:"convert",from:"AU",to:"AS",C:[{N:"fn",name:"base-uri",C:[{N:"dot", +type:"1NE"}]}]}]},{N:"varRef",role:"nsCxt",name:"Q{}nsContext",slot:"42"},{N:"str",role:"sa",val:"no"},{N:"ifCall",role:"options",name:"Q{http://www.w3.org/2005/xpath-functions/map}merge",type:"1FM",C:[{N:"sequence",C:[{N:"map",size:"1",C:[{N:"str",val:"allow-xslt-functions"},{N:"true"}]},{N:"ifCall",name:"Q{http://www.w3.org/2005/xpath-functions/map}entry",type:"1FM",C:[{N:"str",val:"var-slots"},{N:"varRef",name:"Q{}var-slots",slot:"18"}]}]},{N:"map",size:"2",C:[{N:"str",val:"duplicates"},{N:"str", +val:"reject"},{N:"str",val:"duplicates-error-code"},{N:"str",val:"FOJS0003"}]}]},{N:"varRef",role:"wp",name:"Q{}inner-static-vars",slot:"14"}]},{N:"catch",errors:"Q{http://www.w3.org/2005/xqt-errors}XPDY0050",C:[{N:"fn",line:"394",name:"error",C:[{N:"qName",pre:"",uri:"http://www.w3.org/2005/xqt-errors",loc:"XTDE0050X"},{N:"treat",as:"AS",diag:"0|1||fn:error",C:[{N:"check",card:"1",diag:"0|1||fn:error",C:[{N:"cvUntyped",to:"AS",C:[{N:"data",diag:"0|1||fn:error",C:[{N:"ifCall",name:"Q{http://saxon.sf.net/}dynamic-error-info", +type:"*",C:[{N:"str",val:"description"}]}]}]}]}]}]}]},{N:"catch",errors:"Q{http://www.w3.org/2005/xqt-errors}XTDE3160",C:[{N:"ufCall",line:"399",name:"Q{MyFunctions}syntax-error-at",tailCall:"false",bSlot:"15",eval:"0 16 16",C:[{N:"str",val:"XTDE3160"},{N:"fn",line:"398",name:"replace",C:[{N:"treat",as:"AS",diag:"0|0||fn:replace",C:[{N:"check",card:"?",diag:"0|0||fn:replace",C:[{N:"cvUntyped",to:"AS",C:[{N:"data",diag:"0|0||fn:replace",C:[{N:"ifCall",name:"Q{http://saxon.sf.net/}dynamic-error-info", +type:"*",C:[{N:"str",val:"description"}]}]}]}]}]},{N:"str",val:"Static error in XPath expression supplied to xsl:evaluate:"},{N:"str",val:"Error in static expression:"},{N:"str",val:""}]},{N:"dot",type:"1NE"}]}]}]}]}]},{N:"fn",line:"414",name:"exists",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}as"}]},{N:"empty"},{N:"true"},{N:"str",val:""}]}]}]}]},{N:"let",line:"424","var":"Q{}m",as:"1FM",slot:"44",eval:"16",C:[{N:"choose",C:[{N:"varRef",name:"Q{}imported",slot:"7"},{N:"varRef",name:"Q{}vars-in-import", +slot:"16"},{N:"true"},{N:"varRef",name:"Q{}inner-static-vars",slot:"14"}]},{N:"sequence",line:"425",C:[{N:"choose",C:[{N:"ifCall",name:"Q{http://www.w3.org/2005/xpath-functions/map}contains",type:"1AB",C:[{N:"varRef",name:"Q{}m",slot:"44"},{N:"check",card:"1",diag:"0|1||map:contains",C:[{N:"varRef",name:"Q{}name",slot:"30"}]}]},{N:"choose",line:"427",C:[{N:"and",op:"and",C:[{N:"instance",of:"1F",C:[{N:"varRef",name:"Q{}value",slot:"31"}]},{N:"and",op:"and",C:[{N:"fn",name:"not",C:[{N:"instance",of:"1FA", +C:[{N:"varRef",name:"Q{}value",slot:"31"}]}]},{N:"fn",name:"not",C:[{N:"instance",of:"1FM",C:[{N:"varRef",name:"Q{}value",slot:"31"}]}]}]}]},{N:"message",line:"428",C:[{N:"valueOf",role:"select",C:[{N:"fn",name:"concat",C:[{N:"str",val:"Warning: unable to check consistency of multiply-defined variable "},{N:"fn",name:"string",C:[{N:"convert",from:"AQ",to:"AS",C:[{N:"varRef",name:"Q{}name",slot:"30"}]}]},{N:"str",val:" with function(*) type\n "}]}]},{N:"str",role:"terminate", +val:"no"},{N:"str",role:"error",val:"Q{http://www.w3.org/2005/xqt-errors}XTMM9000"}]},{N:"fn",line:"431",name:"not",C:[{N:"fn",name:"deep-equal",C:[{N:"ifCall",name:"Q{http://www.w3.org/2005/xpath-functions/map}get",type:"*",C:[{N:"varRef",name:"Q{}m",slot:"44"},{N:"check",card:"1",diag:"0|1||map:get",C:[{N:"varRef",name:"Q{}name",slot:"30"}]}]},{N:"varRef",name:"Q{}value",slot:"31"}]}]},{N:"ufCall",line:"434",name:"Q{MyFunctions}syntax-error-at",tailCall:"false",bSlot:"16",eval:"0 16 16",C:[{N:"str", +val:"XTSE3450"},{N:"fn",name:"concat",C:[{N:"str",val:"Conflicting values for static variable "},{N:"varRef",name:"Q{}name",slot:"30"},{N:"str",val:"\n"},{N:"check",line:"435",card:"?",diag:"0|3||fn:concat",C:[{N:"ufCall",name:"Q{MyFunctions}serialize",tailCall:"false",bSlot:"17",eval:"6",C:[{N:"varRef",name:"Q{}value",slot:"31"}]}]},{N:"str",val:"\nand:\n"},{N:"check",line:"437",card:"?",diag:"0|5||fn:concat",C:[{N:"ufCall",name:"Q{MyFunctions}serialize",tailCall:"false",bSlot:"18",eval:"4",C:[{N:"ifCall", +name:"Q{http://www.w3.org/2005/xpath-functions/map}get",type:"*",C:[{N:"varRef",name:"Q{}m",slot:"44"},{N:"check",card:"1",diag:"0|1||map:get",C:[{N:"varRef",name:"Q{}name",slot:"30"}]}]}]}]},{N:"str",val:"*#xA;"}]},{N:"check",line:"437",card:"1",diag:"0|2||f:syntax-error-at",C:[{N:"varRef",name:"Q{}possible.component",slot:"27"}]}]}]}]},{N:"choose",line:"446",C:[{N:"let","var":"Q{}m",slot:"45",eval:"16",C:[{N:"choose",C:[{N:"varRef",name:"Q{}imported",slot:"7"},{N:"varRef",name:"Q{}isParam-in-import", +slot:"17"},{N:"true"},{N:"varRef",name:"Q{}static-isParam",slot:"15"}]},{N:"and",op:"and",C:[{N:"ifCall",name:"Q{http://www.w3.org/2005/xpath-functions/map}contains",type:"1AB",C:[{N:"varRef",name:"Q{}m",slot:"45"},{N:"check",card:"1",diag:"0|1||map:contains",C:[{N:"varRef",name:"Q{}name",slot:"30"}]}]},{N:"or",op:"or",C:[{N:"and",op:"and",C:[{N:"fn",name:"exists",C:[{N:"axis",name:"self",nodeTest:"NE nQ{http://www.w3.org/1999/XSL/Transform}param"}]},{N:"fn",name:"not",C:[{N:"ifCall",name:"Q{http://www.w3.org/2005/xpath-functions/map}get", +type:"*",C:[{N:"varRef",name:"Q{}m",slot:"45"},{N:"check",card:"1",diag:"0|1||map:get",C:[{N:"varRef",name:"Q{}name",slot:"30"}]}]}]}]},{N:"ifCall",name:"Q{http://www.w3.org/2005/xpath-functions/map}get",type:"*",C:[{N:"varRef",name:"Q{}m",slot:"45"},{N:"check",card:"1",diag:"0|1||map:get",C:[{N:"varRef",name:"Q{}name",slot:"30"}]}]}]}]}]},{N:"ufCall",line:"449",name:"Q{MyFunctions}syntax-error-at",tailCall:"false",bSlot:"19",eval:"0 16 16",C:[{N:"str",val:"XTSE3450"},{N:"fn",name:"concat",C:[{N:"str", +val:"Conflicting declarations for static param/variable "},{N:"varRef",name:"Q{}name",slot:"30"}]},{N:"check",card:"1",diag:"0|2||f:syntax-error-at",C:[{N:"varRef",name:"Q{}possible.component",slot:"27"}]}]}]},{N:"let",line:"460","var":"Q{}this-slot",as:"1A",slot:"46",eval:"16",C:[{N:"arith",op:"+",calc:"i+i",C:[{N:"varRef",name:"Q{}next-slot",slot:"19"},{N:"choose",C:[{N:"instance",of:"1F",C:[{N:"varRef",name:"Q{}value",slot:"31"}]},{N:"fn",name:"function-arity",C:[{N:"treat",as:"F",diag:"0|0||fn:function-arity", +C:[{N:"check",card:"1",diag:"0|0||fn:function-arity",C:[{N:"varRef",name:"Q{}value",slot:"31"}]}]}]},{N:"true"},{N:"int",val:"0"}]}]},{N:"let",line:"465","var":"Q{}grounded-value",as:"1AB",slot:"47",eval:"16",C:[{N:"or",op:"or",C:[{N:"or",op:"or",C:[{N:"or",op:"or",C:[{N:"fn",name:"empty",C:[{N:"varRef",name:"Q{}value",slot:"31"}]},{N:"instance",of:"1AB",C:[{N:"varRef",name:"Q{}value",slot:"31"}]}]},{N:"instance",of:"1AS",C:[{N:"varRef",name:"Q{}value",slot:"31"}]}]},{N:"instance",of:"1ADI",C:[{N:"varRef", +name:"Q{}value",slot:"31"}]}]},{N:"nextIteration",line:"505",C:[{N:"withParam",name:"Q{}inner-static-vars",as:"1FM",slot:"14",C:[{N:"ifCall",name:"Q{http://www.w3.org/2005/xpath-functions/map}put",type:"1FM",C:[{N:"varRef",name:"Q{}inner-static-vars",slot:"14"},{N:"check",card:"1",diag:"0|1||map:put",C:[{N:"varRef",name:"Q{}name",slot:"30"}]},{N:"varRef",name:"Q{}value",slot:"31"}]}]},{N:"withParam",name:"Q{}static-isParam",as:"1FM",slot:"15",C:[{N:"ifCall",line:"506",name:"Q{http://www.w3.org/2005/xpath-functions/map}put", +type:"1FM",C:[{N:"varRef",name:"Q{}static-isParam",slot:"15"},{N:"check",card:"1",diag:"0|1||map:put",C:[{N:"varRef",name:"Q{}name",slot:"30"}]},{N:"varRef",name:"Q{}isStaticParam",slot:"29"}]}]},{N:"withParam",name:"Q{}vars-in-import",as:"1FM",slot:"16",C:[{N:"choose",line:"512",C:[{N:"varRef",name:"Q{}imported",slot:"7"},{N:"ifCall",name:"Q{http://www.w3.org/2005/xpath-functions/map}put",type:"1FM",C:[{N:"varRef",name:"Q{}vars-in-import",slot:"16"},{N:"check",card:"1",diag:"0|1||map:put",C:[{N:"varRef", +name:"Q{}name",slot:"30"}]},{N:"varRef",name:"Q{}value",slot:"31"}]},{N:"true"},{N:"varRef",name:"Q{}vars-in-import",slot:"16"}]}]},{N:"withParam",name:"Q{}isParam-in-import",as:"1FM",slot:"17",C:[{N:"choose",line:"518",C:[{N:"varRef",name:"Q{}imported",slot:"7"},{N:"ifCall",name:"Q{http://www.w3.org/2005/xpath-functions/map}put",type:"1FM",C:[{N:"varRef",name:"Q{}isParam-in-import",slot:"17"},{N:"check",card:"1",diag:"0|1||map:put",C:[{N:"varRef",name:"Q{}name",slot:"30"}]},{N:"varRef",name:"Q{}value", +slot:"31"}]},{N:"true"},{N:"varRef",name:"Q{}isParam-in-import",slot:"17"}]}]},{N:"withParam",name:"Q{}components",as:"*NE",slot:"13",C:[{N:"sequence",line:"525",C:[{N:"varRef",name:"Q{}components",slot:"13"},{N:"choose",C:[{N:"varRef",name:"Q{}grounded-value",slot:"47"},{N:"choose",line:"468",C:[{N:"varRef",name:"Q{}grounded-value",slot:"47"},{N:"let",line:"489","var":"Q{http://saxon.sf.net/generated-variable}v4",as:"1AB",slot:"48",eval:"13",C:[{N:"instance",of:"1ADI",C:[{N:"varRef",name:"Q{}value", +slot:"31"}]},{N:"let",line:"485","var":"Q{http://saxon.sf.net/generated-variable}v3",as:"1AB",slot:"49",eval:"13",C:[{N:"instance",of:"1AS",C:[{N:"varRef",name:"Q{}value",slot:"31"}]},{N:"let",line:"476","var":"Q{http://saxon.sf.net/generated-variable}v2",as:"1AB",slot:"50",eval:"13",C:[{N:"instance",of:"1AB",C:[{N:"varRef",name:"Q{}value",slot:"31"}]},{N:"check",line:"469",card:"?",diag:"3|0|XTTE0570|variable.component",C:[{N:"forEach",C:[{N:"varRef",name:"Q{}possible.component",slot:"27"},{N:"copy", +line:"471",flags:"cin",sit:"1",C:[{N:"sequence",role:"content",C:[{N:"axis",name:"attribute",nodeTest:"NA"},{N:"choose",line:"473",C:[{N:"fn",name:"empty",C:[{N:"varRef",name:"Q{}value",slot:"31"}]},{N:"att",line:"474",name:"select",flags:"l",C:[{N:"str",val:"()"}]},{N:"varRef",line:"476",name:"Q{http://saxon.sf.net/generated-variable}v2",slot:"50"},{N:"att",line:"483",name:"select",flags:"l",C:[{N:"choose",C:[{N:"varRef",name:"Q{}value",slot:"31"},{N:"str",val:"true()"},{N:"true"},{N:"str",val:"false()"}]}]}, +{N:"varRef",line:"485",name:"Q{http://saxon.sf.net/generated-variable}v3",slot:"49"},{N:"att",line:"487",name:"select",flags:"l",C:[{N:"convert",from:"AZ",to:"AS",C:[{N:"cast",flags:"a",as:"1AZ",C:[{N:"fn",name:"concat",C:[{N:"str",val:"'"},{N:"fn",name:"replace",C:[{N:"treat",as:"AS",diag:"0|0||fn:replace",C:[{N:"check",card:"?",diag:"0|0||fn:replace",C:[{N:"cvUntyped",to:"AS",C:[{N:"data",diag:"0|0||fn:replace",C:[{N:"varRef",name:"Q{}value",slot:"31"}]}]}]}]},{N:"str",val:"'"},{N:"str",val:"''"}, +{N:"str",val:""}]},{N:"str",val:"'"}]}]}]}]},{N:"varRef",line:"489",name:"Q{http://saxon.sf.net/generated-variable}v4",slot:"48"},{N:"att",line:"490",name:"select",flags:"l",C:[{N:"fn",name:"string-join",C:[{N:"convert",from:"A",to:"AS",C:[{N:"data",C:[{N:"mergeAdj",C:[{N:"varRef",name:"Q{}value",slot:"31"}]}]}]},{N:"str",val:" "}]}]},{N:"true"},{N:"axis",line:"493",name:"child",nodeTest:"N"}]}]}]}]}]}]}]}]}]},{N:"true"},{N:"varRef",name:"Q{}possible.component",slot:"27"}]}]}]},{N:"withParam",name:"Q{}var-slots", +as:"1FM",slot:"18",C:[{N:"ifCall",line:"526",name:"Q{http://www.w3.org/2005/xpath-functions/map}put",type:"1FM",C:[{N:"varRef",name:"Q{}var-slots",slot:"18"},{N:"check",card:"1",diag:"0|1||map:put",C:[{N:"varRef",name:"Q{}name",slot:"30"}]},{N:"varRef",name:"Q{}this-slot",slot:"46"}]}]},{N:"withParam",name:"Q{}next-slot",as:"1ADI",slot:"19",C:[{N:"arith",line:"527",op:"+",calc:"i+i",C:[{N:"varRef",name:"Q{}this-slot",slot:"46"},{N:"int",val:"1"}]}]}]}]}]}]}]}]}]},{N:"fn",line:"530",name:"exists", +C:[{N:"slash",simple:"1",C:[{N:"varRef",name:"Q{}possible.component",slot:"27"},{N:"axis",name:"self",nodeTest:"NE u[NE nQ{http://www.w3.org/1999/XSL/Transform}import,NE nQ{http://www.w3.org/1999/XSL/Transform}include]"}]}]},{N:"let",line:"532","var":"Q{}imported",as:"1AB",slot:"51",eval:"8",C:[{N:"fn",name:"exists",C:[{N:"slash",simple:"1",C:[{N:"varRef",name:"Q{}possible.component",slot:"27"},{N:"axis",name:"self",nodeTest:"NE nQ{http://www.w3.org/1999/XSL/Transform}import"}]}]},{N:"let",line:"533", +"var":"Q{}doc",as:"1ND",slot:"52",eval:"16",C:[{N:"check",line:"534",card:"1",diag:"3|0|XTTE0570|doc",C:[{N:"sequence",C:[{N:"choose",C:[{N:"fn",name:"empty",C:[{N:"slash",simple:"1",C:[{N:"varRef",name:"Q{}possible.component",slot:"27"},{N:"axis",name:"attribute",nodeTest:"NA nQ{}href"}]}]},{N:"treat",line:"536",as:"ND",diag:"3|0|XTTE0570|doc",C:[{N:"ufCall",name:"Q{MyFunctions}syntax-error-at",tailCall:"false",bSlot:"20",eval:"16 16",C:[{N:"fn",name:"concat",C:[{N:"slash",C:[{N:"varRef",name:"Q{}possible.component", +slot:"27"},{N:"fn",name:"name",C:[{N:"dot",type:"1NE"}]}]},{N:"str",val:" must have an @href attribute"}]},{N:"check",card:"1",diag:"0|1||f:syntax-error-at",C:[{N:"varRef",name:"Q{}possible.component",slot:"27"}]}]}]}]},{N:"choose",line:"538",C:[{N:"fn",name:"exists",C:[{N:"slash",simple:"1",C:[{N:"varRef",name:"Q{}possible.component",slot:"27"},{N:"axis",name:"child",nodeTest:"N u[NT,NP,NE,NC]"}]}]},{N:"treat",line:"540",as:"ND",diag:"3|0|XTTE0570|doc",C:[{N:"ufCall",name:"Q{MyFunctions}syntax-error-at", +tailCall:"false",bSlot:"21",eval:"0 16 16",C:[{N:"str",val:"XTSE0260"},{N:"fn",name:"concat",C:[{N:"slash",C:[{N:"varRef",name:"Q{}possible.component",slot:"27"},{N:"fn",name:"name",C:[{N:"dot",type:"1NE"}]}]},{N:"str",val:" must be empty"}]},{N:"check",card:"1",diag:"0|2||f:syntax-error-at",C:[{N:"varRef",name:"Q{}possible.component",slot:"27"}]}]}]}]},{N:"choose",line:"542",C:[{N:"fn",name:"exists",C:[{N:"filter",flags:"b",C:[{N:"slash",C:[{N:"varRef",name:"Q{}possible.component",slot:"27"},{N:"except", +op:"except",C:[{N:"axis",name:"attribute",nodeTest:"NA"},{N:"docOrder",intra:"1",C:[{N:"sequence",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}href"},{N:"axis",name:"attribute",nodeTest:"NA nQ{}expand-text"}]}]}]}]},{N:"vc",op:"eq",onEmpty:"0",comp:"CCC",C:[{N:"fn",name:"namespace-uri",C:[{N:"dot",type:"1NA"}]},{N:"str",val:""}]}]}]},{N:"treat",line:"543",as:"ND",diag:"3|0|XTTE0570|doc",C:[{N:"ufCall",name:"Q{MyFunctions}wrongAttribute",tailCall:"false",bSlot:"22",eval:"4",C:[{N:"check",card:"+", +diag:"0|0||f:wrongAttribute",C:[{N:"filter",flags:"b",C:[{N:"except",op:"except",C:[{N:"slash",simple:"1",C:[{N:"varRef",name:"Q{}possible.component",slot:"27"},{N:"axis",name:"attribute",nodeTest:"NA"}]},{N:"axis",name:"attribute",nodeTest:"NA nQ{}href"}]},{N:"vc",op:"eq",onEmpty:"0",comp:"CCC",C:[{N:"fn",name:"namespace-uri",C:[{N:"dot",type:"1NA"}]},{N:"str",val:""}]}]}]}]}]}]},{N:"let",line:"545","var":"Q{}uri",as:"?AU",slot:"53",eval:"8",C:[{N:"fn",name:"resolve-uri",C:[{N:"cvUntyped",to:"AS", +C:[{N:"data",diag:"0|0||fn:resolve-uri",C:[{N:"slash",simple:"1",C:[{N:"varRef",name:"Q{}possible.component",slot:"27"},{N:"axis",name:"attribute",nodeTest:"NA nQ{}href"}]}]}]},{N:"check",card:"1",diag:"0|1||fn:resolve-uri",C:[{N:"convert",from:"AU",to:"AS",C:[{N:"first",C:[{N:"sequence",C:[{N:"fn",name:"base-uri",C:[{N:"dot",type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}*"}]},{N:"varRef",name:"Q{}stylesheet-base-uri",slot:"11"}]}]}]}]}]},{N:"sequence",line:"546",C:[{N:"choose",C:[{N:"gc",op:"=", +card:"N:1",comp:"CCC",C:[{N:"varRef",name:"Q{}stylesheet-stack",slot:"10"},{N:"varRef",name:"Q{}uri",slot:"53"}]},{N:"treat",line:"553",as:"ND",diag:"3|0|XTTE0570|doc",C:[{N:"ufCall",name:"Q{MyFunctions}syntax-error",tailCall:"false",bSlot:"23",eval:"16 16",C:[{N:"choose",C:[{N:"varRef",name:"Q{}imported",slot:"51"},{N:"str",val:"XTSE0210"},{N:"true"},{N:"str",val:"XTSE0180"}]},{N:"fn",name:"concat",C:[{N:"str",val:"Document "},{N:"varRef",name:"Q{}uri",slot:"53"},{N:"str",val:" is recursively including or importing itself"}]}]}]}]}, +{N:"choose",line:"555",C:[{N:"lookup",C:[{N:"varRef",name:"Q{}options",slot:"0"},{N:"str",val:"traceProgress"}]},{N:"treat",line:"556",as:"ND",diag:"3|0|XTTE0570|doc",C:[{N:"message",C:[{N:"sequence",role:"select",C:[{N:"str",val:"Import/Include static processing for"},{N:"varRef",name:"Q{}uri",slot:"53"}]},{N:"str",role:"terminate",val:"no"},{N:"str",role:"error",val:"Q{http://www.w3.org/2005/xqt-errors}XTMM9000"}]}]}]},{N:"callT",line:"559",name:"Q{}collect-doc",bSlot:"24",C:[{N:"withParam",name:"Q{}uri", +flags:"c",as:"?AU",C:[{N:"varRef",line:"560",name:"Q{}uri",slot:"53"}]}]}]}]}]}]},{N:"sequence",line:"564",C:[{N:"choose",C:[{N:"lookup",C:[{N:"varRef",name:"Q{}options",slot:"0"},{N:"str",val:"debugStatic"}]},{N:"sequence",line:"565",C:[{N:"message",C:[{N:"sequence",role:"select",C:[{N:"str",val:"$doc:"},{N:"fn",name:"serialize",C:[{N:"slash",simple:"1",C:[{N:"varRef",name:"Q{}doc",slot:"52"},{N:"axis",name:"child",nodeTest:"NE"}]}]}]},{N:"str",role:"terminate",val:"no"},{N:"str",role:"error",val:"Q{http://www.w3.org/2005/xqt-errors}XTMM9000"}]}, +{N:"message",line:"566",C:[{N:"sequence",role:"select",C:[{N:"str",val:"base-uri($doc):"},{N:"fn",name:"base-uri",C:[{N:"check",card:"?",diag:"0|0||fn:base-uri",C:[{N:"slash",simple:"1",C:[{N:"varRef",name:"Q{}doc",slot:"52"},{N:"axis",name:"child",nodeTest:"NE"}]}]}]}]},{N:"str",role:"terminate",val:"no"},{N:"str",role:"error",val:"Q{http://www.w3.org/2005/xqt-errors}XTMM9000"}]}]}]},{N:"let",line:"569","var":"Q{}collected",as:"1FM",slot:"54",eval:"16",C:[{N:"let",line:"573","var":"Q{}suffix",as:"1AS", +slot:"55",eval:"8",C:[{N:"fn",name:"codepoints-to-string",C:[{N:"arith",op:"-",calc:"i-i",C:[{N:"int",val:"50000"},{N:"cvUntyped",line:"571",to:"ADI",diag:"3|0|XTTE0570|index",C:[{N:"cast",flags:"a",as:"1AZ",C:[{N:"numSeqFmt",C:[{N:"nodeNum",role:"value",level:"single",C:[{N:"dot",role:"select",type:"1NE nQ{http://www.w3.org/1999/XSL/Transform}*"},{N:"p.venn",role:"count",op:"union",C:[{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}import"},{N:"p.nodeTest",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}include"}]}]}, +{N:"str",role:"startAt",val:"0"}]}]}]}]}]},{N:"treat",line:"574",as:"FM",diag:"3|0|XTTE0570|collected",C:[{N:"check",card:"1",diag:"3|0|XTTE0570|collected",C:[{N:"applyT",mode:"Q{}process-module",bSlot:"25",C:[{N:"slash",role:"select",simple:"1",C:[{N:"varRef",name:"Q{}doc",slot:"52"},{N:"axis",name:"child",nodeTest:"NE"}]},{N:"withParam",name:"Q{}imported",as:"1AB",C:[{N:"varRef",line:"577",name:"Q{}imported",slot:"51"}]},{N:"withParam",name:"Q{}top-level",flags:"t",as:"1AB",C:[{N:"false"}]},{N:"withParam", +name:"Q{}static-vars",flags:"t",as:"1FM",C:[{N:"varRef",line:"578",name:"Q{}inner-static-vars",slot:"14"}]},{N:"withParam",name:"Q{}var-slots",flags:"t",as:"1FM",C:[{N:"varRef",line:"579",name:"Q{}var-slots",slot:"18"}]},{N:"withParam",name:"Q{}next-slot",flags:"t",as:"1ADI",C:[{N:"varRef",line:"580",name:"Q{}next-slot",slot:"19"}]},{N:"withParam",name:"Q{}static-isParam",flags:"t",as:"1FM",C:[{N:"varRef",line:"581",name:"Q{}static-isParam",slot:"15"}]},{N:"withParam",name:"Q{}stylesheet-stack",flags:"t", +as:"*AU",C:[{N:"sequence",line:"582",C:[{N:"varRef",name:"Q{}stylesheet-stack",slot:"10"},{N:"fn",name:"base-uri",C:[{N:"varRef",name:"Q{}doc",slot:"52"}]}]}]},{N:"withParam",name:"Q{}parent-version",flags:"t",as:"1AD",C:[{N:"varRef",line:"583",name:"Q{}version",slot:"20"}]},{N:"withParam",name:"Q{}precLabel",flags:"t",as:"1AS",C:[{N:"choose",line:"589",C:[{N:"varRef",name:"Q{}imported",slot:"51"},{N:"fn",name:"concat",C:[{N:"varRef",name:"Q{}moduleLabel",slot:"1"},{N:"varRef",name:"Q{}suffix",slot:"55"}]}, +{N:"true"},{N:"varRef",name:"Q{}precLabel",slot:"2"}]}]},{N:"withParam",name:"Q{}moduleLabel",flags:"t",as:"1AS",C:[{N:"fn",line:"590",name:"concat",C:[{N:"varRef",name:"Q{}moduleLabel",slot:"1"},{N:"varRef",name:"Q{}suffix",slot:"55"}]}]}]}]}]}]},{N:"sequence",line:"593",C:[{N:"choose",C:[{N:"lookup",C:[{N:"varRef",name:"Q{}options",slot:"0"},{N:"str",val:"debugStatic"}]},{N:"message",line:"594",C:[{N:"sequence",role:"select",C:[{N:"str",val:"$collected:"},{N:"fn",name:"serialize",C:[{N:"varRef", +name:"Q{}collected",slot:"54"},{N:"map",size:"1",C:[{N:"str",val:"method"},{N:"str",val:"adaptive"}]}]}]},{N:"str",role:"terminate",val:"no"},{N:"str",role:"error",val:"Q{http://www.w3.org/2005/xqt-errors}XTMM9000"}]}]},{N:"nextIteration",line:"598",C:[{N:"withParam",name:"Q{}components",as:"*NE",slot:"13",C:[{N:"sequence",C:[{N:"varRef",name:"Q{}components",slot:"13"},{N:"treat",as:"NE",diag:"8|0|XTTE0590|components",C:[{N:"lookup",C:[{N:"varRef",name:"Q{}collected",slot:"54"},{N:"str",val:"components"}]}]}]}]}, +{N:"withParam",name:"Q{}inner-static-vars",as:"1FM",slot:"14",C:[{N:"ifCall",line:"604",name:"Q{http://www.w3.org/2005/xpath-functions/map}merge",type:"1FM",C:[{N:"sequence",C:[{N:"choose",C:[{N:"varRef",name:"Q{}imported",slot:"51"},{N:"varRef",name:"Q{}inner-static-vars",slot:"14"}]},{N:"treat",as:"FM",diag:"0|0||map:merge",C:[{N:"lookup",C:[{N:"varRef",name:"Q{}collected",slot:"54"},{N:"str",val:"static-vars"}]}]}]},{N:"map",size:"2",C:[{N:"str",val:"duplicates"},{N:"str",val:"use-first"},{N:"str", +val:"duplicates-error-code"},{N:"str",val:"FOJS0003"}]}]}]},{N:"withParam",name:"Q{}static-isParam",as:"1FM",slot:"15",C:[{N:"ifCall",line:"610",name:"Q{http://www.w3.org/2005/xpath-functions/map}merge",type:"1FM",C:[{N:"sequence",C:[{N:"choose",C:[{N:"varRef",name:"Q{}imported",slot:"51"},{N:"varRef",name:"Q{}static-isParam",slot:"15"}]},{N:"treat",as:"FM",diag:"0|0||map:merge",C:[{N:"lookup",C:[{N:"varRef",name:"Q{}collected",slot:"54"},{N:"str",val:"static-isParam"}]}]}]},{N:"map",size:"2",C:[{N:"str", +val:"duplicates"},{N:"str",val:"use-first"},{N:"str",val:"duplicates-error-code"},{N:"str",val:"FOJS0003"}]}]}]},{N:"withParam",name:"Q{}var-slots",as:"1FM",slot:"18",C:[{N:"treat",line:"611",as:"FM",diag:"8|0|XTTE0590|var-slots",C:[{N:"check",card:"1",diag:"8|0|XTTE0590|var-slots",C:[{N:"lookup",C:[{N:"varRef",name:"Q{}collected",slot:"54"},{N:"str",val:"var-slots"}]}]}]}]},{N:"withParam",name:"Q{}next-slot",as:"1ADI",slot:"19",C:[{N:"treat",line:"612",as:"ADI",diag:"8|0|XTTE0590|next-slot",C:[{N:"check", +card:"1",diag:"8|0|XTTE0590|next-slot",C:[{N:"cvUntyped",to:"ADI",diag:"8|0|XTTE0590|next-slot",C:[{N:"data",diag:"8|0|XTTE0590|next-slot",C:[{N:"lookup",C:[{N:"varRef",name:"Q{}collected",slot:"54"},{N:"str",val:"next-slot"}]}]}]}]}]}]}]}]}]}]}]}]},{N:"true"},{N:"nextIteration",line:"619",C:[{N:"withParam",name:"Q{}components",as:"*NE",slot:"13",C:[{N:"sequence",C:[{N:"varRef",name:"Q{}components",slot:"13"},{N:"varRef",name:"Q{}possible.component",slot:"27"}]}]}]}]}]}]}]}]}]}]},{N:"varRef",line:"625", +name:"Q{}result",slot:"26"}]}]}]}]}]}]}]}]},{N:"templateRule",prec:"0",prio:"1.4",seq:"2",rank:"0",minImp:"0",slots:"0",matches:"NE nQ{http://www.w3.org/1999/XSL/Transform}stylesheet",flags:"s",line:"118",module:"static.xsl",C:[{N:"p.nodeTest",role:"match",test:"NE nQ{http://www.w3.org/1999/XSL/Transform}stylesheet"},{N:"ufCall",role:"action",ns:"doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions t=MyTypes xs=~ xsl=~ xml=~",line:"119",name:"Q{MyFunctions}syntax-error", +tailCall:"false",bSlot:"26",eval:"16",C:[{N:"fn",name:"concat",C:[{N:"fn",name:"name",C:[{N:"dot",type:"1NE"}]},{N:"str",val:" can only be a child of a document-node, not a '"},{N:"fn",name:"name",C:[{N:"check",card:"?",diag:"0|0||fn:name",C:[{N:"axis",name:"parent",nodeTest:"N u[NE,ND]"}]}]},{N:"str",val:"' element"}]}]}]}]}]},{N:"co",id:"119",binds:"",C:[{N:"globalVariable",name:"Q{}ST.SINGLE_BOOLEAN",as:"1FM k[AS] v[1AS]",line:"28",module:"sequenceType.xsl",visibility:"PRIVATE",C:[{N:"map",size:"2", +C:[{N:"str",val:"o"},{N:"str",val:"1"},{N:"str",val:"p"},{N:"str",val:"AB"}]}]}]},{N:"co",id:"276",binds:"",C:[{N:"globalVariable",name:"Q{}ST.SINGLE_DECIMAL",as:"1FM k[AS] v[1AS]",line:"21",module:"sequenceType.xsl",visibility:"PRIVATE",C:[{N:"map",size:"2",C:[{N:"str",val:"o"},{N:"str",val:"1"},{N:"str",val:"p"},{N:"str",val:"AD"}]}]}]},{N:"co",id:"314",binds:"",C:[{N:"globalVariable",name:"Q{}StaticProperty.EMPTY",as:"1ADI",line:"111",module:"type.xsl",visibility:"PRIVATE",flags:"s",C:[{N:"int", +val:"1"}]}]},{N:"co",id:"315",binds:"",C:[{N:"mode",name:"Q{}form.schema",onNo:"DS",flags:"W",patternSlots:"0",C:[{N:"templateRule",prec:"0",prio:"-0.5",seq:"27",rank:"0",minImp:"0",slots:"0",matches:"NE",flags:"s",as:"*FM",line:"377",module:"XSLT-syntax.xsl",C:[{N:"p.nodeTest",role:"match",test:"NE"},{N:"ifCall",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"378", +name:"Q{http://www.w3.org/2005/xpath-functions/map}entry",type:"1FM",C:[{N:"fn",name:"replace",C:[{N:"fn",name:"name",C:[{N:"dot",type:"1NE"}]},{N:"str",val:"\\..$"},{N:"str",val:""},{N:"str",val:""}]},{N:"str",val:"AAA"}]}]},{N:"templateRule",prec:"0",prio:"0.0",seq:"28",rank:"1",minImp:"0",slots:"0",matches:"NE nQ{}sequence-constructor",flags:"s",as:"*FM",line:"380",module:"XSLT-syntax.xsl",C:[{N:"p.nodeTest",role:"match",test:"NE nQ{}sequence-constructor"},{N:"ifCall",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~", +line:"381",name:"Q{http://www.w3.org/2005/xpath-functions/map}entry",type:"1FM",C:[{N:"fn",name:"name",C:[{N:"dot",type:"1NE nQ{}sequence-constructor"}]},{N:"str",val:"AAA"}]}]},{N:"templateRule",prec:"0",prio:"-0.5",seq:"26",rank:"0",minImp:"0",slots:"0",matches:"NA",flags:"s",line:"368",module:"XSLT-syntax.xsl",C:[{N:"p.nodeTest",role:"match",test:"NA"},{N:"ifCall",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~", +line:"369",name:"Q{http://www.w3.org/2005/xpath-functions/map}entry",type:"1FM",C:[{N:"fn",name:"replace",C:[{N:"fn",name:"name",C:[{N:"dot",type:"1NA"}]},{N:"str",val:"\\..+$"},{N:"str",val:""},{N:"str",val:""}]},{N:"ifCall",line:"371",name:"Q{http://www.w3.org/2005/xpath-functions/map}merge",type:"1FM",C:[{N:"sequence",C:[{N:"ifCall",name:"Q{http://www.w3.org/2005/xpath-functions/map}entry",type:"1FM",C:[{N:"str",val:"isAVT"},{N:"fn",name:"matches",C:[{N:"fn",name:"name",C:[{N:"dot",type:"1NA"}]}, +{N:"str",val:"\\.R?A$"},{N:"str",val:""}]}]},{N:"ifCall",line:"372",name:"Q{http://www.w3.org/2005/xpath-functions/map}entry",type:"1FM",C:[{N:"str",val:"values"},{N:"fn",name:"tokenize",C:[{N:"fn",name:"normalize-space",C:[{N:"cvUntyped",to:"AS",C:[{N:"data",diag:"0|0||fn:normalize-space",C:[{N:"dot",type:"1NA"}]}]}]},{N:"str",val:"\\s*\\|\\s*"},{N:"str",val:""}]}]}]},{N:"map",size:"2",C:[{N:"str",val:"duplicates"},{N:"str",val:"reject"},{N:"str",val:"duplicates-error-code"},{N:"str",val:"XTDE3365"}]}]}]}]}, +{N:"templateRule",prec:"0",prio:"0.0",seq:"25",rank:"1",minImp:"0",slots:"0",matches:"NA nQ{MyFunctions}selectAndContent",flags:"s",line:"364",module:"XSLT-syntax.xsl",C:[{N:"p.nodeTest",role:"match",test:"NA nQ{MyFunctions}selectAndContent"},{N:"ifCall",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"365",name:"Q{http://www.w3.org/2005/xpath-functions/map}entry",type:"1FM", +C:[{N:"fn",name:"local-name",C:[{N:"dot",type:"1NA nQ{MyFunctions}selectAndContent"}]},{N:"fn",name:"string",C:[{N:"dot",type:"1NA nQ{MyFunctions}selectAndContent"}]}]}]},{N:"templateRule",prec:"0",prio:"0.0",seq:"24",rank:"1",minImp:"0",slots:"0",matches:"NA nQ{MyFunctions}parents",flags:"s",line:"355",module:"XSLT-syntax.xsl",C:[{N:"p.nodeTest",role:"match",test:"NA nQ{MyFunctions}parents"},{N:"ifCall",role:"action",ns:"=http://ns.saxonica.com/xslt/export doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~", +line:"362",name:"Q{http://www.w3.org/2005/xpath-functions/map}entry",type:"1FM",C:[{N:"str",val:"parents"},{N:"forEach",C:[{N:"fn",name:"tokenize",C:[{N:"fn",name:"normalize-space",C:[{N:"cvUntyped",to:"AS",C:[{N:"data",diag:"0|0||fn:normalize-space",C:[{N:"dot",type:"1NA nQ{MyFunctions}parents"}]}]}]},{N:"str",val:"\\s*\\|\\s*"},{N:"str",val:""}]},{N:"choose",C:[{N:"vc",op:"eq",onEmpty:"0",comp:"CCC",C:[{N:"dot",type:"1AS"},{N:"str",val:"top-level"}]},{N:"literal",count:"3",C:[{N:"str",val:"stylesheet"}, +{N:"str",val:"transform"},{N:"str",val:"package"}]},{N:"true"},{N:"dot",type:"1AS"}]}]}]}]}]}]},{N:"co",id:"278",binds:"",C:[{N:"globalVariable",name:"Q{}ST.SINGLE_INTEGER",as:"1FM k[AS] v[1AS]",line:"23",module:"sequenceType.xsl",visibility:"PRIVATE",C:[{N:"map",size:"2",C:[{N:"str",val:"o"},{N:"str",val:"1"},{N:"str",val:"p"},{N:"str",val:"ADI"}]}]}]},{N:"co",id:"316",binds:"",C:[{N:"globalVariable",name:"Q{}StaticProperty.ALLOWS_ZERO_OR_MORE",as:"1ADI",line:"109",module:"type.xsl",visibility:"PRIVATE", +flags:"s",C:[{N:"int",val:"7"}]}]},{N:"co",id:"303",binds:"",C:[{N:"globalVariable",name:"Q{}ST.SINGLE_COMMENT",as:"1FM k[AS] v[1AS]",line:"37",module:"sequenceType.xsl",visibility:"PRIVATE",C:[{N:"map",size:"2",C:[{N:"str",val:"o"},{N:"str",val:"1"},{N:"str",val:"p"},{N:"str",val:"NC"}]}]}]},{N:"co",id:"304",binds:"",C:[{N:"globalVariable",name:"Q{}ST.SINGLE_ELEMENT",as:"1FM k[AS] v[1AS]",line:"34",module:"sequenceType.xsl",visibility:"PRIVATE",C:[{N:"map",size:"2",C:[{N:"str",val:"o"},{N:"str", +val:"1"},{N:"str",val:"p"},{N:"str",val:"NE"}]}]}]},{N:"co",id:"148",binds:"6 300",C:[{N:"globalVariable",name:"Q{}SJ.OPTIONAL_DOCUMENT",as:"1AS",line:"47",module:"sequenceType.xsl",visibility:"PRIVATE",C:[{N:"ufCall",ns:"err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ saxon=~ t=MyTypes xs=~ xsl=~ xml=~",line:"47",name:"Q{MyTypes}unmarshalType",tailCall:"false",bSlot:"0",eval:"6",C:[{N:"gVarRef",name:"Q{}ST.OPTIONAL_DOCUMENT",bSlot:"1"}]}]}]},{N:"co",id:"272",binds:"6 198",C:[{N:"globalVariable", +name:"Q{}SJ.MULIPLE_ATTRIBUTE",as:"1AS",line:"57",module:"sequenceType.xsl",visibility:"PRIVATE",C:[{N:"ufCall",ns:"err=~ ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ saxon=~ t=MyTypes xs=~ xsl=~ xml=~",line:"57",name:"Q{MyTypes}unmarshalType",tailCall:"false",bSlot:"0",eval:"6",C:[{N:"gVarRef",name:"Q{}ST.MULTIPLE_ATTRIBUTE",bSlot:"1"}]}]}]},{N:"co",id:"317",binds:"",C:[{N:"function",name:"Q{MyFunctions}symbolic-name",line:"51",module:"component-bindings.xsl",eval:"16",flags:"pU",as:"1AS", +slots:"1",C:[{N:"arg",name:"Q{}component",as:"1NE"},{N:"check",role:"body",ns:"=http://ns.saxonica.com/xslt/export co=coBindings doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"54",card:"1",diag:"5|0|XTTE0780|f:symbolic-name#1",C:[{N:"forEach",C:[{N:"check",line:"53",card:"1",diag:"3|0|XTTE0570|actor",C:[{N:"slash",simple:"1",C:[{N:"varRef",name:"Q{}component",slot:"0"},{N:"axis",name:"child",nodeTest:"NE"}]}]},{N:"choose", +line:"56",C:[{N:"fn",name:"exists",C:[{N:"axis",name:"self",nodeTest:"NE u[NE nQ{http://ns.saxonica.com/xslt/export}globalParam,NE nQ{http://ns.saxonica.com/xslt/export}globalVariable]"}]},{N:"fn",line:"57",name:"concat",C:[{N:"str",val:"V:"},{N:"atomSing",card:"?",diag:"0|1||fn:concat",C:[{N:"first",C:[{N:"sequence",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}original-name"},{N:"axis",name:"attribute",nodeTest:"NA nQ{}name"},{N:"str",val:""}]}]}]}]},{N:"fn",line:"59",name:"exists",C:[{N:"axis", +name:"self",nodeTest:"NE nQ{http://ns.saxonica.com/xslt/export}attributeSet"}]},{N:"fn",line:"60",name:"concat",C:[{N:"str",val:"A:"},{N:"atomSing",card:"?",diag:"0|1||fn:concat",C:[{N:"first",C:[{N:"sequence",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}original-name"},{N:"axis",name:"attribute",nodeTest:"NA nQ{}name"},{N:"str",val:""}]}]}]}]},{N:"fn",line:"62",name:"exists",C:[{N:"filter",flags:"b",C:[{N:"axis",name:"self",nodeTest:"NE nQ{http://ns.saxonica.com/xslt/export}template"},{N:"fn", +name:"exists",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}name"}]}]}]},{N:"fn",line:"63",name:"concat",C:[{N:"str",val:"T:"},{N:"atomSing",card:"?",diag:"0|1||fn:concat",C:[{N:"first",C:[{N:"sequence",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}original-name"},{N:"axis",name:"attribute",nodeTest:"NA nQ{}name"},{N:"str",val:""}]}]}]}]},{N:"fn",line:"65",name:"exists",C:[{N:"axis",name:"self",nodeTest:"NE nQ{http://ns.saxonica.com/xslt/export}mode"}]},{N:"fn",line:"66",name:"concat",C:[{N:"str", +val:"M:"},{N:"atomSing",card:"?",diag:"0|1||fn:concat",C:[{N:"first",C:[{N:"sequence",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}original-name"},{N:"axis",name:"attribute",nodeTest:"NA nQ{}name"},{N:"str",val:"#unnamed"}]}]}]}]},{N:"fn",line:"68",name:"exists",C:[{N:"axis",name:"self",nodeTest:"NE nQ{http://ns.saxonica.com/xslt/export}function"}]},{N:"fn",line:"69",name:"concat",C:[{N:"str",val:"F:"},{N:"attVal",name:"Q{}name",chk:"0"},{N:"str",val:"#"},{N:"fn",name:"string",C:[{N:"fn",name:"count", +C:[{N:"axis",name:"child",nodeTest:"NE nQ{http://ns.saxonica.com/xslt/export}arg"}]}]}]},{N:"true"},{N:"str",val:"???"}]}]}]}]}]},{N:"overridden"},{N:"accumulator",name:"Q{}coBinding",line:"0",as:"*AS",streamable:"0",slots:"0",binds:"302 302 302 302 302 302",C:[{N:"empty",role:"init"},{N:"pre",slots:"0",C:[{N:"accRule",slots:"1",rank:"0",C:[{N:"p.venn",op:"union",C:[{N:"p.nodeTest",test:"NE nQ{http://ns.saxonica.com/xslt/export}co"},{N:"p.nodeTest",test:"NE nQ{http://ns.saxonica.com/xslt/export}accumulator"}]}, +{N:"empty"}]},{N:"accRule",slots:"1",rank:"0",C:[{N:"p.nodeTest",test:"NE nQ{http://ns.saxonica.com/xslt/export}callT"},{N:"ufCall",ns:"=http://ns.saxonica.com/xslt/export co=coBindings doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"178",name:"Q{coBindings}find-reference",tailCall:"false",bSlot:"0",C:[{N:"supplied",slot:"0"},{N:"fn",name:"concat",C:[{N:"str",val:"T:"},{N:"attVal",name:"Q{}name",chk:"0"}]}]}]},{N:"accRule", +slots:"1",rank:"0",C:[{N:"p.nodeTest",test:"NE nQ{http://ns.saxonica.com/xslt/export}useAS"},{N:"ufCall",ns:"=http://ns.saxonica.com/xslt/export co=coBindings doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"179",name:"Q{coBindings}find-reference",tailCall:"false",bSlot:"1",C:[{N:"supplied",slot:"0"},{N:"fn",name:"concat",C:[{N:"str",val:"A:"},{N:"attVal",name:"Q{}name",chk:"0"}]}]}]},{N:"accRule",slots:"1",rank:"0",C:[{N:"p.nodeTest", +test:"NE nQ{http://ns.saxonica.com/xslt/export}ufCall"},{N:"ufCall",ns:"=http://ns.saxonica.com/xslt/export co=coBindings doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"184",name:"Q{coBindings}find-reference",tailCall:"false",bSlot:"4",C:[{N:"supplied",slot:"0"},{N:"fn",name:"concat",C:[{N:"str",val:"F:"},{N:"attVal",name:"Q{}name",chk:"0"},{N:"str",val:"#"},{N:"fn",name:"count",C:[{N:"axis",name:"child",nodeTest:"NE"}]}]}]}]}, +{N:"accRule",slots:"1",rank:"0",C:[{N:"p.nodeTest",test:"NE nQ{http://ns.saxonica.com/xslt/export}applyT"},{N:"ufCall",ns:"=http://ns.saxonica.com/xslt/export co=coBindings doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"182",name:"Q{coBindings}find-reference",tailCall:"false",bSlot:"3",C:[{N:"supplied",slot:"0"},{N:"fn",name:"concat",C:[{N:"str",val:"M:"},{N:"atomSing",card:"?",diag:"0|1||fn:concat",C:[{N:"first",C:[{N:"sequence", +C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}mode"},{N:"str",val:"#unnamed"}]}]}]}]}]}]},{N:"accRule",slots:"1",rank:"0",C:[{N:"p.nodeTest",test:"NE nQ{http://ns.saxonica.com/xslt/export}gVarRef"},{N:"ufCall",ns:"=http://ns.saxonica.com/xslt/export co=coBindings doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"180",name:"Q{coBindings}find-reference",tailCall:"false",bSlot:"2",C:[{N:"supplied",slot:"0"},{N:"fn",name:"concat", +C:[{N:"str",val:"V:"},{N:"attVal",name:"Q{}name",chk:"0"}]}]}]},{N:"accRule",slots:"1",rank:"0",C:[{N:"p.nodeTest",test:"NE nQ{http://ns.saxonica.com/xslt/export}ufRef"},{N:"ufCall",ns:"=http://ns.saxonica.com/xslt/export co=coBindings doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~",line:"186",name:"Q{coBindings}find-reference",tailCall:"false",bSlot:"5",C:[{N:"supplied",slot:"0"},{N:"fn",name:"concat",C:[{N:"str",val:"F:"}, +{N:"attVal",name:"Q{}name",chk:"0"},{N:"str",val:"#"},{N:"fn",name:"string",C:[{N:"axis",name:"attribute",nodeTest:"NA nQ{}arity"}]}]}]}]}]},{N:"post",slots:"0",C:[{N:"accRule",slots:"1",rank:"0",C:[{N:"p.venn",op:"union",C:[{N:"p.nodeTest",test:"NE nQ{http://ns.saxonica.com/xslt/export}co"},{N:"p.nodeTest",test:"NE nQ{http://ns.saxonica.com/xslt/export}accumulator"}]},{N:"supplied",ns:"=http://ns.saxonica.com/xslt/export co=coBindings doc=http://www.saxonica.com/ns/documentation ex=http://ns.saxonica.com/xslt/export f=MyFunctions map=~ xs=~ xsl=~ xml=~", +line:"176",slot:"0"}]}]}]},{N:"output",C:[{N:"property",name:"indent",value:"yes"},{N:"property",name:"Q{http://saxon.sf.net/}stylesheet-version",value:"30"},{N:"property",name:"method",value:"xml"}]},{N:"decimalFormat"}],"Σ":"2a88885c"}};var Da=function(){var a;return{Ol:function(){return a},Fp:function(b){a=b},pn:function(b,d,m,c){return a.addMultipleDocs(b,d,m,c)},createDocument:function(){return a.createDocument()},Il:function(){return a.getDefaultDeliverMessage()},Af:function(){return a.inBrowser()},Fd:function(b){return a.isHTMLElement(b)},Zq:function(b,d){return a.makeBuffer(b,d)},Uo:function(b,d,m){return a.makeHttpRequest(b,d,m)},parseXmlFromString:function(b,d){return a.parseXmlFromString(b,d)},readFile:function(b,d){return a.readFile(b, +d)},Qi:function(b){return a.resource(b)},lr:function(b){return a.resourcePromise(b)},$c:function(b,d){return a.resolveUri(b,d)},Gb:function(b){return a.saxonPrint(b)},qr:function(b){return a.setBaseUri(b)},newURL:function(b,d){return a.newURL(b,d)},fileURL:function(b){return a.fileURL(b)},ur:function(){return{version:"3.0",vendor:"Saxonica","vendor-url":"http://www.saxonica.com/","product-name":"Saxon-JS","product-version":"2.0","is-schema-aware":"no","supports-serialization":"yes","supports-backwards-compatibility":"yes", +"supports-namespace-axis":"yes","supports-streaming":"no","supports-dynamic-evaluation":"yes","supports-higher-order-functions":"yes","xpath-version":"3.1","xsd-version":"1.1"}},Wn:function(){return a.extraProperties}}}();function q(a,b,d){d=void 0===d?null:d;var m=Error.call(this);this.message=m.message;"stack"in m&&(this.stack=m.stack);this.name="XError";this.message=void 0===a?"Saxon-JS run-time error":a;this.code=void 0===b?"FORG0001":b;d&&Ea(this,d)}n(q,Error);ba=q.prototype;ba.toString=function(){return this.name+":"+this.message+"; code:"+this.code};function Ea(a,b){function d(a,b){for(var c=a;c;){if(c[b])return c[b];c=c.parentNode}return null}a.oe=d(b,"line");a.vk=d(b,"module")} +ba.ui=function(){return typeof this.context?this.context.ui():""};ba.gg=function(){var a="Error "+this.code;null!=this.oe&&(a+=" at "+this.vk+"#"+this.oe);return a+="\n "+this.message};ba.code=null;ba.bb=null;ba.Rn=null;ba.oe=null;ba.vk=null;ba.yi=!1;ba.context=null;var B=function(){function a(a){c("Internal error: "+a+"\n"+Error().stack);throw new q("Internal error: "+a,"SXJS0004");}function b(a){if(null===a)return"#null";if("undefined"===typeof a)return"#undefined";if(a.oa)return a.oa();if(a.N)return"expression "+a.N;if(l&&l.da(a)){if(l.jh(a))return"attribute @"+a.name+"='"+a.value+"'";if(l.og(a))return"ns:"+a.prefix+"="+a.uri;var f={1:"element <"+a.tagName+">",2:"attribute @"+a.name,3:"text:"+(a.nodeValue?a.nodeValue.substring(0,8):"''"),7:"pi: "+a.target+ +"("+a.tagName+")",8:"comment ("+a.nodeValue+")",9:"document "+(a._saxonDocumentNumber?"#"+a._saxonDocumentNumber:"(No nr / #0)"),11:"docFrag"}[a.nodeType];if("9"===a.nodeType||"11"===a.nodeType){var k;for(k=0;k"+b(a.childNodes[k])}return f}if(a.type)return"string"===a.type?'xdm:"'+a.toString()+'"':"integer"===a.type?"xdm:"+a.Pa().toFixed():"boolean"===a.type?"xdm:"+a.toString():"xs:"+a.type+"('"+a.toString()+"')";if("object"===typeof a&&"length"in a){if(1===a.length)return b(a[0]); +f="(";for(k=0;kk;k++)0!==k&&(f+=","),f+=b(a[k]);4<=a.length&&(f+=",...("+a.length+")");return f+")"}return"function"===typeof a?a.toString():"("+typeof a+") "+a}function d(a){return"{'N':'"+a.N+"','C':["+(a.C||[]).map(function(a){return d(a)}).join(",")+"]}"}function m(a,f){for(var b=a;b;){if(b[f])return b[f];b=b.parentNode}return null}function c(a,b){(void 0===b?1:b)<=f&&Da.Ol().saxonPrint(a)}var l,f=1;Error.stackTraceLimit=100;return{assert:function(f,b){f||a(void 0===b?"assertion failed": +b)},ra:a,location:function(a){return m(a,"module")+"#"+m(a,"line")},qp:function(a){l=a},Gb:c,oa:b,ym:function(a){return a.oa?a.oa():l&&l.da(a)?b(a):a.type?"string"===a.type?'"'+a.toString()+'"':"integer"===a.type?a.Pa().toFixed():"boolean"===a.type?a.toString()+"()":"xs:"+a.type+"('"+a.toString()+"')":a.io?a.toString():"("+typeof a+") "+a},Ip:function(a){if(!a)return"null expr";var f=a.N||"?",b;for(b in a)a.hasOwnProperty(b)&&!["C","N","parentNode","ELAB","PUSH"].includes(b)&&(f+=" "+b+"="+a[b]); +a.C&&(f+=" ("+a.C.map(function(a){return a.N}).join(",")+")");return f+=" at "+this.location(a)},rr:d,vm:function(a){"number"==typeof a&&(f=a)},Bi:f}}();var Ha=function(){function a(){function f(b){if(!(this instanceof f))return void 0===b?a():new f(b);if(b instanceof f)this.Aa=b.Aa,this.e=b.e,this.c=b.c.slice();else{var r,k,c;0===b&&0>1/b?b="-0":l.test(b=""+b)||m(NaN);this.Aa="-"==b.charAt(0)?(b=b.slice(1),-1):1;-1<(r=b.indexOf("."))&&(b=b.replace(".",""));0<(k=b.search(/e/i))?(0>r&&(r=k),r+=+b.slice(k+1),b=b.substring(0,k)):0>r&&(r=b.length);for(k=0;"0"==b.charAt(k);k++);if(k==(c=b.length))this.c=[this.e=0];else{for(;"0"==b.charAt(--c););this.e= +r-k-1;this.c=[];for(r=0;k<=c;this.c[r++]=+b.charAt(k++));}}this.constructor=f}f.prototype=c;f.Og=20;f.Ph=1;f.Pg=-7;f.Kh=21;return f}function b(a,b,r){var f=a.constructor,k=b-(a=new f(a)).e,c=a.c;c.length>++b&&d(a,k,f.Ph);c[0]?r?k=b:(c=a.c,k=a.e+k+1):++k;for(;c.lengtha.Aa&&c[0]?"-":"")+(1k?"e":"e+")+k:a.toString()}function d(a,b,r,c){c=void 0===c?!1:c;var f=a.c,k=a.e+b+1;1===r?c=5<=f[k]:2===r?c= +5k||void 0!==f[k+1]||f[k-1]&1):3===r?c=c||void 0!==f[k]||0>k:(c=!1,0!==r&&m("!Big.RM!"));if(1>k||!f[0])c?(a.e=-b,a.c=[1]):a.c=[a.e=0];else{f.length=k--;if(c)for(;9<++f[k];)f[k]=0,k--||(++a.e,f.unshift(1));for(k=f.length;!f[--k];f.pop());}return a}function m(a){a=Error(a);a.name="BigError";throw a;}var c={},l=/^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i;c.abs=function(){var a=new this.constructor(this);a.Aa=1;return a};c.cmp=function(a){var b=this.c,f=(a=new this.constructor(a)).c, +c=this.Aa,d=a.Aa,l=this.e,t=a.e;if(!b[0]||!f[0])return b[0]?c:f[0]?-d:0;if(c!=d)return c;a=0>c;if(l!=t)return l>t^a?1:-1;c=-1;for(d=(l=b.length)<(t=f.length)?l:t;++cf[c]^a?1:-1;return l==t?0:l>t^a?1:-1};c.pd=function(a,b,r){var f=this.constructor,c=this.c,k=(a=new f(a)).c,t=this.Aa===a.Aa?1:-1;b="undefined"!==typeof b?b:f.Og;r="undefined"!==typeof r?r:f.Ph;(b!==~~b||0>b||1E6L?0:L;for(l.unshift(0);h++g;g++){if(f!=(h=e.length))var O=f>h?1:-1;else{var fa=-1;for(O=0;++fae[fa]?1:-1;break}}if(0>O){for(a=h==f?k:l;h;){if(e[--h]L&&d(p,b,r,void 0!==e[0]);return p};c.On=function(){var a=Ha(0);return!this.cmp(a)};c.Nq=function(a){return 0this.cmp(a)};c.Yq=function(a){return 1>this.cmp(a)};c.sub=c.oh=function(a){var b=this.constructor;var f=this.Aa,c=(a=new b(a)).Aa;if(f!=c)return a.Aa=-c,this.uh(a);var d=this.c.slice();var l=this.e;var t=a.c,g=a.e;if(!d[0]||!t[0])return t[0]?(a.Aa=-c,a):new b(d[0]?this:0);if(f=l-g){(b= +0>f)?(f=-f,l=d):(g=l,l=t);l.reverse();for(c=f;c--;l.push(0));l.reverse()}else for(l=((b=d.lengthf;){if(d[--l]d.length-t.length&&(b=t,t=d,d=b);f=t.length;for(c=0;f;)c=(d[--f]=d[f]+t[f]+c)/10|0,d[f]%=10;c&&(d.unshift(c), +++l);for(f=d.length;0===d[--f];d.pop());a.c=d;a.e=l;return a};c.pow=function(a){var b=this,f=new b.constructor(1),c=f,d=0>a;(a!==~~a||-1E6>a||1E6>=1;if(!a)break;b=b.ke(b)}return d?f.pd(c):c};c.round=function(a,b){var f=this,c=f.constructor;null==a?a=0:(a!==~~a||0>a||1E6c&&m(NaN);c=Math.sqrt(this.toString());0===c||c===1/0?(c=b.join(""),c.length+l&1||(c+="0"),b=new a(Math.sqrt(c).toString()),b.e=((l+1)/2|0)-(0>l||l&1)):b=new a(c.toString());c=b.e+(a.Og+=4);do l=b,b=w.ke(l.uh(this.pd(l)));while(l.c.slice(0,c).join("")!==b.c.slice(0,c).join(""));d(b,a.Og-=4,a.Ph);return b};c.fr=c.ke=function(a){var b=this.constructor;var f=this.c,c=(a=new b(a)).c,d=f.length,l=c.length,t=this.e,g=a.e;a.Aa=this.Aa==a.Aa?1:-1;if(!f[0]||!c[0])return new b(0*a.Aa);a.e=t+g;dt;)l=b[g]+c[t]*f[g-t-1]+l,b[g--]=l%10,l=l/10|0;b[g]=(b[g]+l)%10}l&&++a.e;b[0]||b.shift();for(t=b.length;!b[--t];b.pop());a.c=b;return a};c.toString=c.valueOf=c.toJSON=function(){var a=this.constructor,b=this.e,c=this.c.join(""),d=c.length;if(b<=a.Pg||b>=a.Kh)c=c.charAt(0)+(1b?"e":"e+")+b;else if(0>b){for(;++b;c="0"+c);c="0."+c}else if(0d)for(b-=d;b--;c+="0");else bthis.Aa&&this.c[0]?"-"+c:c};c.toExponential=function(a){null==a?a=this.c.length-1:(a!==~~a||0>a||1E6=a&&(l=b(this,this.e+a),0>this.Aa&&this.c[0]&&0>l.indexOf("-")&&(l="-"+l));c.Pg=f;c.Kh=d;l||m("!toFix!");return l};c.toPrecision=function(a){if(null==a)return this.toString(); +(a!==~~a||1>a||1E6=c)return!0}return!1}function b(a){for(var b=[],c=0;c=d?1024*(d-55296)+(a.charCodeAt(++c)-56320)+65536:d)}return b}return{Xg:function(d,m){if(a(d)||a(m)){a:{var c=b(d.toString());for(var l=b(m.toString()),f=0;;){if(f===c.length){c=f===l.length?0:-1;break a}if(f===l.length){c=1;break a}if(c[f]!==l[f]){c=c[f]-l[f];break a}f++}}return 0>c?-1: +0===c?0:1}return da&&![9,10,13].includes(a)||55295a||65533a||1114111a?String.fromCharCode(a):String.fromCharCode((a-65536>>10)+55296)+String.fromCharCode((a-65536&1023)+56320)});return b},zo:a,Bc:b,dd:function(a){return a.replace(/[ \n\r\t]+/g," ").replace(/^[ ]|[ ]$/g,"")}}}();var Na=function(){function a(){null===d&&(d=Da.Qi("regexCategories"));return d}function b(b,c,d,l){function f(e,b){function g(a){for(a=a.toString(16);4>a.length;)a="0"+a;return"\\u"+(m&&4b)&&a.push([b+1,m?1114111:65535])}b="";for(h=0;ha[h][1])b+=g(a[h][0]),a[h][1]>a[h][0]&&(b+="-"+g(a[h][1]));a= +b;e||(a="["+a+"]");return a}function f(a){return a.sort(function(a,e){return a[0]-e[0]})}function d(a,e,b,h){var g=[];Array.isArray(a)||t("Ranges must be array");a.forEach(function(a){g.push([parseInt(a[0],16),parseInt(a[1],16)])});b&&h&&f(g);return c(g,e,b)}var N=e.charAt(b+1);0>"nrt\\|.-^?*+{}()[]pPsSiIcCdDwW$".indexOf(N)&&(0!==y||!/[0-9]/.test(N))&&t("\\"+N+" is not allowed in XPath regular expressions");switch(N){case "p":case "P":var u=e.indexOf("}",b),l=e.substring(b+3,u);r("x")&&(l=l.replace(/[ \n\r\t]+/g, +""));var w=a(),S=w[l];S||t("Unknown category "+l);if(1===l.length){var ma=[];S.split("|").forEach(function(a){ma=ma.concat(w[a])})}else ma=S;k+=d(ma,0=p&&/[0-9]/.test(e.charAt(b+2))&&(k+="(?:)"),b++):(k+="\\"+N,b++)}return{Ii:k,i:b}}function r(a){return 0<=c.indexOf(a)}function t(a){throw new q("Invalid XPath regular expression: "+a,"FORX0002");}d=void 0===d?null:d;l=void 0===l?null:l;var g=0;c=c?c.toString():"";if(!m&&d&&Ma.zo(d))throw new q("Cannot handle non-BMP characters with regular expressions in this browser", +"SXJS0002");d=(r("i")?"i":"")+(r("m")?"m":"")+(r("g")?"g":"")+(m?"u":"");if(r("j"))return new RegExp(b,c.replace("j",""));if(r("q"))return new RegExp(b.replace(/[\[\]\/\{\}\(\)\*\+\?\.\\^$|]/g,"\\$&"),d);for(var k="",v=[[58,58],[65,90],[95,95],[97,122],[192,214],[216,246],[248,767],[880,893],[895,8191],[8204,8205],[8304,8591],[11264,12271],[12289,55295],[63744,64975],[65008,65533],[65536,983039]],x=[[45,46],[48,58],[65,90],[95,95],[97,122],[183,183],[192,214],[216,246],[248,893],[895,8191],[8204, +8205],[8255,8256],[8304,8591],[11264,12271],[12289,55295],[63744,64975],[65008,65533],[65536,983039]],e=[],h=[],p=1,y=0,u=!1,L=!1,O=0;OL||!/^[0-9]+(,[0-9]*)?$/.test(b.substring(O+1,L)))&&t("Invalid quantifier {"+b.substring(O+1,L+1)),L=!1);k+=fa;break;case " ":case "\n":case "\r":case "\t":if(!r("x")||0=a.J()});g("negativeInteger","nonPositiveInteger","ADINN",function(a){return 0>a.J()});g("long","integer","ADIL",function(a){a=a.Pa();return 0<= +a.cmp(Ha("-9223372036854775808"))&&0>=a.cmp(Ha("9223372036854775807"))});g("int","long","ADILI",function(a){return-2147483648<=a.J()&&2147483647>=a.J()});g("short","int","ADILIS",function(a){return-32768<=a.J()&&32767>=a.J()});g("byte","short","ADILISB",function(a){return-128<=a.J()&&127>=a.J()});g("nonNegativeInteger","integer","ADIP",function(a){return 0<=a.J()});g("positiveInteger","nonNegativeInteger","ADIPP",function(a){return 0=a.Pa().cmp(Ha("18446744073709551615"))});g("unsignedInt","unsignedLong","ADIPLI",function(a){return 0<=a.J()&&0>=a.Pa().cmp(Ha("4294967295"))});g("unsignedShort","unsignedInt","ADIPLIS",function(a){return 0<=a.J()&&65535>=a.J()});g("unsignedByte","unsignedShort","ADIPLISB",function(a){return 0<=a.J()&&255>=a.J()});f("normalizedString","string","ASN",e,function(a){return a.replace(/[ \r\t\n]/g," ")});f("token","normalizedString","ASNT",e,Ma.dd);f("language","token","ASNTL",function(a){return/^[a-zA-Z]{1,8}(-[a-zA-Z0-9]{1,8})*$/.test(a)}, +Ma.dd);f("NMTOKEN","token","ASNTK",Na.Ho,Ma.dd);f("Name","token","ASNTN",Na.Io,Ma.dd);f("NCName","Name","ASNTNC",Na.Yc,Ma.dd);f("ID","NCName","ASNTNCI",Na.Yc,Ma.dd);f("IDREF","NCName","ASNTNCR",Na.Yc,Ma.dd);f("ENTITY","NCName","ASNTNCE",Na.Yc,Ma.dd);d("yearMonthDuration","duration","ARY",function(a){return 0===a.wb});d("dayTimeDuration","duration","ARD",function(a){return 0===a.Eb});M.dayTimeDuration.Bl=function(a){return new L(0,6E4*a,"dayTimeDuration")};H.language=M.language;H.Dk=M.NCName;H.ac= +M.dayTimeDuration;H.ed=M.yearMonthDuration;H.Hl=M.gYearMonth;H.Gl=M.gYear;H.Fl=M.gMonthDay;H.El=M.gMonth;H.Dl=M.gDay;for(var p in M){var t=M[p];t.vr=function(){return this.code};Qa[t.code]=t}a=function(){}}function b(a,e){return e?-a:a}function d(a,e){return e*(void 0===a?0:Math.round(1E3*parseFloat(a)))}function m(a,e){return e*(void 0===a?0:parseInt(a,10))}function c(a,e){return a===e||1===Ja[a+"<"+e]}function l(a){return a.Bb&&!["ADI","ARY","ARD"].includes(a.code)?l(a.Bb):a}function f(a,e){throw new q("Casting from xs:"+ +a.type+" to xs:"+e+" is not allowed","XPTY0004");}function k(a,e,b,g){b=void 0===b?null:b;throw new q('Supplied value "'+a+'" is not a valid xs:'+e+(b?" ("+b+")":""),void 0===g?"FORG0001":g);}function r(a,e){throw new q("Cannot compare xs:"+a+" with xs:"+e,"XPTY0004");}function v(a,e){a=Na.trim(a);/.\.$/.test(a)&&(a+="0");if(/^[-+]?([0-9]+(\.[0-9]*)?|\.[0-9]+)([Ee][-+]?[0-9]+)?$/.test(a))return parseFloat(a);if(/^NaN$/.test(a))return NaN;if(/^-INF$/.test(a))return-Infinity;if(/^(\+)?INF$/.test(a))return Infinity; +e&&k(a,"double");return NaN}function w(a){return Number.isInteger(a)&&Math.abs(a)>16&255;h=d>>8&255;d&=255;64===c?ua[b++]=String.fromCharCode(g):64===f?ua[b++]= +String.fromCharCode(g,h):ua[b++]=String.fromCharCode(g,h,d)}while(ee||0>a&&0e.length;)e+="0";a=a[0]+"."+e}return a}function Y(a){var e=a[0],b=a[1],ua=a[2],g=a[3],h=a[4];a=a[5];return!(1>b||12ua||ua>[31,0!==e%4||0===e%100&&0!==e%400?28:29,31,30,31,30,31,31,30,31,30,31][b-1]||24<=g||60<=h||60<=a)}function N(a,e){var b=a.split(/[\-T:]/).map(function(a){return parseFloat(a)}), +ua=b[0];if(1>ua||9999g[0]&&h.setUTCFullYear(c[0])}h=""===ua?new Date(h.getTime()+6E4*(new Date).getTimezoneOffset()):new Date(h.getTime()-6E4*ma(ua));return new u(h,ma(b[2]?b[2]:""),e)}function ma(a){if(""===a)return null;if("Z"===a)return 0;var e=a.split(":"),b=parseInt(e[0],10),ua=/^\-.*/.test(e[0]);b=Math.abs(b);e=parseInt(e[1],10); +if(14=this.value.length)return this.value;var a=this.Ok,e=this.value.length;if(0===a&&0>18&63;c=d>>12&63;f=d>>6&63;d&=63;g[b++]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(h)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(c)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(f)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(d)}while(e1/this.value?"-0":"0";if(this.value===Number.POSITIVE_INFINITY)return"INF";if(this.value===Number.NEGATIVE_INFINITY)return"-INF";var a=this.value,e=Math.abs(a);if(1E6<=e||1E-6>e){a=a.toExponential(); +var b=a.indexOf("e");e=a.substring(0,b);a=a.substring(b+1);"float"===this.type&&(e=parseFloat(e),e=(0>e?e-5E-8:e+5E-8).toString(),b=e.indexOf("."),e=e.substring(0,b+8),e=e.replace(/\.?0+$/,""));e.includes(".")||(e+=".0");return e+"E"+a.replace("+","")}return"float"===this.type&&0!==a%1?(a=(0>a?a-5E-8:a+5E-8).toString(),e=a.indexOf("."),a=a.substring(0,e+6),a.replace(/0+$/,"")):a.toString()},ia:function(a){return 0===this.ab(a)},ab:function(a){if(a.J)return a="float"===this.type&&Math.fround?Math.fround(a.J()): +a.J(),this.valuethis.value?"-INF":"INF"},Gd:function(){return"n"+this.bc()},J:function(){return this.value},Jg:function(){return this},abs:function(){return new x(Math.abs(this.value),this.type)},Gi:function(){return new x(-this.value, +this.type)},yj:function(){return new x(Math.ceil(this.value),this.type)},floor:function(){return new x(Math.floor(this.value),this.type)},round:function(a){0===a?a=Math.round(this.value):(a=Math.pow(10,-a),a*=Math.round(this.value/a));return new x(a,this.type)},Ri:function(a){return isFinite(this.value)?(a=(new h(Ha(this.value))).Ri(a),0===a.J()&&0>this.value&&(a=H.za.g("-0")),C.type[this.type].aa(a)):this}};e.prototype={value:0,type:"integer",toString:function(){return this.value.toString()},ia:function(a){return 0=== +this.ab(a)},ab:function(a){if(a.J)return this.value-a.J();r(this.type,a.type)},bc:function(){return w(this.value)},mk:function(a){return a instanceof x||a instanceof e?this.value===a.value:a instanceof h?aa.aa(this).ia(a):!1},Gd:function(){return"n"+this.bc()},Jg:function(){return new x(this.value)},J:function(){return this.value},Pa:function(){return new Ha(this.value)},abs:function(){return new e(Math.abs(this.value))},Gi:function(){return new e(-this.value)},yj:function(){return this},floor:function(){return this}, +round:function(a){return 0>a?(a=Math.pow(10,-a),new e(Math.round(this.value/a)*a)):this},Ri:function(a){return 0>a?(a=Math.pow(10,-a),new e(parseInt(Ha(this.value).pd(a,100,2).round(0,2).ke(a),10))):this}};h.prototype={value:null,type:"decimal",toString:function(){return this.value.toFixed()},ia:function(a){return 0===this.ab(a)},ab:function(a){if(a instanceof h)return this.value.cmp(a.value);if(a.Pa)return this.value.cmp(a.Pa());if(a.Jg)return this.value.cmp(new Ha(a.Jg()));r(this.type,a.type)}, +bc:function(){var a=this.value;return a.Ei(Ha(1)).On()&&a.abs().Qo()?this.J().toString(36):this.toString().substring(0,8)},mk:function(a){return a instanceof x||a instanceof e?0===this.ab(aa.aa(a)):a instanceof h?0===this.ab(a):!1},Gd:function(){return"n"+this.bc()},Pa:function(){return this.value},Jg:function(){return new x(parseFloat(this.value.toFixed()))},J:function(){return parseFloat(this.value.toFixed())},abs:function(){return new h(this.value.abs(),this.type)},Gi:function(){var a=Ha(this.value); +a.Aa=-a.Aa;return new h(a,"decimal"===this.type?"decimal":"integer")},yj:function(){return new h(this.value.round(0,0>this.value.Aa?0:3),this.type)},floor:function(){return new h(this.value.round(0,0>this.value.Aa?3:0),this.type)},round:function(a){function e(a,e){var b=new Ha(a);b.e+=e;return b}var b=this.value,g=0;0>a&&(g=a,a=0,b=e(b,g));var c=0 +a?(a=Ha(10).pow(-a),a=this.value.pd(a,100,2).round(0,2).ke(a)):a=this.value.round(a,2);return new h(a,"decimal"===this.type?"decimal":"integer")}};p.prototype={value:null,type:"boolean",toString:function(){return this.value.toString()},ab:function(a){if(a instanceof p)return(this.value?1:0)-(a.value?1:0);r(this.type,a.type)},ia:function(a){return 0===this.ab(a)},bc:function(){return this.value.toString()},Gd:function(){return"b"+this.toString()}};y.prototype={prefix:null,uri:null,local:null,type:"QName", +ha:function(){return"Q{"+this.uri+"}"+this.local},toString:function(){return(0=a&&(a+=12);!Y([b,a,h,0,0,0]);)--h;return C.type[this.type].g((0>b?"-"+(1E4+-b).toString().substring(1):(1E4+b).toString().substring(1))+"-"+(100+a).toString().substring(1)+"-"+(100+h).toString().substring(1)+e.substring(10))},Xi:function(){var a=this.zb;if(a){var e=Math.abs(a);return(0>a?"-":"+")+(100+Math.floor(e/60)).toString().substring(1)+":"+(100+e%60).toString().substring(1)}return 0===a?"Z":""}};L.prototype={type:"duration",Eb:0,wb:0, +gk:function(){function a(a,b){b.forEach(function(b){1E3!==b?(e.push(Math.floor(a/b)),a%=b):e.push(a/b)})}var e=[];a(Math.abs(this.Eb),[12,1]);a(Math.abs(this.wb),[864E5,36E5,6E4,1E3]);return e},nk:function(){var a=this.Eb+this.wb;return 0>a?-1:0a?"-P":"P",this.gk().forEach(function(a,b){3===b&&(e+="T");0!==a&&(e=6===b?e+(a/1E3+"S"):e+(a+"YMDHMS".split("")[b]))}),e=e.replace(/T$/,"");return e}, +ab:function(a){if(a instanceof L){if(H.ed.matches(this)&&H.ed.matches(a))return this.Eb-a.Eb;if(H.ac.matches(this)&&H.ac.matches(a))return this.wb-a.wb;throw new q("Cannot compare durations that mix months and seconds","XPTY0004");}r(this.type,a.type)},ia:function(a){a instanceof L||r(this.type,a.type);return a instanceof L&&this.Eb===a.Eb&&this.wb===a.wb},bc:function(){return this.Eb.toString()+":"+this.wb.toString()},Gd:function(){return"d"+this.bc()}};var za={name:"anyAtomicType",code:"A",matches:function(a){return a instanceof +K||a instanceof h||a instanceof e||a instanceof x||a instanceof A||a instanceof p||a instanceof L||a instanceof u||a instanceof y}},Ka={name:"untypedAtomic",code:"AZ",g:function(a){return new K(a,"untypedAtomic")},matches:function(a){return"untypedAtomic"===a.type},aa:function(a){return new K(a.toString(),"untypedAtomic")}},Va={name:"string",code:"AS",g:function(a){return new K(a,"string")},matches:function(a){return c(a.type,"string")},aa:function(a){return new K(a.toString(),"string")},Fe:function(a){return a instanceof +K}},Ba={name:"anyURI",code:"AU",g:function(a){a=a.replace(/[ \r\t\n]+/g," ").replace(/^[ ]|[ ]$/g,"");return new K(a,"anyURI")},matches:function(a){return"anyURI"===a.type},aa:function(a){if(a instanceof K)return H.kc.g(a.toString());f(a,"anyURI")}},ja={name:"double",code:"AO",g:function(a){return new x(v(a,!0))},oi:function(a){return new x(v(a,!1))},fa:function(a){return new x(a)},matches:function(a){return"double"===a.type},aa:function(a){if(null===a||"undefined"==typeof a)return H.za.fa(NaN);if(H.T.matches(a)|| +H.Ua.matches(a))return H.za.g(a.toString());if(H.numeric.matches(a))return H.za.fa(a.J());if(H.Ea.matches(a))return H.za.fa(a.value?1:0);if("number"===typeof a)return H.za.fa(a);f(a,"double")},NaN:null};ja.NaN=ja.fa(NaN);var aa={name:"decimal",code:"AD",g:function(a){a=Na.trim(a).replace(/^\+/,"");if(/^[-+]?([0-9]+(\.[0-9]*)?|\.[0-9]+)$/.test(a))return new h(new Ha(a));k(a,"decimal")},wc:function(a){return new h(a)},fa:function(a){isFinite(a)||k(a,"decimal",null,"FOCA0002");return new h(new Ha(a))}, +matches:function(a){return a instanceof h||a instanceof e},aa:function(a){if(H.od.matches(a))return new h(a.value,"decimal");if(H.T.matches(a)||H.Ua.matches(a))return H.od.g(a.toString());if(H.numeric.matches(a))return H.od.fa(a.J());if(H.Ea.matches(a))return H.od.g(a.value?"1":"0");f(a,"decimal")}},ra={name:"float",code:"AF",g:function(a){return H.qd.fa(v(a,!0))},fa:function(a){Math.fround&&(a=Math.fround(a));return new x(a,"float")},matches:function(a){return"float"===a.type},aa:function(a){return H.qd.fa(H.za.aa(a).J())}}, +Z={name:"boolean",code:"AB",cf:new p(!0),Qg:new p(!1),g:function(a){switch(Na.trim(a)){case "true":case "1":return this.cf;case "false":case "0":return this.Qg;default:k(a,"boolean")}},Dd:function(a){return a?this.cf:this.Qg},matches:function(a){return a instanceof p},aa:function(a){if(H.T.matches(a)||H.Ua.matches(a))return H.Ea.g(a.toString());if(H.numeric.matches(a))return H.Ea.Dd(0!==a.J()&&!isNaN(a.J()));if(H.Ea.matches(a))return a;if("boolean"===typeof a)return H.Ea.Dd(a);f(a,"boolean")}},U= +{name:"integer",code:"ADI",Bb:"decimal",matches:function(a){return c(a.type,"integer")},g:function(a){if(/^\s*[-+]?[0-9]+\s*$/.test(a))return 9Number.MAX_SAFE_INTEGER)throw new q("Integer constant '"+a+"' out of range","FOCA0003");return new e(a)},wc:function(a){return new h(a,"integer")},valid:function(a){return 0===a.value.Ei(1)},aa:function(a){if(H.T.matches(a)|| +H.Ua.matches(a))return H.Ma.g(a.toString());if(H.numeric.matches(a))return H.Ma.fa(a.J());if(H.Ea.matches(a))return H.Ma.fa(a.value?1:0);f(a,"integer")},Bq:function(a){return"number"===typeof a?H.Ma.fa(a):"boolean"===typeof a?H.Ma.fa(a?1:0):"string"===typeof a?H.Ma.g(a):H.Ma.g(a.toString())}},X={name:"numeric",code:"Anumeric",cr:["double","decimal","float"],matches:function(a){return a instanceof x||a instanceof e||a instanceof h},aa:function(a){if(H.T.matches(a)||H.Ua.matches(a))return H.za.g(a.toString()); +if(H.numeric.matches(a))return a;if(H.Ea.matches(a))return H.za.fa(a.value?1:0);f(a,"numeric")},qh:function(a){var e=H.za;if(null===a)return e.fa(Number.NaN);if(H.Ea.matches(a))return e.fa(a.value?1:0);if(H.numeric.matches(a))return e.aa(a);if(H.T.matches(a)||H.Ua.matches(a))try{return e.g(a.toString())}catch(Za){return e.fa(Number.NaN)}else return e.fa(Number.NaN)}},T={name:"QName",code:"AQ",matches:function(a){return a instanceof y},xa:function(a,e,b){return new y(a,e,b)},g:function(a,e){a=Na.trim(a); +if("Q{"===a.substring(0,2))return H.X.rb(a);Na.Wl(a)||k(a,"QName");var b=a.split(":");if(1===b.length)return H.X.xa("",e(""),b[0]);var g=e(b[0]);if(null===g)throw new q("Undeclared prefix: "+b[0],"FONS0004");return H.X.xa(b[0],g,b[1])},rb:function(a){var e=a.indexOf("{"),b=a.indexOf("}");e=Ma.dd(a.substring(e+1,b));if("http://www.w3.org/2000/xmlns/"===e)throw new q("Use of reserved namespace: "+e,"XQST0070");return H.X.xa("",e,a.substring(b+1))},aa:function(a,e){if(H.T.matches(a)||H.Ua.matches(a)){if(e)return H.X.g(a.toString(), +e);throw new q("Casting to QName requires a namespace resolver","XPTY0117");}if(H.X.matches(a))return a;f(a,"QName")}},oa={name:"notation",code:"AN",g:function(a){return this.aa(a)},matches:function(){return!1},aa:function(){throw new q("Casting to xs:NOTATION is not possible","XPST0080");}},ka={name:"dateTime",code:"AM",matches:function(a){return c(a.type,"dateTime")},g:function(a){return S(a,"dateTime")},Sb:function(a,e){return new u(a,void 0===e?null:e,"dateTime")},aa:function(a){if(H.dateTime.matches(a))return a; +if(H.nd.matches(a))return H.dateTime.Sb(a.ub,a.zb);if(H.T.matches(a)||H.Ua.matches(a))return H.dateTime.g(a.toString());f(a,"dateTime")}},Ya={name:"date",code:"AA",matches:function(a){return a instanceof u&&"date"===a.type},g:function(a){return S(a,"date")},Sb:function(a,e){var b=(new u(a,e,"date")).toString(),g="-"===b.charAt(0)?11:10;b=H.dateTime.g(b.substring(0,g)+"T00:00:00"+b.substring(g));return new u(b.ub,e,"date")},aa:function(a){if(H.nd.matches(a))return a;if(H.dateTime.matches(a))return H.nd.Sb(a.ub, +a.zb);if(H.T.matches(a)||H.Ua.matches(a))return H.nd.g(a.toString());f(a,"date")}},Fa={name:"time",code:"AT",matches:function(a){return a instanceof u&&"time"===a.type},g:function(a){return S(a,"time")},Sb:function(a,e){var b=new u(a,e,"time");b=H.dateTime.g("1972-01-01T"+b.toString());return new u(b.ub,e,"time")},aa:function(a){if(H.time.matches(a))return a;if(H.dateTime.matches(a))return H.time.Sb(a.ub,a.zb);if(H.T.matches(a)||H.Ua.matches(a))return H.time.g(a.toString());f(a,"time")}},ia={name:"dateTimeStamp", +code:"AMP",matches:function(a){return a instanceof u&&"dateTimeStamp"===a.type},g:function(a){return S(a,"dateTimeStamp")},Sb:function(a,e){return new u(a,e,"dateTimeStamp")},aa:function(a){if(H.cg.matches(a))return a;if(H.dateTime.matches(a)||H.nd.matches(a))return H.cg.Sb(a.ub,a.zb);if(H.T.matches(a)||H.Ua.matches(a))return H.cg.g(a.toString());f(a,"dateTimeStamp")}},Ia={name:"duration",code:"AR",matches:function(a){return c(a.type,"duration")},g:function(a){return xa(a,"duration")},rd:function(a, +e){return new L(a,e,"duration")},aa:function(a){if(H.duration.matches(a))return a;if(H.T.matches(a)||H.Ua.matches(a))return H.duration.g(a.toString());f(a,"duration")}},la={name:"hexBinary",code:"AX",matches:function(a){return"hexBinary"===a.type},g:function(a){return new A(g(a),"hexBinary")},aa:function(a){if(a instanceof A)return new A(a.value,"hexBinary");if(H.T.matches(a)||H.Ua.matches(a))return new A(g(a.toString()),"hexBinary");f(a,"hexBinary")}},La={name:"base64Binary",code:"A2",matches:function(a){return"base64Binary"=== +a.type},g:function(a){return new A(z(a),"base64Binary")},Nn:function(a){return new A(a,"base64Binary")},aa:function(a){if(a instanceof A)return new A(a.value,"base64Binary");if(H.T.matches(a)||H.Ua.matches(a))return new A(z(a.toString()),"base64Binary");f(a,"base64Binary")}},M={anyAtomicType:za,untypedAtomic:Ka,string:Va,anyURI:Ba,"double":ja,decimal:aa,"float":ra,"boolean":Z,integer:U,NOTATION:oa,numeric:X,QName:T,dateTime:ka,date:Ya,time:Fa,dateTimeStamp:ia,duration:Ia,hexBinary:la,base64Binary:La}, +Qa={},E={dateTime:/^\s*(-?(?:[1-9][0-9]{4,}|[0-9]{4})-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}(?:\.[0-9]+)?)(Z|(\+|-)[0-9]{2}:[0-9]{2})?\s*$/,date:/^\s*(-?(?:[1-9][0-9]{4,}|[0-9]{4})-[0-9]{2}-[0-9]{2})(Z|(\+|-)[0-9]{2}:[0-9]{2})?\s*$/,time:/^\s*([0-9]{2}:[0-9]{2}:[0-9]{2}(?:\.[0-9]+)?)(Z|(\+|-)[0-9]{2}:[0-9]{2})?\s*$/,dateTimeStamp:/^\s*(-?[0-9]+-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}(?:\.[0-9]+)?)(Z|(\+|-)[0-9]{2}:[0-9]{2})\s*$/,gYearMonth:/^\s*(-?(?:[1-9][0-9]{4,}|[0-9]{4})-[0-9]{2})(Z|(\+|-)[0-9]{2}:[0-9]{2})?\s*$/, +gYear:/^\s*(-?[1-9][0-9]{4,}|-?[0-9]{4})(Z|(\+|-)[0-9]{2}:[0-9]{2})?\s*$/,gMonthDay:/^\s*--([0-9]{2}-[0-9]{2})(Z|(\+|-)[0-9]{2}:[0-9]{2})?\s*$/,gMonth:/^\s*--([0-9]{2})(Z|(\+|-)[0-9]{2}:[0-9]{2})?\s*$/,gDay:/^\s*---([0-9]{2})(Z|(\+|-)[0-9]{2}:[0-9]{2})?\s*$/,duration:/^\s*\-?P(?:([0-9]+)Y)?(?:([0-9]+)M)?(?:([0-9]+)D)?(?:T(?:([0-9]+)H)?(?:([0-9]+)M)?(?:([0-9]+(?:\.[0-9]*)?)S)?)?\s*$/,dayTimeDuration:/^\s*\-?P(?:([0-9]+)D)?(?:T(?:([0-9]+)H)?(?:([0-9]+)M)?(?:([0-9]+(?:\.[0-9]*)?)S)?)?\s*$/,yearMonthDuration:/^\s*\-?P(?:([0-9]+)Y)?(?:([0-9]+)M)?\s*$/}, +bb={dateTime:function(a){return fa(a)},date:function(a){return a+"T00:00:00"},time:function(a){return"1972-01-01T"+fa(a)},dateTimeStamp:function(a){return fa(a)},gYearMonth:function(a){return a+"-01T00:00:00"},gYear:function(a){return a+"-01-01T00:00:00"},gMonthDay:function(a){return"1972-"+a+"T00:00:00"},gMonth:function(a){return"1972-"+a+"-01T00:00:00"},gDay:function(a){return"1972-01-"+a+"T00:00:00"}},V=[function(a,e){return b(m(a[1],12)+m(a[2],1),e.match(/^\s*\-.*/))},function(a,e){return b(m(a[3], +864E5)+m(a[4],36E5)+m(a[5],6E4)+d(a[6],1),e.match(/^\s*\-.*/))},function(a,e){return b(m(a[1],864E5)+m(a[2],36E5)+m(a[3],6E4)+d(a[4],1),e.match(/^\s*\-.*/))},function(){return 0}],Ga={duration:[0,1],dayTimeDuration:[3,2],yearMonthDuration:[0,3]},H={wj:za,kc:Ba,Yk:La,Ea:Z,nd:Ya,dateTime:ka,cg:ia,ac:null,od:aa,za:ja,duration:Ia,qd:ra,Dl:null,El:null,Fl:null,Gl:null,Hl:null,po:la,Ma:U,language:null,Dk:null,jq:oa,numeric:X,X:T,T:Va,time:Fa,Ua:Ka,ed:null};return{ff:a,Ga:function(a){return za.matches(a)}, +Xl:c,pp:l,Wj:function(a,e,b,g){if(a instanceof h||e instanceof h)return U.wc(g(a.Pa(),e.Pa()));b=b(a.J(),e.J());return Math.abs(b)=a.length?-1:a.charAt(m++);c!==b&&l("Expected '"+b+"', found '"+c+"'")}function k(){for(var b=0,c=m;mv?G.qc(c,l):G.qc(b,k)}},hc:function(a){return G.jh(a)?a.parent:a.parentNode},ii:function(a,b,d){a.setAttributeNS("http://www.w3.org/2000/xmlns/",""===b?"xmlns":"xmlns:"+b,d)},De:function(a,b){b=void 0===b?d.Ib:b;for(var c=[{prefix:"xml",uri:F.xml}],k={xml:!0},r,l=b(a);null!== +(r=l.next());)if(1===r.nodeType){var w=G.ma(r);""===w.prefix&&""===w.uri&&(k[""]=!0);r=r.attributes;for(w=0;wa||a>this.value.length)throw new q("Array index ("+a+") out of bounds (1 to "+this.value.length+")","FOAY0001");return this.value[a-1]},size:function(){return this.value.length},oa:function(){for(var a="[",d=0;dd;d++)0!==d&&(a+=","),a+=B.oa(this.value[d]); +4<=this.value.length&&(a+=",...("+this.value.length+")");return a+"]"},flatten:function(a){for(var b=0;b"+b.va(),k=f[d];if(k)return k;k=c(a,b);return f[d]=k}function b(b,c){B.assert(b instanceof I.mc);B.assert(c instanceof I.mc);switch(a(b,c)){case 0:case 1:return b;case 2:return c;case 3:case 4:var d=b.ea(),f=c.ea();d={p:Xa(d.p,f.p),u:[d,f]};return I.ni(d)}}function d(b,c){B.assert(b instanceof I.mc);B.assert(c instanceof I.mc);switch(a(b,c)){case 0:case 1:return c;case 2:return b;case 3:var d= +b.ea(),f=c.ea();d={p:d.p.startsWith(f.p)?d.p:f.p.startsWith(d.p)?f.p:d.p.charAt(0)===f.p.charAt(0)?d.p.charAt(0):"",i:[d,f]};return I.ni(d);case 4:return I.Lh.pa}}function m(a,b){return 0===a&&0===b?0:0!==a&&1!==a||0!==b&&1!==b?0!==a&&2!==a||0!==b&&2!==b?4===a||4===b?4:3:2:1}function c(b,d){function f(a,b){return(a||"")===(b||"")?0:a&&!b?2:b&&!a?1:4}function k(a){return 1===a?2:2===a?1:a}function r(a){return a.n||a.e||a.u||a.i||a.d}B.assert(b instanceof I.mc);B.assert(d instanceof I.mc);var t=b.ea(), +g=d.ea(),K=b.va(),A=d.va();if("F"===t.p){if(!(b instanceof I.Hh&&d instanceof I.Hh))return 3;B.assert(b.Zc);return b.Zc(d)}if(K===A)return 0;if(b.Ge())return d.Ge()?0:/^A[ODF]/.test(g.p)?1:"A"===g.p||""===g.p?2:4;if(d.Ge())return k(c(d,b));if(t.p===g.p){if(b.pg())return t.u&&g.u?3:t.e&&g.e?f(t.e,g.e):t.n&&g.n?f(t.n,g.n):r(t)&&!r(g)?2:r(g)&&!r(t)?1:0;if(b.Ga())return 0;if("FA"===t.p)return t=b.ze?b.ze():J.B.Qa,g=d.ze?d.ze():J.B.Qa,l(t,g);if("FM"===t.p)return t=a(b.ye(),d.ye()),g=l(b.Sj(),d.Sj()),m(t, +g);if(!(b instanceof I.Hh&&d instanceof I.Hh))return 3;B.assert(b.Zc);return b.Zc(d)}return t.p.startsWith(g.p)?t.u?3:2:g.p.startsWith(t.p)?t.u?3:1:4}function l(b,c){B.assert(b instanceof J.Ka);B.assert(c instanceof J.Ka);var d=b.na;var f=c.na;d=d===f?pb.Dc:(d|f)===d?pb.gd:(d|f)===f?pb.Ud:0===(d|f)?pb.wd:pb.Hk;f=a(b.ca,c.ca);return m(d,f)}var f={};return{Dc:0,gd:1,Ud:2,Hk:3,wd:4,Zc:a,Ko:function(b,c){B.assert(b instanceof I.mc);B.assert(c instanceof I.mc);var d=a(b,c);return 0===d||2===d},fq:b,ug:function(a){B.assert(0< +a.length);return a.slice(1).reduce(function(a,c){return b(a,c)},a[0])},qo:function(a){B.assert(0a};case "+":return function(a){return 0a};case 6:return function(a){return 0b;case ">":case "gt":return 0=":case "ge":return 0<=b; +case "<=":case "le":return 0>=b;case "!=":case "ne":return 0!==b;default:throw new q("Unknown operator "+a,"SXJS0003");}}function e(a,b){return a.map(function(a){var e=b.fixed.ya;a=e.qa(a,"dataType");e=null===a?null:e.evaluate(a,b).next();return"number"===e?function(a){return null===a?null:S.za.oi(a.toString())}:"text"===e?function(a){return null===a?null:S.T.aa(a)}:function(a){return a}})}function h(a,b){return a.substring(0,b.length)===b}function p(a,b){return a.substring(a.length-b.length)===b} +function y(a,b){return b&&(b=b.next())?b.toString():a.collation}function u(a,b){var e=a?h(a,"http://www.w3.org/2013/collation/UCA")&&36b.zg?1:a.zg===b.zg?0:-1});return D.K(h.map(function(a){return a.item}))}},Vi:x,Fm:function(a,b){switch(a){case "=":case "eq":return b;case "!=":case "ne":return!b;case "<":case "lt":case ">":case "gt":case ">=":case "ge":case "<=":case "le":throw new q("Operator "+a+" not allowed for unordered types","SXJS0003");default:throw new q("Unknown operator "+ +a,"SXJS0003");}},Wi:function(a,b){function e(a){return S.T.Fe(a)?d(a.Gd()):a.Gd()}var c=new cb,d=a.collationKey;if(!d)throw new q("Collation is unsuitable for keys and grouping","XTDE1110");var h={Se:function(b,e){return vb.Cj(D.K(b),D.K(e),a.ia)},hash:function(a){return a.map(e).join()}},g={Se:function(a,b){return e(a)===e(b)},hash:function(a){return e(a)}};c.options=b?h:g;return c},Op:"http://www.w3.org/2013/collation/UCA",Wp:"http://www.w3.org/xslts/collation/caseblind"}}();var wb=function(){var a={};return{register:function(b,d){a[b]=d},find:function(b){return a[b]},er:a}}();var xb=function(){function a(b){var d=G.Ab,m={"p.any":function(){return function(){return!0}},"p.never":function(){return function(){return!1}},"p.booleanExp":function(a){var b=P.Kb(a);return function(a,c){var d=c.ja();d.focus=D.jc(a);return P.dg(b(d))}},"p.genNode":function(a){var b=P.Kb(a);return function(a,c){if(!G.da(a))return!1;for(var d=G.Ab.Ib(a),f;null!==(f=d.next());){var k=c.ja(!1);k.focus=D.jc(f);for(f=b(k);null!==(k=f.next());)if(G.isSameNode(k,a))return!0}return!1}},"p.genPos":function(a){var b= +I.Xc(a.test).ta(),c=P.Kb(a);return function(a,f){if(!b(a))return!1;var k=f.fixed.ya,r=f.ja(!1),l=d.pb(G.hc(a)).filter(b);for(r.focus=D.Da(l);null!=(l=r.focus.next());)if(l===a&&k.dg(c(r)))return!0;return!1}},"p.nodeSet":function(a){var b=P.Kb(a);return function(a,c){return b(c).some(function(b){return b===a})}},"p.nodeTest":function(a){return I.Xc(a.test).ta()},"p.simPos":function(a){var b=I.Xc(a.test).ta(),c=parseInt(a.pos,10);return function(a){return b(a)&&d.Oe(a).filter(b).count()===c-1}},"p.venn":function(b){var c= +b.C,d=a(c[0]),k=a(c[1]);b=b.op;switch(b){case "union":return function(a,b){return d(a,b)||k(a,b)};case "intersect":return function(a,b){return d(a,b)&&k(a,b)};case "except":return function(a,b){return d(a,b)&&!k(a,b)};default:throw new q("unknown op "+b,"SXJS0003");}},"p.withCurrent":function(b){var c=a(b.C[0]);return function(a,b){var d=b.ja(!0);d.Ha[0]=[a];return c(a,d)}},"p.withPredicate":function(b){b=b.C;var c=a(b[0]),d=P.Fc(b[1]);return function(a,b){if(!c(a,b))return!1;var f=b.ja(!1);f.focus= +D.jc(a);return P.dg(d(f))}},"p.withUpper":function(b){var c=b.C,d=a(c[0]),k=a(c[1]),r=b.axis;return"parent"===r?"true"===b.upFirst?function(a,b){var c=G.hc(a);return c&&k(c,b)&&d(a,b)}:function(a,b){var c=G.hc(a);return c&&d(a,b)&&k(c,b)}:function(a,b){if(!d(a,b))return!1;for(var c=G.Xk[r](a),f;null!==(f=c.next());)if(k(f,b))return!0;return!1}}}[b.N];if(m)return m(b);throw new q("Unimplemented pattern "+b.N,"SXJS0002");}return{Df:a,matches:function(a,d,m){m.Mi(null);a=a(d,m);m.jk();return a}}}();var yb=function(){function a(a,b,l,f){function c(a){for(var b=[],e=a.length-1;0<=e;e--)b.push({Bg:a[e],action:a[e].C[1],pattern:xb.Df(a[e].C[0])});return b}function r(a){a._saxonAccumulators||(a._saxonAccumulators={});a._saxonAccumulators[l]={};var b=m(A,a);b&&(h=z(b,a));a._saxonAccumulators[l].pre=h;d.pb(a).sa(r);(b=m(x,a))&&(h=z(b,a));a._saxonAccumulators[l].post=h}function m(a,b){for(var c=0,d=a.length;cf.indexOf(a[0].value))throw new q("Invalid value "+g+"="+a[0],"FOJS0005");return a[0].value}throw new q("Invalid option: "+b+": must be "+c,"XPTY0004");}return d}function b(a,b){function c(a){throw new q(a, +"FOJS0001");}function d(){return y=f()}function f(){for(y="";;){if(p>=a.length)return["eof"];var b=a.charAt(p++);if(!/[ \n\r\t]/.test(b))break}switch(b){case "[":case "{":case "]":case "}":case ":":case ",":return[b];case '"':for(b=!1;;){var e=a.charAt(p++);if('"'!==e||b)y+=e,b="\\"===e&&!b;else return["string",y];p>=a.length&&c("Unclosed quotes in string literal")}case "-":case "0":case "1":case "2":case "3":case "4":case "5":case "6":case "7":case "8":case "9":for(y+=b;p=b){if(y+=b,++p>=a.length)break}else break;if(["true","false","null"].includes(y))return[y];c("Unknown constant "+y);break;default:return c("Unexpected character '"+b+"' ("+Ma.Bc(b)+") at position "+p),-1}}function k(a){y[0]!==a&&c("Expected "+a+", found "+y[0])}function x(a){return y[0]=== +a?(d(),!0):!1}function e(a){if(y[0]===a)return d(),!0;if(","===y[0])return d(),!1;c("Expected ',' or '"+a+"', found '"+y[0]+"'")}function h(){switch(y[0]){case "[":d();b.Am();if(!x("]")){do h();while(!e("]"))}b.ul();break;case "{":d();b.Bm();if(!x("}")){do k("string"),b.ql(y[1]),d(),k(":"),d(),h();while(!e("}"))}b.vl();break;case "string":b.tl(y[1]);d();break;case "number":b.sl(y[1]);d();break;case "true":case "false":b.pl(y[0]);d();break;case "null":b.rl();d();break;default:c("Unexpected token "+ +y[0])}}a=a.replace(/^[\uFEFF]/,"");var p=0,y=d();h();k("eof");return b.result()}function d(a){try{return JSON.parse('"'+a+'"')}catch(z){throw new q(z.toString(),"FOJS0001");}}function m(a,b){var d=b.Yb,g=b.Vf;var f=g?function(a){return g.evaluate([[C.O.T.g(c(a))]],d).next().toString()}:function(){return"�"};a=a.replace(/[\x00-\x08\x0B\x0C\x0E-\x0F\x80-\x9F\uFFFF]/g,f);return a=a.replace(/[\uD800-\uDFFF]+/g,function(a){for(var b="",e=0;ec||e=== +a.length-1&&"\udc00">c?f(c):c}return b})}function c(a){for(a=a.charCodeAt(0).toString(16);4>a.length;)a="0"+a;return"\\u"+a.toUpperCase()}function l(b,c){this.Hb=[];this.hf=[];this.Yb=c;a(b,"liberal","boolean",!1);this.Vf=a(b,"fallback","function",null);this.Vd=a(b,"escape","boolean",!1);this.Ug=a(b,"duplicates","string","use-first",["reject","use-first","use-last"]);if(this.Vd&&this.Vf)throw new q("parse-json: cannot use fallback with escape:true()","FOJS0005");}function f(b,c){this.Hb=[];this.hf= +[];this.Vg=[];this.Yb=c;a(b,"liberal","boolean",!1);if(a(b,"validate","boolean",!1))throw new q("json-to-xml: validate option not supported in a non-schema-aware processor","FOJS0004");this.Vf=a(b,"fallback","function",null);this.Vd=a(b,"escape","boolean",!1);this.Ug=a(b,"duplicates","string","use-first",["reject","use-first","retain"]);if(this.Vd&&this.Vf)throw new q("json-to-xml: cannot use fallback with escape:true()","FOJS0005");}var k=F.cb,r=C.O,v=G.Ab;l.prototype={Hb:[],hf:[],Yb:null,Vd:!1, +Vf:null,Ug:"use-first",xh:function(a){return this.Vd?JSON.stringify(a).replace(/^"|"$/g,"").replace(/\\"/g,'"').replace(/[\uD800-\uDFFF]/g,c):m(a,this)},Oa:function(){return this.Hb[this.Hb.length-1]},Oc:function(a){if(0===this.Hb.length)this.Hb.push(a);else if(this.Oa()instanceof mb)this.Oa().value.push(a);else{var b=this.Oa(),c=r.T.g(this.hf.pop());if(b.Xa(c))switch(this.Ug){case "reject":throw new q("json-to-xml: duplicate key '"+c.toString()+"'","FOJS0003");case "use-first":return}b.Ta(c,a)}}, +rl:function(){this.Oc([])},pl:function(a){this.Oc([r.Ea.g(a)])},sl:function(a){this.Oc([r.za.fa(parseFloat(a))])},tl:function(a){this.Oc([r.T.g(this.xh(d(a)))])},ql:function(a){this.hf.push(this.xh(d(a)))},Am:function(){this.Hb.push(new mb([]))},ul:function(){this.Oc([this.Hb.pop()])},Bm:function(){this.Hb.push(new cb)},vl:function(){this.Oc([this.Hb.pop()])},result:function(){return void 0!==this.Oa()[0]?this.Oa()[0]:null}};f.prototype={Hb:[],hf:[{}],Vg:[],Yb:null,Vf:null,Vd:!1,Ug:"use-first",xh:function(a){return this.Vd? +JSON.stringify(a).replace(/^"|"$/g,"").replace(/\\"/g,'"').replace(/[\uD800-\uDFFF]/g,c):m(a,this)},Oa:function(){return this.Hb[this.Hb.length-1]},Oc:function(a){if(0===this.Hb.length)a.setAttribute("xmlns",k),this.Hb.push(a);else{var b=this.Oa();if("map"===b.tagName){var c=this.hf.pop(),d=this.Vg[this.Vg.length-1];if(c in d)switch(this.Ug){case "reject":throw new q("parse-json: duplicate key '"+c.toString()+"'","FOJS0003");case "use-first":return}d[c]=a;a.setAttribute("key",c);this.Vd&&/\\/.test(c.toString())&& +a.setAttribute("escaped-key","true")}b.appendChild(a)}},rl:function(){var a=this.Yb.wa.createElementNS(k,"null");this.Oc(a)},pl:function(a){var b=this.Yb.wa.createElementNS(k,"boolean");b.appendChild(this.Yb.wa.createTextNode(a.toString()));this.Oc(b)},sl:function(a){var b=this.Yb.wa.createElementNS(k,"number");b.appendChild(this.Yb.wa.createTextNode(a.toString()));this.Oc(b)},tl:function(a){var b=this.Yb.wa.createElementNS(k,"string");if(""!==a){a=this.xh(d(a));var c=this.Yb.wa.createTextNode(a); +this.Vd&&/\\/.test(a)&&b.setAttribute("escaped","true");b.appendChild(c)}this.Oc(b)},ql:function(a){this.hf.push(this.xh(d(a)))},Am:function(){var a=this.Yb.wa.createElementNS(k,"array");this.Hb.push(a)},ul:function(){this.Oc(this.Hb.pop())},Bm:function(){var a=this.Yb.wa.createElementNS(k,"map");this.Hb.push(a);this.Vg.push({})},vl:function(){this.Vg.pop();this.Oc(this.Hb.pop())},result:function(){return this.Oa()}};return{fk:function(a,c,d){return b(a,new l(c,d))},lp:function(a,c,d){return b(a, +new f(c,d))},Up:function(b,f){function l(a){throw new q("Invalid input to xml-to-json(): "+a,"FOJS0006");}function g(a){0!==h.xe(a).length&&l("node "+a.tagName+" must have no element children")}function m(a){v.pb(a).filter(function(a){return 3===a.nodeType&&a.nodeValue&&""!==Na.trim(a.nodeValue)}).next()&&l("node "+a.tagName+" must have no text content")}function A(a){try{return r.Ea.g(a).value}catch(y){l("invalid boolean: '"+a+"'")}}function x(a){try{JSON.parse('"'+a+'"')}catch(y){throw new q("invalid escape sequence: "+ +y.toString(),"FOJS0007");}}function e(a,b){b=void 0===b?!0:b;if(9===a.nodeType||11===a.nodeType){var f=h.xe(a);1!==f.length&&l("document node has "+f.length+" element children");return e(f[0])}if(1===a.nodeType){var p=!1;if(a.namespaceURI===k)switch(v.ob(a).sa(function(e){if(0>e.name.indexOf(":")||e.namespaceURI===k)"key"===e.name||"escaped-key"===e.name?"escaped-key"===e.name?(b||"map"===h.hc(a).localName||l("@escaped-key is allowed only on children of map"),A(e.value)&&x(a.getAttribute("key"))): +b||"map"===h.hc(a).localName||l("@key is allowed only on children of map"):"escaped"===e.name?("string"!==a.localName&&l("@escaped is allowed only on string"),p=A(e.value)):l("invalid attribute "+e.name)}),a.hasAttribute("escaped-key")&&!b&&"map"!==h.hc(a).localName&&l("escaped-key is allowed only on children of map"),a.localName){case "null":return v.pb(a).filter(function(a){return 8!==a.nodeType&&7!==a.nodeType}).next()&&l("null element must have no content"),"null";case "string":g(a);f=a.textContent; +if(p)f=f.replace(/^"/g,'\\"').replace(/^[\b]/g,"\\b").replace(/^\f/g,"\\f").replace(/^\n/g,"\\n").replace(/^\r/g,"\\r").replace(/^\t/g,"\\t").replace(/^\//g,"\\/").replace(/([^\\])"/g,'$1\\"').replace(/([^\\])[\b]/g,"$1\\b").replace(/([^\\])\f/g,"$1\\f").replace(/([^\\])\n/g,"$1\\n").replace(/([^\\])\r/g,"$1\\r").replace(/([^\\])\t/g,"$1\\t").replace(/([^\\])\//g,"$1\\/").replace(/[\u0001-\u001F\u007F-\u009F]/g,c),x(f);else return JSON.stringify(f).replace(/\//g,"\\/");return'"'+f+'"';case "number":g(a); +try{f=r.za.g(a.textContent)}catch(ma){l("invalid number")}isFinite(f.J())||l("NaN and INF not allowed");return f.toString();case "boolean":return g(a),A(a.textContent),r.Ea.g(a.textContent).toString();case "array":m(a);var y="[",t="";h.xe(a).forEach(function(a){y+=t+e(a,!1);t=","});return y+"]";case "map":m(a);var Y="{",N="",S={};h.xe(a).forEach(function(a){a.hasAttribute("key")||l("child element of map must have a key");var b=h.getAttribute(a,"key"),c=b,g=h.getAttribute(a,"escaped-key"),f=!1;g&& +A(g)&&(f=!0,c=d(b));S[c]&&l("duplicate key '"+b+"'");S[c]=!0;Y+=N+(f?'"'+b+'"':JSON.stringify(b).replace(/\//g,"\\/"))+":"+e(a,!1);N=","});return Y+"}";default:l("unknown local name "+a.localName)}else l("wrong namespace "+a.namespaceURI)}else h.da(a)||l("not a node"),Error.Gj&&Error.Gj(),l("wrong node kind "+a.nodeType)}var h=G;a(f,"indent","boolean",!1);return e(b)}}}();var Ab=function(){function a(a,b,c,d,m){c="xml"===c?b.fixed.tc:b.fixed.Od;b=b.fixed.Ah;var f=c[a];if(!f||f instanceof q){f=b[a];if(!f){try{f=d()}catch(z){f=z}b[a]=f}f=m(f);c[a]=f}if(f instanceof q)throw f;return f}function b(a,b){b||(b="utf-8");var c=a.responseText||a;if(b.startsWith("utf")&&0<=c.indexOf("�"))throw new q("External file contains non-Unicode characters","FOUT1190");return c}function d(a){if(0<=a.indexOf("\x00"))throw new q("External file contains non-XML characters","FOUT1190");return a} +function m(a){""===a.charAt(0)&&(a=a.substring(1));return a}function c(a,b,c){if((a=a[0].next())&&G.Bf(a.toString()))return a.toString();b=b.fixed.ya.yb(c,b);if(null===b||"#UNDEFINED"===b)throw new q("No base URI for relative resolution","FODC0002",c);return null===a?null:Da.$c(a.toString(),b)}return{Uk:c,Zh:function(a,b,d){try{return c(a,b,d)}catch(r){if(r instanceof q&&"XPTY0004"===r.code)throw r;throw new q(r.message,"FOUT1170",d);}},zj:function(a){if(""===a)return null;if(!["utf-8","utf-16", +"utf-16be","iso-8859-1"].includes(a.toLowerCase()))throw new q("Unrecognized encoding "+a,"FOUT1190");return a},dl:d,el:m,ve:function(b,c){if(0<=b.indexOf("#"))throw new q("Fragments not supported in external document URIs","FODC0002");return a(b,c,"xml",function(){try{var a=Da.readFile(b,!0)}catch(r){if(r instanceof q&&"FOUT1190"===r.code)throw new q(r.message,"FODC0002");throw r;}return a},function(a){if(a instanceof q)return a;a=a.responseText||a;a=m(d(a));a=G.fe(Da.parseXmlFromString(a));a._saxonBaseUri= +b;a._saxonDocUri=b;return a})},Xn:function(c,d){if(0<=c.indexOf("#"))throw new q("Fragments not supported in text document URIs","FOUT1170");return a(c,d,"text",function(){try{var a=Da.readFile(c,!0)}catch(r){if(r instanceof q)throw new q(r.message,"FOUT1170");throw r;}return a},function(a){if(a instanceof q)return a;var c=a.responseText||a;c=m(c);a.responseText?a.responseText=c:a=c;return b(a,"utf-8")})},Kj:function(c,f,k,r){if(0<=c.indexOf("#"))throw new q("Fragments not supported in text document URIs", +"FOUT1170");return a(c,f,"text",function(){try{var a=Da.readFile(c,!0)}catch(w){if(w instanceof q&&"FOUT1190"===w.code)throw w;throw new q("Cannot retrieve unparsed-text "+c.toString()+" "+w.toString(),"FOUT1170",k);}return a},function(a){if(a instanceof q)return a;var c=a.responseText||a;c=m(d(c));a.responseText?a.responseText=c:a=c;return b(a,r)})},pm:function(a){try{return a(),D.ka(!0)}catch(f){if(f instanceof q&&"XPTY0004"===f.code)throw f;return D.ka(!1)}}}}();var Cb=function(){function a(){this.Vh=[];this.Yh=[]}function b(a,b){var c=f.call(this)||this;c.$=a;c.Sf=!1;c.level=0;c.rh=!1;c.first=!0;c.separator=C.O.T.g(b);c.$a=!1;return c}function d(a){var b=f.call(this)||this;b.$=a;b.Sf=!1;b.level=0;b.rh=!1;b.$a=!1;return b}function m(a){this.Bb=a}function c(a){var b=f.call(this)||this;b.Jm=!1;b.uk=!1;b.done=!1;b.Dp(a);return b}function l(a){this.vf=(this.context=a)?a.wa:Da.Ol().createDocument();this.Dg=[];this.Xd=null;this.level=0;this.If=null;return this} +function f(){this.$=null;return this}function k(){}k.prototype.tb=function(){};k.prototype.hb=function(){};k.prototype.Ba=function(){};k.prototype.Na=function(){};k.prototype.text=function(){};k.prototype.Sa=function(){};k.prototype.Ra=function(){};k.prototype.append=function(){};k.prototype.close=function(){};n(f,k);f.prototype.tb=function(a){this.$.tb(a)};f.prototype.hb=function(){this.$.hb()};f.prototype.Ba=function(a,b,c,d){this.$.Ba(a,b,c,d)};f.prototype.Na=function(){this.$.Na()};f.prototype.text= +function(a,b){this.$.text(a,b)};f.prototype.Sa=function(a,b){this.$.Sa(a,b)};f.prototype.Ra=function(a,b,c){this.$.Ra(a,b,c)};f.prototype.append=function(a,b){this.$.append(a,b)};f.prototype.close=function(){this.$.close()};f.prototype.Rf=function(a){this.$=a;return this};f.prototype.Dp=function(a){this.$=a};n(l,k);l.prototype.Bp=function(){this.vf=new m(this.vf)};l.prototype.tb=function(a){if(0===this.level++){var b=this.Xd=this.vf.createDocumentFragment();a&&a.BASE_URI&&(b._saxonBaseUri=a.BASE_URI); +this.Dg.push(b)}else throw new q("Builder.startDoc() not at top level");};l.prototype.hb=function(){0===--this.level&&(this.Xd=null)};l.prototype.ai=function(a){0===this.level?this.Dg.push(a):this.Xd.appendChild(a)};l.prototype.Ba=function(a,b,c,d){var f=this.vf.createElementNS(a.uri,a.toString());d.BASE_URI&&(f._saxonBaseUri=d.BASE_URI);d.ORIGINAL_NODE&&(f._saxonOriginal=d.ORIGINAL_NODE);d.CALLBACK&&d.CALLBACK(f);this.ai(f);this.Xd=f;this.level++;this.If=null;b.forEach(function(a,b){f.setAttributeNS(b.uri, +b.toString(),a.value)});for(var g in c)c.hasOwnProperty(g)&&(a=c[g],""===g?f.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns",a):f.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:"+g,a))};l.prototype.Na=function(){0===--this.level?this.Xd=null:this.Xd=this.Xd.parentNode;this.If=null};l.prototype.text=function(a){this.If?this.If.appendData(a):(a=this.vf.createTextNode(a),this.ai(a),0a?void 0:this.Yh[a]};a.prototype.set=function(a,b){var c=this.ef(a);0<=c?this.Yh[c]=b:(this.Vh.push(a),this.Yh.push(b))};a.prototype.forEach=function(a){for(var b=0;bf||c.index===f&&e)&&d.push({Ie:!1,T:h(a.substring(f,c.index))}),d.push({Ie:!0,groups:c,T:h(c[0])}),f=b.lastIndex,0===c[0].length&&b.lastIndex++,g++>10*a.length)throw new q("analyze-string looping???","SXJS0004"); +a.length>f&&d.push({Ie:!1,T:h(a.substring(f,a.length))});return d}function z(a){var b="compAtt"===a.N,c=P.Fc(P.qa(a,"name")),d=P.Fc(P.qa(a,"namespace"));return function(e){function h(){throw new q((b?"Attribute":"Element")+" name '"+f+"' is not a lexical QName",b?"XTDE0850":"XTDE0820",a);}var f=Na.trim(c(e).next().toString());if(d){e=d(e).next().value;if(!P.Rp(e))throw new q((b?"Attribute":"Element")+" namespace '"+e+"' is invalid",b?"XTDE0865":"XTDE0835",a);var g=C.O.X;if(""===e&&f.includes(":"))g= +g.xa("","",f.replace(/^.*:/,""));else if(f.includes(":")){var x=f.split(":");""!==x[0]&&""!==x[1]||h();g=g.xa(x[0],e,x[1])}else g=""===e?g.xa("","",f):g.xa(b?"ns0":"",e,f)}else{if(b&&"xmlns"===f)throw new q("Attribute must not be named xmlns","XTDE0855",a);try{g=P.qk(a,f,!b)}catch(L){if(L instanceof q){if("XTDE0290"===L.code)throw new q((b?"Attribute":"Element")+" name '"+f+"' has an unbound prefix",b?"XTDE0860":"XTDE0830",a);"FORG0001"===L.code&&h()}throw L;}}if("http://www.w3.org/2000/xmlns/"=== +g.uri)throw new q("Disallowed namespace "+g.uri,b?"XTDE0865":"XTDE0835",a);return g}}b.prototype.tb=function(){};b.prototype.hb=function(){};b.prototype.Ba=function(){};b.prototype.ob=function(){};b.prototype.Hc=function(){};b.prototype.Na=function(){};b.prototype.text=function(){};b.prototype.Sa=function(){};b.prototype.Ra=function(){};b.prototype.append=function(){};b.prototype.close=function(){};n(a,b);a.prototype.mi=function(a,b,c){var d=this.ie[a];if(d&&d!==b)if(c){if(this.Lj[a])throw new q("Two conflicting bindings for prefix '"+ +a+"'","XTDE0430");if(this.Id.prefix===a){for(d=a+"_9";this.ie[d];)d+="9";this.Id=C.O.X.xa(d,this.Id.uri,this.Id.local);this.ie[d]=this.Id.uri}this.ie[a]=b}else return""===a&&(a="NULL"),this.mi(a+"0",b,!1);c&&(this.Lj[a]=!0);for(c=this.ph.length-1;0<=c;c--)if(d=this.ph[c],d[0]===a)return d[1]!==b&&(this.ie[a]=b),a;if(""!==a||""!==b)this.ie[a]=b;return a};a.prototype.tb=function(){0===this.level&&(this.$.tb({BASE_URI:this.pc,ORIGINAL_NODE:this.Ke}),this.ph=[]);this.we();this.level++;this.$a=this.lg= +!1};a.prototype.hb=function(){this.level--;0===this.level&&this.$.hb();this.$a=!1};a.prototype.Ba=function(a){this.we();this.level++;this.lg=!0;this.Id=a;this.ik=new Cb.$e;this.ie={};this.Lj={};this.mi(a.prefix,a.uri,!1);this.Li=this.Ke;this.$a=!1};a.prototype.ob=function(a,b){if(0===this.level)this.$.append(new $a(a,b,null));else{if(!this.lg){if(this.Id)throw new q("Cannot write attribute ("+a.ha()+"="+b+") after writing child nodes (level="+this.level+", start tag = "+this.Id+")","XTDE0410");throw new q("Cannot attach an attribute ("+ +a.ha()+"="+b+") to a document node","XTDE0420");}if(""!==a.uri){["","xmlns"].includes(a.prefix)&&(a=a.me("ns_"));var c=this.mi(a.prefix,a.uri,!1);c!==a.prefix&&(a=a.me(c))}this.ik.set(a,{value:b,ec:0})}};a.prototype.Hc=function(a,b){if(0===this.level)this.$.append(new ab(a,b));else{if(!this.lg)throw new q("Cannot write namespace after writing child nodes","XTDE0410");if(""===a&&""===this.Id.uri)throw new q("Cannot add default namespace declaration to a no-namespace element","XTDE0440");this.mi(a, +b,!0)}};a.prototype.Na=function(){this.we();this.$.Na();this.level--;for(var a=this.gm.pop();0h.findIndex(function(a){return a===d})&&(a[d].group.push(b),h.push(d))):(d=a.length,a.push({group:[b],key:[c]}),e.Ta(c,d),h.push(d))})})},by_c:function(){var b=P.qa(a,"collation");b=b?P.evaluate(b,d).next().toString():Q.ag;b=Q.Pj(b,d);var e=P.qa(a,"key"),c=Q.Wi(b,!0);return h(function(a,b){var d=P.evaluate(e,g).expand();if(c.Xa(d)){var h=c.get(d); +a[h].group.push(b)}else h=a.length,a.push({group:[b],key:d}),c.Ta(d,h)})}};k.adjacent_c=k.adjacent;var x=a.algorithm+(P.Gc(a,"c")?"_c":"");try{var l=k[x]()}catch(xa){if(xa instanceof q&&"FOCH0002"===xa.code)throw new q("Unknown collation:"+xa.message,"XTDE1110");throw xa;}var m=P.Ec(a,"sortKey");if(0c)return-1;if(0/g,"? >").replace(/^\s+/,"");e.Ra(h,f)}},sequence:c,sourceDoc:function(a){var b=P.Fc(P.qa(a,"href")),c=d(a.C[1]);return function(d,e){var h=d.ja(!1),f=null===b?"":b(d).next().toString();f=Da.$c(f,P.yb(a,d));f=Ab.ve(f,d);var g=d.fixed.Ch;null!==g&&(f=g(f));h.focus=D.jc(f);h.Xb=null;c(h,e)}},useAS:function(a){return function(b,d){var f= +P.Rj(a,b,"attributeSet"),e=b.ja(!0);e.Ja="attribute set";e.La=f;f=f.actor;f.C&&c(f)(e,d)}},valueOf:function(a){var b=P.Kb(a),c={};P.Gc(a,"d")&&(c.DISABLE_ESCAPING=!0);return function(a,e){var d=r(b(a));e.text(d,c)}}};return{vj:w,Ln:d,yf:function(b){return new a(b)},push:function(a,b,c){if("undefined"===typeof c)throw B.Gb(Error().stack),new q("No output for "+m(a));if(t[a.N]){var f=d(a);try{f(b,c)}catch(p){throw p instanceof q&&!p.oe&&Ea(p,a),p;}}else{f=P.Fc(a);try{for(var e=f(b),h;null!=(h=e.next());)c.append(h)}catch(p){throw p instanceof +q&&!p.oe&&Ea(p,a),p;}}},Ni:f,Oi:l,xm:v}}();var Db=function(){function a(a,b,e,c,d){function f(a){return a.nodeType===g.nodeType&&(null===x?!0:p.ma(a).ia(x))}function h(a){return null===p.hc(a)}var k=d.fixed.ya;if(b){var g=k.evaluate(b,d).next();if(!g||!p.da(g))throw new q("xsl:number/@select must yield a single node","XTTE1000");}else d.Wc("XTTE0990","xsl:number"),g=d.lb();var x=p.ma(g),l=f;if(null!==e){var N=xb.Df(e);l=function(a){return xb.matches(N,a,d)}}if(null===c)b=h;else{var m=xb.Df(c);b=function(a){return h(a)||xb.matches(m,a,d)}}switch(a){case "simple":return a= +y.Oe(g).filter(f),D.Vb(a.count()+1);case "single":a=y.Ib(g).filter(l).next();var t=y.Ib(g).filter(b).next();a=null===a?null:null!==y.Ib(a).filter(function(a){return p.isSameNode(a,t)}).next()?a:null;if(null===a)return D.R;a=y.Oe(a).filter(l);return D.Vb(a.count()+1);case "multi":a=D.K(y.Ib(g).filter(l).expand().reverse());t=y.Ib(g).filter(b).next();a=a.filter(function(a){return null!==y.Ib(a).filter(function(a){return p.isSameNode(a,t)}).next()});var U=u.Ma.fa;return a.Ia(function(a){return U(y.Oe(a).filter(l).count()+ +1)});case "any":return e=function(a,b){return p.qc(b,a)},a=D.qj(y.kk(g).filter(l),y.Ib(g).filter(l),e),t=D.qj(y.kk(g).filter(b),y.Ib(g).filter(b),e).next(),null===t&&B.ra("from pattern selected empty"),a=a.filter(function(a){return 0<=p.qc(a,t)}),a=a.count(),0===a?D.R:D.Vb(a);default:B.ra("unknown xsl:number/@level "+a)}}function b(a,b,e,c,d,f,h){function p(a){""===a&&(a="1");if(/^[\x01-\x7f]*$/.test(a)){a=a.split(/\b/);var b=function(a){return/\w+/.test(a)}}else{if(a.length!==Ma.Bc(a).length)throw new q("Cannot handle non-BMP characters in format-number picture", +"SXJS0002");var e=Bb.vj(a,"[\\p{Nd}\\p{Nl}\\p{No}\\p{Lu}\\p{Ll}\\p{Lt}\\p{Lm}\\p{Lo}]+","",!0,!1);b=function(a,b){return e[b].Ie};a=e.map(function(a){return a.T.toString()})}for(var c={prefix:"",uf:[],Ig:""},d=".",f=0;f=k.uf.length?k.uf[k.uf.length-1]:k.uf[b];0!==b&&(u+=f.sm);f=f.cl;d&&(f+=";o");f=Db.Mj(a.J(),f);null!==e&&null!==c&&(f=Db.tj(f,e,c));u+=f});u+=k.Ig;return D.ua(u)}(a.expand())}function d(a,b,e,c,d){var f=d.fixed.ya,h=[1];null!==e&&(h=f.evaluate(e,d).next().toString().split(/\s+/).map(function(a){if(!/^-?[0-9]+$/.test(a))throw new q("xsl:number/@start-at must be a sequence of integers. Offending value: "+ +a,"XTSE0020");return parseInt(a,10)}));if(b&&c){a=a.next();if(null===a)return null;try{a=u.Ma.aa(a.round(0))}catch(Ka){return null}a=D.K([a])}return a.Ia(function(a,b){a=u.numeric.matches(a)?a.Jg():u.za.oi(a.toString());if(0>a.J())throw new q("xsl:number/@value is less than zero","XTDE0980");try{a=u.Ma.aa(a.round(0))}catch(ja){throw ja.code="XTDE0980",ja;}var e=b>=h.length?h[h.length-1]:h[b];1!==e&&(a=u.Ma.fa(a.J()+(e-1)));return a})}function m(a){if(1>a||4999=c[d];)b+=e[d],a-=c[d];return b}function c(a,b){function e(a){return(a>c?e(Math.floor((a-1)/c)):"")+b.charAt((a-1)%c)}if(1>a)return a.toString();var c=b.length;return e(a)}function l(a,b){return ae?e.toString():Ha(e).toFixed();e.lengtha&&(e="-"+e);return e}function k(a,b){b=void 0===b?"FODF1310": +b;var e=Ma.Bc(a),c={},d=!0,f=0,h=Na.wh("\\p{Nd}",null),p=a.search(h);if(0>p)d=!1;else{f=Na.ep().Nd;for(var k=0;ke[p]||e[p]>g+10)throw new q("Picture string mixes digits from different digit families: "+a,b);}else if(Na.wh("\\p{N}\\p{L}",null).test(f))throw new q("Picture string is invalid: "+a,b);var u=[];f=g-48;e.forEach(function(a){g<=a&&a<=g+ +10?u.push(48):u.push(a)});a=Ma.ld(u)}c.Do=d;c.format=a;c.Fj=f;c.$i=g;return c}function r(a,b){var e=[];Ma.Bc(a).forEach(function(a){48<=a&&57>=a?e.push(a+b):e.push(a)});return Ma.ld(e)}function v(a,b,e,c,d){c=void 0===c?"":c;d=void 0===d?!1:d;for(var f=0,h=0;he[0]&&(p=!1);if(p)for(h=1;ha?b[a]:100>a?e[Math.floor(a/10)]+(0===a%10?"":" "+b[a%10]):1E3>a?z(Math.floor(a/100))+" Hundred"+(0===a%100?"":" and "+z(a%100)):1E6>a?z(Math.floor(a/1E3))+" Thousand"+(0===a%1E3?"":(100>a%1E3?" and ":" ")+z(a%1E3)):1E9>a?z(Math.floor(a/1E6))+" Million"+(0===a%1E3?"":(100>a%1E3?" and ":" ")+z(a%1E6)):a.toString()}function t(a){var b="Zeroth First Second Third Fourth Fifth Sixth Seventh Eighth Ninth Tenth Eleventh Twelfth Thirteenth Fourteenth Fifteenth Sixteenth Seventeenth Eighteenth Nineteenth".split(" "), +e=" Twent Thirt Fort Fift Sixt Sevent Eight Ninet".split(" ");return 20>a?b[a]:100>a?e[Math.floor(a/10)]+(0===a%10?"ieth":"y "+b[a%10]):1E3>a?z(Math.floor(a/100))+" Hundred"+(0===a%100?"th":" and "+t(a%100)):1E6>a?z(Math.floor(a/1E3))+" Thousand"+(0===a%1E3?"th":(100>a%1E3?" and ":" ")+t(a%1E3)):1E9>a?z(Math.floor(a/1E6))+" Million"+(0===a%1E3?"th":(100>a%1E3?" and ":" ")+t(a%1E6)):a.toString()}function g(a){return 1===a%10&&11!==a%100?"st":2===a%10&&12!==a%100?"nd":3===a%10&&13!==a%100?"rd":"th"} +function K(a,b,e){function d(a,b){for(var e="",c=a.charCodeAt(0),d=0;da?"-":"";if("o"===h)switch(b.toString()){case "a":case "A":case "i":case "I":break; +case "Ww":return f+t(Math.abs(a));case "W":return f+t(Math.abs(a)).toUpperCase();case "w":return f+t(Math.abs(a)).toLowerCase();default:return w(a,b,e)+g(Math.abs(a))}switch(b.toString()){case "a":return c(a,d("a",26));case "A":return c(a,d("A",26));case "α":return c(a,d("α",25));case "Α":return c(a,d("Α",25));case "i":return m(a);case "I":return m(a).toUpperCase();case "Ww":return f+z(Math.abs(a));case "W":return f+z(Math.abs(a)).toUpperCase();case "w":return f+z(Math.abs(a)).toLowerCase();case "①":return l(a, +"⓪"+d("①",20)+d("㉑",15)+d("㊱",15));case "⑴":return l(a,"0"+d("⑴",20));case "⒈":return 0===a?"\ud83c\udd00":l(a,"0"+d("⒈",20));case "❶":return l(a,"⓿"+d("❶",10)+d("⓫",10));case "➀":return 0===a?"\ud83c\udd0b":l(a,"0"+d("➀",10));case "➊":return 0===a?"\ud83c\udd0c":l(a,"0"+d("➊",10));case "⓵":return l(a,"0"+d("⓵",10));case "㈠":return l(a,"0"+d("㈠",10));case "㊀":return l(a,"0"+d("㊀",10));default:return w(a,b,e)}}function A(a,b){return String.fromCharCode(parseInt(a[b]?a[b]:L[b],10))}function x(a,b){function e(a){[["$gs", +"grouping separator"],["$es","exponent separator"],["$ds","decimal separator"],["$pc","non-prefix passive character"],["$pp","percent|permille"],["$od","optional digit"],["$md","mandatory digit"],["$ip","integer part"],["$fp","fractional part"]].forEach(function(b){a=a.replace(b[0],b[1])});throw new q("Invalid picture: "+a,"FODF1310");}for(var c={},d=a.indexOf(b.gi),f=0<=d,h=b.$i.charCodeAt(0),p=0,g=0,k=[],u=[],x=[],y=-1,l=-1,U=!1,m=!1,t=-1,r=0,N=f?d:a.length,L=0;L= +h&&wp&&0>y&&(y=L),p++,g++)):w===b.ll.charCodeAt(0)?(0y&&(y=L,m=!0),g++):w===b.fh.charCodeAt(0)?(0>y&&e("$gs before any digit"),0y&&e("$pp before any digit"),0l&&(l=L),w=== +b.Hf.charCodeAt(0)?c.Hf=!0:c.th=!0):!f&&0<=y&&w===b.ue.charCodeAt(0)&&0>l?U?(x.push(w),0l&&(l=L):(x.push(w),U=!1,t=-1,0>l&&(l=L-1))):(U=!0,t=L):0<=y&&f?e("$pc before $ds"):U&&0===r?(U=!1,t=-1,x.push(b.ue.charCodeAt(0)),x.push(w),0>l&&(l=L-1)):0<=y?(x.push(w),0>l&&(l=L)):u.push(w)}if(0=h&&Ol?r++:0<=f||0<=l?e("$md follows $od or $pc in $fp"):(N++,L++):O===b.ll.charCodeAt(0)?((0<=l||U)&&e("$od follows $pc or $es"),0>f&&(f=A),L++):O===b.fh.charCodeAt(0)?((0<=l||U)&&e("$gs follows $pc or $es"),w.push(A-d+1)):O===b.gi.charCodeAt(0)?e("more than one $ds"):O===b.Hf.charCodeAt(0)||O===b.th.charCodeAt(0)?((0<=l||U)&&e("$pp follows $pc or $es"),x.push(O),l=A,O===b.Hf.charCodeAt(0)?c.Hf=!0:c.th= +!0):O===b.ue.charCodeAt(0)&&0>l?U?(x.push(O),0l&&(l=A):(x.push(O),U=!1,t=-1,0>l&&(l=A-1))):(U=!0,t=A):U&&0===r?(U=!1,t=-1,x.push(b.ue.charCodeAt(0)),x.push(O),0>l&&(l=A-1)):(x.push(O),0>l&&(l=A))}}0>y&&0===L&&e("mantissa contains no digits");if(0!==w.length)for(0===w[0]&&e("$gs at beginning of $fp"),d=0;d=f+c?h(new Date(d.getTime()-864E5),b):Math.floor((c+f-2)/7)+(5>f?1:0)}var p=G,y=p.Ab,u=C.O,L={"decimal-separator":"46","grouping-separator":"44",digit:"35","minus-sign":"45",percent:"37","per-mille":"8240", +"zero-digit":"48","exponent-separator":"101","pattern-separator":"59",infinity:"Infinity",NaN:"NaN"},O={Y:"getUTCFullYear",M:"getUTCMonth",D:"getUTCDate",F:"getUTCDay",H:"getUTCHours",m:"getUTCMinutes",s:"getUTCSeconds",f:"getUTCMilliseconds"},fa={d:e,W:function(a){return h(a,!0)},w:function(a){return h(a,!1)},h:function(a){return 13>a.getUTCHours()?0===a.getUTCHours()?12:a.getUTCHours():a.getUTCHours()-12},P:function(a){return 12>a.getUTCHours()?"Am":"Pm"},E:function(a){return 0>a.getUTCFullYear()? +"BC":"AD"}};return{bp:function(b,e){var c=e.fixed.ya,d=b.level,f=c.qa(b,"select"),h=c.qa(b,"count");c=c.qa(b,"from");return a(d,f,h,c,e)},cp:function(a,e){var c=e.fixed.ya,f=c.qa(a,"value"),h=c.qa(a,"format"),p=c.Zd(c.qa(a,"gpSep"),e).next(),g=c.Zd(c.qa(a,"gpSize"),e).next(),k=c.Zd(c.qa(a,"ordinal"),e).next(),u=c.Zd(c.qa(a,"lang"),e).next(),x=a.flags||"",y=c.qa(a,"startAt");x=/1/.test(x);c=c.evaluate(f,e);y=d(c,x,y,!0,e);k=k?P.Mo(k.toString()):!1;return null===y?D.ua("NaN"):b(y,h,p,g,k,u,e)},Mj:K, +tj:function(a,b,e){for(var c="",d=0;da?!0:0===a?0>1/a:!1;e={gi:A(e,"decimal-separator"),fh:A(e,"grouping-separator"),ll:A(e,"digit"),Xo:A(e,"minus-sign"),Hf:A(e,"percent"),th:A(e,"per-mille"),$i:A(e,"zero-digit"),ue:A(e,"exponent-separator"),km:A(e,"pattern-separator"),uo:e.infinity||L.infinity,Zo:e.NaN||L.NaN};if(isNaN(a))return e.Zo;b=b.includes(e.km)?b.split(e.km):[b];if(2a?b[1]:b[0],e);if(isFinite(a)){if(0m&&(a=Ha(a.toPrecision(m)));(m=t!==a.e)&&(h+=1);1h)||u&&m||(h=l.join("").slice(h),p+="."+h)}else throw new q("Empty mantissa", +"SXJS0004");k=p+k+f(a.e,y)}else{k=Math.abs(a);d.Hf&&(k=Math.abs(100*a));d.th&&(k=Math.abs(1E3*a));k="Infinity"===k+""?k+"":999999>k?k.toString():Ha(k).toFixed();y=k.indexOf(".");0>y&&(y=k.length,0k.indexOf(".")&&(k+=".0")):k=Ha(k).round(0,1).toString());h=k.length-1-y;if(0h;h++)y+=String.fromCharCode(e.$i.charCodeAt(0)+h);y+=e.gi;h="";for(g=0;ga?h+=u:ah&&(h=y.length);k=y.substring(0,h);y=y.substring(h);if(0d.ud[0]&&(h=!1);k=h?Db.tj(k,e.fh,d.ud[0]):v(k, +d.ud,null,e.fh)}0f||"*"!==h&&1>h||"*"!==f&&"*"!==h&&f>h)throw new q("Invalid width modifier in date/time formatting picture","FOFD1340");}var p=null;1h||12d.length;)d="0"+d;p=Ma.Bc(d);d=parseInt(Ma.ld(p.reverse()),10);if(!e&&!c&&/^[0-9]$/.test(g))for(;p.length>g.length;)g+="#";if(e&&"*"!==e){u=/^([0-9]*)(#*)$/.exec(g);g=u[1]?u[1]:"";for(u=u[2]?u[2]:"";e>g.length;)g+="0",u=u.slice(0,-1);g+=u}if(c)for("*"===c&&(c=p.length);g.lengthg.length;)d=d.slice(0,-1);e&&"*"!== +e||0!==parseInt(d,10)||(d="0");h||(d=r(d,f));e=d}else{if(/[nN]/.test(c))f="January February March April May June July August September October November December".split(" "),d="Monday Tuesday Wednesday Thursday Friday Saturday Sunday".split(" "),p="M"===e?f[u-1]:"F"===e?d[u-1]:u,"F"===e&&h&&"*"!==h&&6>h&&(p=p.replace(/(ur)?day$/,""),p=p.replace(/nes$/,"s")),"n"===c?p=p.toLowerCase():"N"===c&&(p=p.toUpperCase()),h&&"*"!==h&&(p=p.substring(0,h));else{g=/;/.test(c)?c+";":c;p&&(g+=(";"===g.charAt(g.length- +1)?"":";")+p);p=K(u,g,"FOFD1340");if("Y"===e&&/[^iIwWnN]/.test(c.charAt(c.length-1))&&(!f&&2===c.length||2==h))for(;2":">","&":"&",'"':""","\n":" ","\r":" ","\t":" "},d={"<":"<",">":">","&":"&"}; +return b?a.replace(/&|<|>|"|\n|\r|\t/g,e(c)):a.replace(/&|<|>/g,e(d))}if(e){e="";a=a.split("\x00");for(var d=0;d=a:"US-ASCII"===b.toUpperCase()?127>=a:!0}function y(a,b){return function(e){for(var c=!0,d=0;d=a.min&&h<=a.max){c=!1;break}}if(c)return e;c="";d=!1;for(h=0;h= +p;g&&(p=e.codePointAt(h));a.Wa[p]?(b&&!d&&(c+="\x00",d=!0),c+=a.Wa[p],g&&h++):(b&&d&&(c+="\x00",d=!1),c+=f)}return c}}function u(a){return""===a.uri||"http://www.w3.org/1999/xhtml"===a.uri}function L(a){return["http://www.w3.org/1999/xhtml","http://www.w3.org/2000/svg","http://www.w3.org/1998/Math/MathML"].includes(a)}function O(a,b){var e={action:["form"],archive:["object"],background:["body"],cite:["blockquote","del","ins","q"],classid:["object"],codebase:["applet","object"],data:["object"],datasrc:"button div input object select span table textarea".split(" "), +"for":["script"],formaction:["button","input"],href:["a","area","base","link"],icon:["command"],longdesc:["frame","iframe","img"],manifest:["html"],name:["a"],poster:["video"],profile:["head"],src:"audio embed frame iframe img input script source track video".split(" "),usemap:["img","input","object"],value:["input"]}[b.local];return e&&e.includes(a.local)}function fa(a,e,h){h=void 0===h?null:h;switch(a.method){case "xml":e=new x(a,e);if(a.version&&"1.0"!==a.version)throw new q("Serializer does not support the requested XML version: "+ +a.version,"SESU0013");ja(a);if(a["undeclare-prefixes"])throw new q("Cannot undeclare prefixes with XML 1.0 serializer","SEPM0010");a.indent&&(e=Ja(a,e));e=za(a,e);e=Ka(a,e);e=Va(a,e);return xa(a,e);case "html":return aa(a,e);case "text":return ja(a),e=new b(a,e),e=za(a,e),e=Ka(a,e),xa(a,e);case "xhtml":return aa(a,e);case "json":return ja(a),a.indent?new c(a,e,h):new l(a,e,h);case "adaptive":return new m(a,e,h);default:return new d(a,e)}}function Y(a,b,e){function c(a,b){b=b.trim();if(["yes","true", +"1"].includes(b))return!0;if(["no","false","0"].includes(b))return!1;throw new q("Value of "+a+" must be yes(=true, 1) or no(=false, 0)","SEPM0016");}function d(a){return function(b,e){e=e.trim();return e.split(/\s+/).map(function(b){/^Q\{/.test(b)||/:/.test(b)||(b="Q{}"+b);return/^Q\{/.test(b)?b:Z.X.g(b,a).ha()})}}function h(a){return function(b,e){e=e.trim();if(a.includes(e))return e;throw new q("Value of "+b+"("+e+"): must be one of "+a.join("|"),"SEPM0016");}}function f(a){return function(b,e){if(a.test(e))return e; +throw new q("Invalid value for "+b+": must match the pattern "+a,"SEPM0016");}}function p(a,b){return b}function g(a,b){b=b.trim();if(/[0-9]+/.test(b))return 1*b;throw new q("Value of "+a+" must be an integer (Actual value is "+B.oa(b)+")","SEPM0016");}e={"allow-duplicate-names":c,"build-tree":c,"byte-order-mark":c,"cdata-section-elements":d(e),"doctype-public":f(/[\sa-zA-Z0-9\-'()+,.:=?;!*#@$_%\/]*/),"doctype-system":f(/[^']*|[^"]*/),encoding:f(/[\x21-\x7e]+/),"escape-uri-attributes":c,"html-version":function(a, +b){if(/[0-9]+(\.[0-9]+)?/.test(b))return 1*b;throw new q("Value of "+a+" must be a decimal number","SEPM0016");},"include-content-type":c,indent:c,"item-separator":p,"json-node-output-method":h(["xml","xhtml","html","text"]),"media-type":p,method:function(a,b){return function(e,c){c=c.trim();!/^Q\{/.test(c)&&/:/.test(c)&&(c=Z.X.g(c,b).ha());if(a.includes(c))return c;throw new q("Value of "+e+"("+c+"): must be one of "+a.join("|"),"SEPM0016");}}("xml xhtml html text json adaptive Q{http://saxonica.com/ns/interactiveXSLT}append-content Q{http://saxonica.com/ns/interactiveXSLT}replace-content".split(" "), +e),"normalization-form":h("NFC NFD NFKC NFKD fully-normalized none".split(" ")),"omit-xml-declaration":c,standalone:function(a,b){return"omit"===b.trim()?null:c(a,b)},"suppress-indentation":d(e),"undeclare-prefixes":c,"use-character-maps":d(e),version:p,"Q{http://saxon.sf.net/}indent-spaces":g,"Q{http://saxon.sf.net/}line-length":g,"Q{http://saxon.sf.net/}stylesheet-version":g};/^\{/.test(a)&&(a="Q"+a);if("string"!==typeof b)throw new q("Value of "+a+" must be supplied as a string","SEPM0016");if(e[a])return e[a](a, +b);if(!/^Q\{/.test(a))throw new q("Unknown serialization parameter "+a,"SEPM0017");}function N(a,b,e){function c(a,b,e){if(!Array.isArray(b))throw new q("Value of "+a+" must be an array","SEPM0016");return(e||[]).concat(b)}function d(a,b){if("boolean"!==typeof b)throw new q("Value of "+a+" must be boolean","SEPM0016");return b}function h(a,b){if("number"!==typeof b)throw new q("Value of "+a+" must be an integer (actual value is "+B.oa(b)+")","SEPM0016");return b}var f={"allow-duplicate-names":d,"build-tree":d, +"byte-order-mark":d,"cdata-section-elements":c,"escape-uri-attributes":d,"html-version":function(a,b){if("number"!==typeof b)throw new q("Value of "+a+" must be a decimal number","SEPM0016");return b},"include-content-type":d,indent:d,"omit-xml-declaration":d,standalone:function(a,b){return null===b?null:d(a,b)},"suppress-indentation":c,"undeclare-prefixes":d,"use-character-maps":function(a,b,e){e&&Array.isArray(e)&&B.ra("Problem with existing character map supplied to overrideParam");if("object"!== +typeof b)throw new q("Value of "+a+" must be an object","SEPM0016");if(void 0===b.Wa)throw new q("Value of "+a+" must be a character map object","SEPM0016");(a=e)?S(a,b):a=b;return a},"Q{http://saxon.sf.net/}indent-spaces":h,"Q{http://saxon.sf.net/}line-length":h,"Q{http://saxon.sf.net/}stylesheet-version":h};/^{/.test(a)&&(a="Q"+a);return f[a]?f[a](a,b,e):Y(a,b.toString())}function S(a,b){b.mina.max&&(a.max=b.max);for(var e in b.Wa)b.Wa.hasOwnProperty(e)&&(a.Wa[e]=b.Wa[e])} +function ma(a,b){var e={};a.forEach(function(a,c){var d=b.bl[a];if(!d)throw new q("Unknown character map "+a,"SEPM0016");0===c?e=d:S(e,d)});return e}function xa(a,b){return a["item-separator"]&&"#absent"!==a["item-separator"]?new Cb.en(b,a["item-separator"]):new Cb.Rg(b)}function Ja(a,b){var e=a["Q{http://saxon.sf.net/}indent-spaces"],c=a["suppress-indentation"];return("xml"===a.method?new A(e,c):new w(e,c)).Rf(b)}function za(a,b){a["normalization-form"]&&"none"!==a["normalization-form"]&&(b=(new K(a["normalization-form"])).Rf(b)); +return b}function Ka(a,b){a["use-character-maps"]&&(b=(new g(a["use-character-maps"])).Rf(b));return b}function Va(a,b){a["cdata-section-elements"]&&(b=(new t(a["cdata-section-elements"],a.encoding||"UTF-8",a["normalization-form"]&&"none"!==a["normalization-form"]?a["normalization-form"]:null)).Rf(b));return b}function Ba(a,b){return void 0===a[b]||a[b]}function ja(a){if(a.encoding&&!["UTF-8","UTF-16","ISO-646","ISO-8859-1","US-ASCII"].includes(a.encoding.toUpperCase()))throw new q("Serializer does not support the requested encoding: "+ +a.encoding,"SESU0007");}function aa(a,b){var e="xhtml"===a.method,c=e?new r(a,b):new z(a,b);if(e&&a.version&&"1.0"!==a.version)throw new q("Serializer does not support the requested XML version: "+a.version,"SESU0013");if((e=e?a["html-version"]:a["html-version"]||a.version)&&5!==1*e)throw new q("Serializer does not support the requested HTML version: "+e,"SESU0013");ja(a);Ba(a,"indent")&&(c=Ja(a,c));c=za(a,c);c=Ka(a,c);c=Va(a,c);c=(new v).Rf(c);Ba(a,"escape-uri-attributes")&&(c=(new k).Rf(c));Ba(a, +"include-content-type")&&(c=(new f(a)).Rf(c));return xa(a,c)}function ra(a,b,e,c){function d(a,b){switch(a.nodeType){case 9:case 11:b.tb(p);for(var e=a.childNodes,c=0;c"),this.xc=!1):this.ga.write("")};x.prototype.text=function(a,b){this.bd||this.Hd();this.xc&&this.$f();this.ga.write(b.DISABLE_ESCAPING? +this.encode(a,!1):this.encode(h(a,!1,!1),!0))};x.prototype.Sa=function(a){this.bd||this.Hd();this.xc&&this.$f();this.ga.write("\x3c!--"+this.encode(a,!1)+"--\x3e")};x.prototype.Ra=function(a,b){this.bd||this.Hd();this.xc&&this.$f();this.ga.write("")};x.prototype.append=function(a,b){this.text(a.toString(),b)};x.prototype.Hd=function(){this.hi||this.Sp()};x.prototype.$f=function(){this.ga.write(">");this.xc=!1};x.prototype.Tp=function(a, +b){var e=this,c=[],d;for(d in a)if(b[d]!==a[d]){var f="";"xml"!==d&&(f=""===d?' xmlns="'+h(a[d],!0,!1)+'"':" xmlns:"+d+'="'+h(a[d],!0,!1)+'"');""!==f&&c.push(f)}c.sort();c.forEach(function(a){return e.ga.write(a)})};x.prototype.Mm=function(a,b){if(b){var e=this;b.forEach(function(a,b){e.Km(b,a)})}};x.prototype.Km=function(a,b){var e=!0===b.ec.USE_NULL_MARKERS;e=b.ec.DISABLE_ESCAPING?this.encode(b.value,!1):this.encode(h(b.value,!0,e),!0);this.ga.write(" "+this.encode(a.toString(),!1)+'="'+e+'"')}; +x.prototype.Sp=function(){this.sb["byte-order-mark"]&&"UTF-8"===this.sb.encoding&&this.ga.write("");this.hi=!0;var a=!0===this.sb["omit-xml-declaration"];this.ig=!a;var b=this.sb.standalone;if(a&&void 0!==b&&null!==b)throw new q("Serializer values of 'standalone' and 'omit-xml-declaration' conflict","SEPM0009");a||this.ga.write('")};x.prototype.Fh=function(a){var b=this.sb["doctype-system"]|| +null,e=this.sb["doctype-public"]||null;null!==b&&(this.ig&&this.ga.write("\n"),this.ga.write("\n"):this.ga.write(' PUBLIC "'+this.encode(e,!1)+'" '+this.encode(a,!1)+">\n"),this.gh=!0)};x.prototype.encode=function(a,b){function e(a){if(b)return"&#"+a+";";throw new q("Character "+String.fromCodePoint(a)+" (decimal "+a+") is not available in the chosen encoding", +"SERE0008");}var c=this.encoding;return function(a){var b="",d=0,h=a.length;if(0===h)return"";for(;dg)break;else if(127>g)f++;else if(160>g||8232===g||55296<=g&&56320>=g||!p(g,c))break;else f++}if(f>=h)return 0===d?a:b+a.substring(d,f);f>d&&(b+=a.substring(d,f));g=a.charCodeAt(f);d=a.charAt(f);if(0===g)throw new q("Null marker","ZZZZ9999");160>g||8232===g?b+=e(g):55296<=g&&56320>=g?(g=a.codePointAt(f++),b+=p(g,c)?d+a.charAt(f): +e(g)):p(g,c)||(b+=e(g));d=++f;if(d>=h)return b}}(a)};n(A,Cb.Za);A.prototype.Ba=function(a,b,e,c){this.zd||this.oc?this.td():this.$d();if(0>this.fc){var d=b.get(Z.X.xa("","http://www.w3.org/XML/1998/namespace","space"));d&&"preserve"===d.value&&(this.fc=this.level)}this.level++;this.Ui&&-1===this.fc&&0<=this.Ui.indexOf(a.ha())&&(this.fc=this.level);this.$.Ba(a,b,e,c);this.zd=this.Te=!0;this.oc=!1};A.prototype.Na=function(){this.level--;this.oc&&!this.Te?this.td():this.zd&&!this.oc?this.yg=null:this.$d(); +this.$.Na();this.Te=!1;this.oc=!0;this.zd=!1;this.level===this.fc-1&&(this.fc=-1)};A.prototype.text=function(a,b){0>this.fc&&""===Na.trim(a)?(this.yg=a,this.Ne=b):(this.$d(),0<=a.indexOf("\n")&&(this.Te=!1),this.$.text(a,b),this.oc=this.zd=!1)};A.prototype.Sa=function(a,b){this.oc?this.td():this.$d();this.$.Sa(a,b);this.oc=this.zd=!1};A.prototype.Ra=function(a,b,e){this.oc?this.td():this.$d();this.$.Ra(a,b,e);this.oc=this.zd=!1};A.prototype.td=function(){0<=this.fc?this.$d():this.bm()};A.prototype.bm= +function(){this.yg=null;var a=this.level*this.Sl;if(a+1>this.ih.length){var b=5*this.Sl;a+1>this.ih.length+b&&(b+=a+1);for(var e=0;e=e.min&&p<=e.max){h=!1;break}}if(h)c=a;else for(h=0;h=p;g&&(p=a.codePointAt(h));e.Wa[p]?(d||(""!==c&&(this.$.text(c,b),c=""),d=!0),c+=e.Wa[p],g&&h++):(d&&(d=Object.assign({},b),d.DISABLE_ESCAPING=!0, +d.NO_NORMALIZATION=!0,this.$.text(c,d),c="",d=!1),c+=f)}d?(e=Object.assign({},b),e.DISABLE_ESCAPING=!0,e.NO_NORMALIZATION=!0,this.$.text(c,e)):this.$.text(c,b)}};n(t,Cb.Za);t.prototype.Ba=function(a,b,e,c){this.flush();this.dh.push(a.ha());this.$.Ba(a,b,e,c)};t.prototype.Na=function(){this.flush();this.dh.pop();this.$.Na()};t.prototype.text=function(a,b){0<=this.Yo.indexOf(0===this.dh.length?null:this.dh[this.dh.length-1])?b.DISABLE_ESCAPING?(this.flush(),this.$.text(a,b)):(this.buffer+=a,this.Ne= +b):this.$.text(a,b)};t.prototype.Sa=function(a,b){this.flush();this.$.Sa(a,b)};t.prototype.Ra=function(a,b,e){this.flush();this.$.Ra(a,b,e)};t.prototype.flush=function(){if(""!==this.buffer){for(var a=this.form?this.buffer.normalize(this.form):this.buffer,b=a.length,e=0;ee&&this.$n(a.substring(e,c));c"),this.xc=!1),this.ga.write(""))};z.prototype.text=function(a,b){if(0"))throw new q("A processing instruction in HTML must not contain a > character","SERE0015");this.ga.write("")};z.prototype.Hd=function(){this.hi||(this.sb["byte-order-mark"]&&"UTF-8"===this.sb.encoding&&this.ga.write(""),this.hi=!0)};z.prototype.Mm=function(a,b){var e=this;if(b){var c=this;b.forEach(function(b,d){a.zf("")&&e.Bo(a,d,b.value)?c.ga.write(" "+d.toString()):c.Km(d,b)})}};z.prototype.Fh=function(a){var b=this.sb["doctype-system"]|| +null,e=this.sb["doctype-public"]||null;null===b&&null===e?u(a)&&"html"===a.local.toLowerCase()&&(this.ig&&this.ga.write("\n"),this.ga.write("\n"),this.gh=!0):null===b?(a=u(a)&&"html"===a.local.toLowerCase()?a.toString():"html",this.ig&&this.ga.write("\n"),this.ga.write("\n'),this.gh=!0):x.prototype.Fh.call(this,"html"===a.local.toLowerCase()?a:Z.X.xa("","","html"))};z.prototype.Bo=function(a,b,e){b=b.local.toLowerCase(); +a=a.local.toLowerCase();return b===e.toLowerCase()&&(this.xj[a]&&this.xj[a].includes(b)||this.xj["*"].includes(b))};n(w,A);w.prototype.Ba=function(a,b,e,c){this.Vj=this.Tl.includes(a.local.toLowerCase())&&u(a);this.zd||this.oc?this.td():this.$d();this.level++;0>this.fc&&this.bo.includes(a.local.toLowerCase())&&u(a)&&(this.fc=this.level);this.Ui&&-1===this.fc&&0<=this.Ui.indexOf(a.ha())&&(this.fc=this.level);this.$.Ba(a,b,e,c);this.zd=this.Te=!0;this.Vj=this.Xf=this.oc=!1;this.Kf.push(a)};w.prototype.Na= +function(){var a=this.Kf.pop();this.level--;this.oc&&!this.Te?this.td():this.$d();this.$.Na();this.Te=!1;this.oc=!0;this.zd=!1;this.Xf=this.Tl.includes(a.local.toLowerCase())&&u(a);this.level===this.fc-1&&(this.fc=-1)};w.prototype.text=function(a,b){A.prototype.text.call(this,a,b);0>this.fc&&""===Na.trim(a)||(this.Xf=!1)};w.prototype.Sa=function(a,b){A.prototype.Sa.call(this,a,b);this.Xf=!1};w.prototype.Ra=function(a,b,e){A.prototype.Ra.call(this,a,b,e);this.Xf=!1};w.prototype.td=function(){0<=this.fc|| +this.Vj||this.Xf?this.$d():this.bm()};n(v,Cb.Za);v.prototype.Ba=function(a,b,e,c){for(var d in e)L(e[d])&&delete e[d];L(a.uri)&&(""!==a.prefix&&(a=Z.X.xa("",a.uri,a.local)),e[""]=a.uri);b.forEach(function(a,b){L(b.uri)&&(e[b.prefix]=b.uri)});Cb.Za.prototype.Ba.call(this,a,b,e,c)};n(r,x);r.prototype.Na=function(){this.Je.pop();var a=this.Kf.pop();this.xc&&this.Hj.includes(a.local)&&u(a)?(this.ga.write(" />"),this.xc=!1):(this.xc&&x.prototype.$f.call(this),this.ga.write(""))};r.prototype.text= +function(a,b){(this.bd||""!==Na.trim(a))&&x.prototype.text.call(this,a,b)};r.prototype.Fh=function(a){var b=this.sb["doctype-system"]||null;null===b&&u(a)&&"html"===a.local.toLowerCase()?(this.ig&&this.ga.write("\n"),this.ga.write("\n"),this.gh=!0):null!==b&&x.prototype.Fh.call(this,a)};n(k,Cb.Za);k.prototype.Ba=function(a,b,e,c){var d=!1;b.forEach(function(b,e){return d=d||O(a,e)});if(d){var h=new Cb.$e;b.forEach(function(b,e){if(O(a,e)){var c=P.escape(b.value.normalize("NFC"), +function(a){return 32>a||126=d||127<=d&&159>=d||!p(d,b)?e+("\\u"+("0000"+d.toString(16).toUpperCase()).slice(-4)): +e+h}}return e};l.prototype.stringify=function(a){var b='"';if(this.Wa){for(var e=this.Wa,c="",d=!1,h=!0,f=0;f=e.min&&p<=e.max){h=!1;break}}if(h)c=a;else for(h=0;h=p;g&&(p=a.codePointAt(h));e.Wa[p]?(d||(""!==c&&(b+=this.Ij(c),c=""),d=!0),c+=e.Wa[p],g&&h++):(d&&(b+=c,c="",d=!1),c+=f)}b=d?b+c:b+this.Ij(c)}else b+=this.Ij(a);return b+'"'};l.prototype.kp=function(b){function e(a){switch(a.length){case 0:d.ga.write("null"); +break;case 1:c(a[0]);break;default:throw new q("Cannot output a sequence of length "+a.length+" as JSON","SERE0023");}}function c(b){var c=C.O;if(C.Ga(b))if(c.Ea.matches(b))d.ga.write(b.toString());else if(c.numeric.matches(b)){b=b.toString();if(["NaN","INF","-INF"].includes(b))throw new q("Cannot output INF or NaN as JSON","SERE0020");d.ga.write(b)}else d.ga.write(d.stringify(b.toString()));else if(G.da(b)){c=Object.assign({},d.xb);c.method=c["json-node-output-method"]||"xml";c["item-separator"]= +null;c["omit-xml-declaration"]=!0;c.encoding="utf-8";var h=new a;ra(b,c,h,d.context);d.ga.write(d.stringify(h.toString()))}else if(P.isArray(b))if(b=b.value,0===b.length)d.ga.write("[]");else{d.Hi("[");e(b[0]);for(c=1;cp.max&&(p.max=e))}else c("invalid child of use-character-maps: "+G.ma(a).toString())});55296c&&(c=p);55296=e&&b+1a};return function(c,d,f){var h=c[0];d.fixed.ya.Gc(f,"i")&&(h=h.filter(function(a){return!Q.ce(a)}));c=Q.sd(f,c[1],"compare",d);var p=Q.yn(c),g=A.Ua.matches,u=A.numeric.matches, +y=A.za.matches,x=A.qd.matches,l=A.kc.matches,m=A.T.matches;c=A.duration.matches;var t=A.ed.matches,r=A.ac.matches;d=A.X.matches;var L=A.za.aa,w=A.qd.aa,v=A.T.aa;h=h.Ia(function(a){return g(a)?L(a):a});f=h.next();if(null===f)return D.R;d(f)&&b(a+"() not defined over QName");!c(f)||t(f)||r(f)||b(a+"() not defined over mixed duations");return D.l(k(h,f,function(a,c){(m(a)&&u(c)||m(c)&&u(a))&&b("Cannot compare string with numeric");(t(a)&&!t(c)||r(a)&&!r(c))&&b("Cannot compare mixed durations");if(Q.ce(c))return y(a)? +L(c):c;if(Q.ce(a))return y(c)?L(a):a;y(c)&&!m(a)?a=L(a):y(a)&&!m(c)?c=L(c):x(c)&&!m(a)?a=w(a):x(a)&&!m(c)&&(c=w(c));l(c)&&m(a)?c=v(c):l(a)&&m(c)&&(a=v(a));try{return e(p(a,c))?a:c}catch(Z){throw Z instanceof q&&"XPTY0004"===Z.code&&(Z.code="FORG0006"),Z;}}))}}function v(a,b){var e=a[0].next();if(null===e)return D.R;if("timezone"===b)return null===e.zb?D.R:D.l(A.ac.Bl(e.zb));if("seconds"===b)return e=e.proxy(),D.bk(e.getUTCSeconds()+e.getUTCMilliseconds()/1E3);e=e.proxy()[b]();"getUTCMonth"===b&&e++; +return D.Vb(e)}function w(a,b){var e=a[0].next();return null===e?D.R:5!==b?D.Vb(e.gk()[b]*e.nk()):D.bk(e.gk()[b]*e.nk())}function z(a,b,c){function e(a,e){return D.l(C.type[b].Sb(a,e))}var d=a[0].next();if(!d)return D.R;c=c.fixed.md.getTimezoneOffset();if(a[1]){var f=a[1].next();a=null!==f?f.wb/6E4:null;if(null!==a&&(-840>a||840c&&(c=b.wa.createTextNode(a[0].substring(c,p)),e.appendChild(c));c=b.wa.createElementNS(d,"group");c.setAttribute("nr",h);c.appendChild(b.wa.createTextNode(a[h]));e.appendChild(c);c=p+a[h].length}ca||126p?f=!0:(b=a(b.actor,"arg").length,p===b&&(f=!0)))}); +f||(e=A.X.rb(h),null==g&&(g=Da.Qi("functions")),f=(c=g[e.uri])&&c[e.local]?"concat"===e.local&&e.uri===F.cb&&(-1===p||2<=p)?!0:0<=p?0<=c[e.local].indexOf(p):!0:!1);return D.ka(f)},"function-lookup":function(a,b,c){var e=a[0].next();a=a[1].next().J();var d=wb.find("SaxonJS").XPath,f=b.ja(!0);f.Tb=!0;d=d.getFnSignature(e,a,f);if(!d)return D.R;b=d.isUserFunction?new nb.jj(d,b):e.uri===F.Rd?new nb.dj(d,e,c):new nb.Ih(d,e,a,c,b);return D.l(b)},"function-name":function(a){a=a[0].next();if(!(a instanceof +nb.gb))throw new q("Input to function-name() is not an XdmFunction ","XXXX9999");return a.getName()&&a.getName().uri!==F.wk?D.l(a.getName()):D.R},"generate-id":function(a){a=a[0].next();return D.ua(a?l(a):"")},"has-children":function(a){return D.ka(null!==x.pb(a[0].next()).next())},head:function(a){return D.l(a[0].next())},"hours-from-dateTime":function(a){return v(a,"getUTCHours")},"hours-from-duration":function(a){return w(a,3)},"hours-from-time":function(a){return v(a,"getUTCHours")},id:function(a, +b){var e="";a[0].sa(function(a){e+=a.value.trim()+" "});var c=a[1]?a[1].next():G.be(b.lb());if(!G.da(c))throw new q("Context item is not a node for fn:id()","XPTY0004");9!==c.nodeType&&(c=G.be(c));var d,f=[],h=e.trim().split(/\s+/);if(9===c.nodeType){h=sa(h);for(var g=h.next();!g.done;g=h.next())(d=c.getElementById(g.value))&&f.push(d);return G.jg(D.K(f))}if(11===c.nodeType){for(c=x.li(c);null!==(d=c.next());)1===d.nodeType&&(h.includes(d.getAttributeNS(F.xml,"id"))||h.includes(d.getAttribute("id")))&& +f.push(d);return G.jg(D.K(f))}return D.R},idref:function(){return D.R},"implicit-timezone":function(a,b){return D.l(A.ac.Bl(-b.fixed.md.getTimezoneOffset()))},"index-of":function(a,b,c){var e=D.Da(a[0]),d=a[1].next();a=Q.sd(c,a[2],"equals",b);var f=Q.Pn(a);return e.Ia(function(a){try{return f(a,d)?A.Ma.fa(e.position):null}catch(fa){return null}})},innermost:function(a,b,c){var e=[];(b.fixed.ya.Gc(c,"p")?a[0]:G.jg(a[0])).sa(function(a){0b?D.Rc([e,c]):b>c.zi()?D.Rc([c,e]):c.Ya(function(e){return c.position===b?D.Rc([a[2],D.l(e)]):D.l(e)})},"iri-to-uri":function(a){return D.ua(P.escape(m(a[0]),function(a,b){return 32>=a||126"{}|\\^`]/.test(b)}))},"json-doc":function(a,b,c){c=Ab.Zh(a,b,c);if(!c)return D.R; +c=Ab.Xn(c,b);a=a[1]?a[1].next():null;return D.l(zb.fk(c,a,b))},"json-to-xml":function(a,b,c){var e=b.fixed.ya,d=a[0].next();if(null===d)return D.R;a=a[1]?a[1].next():null;d=zb.lp(d.toString(),a,b);a=b.wa.createDocumentFragment();a.appendChild(d);a._saxonBaseUri=e.yb(c,b);return D.l(a)},key:function(a,c,d){function e(a){a=z?A.T.aa(a):a;return v.Xa(a)?(a=D.K(v.get(a)),t===r?a:a.filter(function(a){return null!==x.Ib(a).filter(function(a){return a===r}).next()})):D.R}function f(a){return{visibility:"PRIVATE", +Rb:a,im:k,actor:a,ci:a.binds.split(" ").map(function(a){return parseInt(a,10)})}}var h=c.fixed.ya,g=b(a[0],c,d,"XTDE1260"),k=h.ah(d,c),p=k.keys[g];if(!p)throw new q("Unknown key "+g,"XTDE1260");var l=p.tk,m=h.Gc(p.tg[0],"c"),t;if(a[2]){var r=a[2].next();G.da(r)&&(t=G.be(r))}else{var w=c.lb();G.da(w)&&(t=r=G.be(w))}if(!t||9!==t.nodeType&&11!==t.nodeType)throw new q("No containing document for key()","XTDE1270",d);t._saxonIndexes||(t._saxonIndexes={},t._saxonIndexesBC={});d=t._saxonIndexes;var v=d[l]; +if("under construction"===v)throw new q("Definition of key "+g+" is circular","XTDE0640");var z=!1;if(v)z=t._saxonIndexesBC[l];else{g=Q.ri(p.tg[0],null,c);v=Q.Wi(g,m);d[l]="under construction";g=function(a){return D.Rc([x.self(a),x.Hc(a),x.ob(a)])};w=function(a){return D.Rc([x.self(a),x.ob(a)])};for(var K=function(a){return D.Rc([x.self(a),x.Hc(a)])},Ba={},ja=0;jav.get(a).indexOf(b)&&(v.get(a).push(b),1c.length+1&&e.substring(0,c.length)===c&&"-"===e.charAt(c.length);return D.ka(c)},last:function(a,b){b.Wc("XPDY0002","last()");return D.Vb(b.focus.zi())},"load-xquery-module":function(){throw new q("No XQuery processor available","FOQM0006");},"local-name":function(a){a=G.ma(a[0].next());return D.ua(a?a.local:"")},"local-name-from-QName":function(a){a=a[0].next();return null===a?D.R:D.l(C.type.NCName.g(a.local))},"lower-case":function(a){return D.ua(m(a[0]).toLowerCase())},matches:function(a){var b= +m(a[0]),e=a[1].next().toString();a=a[2]?a[2].next().toString():"";if(!a.match(/^[smijxq]*$/))throw new q("Illegal flags for regular expression: "+a,"FORX0001");e=Na.wh(e,a,b);return D.ka(0<=b.search(e))},max:r("max"),min:r("min"),"minutes-from-dateTime":function(a){return v(a,"getUTCMinutes")},"minutes-from-duration":function(a){return w(a,4)},"minutes-from-time":function(a){return v(a,"getUTCMinutes")},"month-from-date":function(a){return v(a,"getUTCMonth")},"month-from-dateTime":function(a){return v(a, +"getUTCMonth")},"months-from-duration":function(a){return w(a,1)},name:function(a){a=G.ma(a[0].next());return D.ua(a?a.toString():"")},"namespace-uri":function(a){a=G.ma(a[0].next());return D.l(A.kc.g(a?a.uri:""))},"namespace-uri-for-prefix":function(a){var b=m(a[0]);a=a[1].next();b="xml"===b?F.xml:a.lookupNamespaceURI(""===b?null:b);return null!==b?D.l(A.kc.g(b)):D.R},"namespace-uri-from-QName":function(a){a=a[0].next();return null===a?D.R:D.l(A.kc.g(a.uri))},nilled:function(a){return(a=a[0].next())&& +1===a.nodeType?D.ka(!1):D.R},"node-name":function(a){return D.l(G.ma(a[0].next()))},"normalize-space":function(a){a=m(a[0]);return D.ua(Ma.dd(a))},"normalize-unicode":function(a){if(String.prototype.normalize){var b=m(a[0]);a=a[1]?a[1].next().toString().toUpperCase().trim():"NFC";if(["NFC","NFD","NFKC","NFKD"].includes(a))return D.ua(b.normalize(a));if(""===a)return D.ua(b)}throw new q("normalize-unicode(): not supported on this Javascript platform","FOCH0003");},not:function(a,b){return D.ka(!b.fixed.ya.dg(a[0]))}, +number:function(a){return D.l(C.O.numeric.qh(a[0].next()))},"one-or-more":function(a){a=D.fd(a[0]);if(null===a.Oa())throw new q("Required length >= 1, actual length zero","FORG0004");return a},outermost:function(a,b,c){b=b.fixed.ya.Gc(c,"p");a=a[0];b||(a=G.jg(a));var e=null;return a.filter(function(a){return null===e||null===x.jf(a).filter(function(a){return a===e}).next()?(e=a,!0):!1})},"parse-ietf-date":function(a){return a[0].Ia(function(a){function b(a){return 1===a.length?"0"+a:a}function e(){throw new q("Invalid IETF date/time "+ +a.toString(),"FORG0010");}var c=a.toString().trim().toLowerCase();c=c.replace(/^(monday|tuesday|wednesday|thursday|friday|saturday|sunday|mon|tue|wed|thu|fri|sat|sun),?\s+/,"");if(/^[a-z]/.test(c)){var d=/^([a-z]{3})(?:\s*-\s*|\s+)(\d\d\d?\d?)\s+([\d:.]+)\s*([a-z]+|[+\-]\d\d?:?(?:\d\d)?(?:\s*\(\s*[a-z]+\s*\))?)?\s+(\d+)$/;c=d.exec(c);if(null!==c){var f=c[1];var h=c[2];var g=c[3];var k=c[4];var x=c[5]}else e()}else d=/^(\d+)(?:\s*-\s*|\s+)([a-z]{3})(?:\s*-\s*|\s+)(\d\d\d?\d?)\s+([\d:.]+)\s*([a-z]+|[+\-]\d\d?:?(?:\d\d)?(?:\s*\(\s*[a-z]+\s*\))?)?$/, +c=d.exec(c),null!==c?(h=c[1],f=c[2],x=c[3],g=c[4],k=c[5]):e();2===x.length&&(x="19"+x);f="jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec".indexOf(f||"*");0>f&&e();c={ut:"Z",utc:"Z",gmt:"Z",est:"-05:00",edt:"-04:00",cst:"-06:00",cdt:"-05:00",mst:"-07:00",mdt:"-06:00",pst:"-08:00",pdt:"-07:00"};/^[0-9]:/.test(g)&&(g="0"+g);5===g.length&&(g+=":00");k&&(k=/([a-z]+)|([+\-]\d\d?:?(?:\d\d)?)(?:\s*\(\s*([a-z]+)\s*\))?$/.exec(k),(!k[3]||k[3]in c)&&(!k[1]||k[1]in c)||e(),k=k[1]?k[1]:k[2],/^[+\-][0-9]((:|$)|[0-9]{2}$)/.test(k)&& +(k=k.substring(0,1)+"0"+k.substring(1)),k in c?k=c[k]:3===k.length?k+=":00":4===k.length?k+="00":5===k.length&&(k=k.substring(0,3)+":"+k.substring(3)));h=x+"-"+b((f/4+1).toString())+"-"+b(h)+"T"+g+(k||"Z");try{return A.dateTime.g(h)}catch(ma){throw new q("''"+a.toString()+"'' is not a valid IETF date","FORG0010");}})},"parse-json":function(a,b){var e=a[0].next();if(null===e)return D.R;var c=a[1]?a[1].next():null;return D.l(zb.fk(e.toString(),c,b))},"parse-xml":function(a,b,c){a=a[0].next();if(null=== +a)return D.R;var e=b.fixed.ya;try{var d=Da.parseXmlFromString(a.toString());d._saxonBaseUri=e.yb(c,b);return D.l(d)}catch(L){throw new q(L.message,"FODC0006");}},"parse-xml-fragment":function(a,b,c){var e=b.fixed.ya;return a[0].Ia(function(a){var d=/^<\?xml(?:\s+version\s*=\s*(['"])1.[0-9]+['"])?\s+encoding\s*=\s*(['"][A-Za-z](?:[A-Za-z0-9._\-])*)['"]\s*\?>/;a=a.toString();if(/^<\?xml/.test(a)&&!d.test(a))throw new q("Invalid XML header for a text declaration","FODC0006");a=a.replace(d,"");try{var f= +Da.parseXmlFromString(""+a+"")}catch(Y){throw new q(Y.message,"FODC0006");}var h=b.wa.createDocumentFragment();x.pb(f.documentElement).sa(function(a){h.appendChild(a)});h._saxonBaseUri=e.yb(c,b);return h})},path:function(a){return a[0].Ia(function(a){var b="";x.Ib(a).sa(function(a){function e(a){return x.Oe(a).filter(function(b){return a.nodeType===b.nodeType})}switch(a.nodeType){case 1:var c=G.ma(a);b="/"+c.ha()+"["+(1+e(a).filter(function(a){return G.ma(a).ia(c)}).count())+"]"+b;break;case 3:b= +"/text()["+(1+e(a).count())+"]";break;case 8:b="/comment()["+(1+e(a).count())+"]";break;case 7:b="/processing-instruction("+a.target+")["+(1+e(a).filter(function(b){return a.target===b.target}).count())+"]";break;case 2:b="/@"+(0>a.name.indexOf(":")?a.name:G.ma(a).ha());break;case 13:b="/namespace::"+(""!==a.prefix?a.prefix:"*[Q{"+F.cb+'}local-name()=""]')}});""===b&&(b="/");return A.T.g(b)})},"prefix-from-QName":function(a){return a[0].Ia(function(a){return""===a.prefix?null:A.Dk.g(a.prefix)})}, +position:function(a,b){b.Wc("XPDY0002","position()");return D.Vb(b.focus.position)},QName:function(a){var b=a[1].next().value,e=b.split(":"),c=2===e.length?e[0]:"";a=m(a[0]);if(""!==c&&""===a)throw new q("Prefix but no URI for QName()","FOCA0002");if(2===e.length&&""===c||""!==c&&!Na.Yc(c))throw new q(b+" not valid for QName()","FOCA0002");b=2===e.length?e[1]:e[0];if(!Na.Yc(b))throw new q(b+" not valid local name for QName()","FOCA0002");return D.l(A.X.xa(c,a,b))},"random-number-generator":function(a, +b){var e=new cb;e.Ta(A.T.g("number"),[A.za.fa(Math.random())]);var c=A.X.xa("fn",F.cb,"random-number-generator"),d=wb.find("SaxonJS").XPath,f=d.getFnSignature(c,0,b);c=new nb.Ih(f,c,0,{},b);e.Ta(A.T.g("next"),[c]);c=A.X.xa("saxon",F.Jc,"permute");f=b.ja();f.Tb=!0;d=d.getFnSignature(c,1,f);d=new nb.Ih(d,c,1,{},b);e.Ta(A.T.g("permute"),[d]);return D.l(e)},"regex-group":function(a,b){var e=a[0].next().J();try{return D.ua(b.focus.yh[e]||"")}catch(y){return D.ua("")}},remove:function(a){var b=a[1].next().J(), +e=D.Da(a[0]);return e.filter(function(){return e.position!==b})},replace:function(a){var b=m(a[0]),e=a[3]?a[3].next().toString():"";if(!e.match(/^[smijxq]*$/))throw new q("Illegal flags for regular expression: "+e,"FORX0001");var c=0,d=Na.wh(a[1].next().toString(),e+"g",null,function(a){c=a});if(d.test(""))throw new q("Regular expression matches zero-length string","FORX0003");a=Na.Fn(a[2].next().toString(),e,c);return D.ua(b.replace(d,a))},"resolve-QName":function(a){var b=a[1].next();return a[0].Ia(function(a){try{return G.up(b, +a.toString(),!0)}catch(y){throw y instanceof q&&"FORG0001"===y.code&&(y.code=Na.Wl(a)?"FONS0004":"FOCA0002"),y;}})},"resolve-uri":function(a,b,c){var e=b.fixed.ya;b=a[1]?a[1].next().toString():e.yb(c,b);a=a[0].next();if(null===a)return D.R;b=b.replace(/^file:\/(?!\/)/,"file:///");a=a.toString();c=G.Bf(a);if(!c&&!G.Bf(b))throw new q("resolve-uri: invalid URI (base="+b+", relative="+a+")","FORG0002");if(!Da.Af()&&/#/.test(b))throw new q("Base URI "+b+" contains a fragment identifier","FORG0002");a= +c?a:Da.$c(a,b).toString();return D.l(A.kc.g(a))},reverse:function(a){return D.K(a[0].expand().slice().reverse())},root:function(a){return a[0].Ya(function(a){return x.Ib(a)}).filter(function(a){return!G.hc(a)})},round:function(a){return a[0].Ia(function(b){return b.round(a[1]?Math.min(a[1].next().value,1E4):0)})},"round-half-to-even":function(a){return a[0].Ia(function(b){return b.Ri(a[1]?Math.min(a[1].next().value,1E4):0)})},"seconds-from-dateTime":function(a){return v(a,"seconds")},"seconds-from-duration":function(a){return w(a, +5)},"seconds-from-time":function(a){return v(a,"seconds")},serialize:function(a,b){function c(a){a.method="xml";a.indent=!1;a["omit-xml-declaration"]=!0}var e=new Eb.pj,d={};if(a[1]){var f=a[1].next();if(null===f)c(d);else if(G.da(f)){if(!G.Ul(f))throw new q("Second argument supplied to serialize() is wrong kind of node","XPTY0004");Eb.Ki(f,d,"XPTY0004")}else{if(!(f instanceof cb))throw new q("Second argument supplied to serialize() does not match required type","XPTY0004");var h=function(a,b,c,e, +h){h=void 0===h?!1:h;var g=C.O.T.g(a);if(f.Xa(g)){var k=f.get(g);if(0c.max&&(c.max=e);c.Wa[e]=b[h]}d[a]=c}})("use-character-maps")}}else c(d);Eb.um(a[0].expand(),d,e,b);return D.ua(e.toString())},snapshot:function(a,b,c){return a[0].Ia(function(a){function e(h){if(0=a.length){for(;l=b.length){for(;k=c(a[k],b[l])?d(a[k++]):d(b[l++]);return f}function d(a,b){return b.fixed.ya.Ec(a,"sortKey").map(function(a){return Q.Jp(a,b)})}function m(a){return function(b,c){for(var d=0;dd){k={items:[m.item],keys:m.keys,groups:{}};for(d=0;d 1");else return!0}var e=a.next();if(null===e)return!1;if(la.da(e))return!0;if(C.Ga(e)){if(M.Ea.matches(e))return c()&&e.value;if(M.numeric.matches(e))return e=e.J(),c()&&!isNaN(e)&&0!==e;if(M.T.matches(e)||M.Ua.matches(e)||M.kc.matches(e))return c()&&0!==e.toString().length;b("type "+e.type)}else U(e)?b("maps"):Z(e)?b("arrays"):X(e)?b("functions"):b("value "+B.oa(e))}function v(a,b){var c=Pa["i+i"],e=M.Ma.fa(1);return D.Uf(a, +function(a){a=c(a,e);return 0",1);c=Ba(a,b);"object"===typeof c&&"next"in c||B.ra("Result of "+Va(a)+" is not an iterator");B.Gb(V.substring(0,bb)+"",1);bb--;return c}function Va(a){var b=a.N;a.parentNode&&(b=Va(a.parentNode)+"/"+b);return b}function Ba(a,b){var c=E[a.N];c||B.ra("Unknown expr: "+a.N+" parent="+a.p);try{return c(a,b)}catch(Ta){throw Ta instanceof q&&(b.Yg=Ta,Ta.oe||Ea(Ta,a), +Ta.context||(Ta.context=b)),Ta;}}function ja(a){return function(b){var c=Cb.ae(b),e=Bb.yf(c);Bb.push(a,b,e);e.close();return c.rg()}}function aa(a,b){a instanceof q&&!a.oe&&Ea(a,b);throw a;}function ra(a,b){function c(b){return"Context item for template "+a.name+" must be "+b}if(b.ee()&&-1===a.flags.indexOf("o"))throw new q(c("supplied"),"XTTE3090",a);b.ee()||-1!==a.flags.indexOf("s")||(b.focus={});var e=a.cxt;if(e&&!b.ee()&&!I.Xc(e).ta()(b.lb()))throw new q(c("instance of "+I.Xc(e).toString()),"XTTE0590", +a);}function Z(a){return a instanceof mb}function U(a){return a instanceof cb||a instanceof oa}function X(a){return a instanceof nb.gb||Z(a)||U(a)}function T(a,b,c){B.assert(Array.isArray(a));B.assert(b instanceof J.Ka);var e=b.ea(),d=e.p;if(e.o&&!tb(e.o)(a.length))throw new q("Supplied value "+B.oa(a)+" does not match required cardinality "+e.o+(c?" in "+c():""),"XPTY0004");if(0=h&&a<=g});return D.ka(a)}},is:function(a){var b=K(a,function(a,b){return M.Ea.Dd(la.isSameNode(a,b))});return function(a){return D.l(b(a))}},isLast:function(a){var b="1"===a.test;return function(a){return D.ka(a.focus.position===a.focus.zi()===b)}},iterate:ja,javaCall:function(a){var b=M.X.rb(a.name),c=(a.C||[]).map(u);return function(e){var d=c.map(function(a){return a(e)});return Qa(b.uri,b.local,d,e,a)}},lastOf:function(a){var b=p(a);return function(a){var c=D.fd(b(a));return c.filter(function(){return null=== +c.Oa()})}},let:function(a){var b=p(a),c=y(a),e=parseInt(a.slot,10);return function(a){var d=a.Ja;a.Ja="variable";var f=b(a).expand();a.Ja=d;a.Ha[e]=f;return c(a)}},literal:d,lookup:function(a){var b=p(a),c=y(a);return function(e){function d(a){k=k.concat(p[a.toString()])}function f(a){k=k.concat(p.get(a))}function h(b){return function(c){if(!M.Ma.matches(c))throw new q("Array lookup key must be of type xs:integer; supplied value is "+B.oa(c),"XPTY0004",a);c=c.J();if(1>c||c>b.length)throw new q("Array index ("+ +c+") out of bounds (1 to "+b.length+")","FOAY0001",a);k=k.concat(b[c-1])}}var g=b(e),k=[],p;e=c(e).expand();var x=a.tuple;if(null!=x)for(var l=x.split(/\s+/),m=sa(e),t=m.next();!t.done;t=m.next())if(t=t.value,-1===l.indexOf(t.toString()))throw new q("Tuple lookup key must be one of "+x+". Supplied key is "+t.toString(),"XPTY0004",a);for(;null!==(p=g.next());)if(P.isArray(p))e.forEach(h(p.value));else if(P.isMap(p))e.forEach(f);else if(null!=x&&P.Yl(p))e.forEach(d);else throw new q("The source for a lookup operator (?) must be of type array() or map(); supplied value is "+ +B.oa(p),"XPTY0004",a);return D.K(k)}},lookupAll:function(a){var b=p(a);return function(c){function e(a){f=f.concat(a)}function d(a){f=f.concat(h.get(a))}c=b(c);for(var f=[],h;null!==(h=c.next());)if(P.isArray(h))h.value.forEach(e);else if(P.isMap(h))h.keys().forEach(d);else throw new q("The source for a lookup operator ('?') must be of type array() or map(); supplied value is "+B.oa(h),"XPTY0004",a);return D.K(f)}},lookupTuple:function(a){var b=p(a),c=a.key;return function(e){e=b(e);for(var d=[], +f;null!==(f=e.next());)if(null!=c&&P.Yl(f))d=d.concat(f[c]);else throw new q("The source for a lookupTuple operator (?) must be of type tuple(); supplied value is "+B.oa(f),"XPTY0004",a);return D.K(d)}},map:function(a){var b=(a.C||[]).map(u);return function(c){var e=new cb,d=null;b.forEach(function(b){if(null===d)d=b(c).next();else{if(e.Xa(d))throw new q("Duplicate map constructor entries for key:"+B.oa(d),"XQDY0137",a);b=b(c).expand();e.Ta(d,b);d=null}});return D.l(e)}},merge:function(a){return function(b){return Gb.Vo(a, +b)}},mergeAdj:function(a){var b=p(a);return function(a){for(var c=[],e=b(a),d=!1,f;null!==(f=e.next());){var h=la.da(f)&&3===f.nodeType;h&&""===f.nodeValue||(d&&h?c.push(a.wa.createTextNode(c.pop().nodeValue+f.nodeValue)):(d=h,c.push(f)))}return D.K(c)}},message:function(a){var b=u(L(a,"terminate")),e=u(L(a,"error"));return function(d){var f=d.Ja;d.Ja="variable";var h=b(d).next(),g=e(d).next().toString();try{g=S(a,g,!0).ha()}catch(fb){g="Q{http://www.w3.org/2005/xqt-errors}XTMM9000"}try{var k=c(h.toString())}catch(fb){throw new q("The terminate attribute of xsl:message must be yes|no|true|false|1|0", +"XTDE0030",a);}h=Cb.ae(d);var p=new Cb.Rg(h);try{Bb.push(a.C[0],d,Bb.yf(p))}catch(fb){p.append(C.O.T.g("xsl:message evaluation at "+B.location(a)+" failed: "+fb))}h=h.rg().next();d.fixed.options.Dj||(d.fixed.options.Dj=Da.Il());try{d.Gn(g),d.fixed.options.Dj(h,g)}catch(fb){}if(k)throw B.Gb(d.ui()),new q("Terminated with "+h,g,a);d.Ja=f;return D.R}},minus:function(a){var b=p(a);return function(a){return b(a).Ia(function(a){return a.Gi()})}},namespace:function(a){var b=p(a),c=y(a);return function(e){var d= +b(e).next().toString();e=c(e).next().toString();if(""!==d&&!Na.Yc(d))throw new q("Prefix "+d+" is not an NCName","XTDE0920",a);if(""===e)throw new q("Namespace is zero-length","XTDE0930",a);if("xmlns"===d)throw new q("Disallowed prefix xmlns","XTDE0920",a);if("http://www.w3.org/2000/xmlns/"===e)throw new q("Disallowed namespace "+e,"XTDE0905",a);if(!t(e))throw new q("Invalid namespace "+e,"XTDE0905",a);if("xml"===d!==(e===F.xml))throw new q("The xml namespace prefix and uri can only be used together", +"XTDE0925",a);return D.l(new ab(d,e))}},nextIteration:ja,nextMatch:ja,nodeNum:function(a){return function(b){return Db.bp(a,b)}},"null":function(a){return function(){return D.l(a)}},numSeqFmt:function(a){return function(b){return Db.cp(a,b)}},onEmpty:d,onNonEmpty:d,or:function(a){var b=p(a),c=y(a);return function(a){return D.ka(r(b(a))||r(c(a)))}},origFC:function(a){a.C||(a.C=[]);var b=a.C.map(u);return function(c){if(!a._target){var e=a.pack,d=S(a,a.name,!1).ha(),f=a.C.length,h=c.fixed.qb;Object.keys(h).forEach(function(b){b= +h[b];b.im.name===e&&b.name===d&&b.actor&&"function"===b.actor.N&&w(b.actor,"arg").length===f&&(a._target=b.id)})}var g=c.fixed.qb[a._target],k=b.map(function(a){return a(c).expand()});return Ja(a,g,k,c)}},param:function(a){var b=a.name,c=parseInt(a.slot,10),e=O(a,"t"),d=u(L(a,"select")),f=u(L(a,"conversion"));return function(h){var g=e?h.cd:h.He,k=C.O.X.rb(b);if(g.Xa(k))g=g.get(k),""!==J.Kd(a.as||"*").ea().p&&(g=Fa(g));else if(d&&!O(a,"r"))k=h.Ja,h.Ja="xsl:param",g=d(h).expand(),h.Ja=k;else throw new q("Required parameter $"+ +b+" not supplied","XTDE0700",a);B.assert(Array.isArray(g));h.Ha[c]=g;if(f)try{h.Ha[c]=f(h).expand()}catch(fb){throw new q("Supplied value for parameter $"+b+" could not be converted to required type","XTTE0590",a);}return D.R}},partialApply:function(a){for(var b=p(a),c=[],e=[],d=0,f=a.C.length-1,h=1;hla.qc(a,b))});return function(a){return D.l(b(a))}},procInst:ja,qName:function(a){var b=M.X.xa(a.pre,a.uri,a.loc);return function(){return D.l(b)}},range:function(a){var b=M.Ma.g(a.from),c=M.Ma.g(a.to);return function(){return v(b,c)}},resultDoc:function(b){return function(c){try{if(c.Ja)throw new q("Cannot call xsl:result-document while evaluating "+c.Ja,"XTDE1480", +b);var e=za(b,c),d={},f=function(){},h=L(b,"format");if(h){var k=a(h,c).next().toString();k=S(b,k,!0).ha();var p=e.dk[k];if(!p)throw new q("Unknown xsl:output format "+k,"XTDE1460");for(var l,t,m=sa(p.C),r=m.next();!r.done;r=m.next()){var u=r.value,y=u.name;"parameter-document"===y?l=u.value:"Q{http://saxon.sf.net/}parameter-document-base-uri"===y?t=u.value:d[y]="use-character-maps"===y?Eb.Yi(y,u.value,e):Eb.Zi(y,u.value)}if(l){var v=Da.$c(l,t),w=Ab.ve(v,c);Eb.Ki(w.documentElement,d)}}g(b.global, +d,e);g(b.local,d,e);var z=sa(b.C);for(r=z.next();!r.done;r=z.next()){var A=r.value,H=A.role.replace(/^Q{\}/,"");if(!["href","format","content","parameter-document"].includes(H)){"output-version"===H&&(H="version");var K=a(A,c).next().toString();K="use-character-maps"===H?Eb.Yi(H,K,e):Eb.Zi(H,K,N(b,!0));"undefined"!==typeof K&&(d[H]=Eb.Ji(H,K,d[H]))}}var ma=L(b,"Q{}parameter-document");if(null!==ma){var E=a(ma,c).next().toString(),Ga=Da.$c(E,P.yb(b,c)),O=Ab.ve(Ga,c);Eb.Ki(O.documentElement,d)}var Z= +c.fixed.Ad,xa=L(b,"href"),U=null===xa?"":a(xa,c).next().toString();var X=Z?Da.newURL(U,Z):la.Bf(U)?Da.newURL(U):U;var ja=X.toString();if(c.fixed.Ad&&ja===c.fixed.Ad.toString()&&1=e--})}},tailCallLoop:d,to:function(a){var b=p(a),c=y(a);return function(a){var e=b(a).next();a=c(a).next();return null===e||null===a||0a?Math.ceil(a):Math.floor(a)};Array.prototype.findIndex||Object.defineProperty(Array.prototype,"findIndex",{value:function(a,b){if(null===this||"undefined"==typeof this)throw new TypeError("Array.prototype.findIndex called on null or undefined");if("function"!==typeof a)throw new TypeError("predicate must be a function");for(var c=Object(this),d=c.length>>>0,l,m=0;mthis.length?!1:-1!==this.indexOf(a,b)})}var b=Resources,d,m={name:"Browser",init:function(){a()}, +inBrowser:function(){return!0},expose:function(a,b){window[b]=a},getPromise:function(a){return new Promise(function(b,c){var d=new XMLHttpRequest;d.open("GET",a);d.onload=function(){200<=this.status&&300>this.status?b({responseText:d.responseText,contentType:d.getResponseHeader("Content-Type")}):c(new q(d.statusText+": "+a,"SXJS0006"))};d.onerror=function(){c(new q("Document fetch failed: "+a,"SXJS0006"))};d.send(null)})},asyncGet:function(a,b,d){var c=new XMLHttpRequest;c.open("GET",a,!0);0!==d&& +(c.timeout=d);c.onload=function(){4===c.readyState&&(200===c.status?b({responseText:c.responseText,contentType:c.getResponseHeader("Content-Type")}):b(new q(c.statusText+": "+a,"SXJS0006")))};c.ontimeout=function(){b(new q("Document fetch timeout: "+a,"SXJS0008"))};c.onabort=function(){b(new q("Document fetch aborted: "+a,"SXJS0008"))};c.onerror=function(){b(new q("Document fetch failed: "+a,"SXJS0006"))};c.send(null);return c},addDoc:function(a,b,d,k){function c(c){B.Gb("Add to response pool "+a, +2);d[a]=c;b(d)}if(!d[a]||d[a]instanceof q)return m.asyncGet(a,c,k);B.Gb("Doc already in pool "+a,2);b(d);return null},addMultipleDocs:function(a,b,d,k){function c(a){0>=--f&&d(a)}for(var f=a.length,l={},z=0;z";R[1]="|";R[2]="/";R[3]="@";R[48]="~";R[4]="[";R[5]="(";R[6]="=";R[7]=",";R[8]="//";R[9]="or";R[10]="and";R[11]=">";R[12]="<";R[13]=">=";R[14]="<=";R[15]="+";R[16]="-";R[299]="-";R[17]="*";R[18]="div";R[19]="mod";R[20]="is";R[21]="$";R[22]="!=";R[40]="!";R[30]="||";R[23]="intersect";R[24]="except";R[25]="return";R[26]="then";R[27]="else";R[29]="to";R[31]="in";R[32]="some";R[33]="every";R[34]="satisfies";R[35]="(";R[36]="";R[37]="if(";R[38]="<<";R[39]=">>"; +R[41]="::";R[42]=":*";R[44]="#";R[45]="instance of";R[46]="cast as";R[47]="treat as";R[50]="eq";R[51]="ne";R[52]="gt";R[54]="ge";R[53]="lt";R[55]="le";R[56]="idiv";R[57]="castable as";R[58]=":=";R[71]="as";R[75]=":";R[76]="=>";R[79]="otherwise";R[80]="andAlso";R[81]="orElse";R[201]="";R[202]="";R[203]="]";R[204]=")";R[205]=".";R[206]="..";R[207]="*";R[208]="";R[209]="";R[69]="()";R[211]="for";R[70]="<*:local-name>";R[213]="?";R[59]="{"; +R[60]=" {";R[215]="}";R[216]="let";R[299]="-";function Jb(a,b){Ib[a]=b;R[b]=a}Jb("instance of",45);Jb("cast as",46);Jb("treat as",47);Jb("castable as",57);var Kb={Hq:function(){return null}},Lb;for(Lb in F)Kb[Lb.toUpperCase()]=F[Lb];Kb.pq=F.Rd;Kb.hn=F.Ve;function Mb(a){a=a.charCodeAt(0);return 65<=a&&90>=a||97<=a&&122>=a}var Nb=Na.Yc;function Ob(a){var b=a.charCodeAt(0);return Mb(a)||48<=b&&57>=b}function Pb(a,b){return new q(a,void 0===b?"XPST0003":b)}function Qb(a){return new q(void 0===a?"Illegal Argument":a,"XPST0003")};function Rb(a,b,d,m){this.kind=a;this.ip=b;this.hp=d;this.errorCode=void 0===m?"XPTY0004":m}Rb.prototype={eh:function(){return this.errorCode},save:function(){var a=this.kind+"|"+this.hp+"|";a+=("XPTY0004"===this.errorCode?"":this.errorCode)+"|";return a+=this.ip}};function W(){this.b=J.B.Qa}ba=W.prototype;ba.start=function(a,b){b=void 0===b?{}:b;a.start(this.V,b);this.Jd&&a.Re("role",this.Jd);this.b&&(B.assert(this.b instanceof J.Ka),a.Re("sT",this.b.va()));this.Al&&a.Re("sType",this.b.va())};ba.vd=function(){return!ib(this.b.na)};ba.Ub=function(a,b){b=void 0===b?{}:b;this.start(a,b);a.end()};ba.j=function(a){this.Ub(a)};ba.V="Expression";ba.kind=null;ba.Jd=null;ba.Al=null;ba.ib=function(a,b){return new Rb(this.kind,this.V,a,void 0===b?"XPTY0004":b)}; +ba.kb=function(){throw new Pb(B.Ip(this)+" is not a valid pattern","XTSE0340");};ba.eg=function(){return this};function Sb(a,b,d){W.call(this);this.Lb=b;this.Ca=a;this.Fa=d;if(this.Ca.Mb||this.Fa.Mb)this.Mb=!0;this.Ca.Ed&&this.Fa.Ed&&(this.Ed=!0)}n(Sb,W);Sb.prototype.j=function(a){W.prototype.start.call(this,a,this.Lb?{op:R[this.Lb]}:{});this.Ca.j(a);this.Fa.j(a);a.end()};Sb.prototype.kind=1;function Tb(a){W.call(this);this.bb=a;this.bb.Mb&&(this.Mb=!0);this.bb.Ed&&(this.Ed=!0)}n(Tb,W); +Tb.prototype.j=function(a){W.prototype.start.call(this,a);this.bb.j(a);a.end()};Tb.prototype.kind=9;var Ub=[!1,!1,!0,!0,!0,!0,!0,!0,!0,!0,!1,!1,!0,!1];function Vb(a){return"ancestor ancestor-or-self attribute child descendant descendant-or-self following following-sibling namespace parent preceding preceding-sibling self preceding-or-ancestor".split(" ")[a]}var Wb=[1,1,2,1,1,1,1,1,13,1,1,1,1,1],Xb=[4,5,9,9,0,1,10,11,9,3,6,7,12]; +function Yb(a){switch(a){case "self":return 12;case "child":return 3;case "parent":return 9;case "ancestor":return 0;case "attribute":return 2;case "following":return 6;case "namespace":return 8;case "preceding":return 10;case "descendant":return 4;case "ancestor-or-self":return 1;case "following-sibling":return 7;case "preceding-sibling":return 11;case "descendant-or-self":return 5}throw new Pb("Unknown axis name: "+a);};function Zb(){W.call(this);this.b=J.B.qe}n(Zb,W);Zb.prototype.kb=function(){return this};Zb.prototype.j=function(a){W.prototype.Ub.call(this,a)};function $b(a){Zb.apply(this,arguments)}n($b,Zb);$b.prototype.V="p.any";function ac(a,b){b=void 0===b?"match":b;Zb.call(this);this.message=a;this.Jd=b;this.b=J.B.qe}n(ac,Zb);ac.prototype.j=function(a){Zb.prototype.Ub.call(this,a,{message:this.message})};ac.prototype.V="p.warning";function bc(a){Zb.call(this);this.Nb=a;this.b=J.B.qe}n(bc,Zb); +bc.prototype.j=function(a){Zb.prototype.start.call(this,a);this.Nb.j(a);a.end()};bc.prototype.V="p.booleanExp";function cc(a,b){Zb.call(this);B.assert(b instanceof I.mc);this.test=b;this.b=new J.Ka(b,kb)}n(cc,Zb);cc.prototype.j=function(a){Zb.prototype.Ub.call(this,a,{test:this.test.va()})};cc.prototype.V="p.nodeTest";function dc(a,b){Zb.call(this);this.pattern=a;this.Nb=b;this.b=a.b;a.code&&(this.code=a.code)}n(dc,Zb); +dc.prototype.j=function(a){Zb.prototype.start.call(this,a);this.code&&a.Re("code",this.code);this.pattern.j(a);this.Nb.j(a);a.end()};dc.prototype.V="p.withPredicate";function ec(a){Zb.call(this);this.ho=a;this.b=a.b.Va(kb)}n(ec,Zb);ec.prototype.j=function(a){Zb.prototype.start.call(this,a);this.ho.j(a);a.end()};ec.prototype.V="p.nodeSet";function fc(a){Zb.call(this);this.bb=a;this.b=a.b.Va(kb)}n(fc,Zb);fc.prototype.j=function(a){Zb.prototype.start.call(this,a);this.bb.j(a);a.end()}; +fc.prototype.V="p.genNode";function gc(a,b){Zb.call(this);this.Nb=b;this.code=a.b.va();this.b=a.b.Va(kb)}n(gc,Zb);gc.prototype.j=function(a){Zb.prototype.start.call(this,a,{test:this.code});this.Nb.j(a);a.end()};gc.prototype.V="p.genPos";function hc(a,b){Zb.call(this);this.code=a.va();this.zg=b;this.b=a.Va(kb)}n(hc,Zb);hc.prototype.j=function(a){Zb.prototype.Ub.call(this,a,{test:this.code,pos:this.zg})};hc.prototype.V="p.simPos"; +function ic(a,b,d){Zb.call(this);this.axis=Xb[a];this.Bb=b;this.upper=d;this.b=b.b}n(ic,Zb);ic.prototype.j=function(a){Zb.prototype.start.call(this,a,{axis:Vb(this.axis)});this.Bb.j(a);this.upper.j(a);a.end()};ic.prototype.V="p.withUpper";function lc(a,b,d,m){Zb.call(this);this.Lb=b;this.Ca=a;this.Fa=d;this.b=m.Va(kb)}n(lc,Zb);lc.prototype.j=function(a){Zb.prototype.start.call(this,a,{op:1===this.Lb?"union":R[this.Lb]});this.Ca.j(a);this.Fa.j(a);a.end()};lc.prototype.V="p.venn"; +function nc(a,b,d){lc.call(this,a,1,b,d)}n(nc,lc);function oc(a){var b=[];a.Ca instanceof nc?b=oc(a.Ca):b.push(a.Ca);a.Fa instanceof nc?b=b.concat(oc(a.Fa)):b.push(a.Fa);return b}function pc(a){Zb.call(this);this.lm=a;a=sa(this.lm);for(var b=a.next();!b.done;b=a.next())b.value.Al=!0}n(pc,Zb);pc.prototype.j=function(a){Zb.prototype.start.call(this,a);for(var b=sa(this.lm),d=b.next();!d.done;d=b.next())d.value.j(a);a.end()};pc.prototype.V="UnionExprP";function qc(){this.G=this.state=0;this.ba=null;this.la=this.$g=0;this.Fb=null;this.dc=0;this.input=null;this.eb=this.I=0;this.$j=this.lineNumber=1;this.vg=null;this.lc=-1;this.vh="";this.Wk=this.In=!1}ba=qc.prototype;ba.getState=function(){return this.state};function rc(a,b){a.state=b;0===b?(a.lc=-1,a.vh="",a.G=-1):b===sc&&(a.lc=204,a.vh=")",a.G=204)}function tc(a,b){a.state=0;a.la=0;a.Fb=null;a.dc=0;a.I=0;a.input=b;a.lineNumber=0;a.$j=0;a.eb=b.length;uc(a);a.next()} +ba.next=function(){this.lc=this.G;this.vh=this.ba;this.G=this.la;this.ba=this.Fb;null===this.ba&&(this.ba="");this.$g=this.dc;this.lineNumber=this.$j;switch(this.G){case 201:var a=vc(this,this.ba);-1===a||150>=this.lc||213===this.lc||(this.G=a);break;case 207:150>=this.lc||213===this.lc||(this.G=17)}if(215!==this.G&&(a=this.lc,uc(this),201===this.G&&this.state!==wc&&21!==a))switch(this.la){case 5:var b=vc(this,this.ba);-1===b||150>=a?(this.G=this.Qj(this.ba),uc(this)):this.G=b;break;case 59:this.state!== +xc&&(this.G=60,uc(this));break;case 41:uc(this);this.G=36;break;case 44:uc(this);this.G=43;break;case 42:uc(this);this.G=208;break;case 21:"for"===this.ba?this.G=211:"some"===this.ba?this.G=32:"every"===this.ba?this.G=33:"let"===this.ba&&(this.G=216);break;case 201:a=this.ba+" "+this.Fb,b=Ib[a],null!=b&&(this.G=b,this.ba=a,uc(this))}}; +function uc(a){a.lc=a.la;a.vh=a.Fb;a.Fb=null;for(a.dc=a.I;;){if(a.I>=a.eb){a.la=0;break}var b=a.input.charAt(a.I++);switch(b){case "/":if(a.I"===a.input.charAt(a.I)){a.I++; +a.la=76;return}a.la=6;return;case "!":if(a.I":if(a.I"===a.input.charAt(a.I)){a.I++;a.la=39;return}a.la=11;return;case ".":if(a.Ia.input.charAt(a.I)||"9"=b||127d?0:d-5,d+5)+"'",new Pb("Separator needed after numeric literal"+a);a.I--;break a}if(a.I>=a.eb)break;b=a.input.charAt(a.I++)}a.Fb=a.input.substring(a.dc,a.I);a.la=209;return; +case '"':case "'":for(a.Fb="";;){a.I=a.input.indexOf(b,a.I);if(0>a.I)throw a.I=a.dc+1,new Pb("Unmatched quote in expression");a.Fb+=a.input.substring(a.dc+1,a.I++);if(a.Ib.charCodeAt(0)&&!Mb(b))throw new Pb("Invalid character '"+b+"' in expression");case "_":d=!1;a:for(;a.I< +a.eb;a.I++)switch(b=a.input.charAt(a.I),b){case ":":if(d)break a;else{if(213===a.lc||70===a.lc){a.Fb=a.input.substring(a.dc,a.I);a.la=201;return}if(a.I+1b.charCodeAt(0)&&!Ob(b))break a}a.Fb=a.input.substring(a.dc,a.I);a.la=201;return}}} +function vc(a,b){var d={or:9,is:20,to:29,"in":31,eq:50,ne:51,le:55,lt:53,gt:52,ge:54,as:71,and:10,div:18,mod:19,idiv:56,then:26,"else":27,"case":67,where:28,union:1,except:24,"return":25,otherwise:79,orElse:81,"default":212,andAlso:80,intersect:23,satisfies:34}[b];return 1===d&&a.In||[81,80].includes(d)&&!a.Wk?-1:d||-1} +ba.Qj=function(a){var b={"if":37,array:69,attribute:69,comment:69,"document-node":69,element:69,"empty-sequence":69,"function":69,map:69,item:69,"namespace-node":69,node:69,"processing-instruction":69,"schema-attribute":69,"schema-element":69,"switch":69,otherwise:79,text:69,tuple:69,typeswitch:69,union:69}[a];return b?["tuple","union"].includes(a)&&!this.Wk?35:b:35};function yc(a,b){b=void 0===b?-1:b;a.lineNumber++;a.$j++;null===a.vg&&(a.vg=[]);a.vg.push(-1===b?a.I-1:b)} +function zc(a){a.I>a.eb&&(a.I=a.eb);return 34>a.I?a.input.substring(0,a.I):Na.collapse("..."+a.input.substring(a.I-30,a.I)).toString()}function Ac(a,b){if(null===a.vg)return b;for(var d=a.vg.length-1;0<=d;d--){var m=a.vg[d];if(b>m)return d+1<<16|b-m}return b}ba.getLineNumber=function(a){return(a=void 0===a?null:a)?Ac(this,a)>>16:this.lineNumber};ba.getColumnNumber=function(a){a=void 0===a?null:a;return Ac(this,a?a:this.$g)&32767};var wc=1,xc=2,sc=3;function Bc(){};function Cc(a,b){W.call(this);Array.isArray(a)||B.ra("Literal value must be array");b instanceof J.Ka&&b.ca.va||B.ra("Literal type must be a SequenceType");a&&(this.value=a,b&&(this.b=b));this.Jd=null}n(Cc,W);function Dc(a){return 1===a.value.length&&I.Nh.pa.ta()(a.value[0])}Cc.prototype.toString=function(){return this.value.toString()}; +Cc.prototype.j=function(a){function b(b,d){var c={val:b.toString()};d&&(c.role=d);var k=C.type[b.type].code;switch(k){case "AS":a.start("str",c);break;case "AO":a.start("dbl",c);break;case "AB":a.start(b.value?"true":"false",{});break;case "AD":a.start("dec",c);break;case "ADI":a.start("int",c);break;case "AQ":a.start("qName",{pre:b.prefix,uri:b.uri,loc:b.local});break;default:c.type=k,a.start("atomic",c)}a.end()}if(0===this.value.length)a.start("empty",this.Jd?{role:this.Jd}:{}),a.end();else if(1=== +this.value.length)b(this.value[0],this.Jd);else{var d={count:this.value.length};this.Jd&&(d.role=this.Jd);a.start("atomic",d);d=sa(this.value);for(var m=d.next();!m.done;m=d.next())b(m.value);a.end()}};function Ec(a){return a instanceof Cc&&Dc(a)}function Fc(a,b){return new Cc(a,b)}function Gc(){return new Cc([],J.B.fj)}Cc.prototype.V="literal";Cc.prototype.Ed=!0;function Hc(a){Cc.call(this,[C.O.T.g(a)],J.B.Td);this.b=J.B.Td}n(Hc,Cc);var Ic={6:50,22:51,11:52,12:53,13:54,14:55};function Jc(a,b){var d=a.ea().p;b.ea();if("AZ"===d&&b.qg())return!1;if("A"===d&&b.Ga())return!0;""===d&&b.Ga();return!0}function Kc(a){return/^A[BAMT2XQ]/.test(a)}function Lc(a,b,d,m){Sb.call(this,a,b,d);a=m.lo();b="GAC";switch(a){case Q.Rl:b="CAC"}a.startsWith(Q.Op)&&(b="CAC");d.b===J.B.cn&&(b="EQC");this.bg=b+"|"+a;this.b=J.B.ic}n(Lc,Sb);Lc.prototype.j=function(a){Sb.prototype.start.call(this,a,{op:R[this.Lb],comp:this.bg});this.Ca.j(a);this.Fa.j(a);a.end()}; +function Mc(a,b,d,m){Lc.call(this,a,b,d,m)}n(Mc,Lc);Mc.prototype.j=function(a){Lc.prototype.start.call(this,a,{op:R[this.Lb],comp:this.bg,card:"1:1"});this.Ca.j(a);this.Fa.j(a);a.end()}; +function Nc(a,b,d,m){Lc.call(this,a,b,d,m);a=Oc(a,J.B.Ng,this.ib(0));d=Oc(d,J.B.Ng,this.ib(1));var c=a.b.ea(),l=d.b.ea();var f=c.p;var k=l.p;f===k||[f,k].includes("AZ")||[f,k].includes("A")?f=!0:(/^A[ODF]/.test(f)&&(f="AO"),/^A[ODF]/.test(k)&&(k="AO"),/^A[SU]/.test(f)&&(f="AS"),/^A[SU]/.test(k)&&(k="AS"),f="E"===f||"E"===k?!0:f===k);if(!f)if(f="Cannot compare items of types "+a.b.ca.toString()+" and "+d.b.ca.toString(),/[*?]/.test(c.o)||/[*?]/.test(l.o))B.Gb("Cannot compare items of types "+a.b.ca.toString()+ +" and "+d.b.ca.toString()+": the comparison can succeed only if one of the values is an empty sequence",2);else throw new Pb(f,"XPTY0004");if(c=a.b.na===kb&&d.b.na===kb&&Ic[b])c=a.b.ca,l=d.b.ca,f=c.ea().p,k=l.ea().p,c=Kc(f)||Kc(k)?f===k:c.qg()&&l.qg()?!0:/^A[SZU]/.test(f)&&/^A[SZU]/.test(k);if(c)return new Pc(a,Ic[b],d,m);this.Ca=a;this.Fa=d}n(Nc,Mc);Nc.prototype.V="gc";function Qc(a,b,d,m){Lc.call(this,a,b,d,m)}n(Qc,Mc);Qc.prototype.V="gc10"; +function Pc(a,b,d,m,c){c=void 0===c?!0:c;Lc.call(this,a,b,d,m);var l=a.b.ca,f=d.b.ca,k=l.ea().p,r=f.ea().p;if(!("A"===k&&f.Ga()||"A"===r&&l.Ga()||""===k||""===r||l.ea().p.startsWith("AM")&&f.ea().p.startsWith("AM")||(Kc(k)||Kc(r)?k===r:Jc(l,f)||Jc(f,l))))throw new Pb("Cannot compare "+a.b.toString()+" "+R[b]+" "+d.b.toString(),"XPTY0004");a=Oc(a,J.B.Sd,this.ib(0));d=Oc(d,J.B.Sd,this.ib(1));if(51!==b&&50!==b&&/^A[QGHIJK]/.test(a.b.ca.ea().p))throw new Pb("Cannot order-compare "+a.b.toString()+" "+ +R[b]+" "+d.b.toString(),"XPTY0004");if(c){if(Ec(d)&&C.O.Ma.matches(d.value[0])&&"ADI"===a.b.ea().p)return new Rc(a,b,d,m);if(d instanceof Hc)return new Sc(a,b,d,m)}this.Ca=a;this.Fa=d}n(Pc,Lc);Pc.prototype.V="vc";function Tc(a,b,d,m){return Pc.call(this,a,b,d,m,!1)||this}n(Tc,Pc);Tc.prototype.j=function(a){Pc.prototype.start.call(this,a,{op:R[this.Lb],val:this.Fa.value[0]});this.Ca.j(a);a.end()};function Rc(a,b,d,m){return Tc.call(this,a,b,d,m)||this}n(Rc,Tc);Rc.prototype.V="compareToInt"; +function Sc(a,b,d,m){return Tc.call(this,a,b,d,m)||this}n(Sc,Tc);Sc.prototype.j=function(a){Tc.prototype.start.call(this,a,{op:R[this.Lb],val:this.Fa.value[0].toString(),comp:this.bg});this.Ca.j(a);a.end()};Sc.prototype.V="compareToString";function Uc(a,b,d,m){Lc.call(this,a,b,d,m);a=Oc(a,J.B.Oh,this.ib(0));d=Oc(d,J.B.Oh,this.ib(0));this.Ca=a;this.Fa=d;this.V=38===b?"precedes":39===b?"follows":"is"}n(Uc,Lc);Uc.prototype.j=function(a){Lc.prototype.start.call(this,a);this.Ca.j(a);this.Fa.j(a);a.end()};function Vc(a,b){W.call(this);this.En=a;this.actions=b;this.Mb=b.some(function(a){return a.Mb});var d=pb.ug(b.map(function(a){return a.b.ca})),m=rb(b.map(function(a){return a.b.na}));this.b=new J.Ka(d,m)}n(Vc,W);Vc.prototype.j=function(a){W.prototype.start.call(this,a);for(var b=0,d=sa(this.En),m=d.next();!m.done;m=d.next())m.value.j(a),this.actions[b++].j(a);a.end()};function Wc(a,b,d){a=[a,Fc([C.O.Ea.cf],J.B.ic)];return new Vc(a,[b,d])}Vc.prototype.V="choose";function Xc(a,b){return a instanceof Yc&&a.name.name.uri===F.cb&&a.name.name.local===b}function Zc(a,b){return a instanceof Pc&&a.Lb===b&&Xc(a.Ca,"position")&&Xc(a.Fa,"last")} +function $c(a,b){W.call(this);if(b){var d=Xc(b,"last")||Zc(b,50);if(d)return new ad(a);d=d||Zc(b,53);var m=b.Mb||b instanceof bd,c=b.Ed;if(!m&&c&&b.b.ia(J.B.bf))return new cd(a,b);m||(m=b.b.ca.ea().p,m="AB"===m||m.startsWith("N")?!1:"A"===m||/^A[ODF]/.test(m));this.step=a;this.b=a.b;b instanceof dd?this.b=b.type.Va(this.b.na):b instanceof Cc&&Dc(b)&&(this.b=this.b.Va(lb));m&&(this.Mb=!0);c&&(this.Ed=!0);this.Nb=d?new ed(50===b.Lb?"1":"0"):b}}n($c,W);ba=$c.prototype;ba.xf=function(){return this.step.xf()}; +ba.vd=function(){return W.prototype.vd.call(this)||this.step.vd()};ba.kb=function(){if(!this.b.ca.pg()){var a=fd("exists",this);return new bc(a)}return this.Mb&&this.step instanceof gd&&!(this.Nb instanceof ed)?new gc(this.step,this.Nb):this.Mb?new fc(this.eg()):new dc(this.step.kb(),this.Nb)};ba.eg=function(){if(this.step instanceof hd)return this.Nb;this.step=this.step instanceof gd?id(new hd,this.step):this.step.eg();return this}; +ba.j=function(a){W.prototype.start.call(this,a);var b="";this.Ed&&(b+="i");this.Mb&&(b+="p");""!==b&&a.Re("flags",b);this.step.j(a);this.Nb.j(a);a.end()};ba.V="filter";function cd(a,b){var d=$c.call(this,a,null)||this;if(Ec(b)&&C.O.Ma.matches(b.value[0])&&1===b.value[0].value)return new jd(a);d.step=a;d.b=a.b.Va(lb);d.Nb=b;d.Mb=!0;return d}n(cd,$c); +cd.prototype.kb=function(){return this.step instanceof hd?new ac("Numeric predicates other than 1 in PredicatePatterns never match. Value provided:"+this.Nb.value.value):this.step instanceof gd?new hc(this.step.b,this.Nb.value[0].value):new fc(this.eg())};cd.prototype.V="subscript";function jd(a){var b=cd.call(this,a,null)||this;b.step=a;b.Mb=!0;b.b=a.b.Va(lb);return b}n(jd,cd); +jd.prototype.kb=function(){return this.b.ca.pg()?this.step instanceof gd?new fc(new jd(id(new hd,this.step))):new fc(this.eg()):new bc(this)};jd.prototype.j=function(a){cd.prototype.start.call(this,a);this.step.j(a);a.end()};jd.prototype.V="first";function ad(a){var b=cd.call(this,a,null)||this;b.step=a;b.Mb=!0;b.b=a.b.Va(lb);return b}n(ad,cd); +ad.prototype.kb=function(){if(!(this.step instanceof gd))return new fc(this.eg());if(3===this.step.axis){var a=new gd(7,this.step.Nb);return new dc(this.step.kb(),fd("empty",[a]))}return new hc(this.step.b,1)};ad.prototype.j=function(a){cd.prototype.start.call(this,a);this.step.j(a);a.end()};ad.prototype.V="lastOf";function ed(a){a=void 0===a?"1":a;W.call(this);this.test=a;this.b=J.B.ic}n(ed,W);ed.prototype.j=function(a){this.Ub(a,{test:this.test})};ed.prototype.V="isLast";function kd(){W.call(this);this.action=this.value=this.Qd=this.Nc=null;this.slot=0}n(kd,W);ba=kd.prototype;ba.Bh=function(a){this.Nc=a};ba.hg=function(){return this.Nc};ba.Ue=function(a){this.action=a;this.b=a.b};ba.Si=function(){};ba.Eg=function(a){this.value=a;this.Qd=a.b};ba.j=function(a){W.prototype.start.call(this,a,{name:this.Nc.ha(),slot:this.slot});this.value.j(a);this.action.j(a);a.end()};function ld(){kd.call(this)}n(ld,kd); +ld.prototype.Eg=function(a){this.value=a;this.Qd=a.b.Va(kb);this.action&&(this.b=this.action.b.Fi(a.b.na))};ld.prototype.Ue=function(a){this.action=a;this.value&&(this.b=a.b.Fi(this.value.b.na))};ld.prototype.V="for";function md(){kd.call(this)}n(md,kd);md.prototype.V="let";function nd(a,b){Sb.call(this,a,null,b);this.b=J.B.ic}n(nd,Sb);function od(a,b){nd.call(this,a,b)}n(od,nd);od.prototype.V="and";function pd(a,b){nd.call(this,a,b)}n(pd,nd);pd.prototype.V="or";function qd(a){return Ec(a)&&C.O.Ma.matches(a.value[0])&&1E7>a.value[0].value}function rd(a,b,d){d=void 0===d?!1:d;Sb.call(this,a,null,b);d&&(a=sd(a),b=sd(b));a=Oc(a,J.B.Ek,this.ib(0));b=Oc(b,J.B.Ek,this.ib(1));if(qd(a)&&qd(b))return new td(a.value[0],b.value[0]);this.Ca=a;this.Fa=b;this.b=J.B.gj}n(rd,Sb);rd.prototype.V="to";function td(a,b){W.call(this);if(a.value>b.value)return Gc();if(a.value===b.value)return new Cc([a],J.B.gj);this.from=a;this.Np=b;this.b=J.B.gj}n(td,W); +td.prototype.j=function(a){W.prototype.Ub.call(this,a,{from:this.from,to:this.Np})};td.prototype.V="range";function ud(a,b){W.call(this);this.bb=a;this.next=b;this.b=b.b.Fi(a.b.na)}n(ud,W);ud.prototype.j=function(a){W.prototype.start.call(this,a);this.bb.j(a);this.next.j(a);a.end()};ud.prototype.V="forEach";var vd="array attribute comment document-node element empty-sequence function if item map namespace-node node processing-instruction schema-attribute schema-element switch text typeswitch".split(" ");function wd(a,b){if(""===a.prefix&&vd.includes(a.local))throw new Pb("The unprefixed function name '"+a.local+"' is reserved","XPST0003");this.name=a;this.arity=b}wd.prototype.ha=function(){return this.name.ha()};wd.prototype.toString=function(){return this.name.ha()+"#"+this.arity};var xd={array:"http://www.w3.org/2005/xpath-functions/array",fn:"http://www.w3.org/2005/xpath-functions",map:"http://www.w3.org/2005/xpath-functions/map",math:"http://www.w3.org/2005/xpath-functions/math",saxon:"http://saxon.sf.net/",xml:"http://www.w3.org/XML/1998/namespace",xs:"http://www.w3.org/2001/XMLSchema",xsl:"http://www.w3.org/1999/XSL/Transform"},yd={},zd;for(zd in xd)yd[xd[zd]]=zd;function Ad(a,b,d,m){W.call(this);this.name=C.O.X.xa(yd[d],d,a);this.arity=b;this.uri=d;this.b=J.B.mj;this.resultType=m}n(Ad,W); +function Bd(a,b){var d=new wd(a.name,a.arity),m=J.B.Qa;switch(a.uri){case F.map:m=J.B.Kk;switch(a.name.local){case "get":m=b[0].b.valueType;break;case "merge":m=J.B.Kk;break;case "entry":m=J.ad(new I.oj(b[0].b,b[1].b))}return new Cd(d,b,m);case F.kf:switch(a.name.local){case "_from-sequence":m=J.ad(new I.nj(b[0].b),kb)}return new Dd(d,b,m);case F.Jc:switch(a.name.local){case "apply":m=b[0].b,m=m.ca?m.ca:m,m=m.resultType?m.resultType:J.B.Qa}return new Ed(d,b,m)}}Ad.prototype.V="function"; +function Fd(){}Fd.prototype.uri=F.cb;function Gd(a,b,d){return new Ad(b,d,a.uri,J.B.Qa)}function Hd(){}n(Hd,Fd);Hd.prototype.uri=F.map;var Id=new Hd;function Jd(){}n(Jd,Fd);Jd.prototype.uri=F.kf;var Kd=new Jd;function Ld(){}n(Ld,Fd);Ld.prototype.uri=F.Jc;function Md(){}n(Md,Ld);var Nd=new Md;function Od(a,b,d,m,c){c=void 0===c?{}:c;B.assert(b);B.assert(b instanceof J.Ka);B.assert(a.b);B.assert(a.b instanceof J.Ka);var l=b.ea(),f=a,k,r=b.ca,v=b.na,w=ib(v),z=null,t=-1,g=v===jb;g||(t=a.b.na,g=(v|t)===v);l=""===l.p;v===hb&&(l=!0);l||(z=a.b.ca,t=a.b.na,l=pb.Zc(r,z),l===pb.wd&&(l=z===I.pe.pa?pb.Ud:r===I.pe.pa?pb.gd:l),l=l===pb.Dc||l===pb.gd);if(l&&g)return f;if(c.kd&&!w&&(ib(t)&&(f=k=new jd(f),t=lb,g=(v|t)===v),!l)){if(r.Ga("AS")){try{k=Od(f,J.B.Fk,d,m)}catch(K){throw K;}f=fd("string",k);z= +I.Lk;t=kb;f.b=J.B.Td;g=(v|t)===v;l=!0}if(r.Ge()||r.Ga("AO")){try{k=Od(f,J.B.Fk,d,m)}catch(K){throw K;}f=fd("number",k);z=I.af;t=kb;f.b=J.B.Qh;g=(v|t)===v;l=!0}}if(!l)if(r.Ga()){if(!z.Ga()&&t!==hb){if(!z.Ao)throw b=new q("An atomic value is required for the "+d.gg()+", but the supplied value (type "+z.toString()+") cannot be atomized","error()"===z.name?"FOER0000":"FOTY0013",a),b;z=!ib(t);t=!ib(v);k=z?new Pd(f,m,gb(v)):new Qd(f,m);t&&!z&&(k=Rd(k,v,m));f=k;z=f.b.ca;t=f.b.na;g=(v|t)===v}z.Ga("AZ")&& +(r.Ge()||!r.Ga("AZ")&&"A"!==r.ea().p)&&(f=k=Sd(f,r,m),l=!0,z=r);"A"!==z.va()||["A","AZ"].includes(r.va())||(f=k=Sd(f,r,m),z=f.b.ca);r.Ga()&&(r.Ga("AO")&&pb.Zc(z,I.Nh.pa)!==pb.wd?(f=k=new Td(f,J.B.Qh,m),z=I.Jb.af,t=-1):r.Ga("AF")&&pb.Zc(z,I.Nh.pa)!==pb.wd&&!pb.Ko(z,I.Jb.af)&&(f=k=new Td(f,J.B.bn,m),z=I.Jb.FLOAT,t=-1),r.Ga("AS")&&z.Ga("AU")&&(l=!0,f=k=new Td(f,J.B.Td,m),z=I.Jb.Lk))}else r.ng()&&"F"===r.ea().p&&(z.ng()||(f=new Ud(f,I.Xe.pa,m),z=I.Xe.pa),r instanceof I.Xe||(k=z.ea(),("FM"===k.p||"FA"=== +k.p)&&1===r.wf().length)||(f=new Vd(f,J.ad(r),m)),l=!0);if(l&&g)return f;-1===t&&(t=f.b.na,g||(g=(v|t)===v));if(g&&t===hb)return f;if(t===hb&&!gb(v))throw b=new q("An empty sequence is not allowed as the "+d.gg(),d.eh()),b;l=l?pb.Ud:pb.Zc(z,r);l===pb.wd&&(l=z===I.pe.pa?pb.gd:r===I.pe.pa?pb.Ud:l);v===hb&&(l=pb.Dc);if(l===pb.wd)if(gb(t)&&gb(v))t!==hb&&(k=d.Bj(r,z),B.Gb(k+". The expression can succeed only if the supplied value is an empty sequence.",1));else throw k=d.Bj(r,z),b=new q(k,"error()"=== +z.name?"FOER0000":d.eh()),b;if(l!==pb.Dc&&l!==pb.Ud){if(f.Go){m=C.O.T.g(f.getAttribute("val"));if(b.Ga&&b.matches(m))return f;k=d.Bj(r,z);b=new q(k,d.eh());throw b;}f=k=Wd(f,new J.Ka(r,v),m);g=!0}if(!g){if(f.Go)throw b=new q("Required cardinality of "+d.gg()+" is "+eb(v)+"; supplied value has cardinality "+eb(t),d.eh()),b;f=k=Rd(f,v,m)}return f}function Sd(a,b,d){b=b.Ge()?"AO":b.ea().p;return new Xd(a,b,d)};var ce={wr:{QuantifiedExpr:"1AB",OrExpr:"1AB",AndExpr:"1AB",ComparisonExpr:"1AB",StringConcatExpr:"1AS",RangeExpr:"*ADI",AdditiveExpr:"?A",MultiplicativeExpr:"?A",IntersectExceptExpr:"*N",InstanceOfExpr:"1AB",CastableExpr:"1AB",UnaryExpr:"?A m[UO,UD,UF]",StringLiteral:"1AS",IntegerLiteral:"1ADI",DecimalLiteral:"1AD",DoubleLiteral:"1AO",NamedFunctionRef:"1F",InlineFunctionExpr:"1F",MapExpr:"1FM",Root:"1ND"},Vp:{"http://www.w3.org/2005/xpath-functions":{QName:{argNames:"paramURI,paramQName",maxArgs:2, +minArgs:2,sig:"1F r[1AQ] a[?AS,1AS]"},abs:{argNames:"arg",maxArgs:1,minArgs:1,sig:"1F r[?A m[AO,AD,AF]] a[?A m[AO,AD,AF]]"},"accumulator-after":{XSLTonly:!0,argNames:"name",maxArgs:1,minArgs:1,sig:"1F a[1AS] r[*]"},"accumulator-before":{XSLTonly:!0,argNames:"name",maxArgs:1,minArgs:1,sig:"1F a[1AS] r[*]"},"adjust-date-to-timezone":{argNames:"arg,timezone",maxArgs:2,minArgs:1,sig:"1F r[?AA] a[?AA,?ARD]"},"adjust-dateTime-to-timezone":{argNames:"arg,timezone",maxArgs:2,minArgs:1,sig:"1F r[?AM] a[?AM,?ARD]"}, +"adjust-time-to-timezone":{argNames:"arg,timezone",maxArgs:2,minArgs:1,sig:"1F r[?AT] a[?AT,?ARD]"},"analyze-string":{argNames:"input,pattern,flags",maxArgs:3,minArgs:2,sig:"1F r[1NE nQ{http://www.w3.org/2005/xpath-functions}analyze-string-result] a[?AS,1AS,1AS]"},apply:{argNames:"function,array",maxArgs:2,minArgs:2,sig:"1F a[1F,1FA] r[*]"},"available-environment-variables":{argNames:"",maxArgs:0,minArgs:0,sig:"1F r[*AS] a[]"},"available-system-properties":{XSLTonly:!0,argNames:"",maxArgs:0,minArgs:0, +sig:"1F r[*AQ] a[]"},avg:{argNames:"arg",maxArgs:1,minArgs:1,sig:"1F r[?A] a[*A]"},"base-uri":{argNames:"arg",defaultToDot:!0,maxArgs:1,minArgs:0,sig:"1F r[?AU] a[?N]"},"boolean":{argNames:"arg",maxArgs:1,minArgs:1,sig:"1F r[1AB] a[*]"},ceiling:{argNames:"arg",maxArgs:1,minArgs:1,sig:"1F r[?A m[AO,AD,AF]] a[?A m[AO,AD,AF]]"},"codepoint-equal":{argNames:"comparand1,comparand2",maxArgs:2,minArgs:2,sig:"1F r[?AB] a[?AS,?AS]"},"codepoints-to-string":{argNames:"arg",maxArgs:1,minArgs:1,sig:"1F r[1AS] a[*ADI]"}, +"collation-key":{argNames:"key,collation",maxArgs:2,minArgs:1,sig:"1F r[1A2] a[1AS,1AS]"},collection:{argNames:"arg",maxArgs:1,minArgs:0,sig:"1F a[?AS] r[*]"},compare:{argNames:"comparand1,comparand2,collation",maxArgs:3,minArgs:2,sig:"1F r[?ADI] a[?AS,?AS,1AS]"},concat:{argNames:"arg1,arg2,...",maxArgs:1E3,minArgs:2,sig:"1F r[1AS] a[?A,?A,?A]",variadic:!0},contains:{argNames:"arg1,arg2,collation",maxArgs:3,minArgs:2,sig:"1F r[1AB] a[?AS,?AS,1AS]"},"contains-token":{argNames:"input,token,collation", +maxArgs:3,minArgs:2,sig:"1F r[1AB] a[*AS,1AS,1AS]"},"copy-of":{XSLTonly:!0,argNames:"input",defaultToDot:!0,maxArgs:1,minArgs:0,sig:"1F a[*] r[*]"},count:{argNames:"arg",maxArgs:1,minArgs:1,sig:"1F r[1ADI] a[*]"},current:{XSLTonly:!0,argNames:"",maxArgs:0,minArgs:0,sig:"1F r[1] a[]"},"current-date":{argNames:"",maxArgs:0,minArgs:0,sig:"1F r[1AA] a[]"},"current-dateTime":{argNames:"",maxArgs:0,minArgs:0,sig:"1F r[1AMP] a[]"},"current-group":{XSLTonly:!0,argNames:"",maxArgs:0,minArgs:0,sig:"1F a[] r[*]"}, +"current-grouping-key":{XSLTonly:!0,argNames:"",maxArgs:0,minArgs:0,sig:"1F r[*A] a[]"},"current-merge-group":{XSLTonly:!0,argNames:"source",maxArgs:1,minArgs:0,sig:"1F a[1AS] r[*]"},"current-merge-key":{XSLTonly:!0,argNames:"",maxArgs:0,minArgs:0,sig:"1F r[*A] a[]"},"current-output-uri":{XSLTonly:!0,argNames:"",maxArgs:0,minArgs:0,sig:"1F r[?AU] a[]"},"current-time":{argNames:"",maxArgs:0,minArgs:0,sig:"1F r[1AT] a[]"},data:{argNames:"arg",defaultToDot:!0,maxArgs:1,minArgs:0,sig:"1F r[*A] a[*]"}, +dateTime:{argNames:"arg1,arg2",maxArgs:2,minArgs:2,sig:"1F r[?AM] a[?AA,?AT]"},"day-from-date":{argNames:"arg",maxArgs:1,minArgs:1,sig:"1F r[?ADI] a[?AA]"},"day-from-dateTime":{argNames:"arg",maxArgs:1,minArgs:1,sig:"1F r[?ADI] a[?AM]"},"days-from-duration":{argNames:"arg",maxArgs:1,minArgs:1,sig:"1F r[?ADI] a[?AR]"},"deep-equal":{argNames:"parameter1,parameter2,collation",maxArgs:3,minArgs:2,sig:"1F r[1AB] a[*,*,1AS]"},"default-collation":{argNames:"",maxArgs:0,minArgs:0,sig:"1F r[1AS] a[]"},"default-language":{argNames:"", +maxArgs:0,minArgs:0,sig:"1F r[1ASNTL] a[]"},"distinct-values":{argNames:"arg,collation",maxArgs:2,minArgs:1,sig:"1F r[*A] a[*A,1AS]"},doc:{argNames:"uri",maxArgs:1,minArgs:1,sig:"1F r[?ND] a[?AS]"},"doc-available":{argNames:"uri",maxArgs:1,minArgs:1,sig:"1F r[1AB] a[?AS]"},document:{XSLTonly:!0,argNames:"uri-sequence,base-node",maxArgs:2,minArgs:1,sig:"1F r[*N] a[*,1N]"},"document-uri":{argNames:"arg",defaultToDot:!0,maxArgs:1,minArgs:0,sig:"1F r[?AU] a[?N]"},"element-available":{XSLTonly:!0,argNames:"element-name", +maxArgs:1,minArgs:1,sig:"1F r[1AB] a[1AS]"},"element-with-id":{argNames:"arg,node",defaultToDot:!0,maxArgs:2,minArgs:1,sig:"1F r[*NE] a[*AS,1N]"},empty:{argNames:"arg",maxArgs:1,minArgs:1,sig:"1F r[1AB] a[*]"},"encode-for-uri":{argNames:"uri-part",maxArgs:1,minArgs:1,sig:"1F r[1AS] a[?AS]"},"ends-with":{argNames:"arg1,arg2,collation",maxArgs:3,minArgs:2,sig:"1F r[1AB] a[?AS,?AS,1AS]"},"environment-variable":{argNames:"name",maxArgs:1,minArgs:1,sig:"1F r[?AS] a[1AS]"},error:{argNames:"code,description,error-object", +maxArgs:3,minArgs:0,sig:"1F r[0E] a[?AQ,1AS,*]"},"escape-html-uri":{argNames:"uri",maxArgs:1,minArgs:1,sig:"1F r[1AS] a[?AS]"},"exactly-one":{argNames:"arg",maxArgs:1,minArgs:1,sig:"1F r[1] a[*]"},exists:{argNames:"arg",maxArgs:1,minArgs:1,sig:"1F r[1AB] a[*]"},"false":{argNames:"",maxArgs:0,minArgs:0,sig:"1F r[1AB] a[]"},filter:{argNames:"seq,f",maxArgs:2,minArgs:2,sig:"1F r[*] a[*,1F r[1AB] a[1]]"},floor:{argNames:"arg",maxArgs:1,minArgs:1,sig:"1F r[?A m[AO,AD,AF]] a[?A m[AO,AD,AF]]"},"fold-left":{argNames:"seq,zero,f", +maxArgs:3,minArgs:3,sig:"1F a[*,*,1F a[*,1] r[*]] r[*]"},"fold-right":{argNames:"seq,zero,f",maxArgs:3,minArgs:3,sig:"1F a[*,*,1F a[1,*] r[*]] r[*]"},"for-each":{argNames:"seq,action",maxArgs:2,minArgs:2,sig:"1F a[*,1F a[1] r[*]] r[*]"},"for-each-pair":{argNames:"seq1,seq2,action",maxArgs:3,minArgs:3,sig:"1F a[*,*,1F a[1,1] r[*]] r[*]"},"format-date":{argNames:"value,picture,language,calendar,place",maxArgs:5,minArgs:2,sig:"1F r[?AS] a[?AA,1AS,?AS,?AS,?AS]"},"format-dateTime":{argNames:"value,picture,language,calendar,place", +maxArgs:5,minArgs:2,sig:"1F r[?AS] a[?AM,1AS,?AS,?AS,?AS]"},"format-integer":{argNames:"value,picture,lang",maxArgs:3,minArgs:2,sig:"1F r[1AS] a[?ADI,1AS,?AS]"},"format-number":{argNames:"value,picture,decimal-format-name",maxArgs:3,minArgs:2,sig:"1F r[1AS] a[?A m[AO,AD,AF],1AS,?AS]"},"format-time":{argNames:"value,picture,language,calendar,place",maxArgs:5,minArgs:2,sig:"1F r[?AS] a[?AT,1AS,?AS,?AS,?AS]"},"function-arity":{argNames:"func",maxArgs:1,minArgs:1,sig:"1F r[1ADI] a[1F]"},"function-available":{XSLTonly:!0, +argNames:"function-name,arity",maxArgs:2,minArgs:1,sig:"1F r[1AB] a[1AS,1ADI]"},"function-lookup":{argNames:"name,arity",maxArgs:2,minArgs:2,sig:"1F r[?F] a[1AQ,1ADI]"},"function-name":{argNames:"func",maxArgs:1,minArgs:1,sig:"1F r[?AQ] a[1F]"},"generate-id":{argNames:"arg",defaultToDot:!0,maxArgs:1,minArgs:0,sig:"1F r[1AS] a[?N]"},"has-children":{argNames:"node",defaultToDot:!0,maxArgs:1,minArgs:0,sig:"1F r[1AB] a[?N]"},head:{argNames:"arg",maxArgs:1,minArgs:1,sig:"1F r[?] a[*]"},"hours-from-dateTime":{argNames:"arg", +maxArgs:1,minArgs:1,sig:"1F r[?ADI] a[?AM]"},"hours-from-duration":{argNames:"arg",maxArgs:1,minArgs:1,sig:"1F r[?ADI] a[?AR]"},"hours-from-time":{argNames:"arg",maxArgs:1,minArgs:1,sig:"1F r[?ADI] a[?AT]"},id:{argNames:"arg,node",defaultToDot:!0,maxArgs:2,minArgs:1,sig:"1F r[*NE] a[*AS,1N]"},idref:{argNames:"arg,node",defaultToDot:!0,maxArgs:2,minArgs:1,sig:"1F r[*N] a[*AS,1N]"},"implicit-timezone":{argNames:"",maxArgs:0,minArgs:0,sig:"1F r[1ARD] a[]"},"in-scope-prefixes":{argNames:"element",maxArgs:1, +minArgs:1,sig:"1F r[*AS] a[1NE]"},"index-of":{argNames:"seq,search,collation",maxArgs:3,minArgs:2,sig:"1F r[*ADI] a[*A,1A,1AS]"},innermost:{argNames:"nodes",maxArgs:1,minArgs:1,sig:"1F r[*N] a[*N]"},"insert-before":{argNames:"target,position,inserts",maxArgs:3,minArgs:3,sig:"1F a[*,1ADI,*] r[*]"},"iri-to-uri":{argNames:"iri",maxArgs:1,minArgs:1,sig:"1F r[1AS] a[?AS]"},"json-doc":{argNames:"href,options",maxArgs:2,minArgs:1,sig:"1F r[?] a[?AS,1FM]"},"json-to-xml":{argNames:"json-text,options",maxArgs:2, +minArgs:1,sig:"1F r[?ND] a[?AS,1FM]"},key:{XSLTonly:!0,argNames:"key-name,key-value,top",maxArgs:3,minArgs:2,sig:"1F r[*N] a[1AS,*A,1N]"},lang:{argNames:"testlang,node",defaultToDot:!0,maxArgs:2,minArgs:1,sig:"1F r[1AB] a[?AS,1N]"},last:{argNames:"",maxArgs:0,minArgs:0,sig:"1F r[1ADI] a[]"},"load-xquery-module":{argNames:"module-uri,options",maxArgs:2,minArgs:1,sig:"1F r[1FM] a[1AS,1FM]"},"local-name":{argNames:"arg",defaultToDot:!0,maxArgs:1,minArgs:0,sig:"1F r[1AS] a[?N]"},"local-name-from-QName":{argNames:"arg", +maxArgs:1,minArgs:1,sig:"1F r[?ASNTNC] a[?AQ]"},"lower-case":{argNames:"arg",maxArgs:1,minArgs:1,sig:"1F r[1AS] a[?AS]"},matches:{argNames:"input,pattern,flags",maxArgs:3,minArgs:2,sig:"1F r[1AB] a[?AS,1AS,1AS]"},max:{argNames:"arg,collation",maxArgs:2,minArgs:1,sig:"1F r[?A] a[*A,1AS]"},min:{argNames:"arg,collation",maxArgs:2,minArgs:1,sig:"1F r[?A] a[*A,1AS]"},"minutes-from-dateTime":{argNames:"arg",maxArgs:1,minArgs:1,sig:"1F r[?ADI] a[?AM]"},"minutes-from-duration":{argNames:"arg",maxArgs:1,minArgs:1, +sig:"1F r[?ADI] a[?AR]"},"minutes-from-time":{argNames:"arg",maxArgs:1,minArgs:1,sig:"1F r[?ADI] a[?AT]"},"month-from-date":{argNames:"arg",maxArgs:1,minArgs:1,sig:"1F r[?ADI] a[?AA]"},"month-from-dateTime":{argNames:"arg",maxArgs:1,minArgs:1,sig:"1F r[?ADI] a[?AM]"},"months-from-duration":{argNames:"arg",maxArgs:1,minArgs:1,sig:"1F r[?ADI] a[?AR]"},name:{argNames:"arg",defaultToDot:!0,maxArgs:1,minArgs:0,sig:"1F r[1AS] a[?N]"},"namespace-uri":{argNames:"arg",defaultToDot:!0,maxArgs:1,minArgs:0,sig:"1F r[1AU] a[?N]"}, +"namespace-uri-for-prefix":{argNames:"prefix,element",maxArgs:2,minArgs:2,sig:"1F r[?AU] a[?AS,1NE]"},"namespace-uri-from-QName":{argNames:"arg",maxArgs:1,minArgs:1,sig:"1F r[?AU] a[?AQ]"},nilled:{argNames:"arg",defaultToDot:!0,maxArgs:1,minArgs:0,sig:"1F r[?AB] a[?N]"},"node-name":{argNames:"arg",defaultToDot:!0,maxArgs:1,minArgs:0,sig:"1F r[?AQ] a[?N]"},"normalize-space":{argNames:"arg",maxArgs:1,minArgs:0,sig:"1F r[1AS] a[?AS]"},"normalize-unicode":{argNames:"arg,normalizationForm",maxArgs:2,minArgs:1, +sig:"1F r[1AS] a[?AS,1AS]"},not:{argNames:"arg",maxArgs:1,minArgs:1,sig:"1F r[1AB] a[*]"},number:{argNames:"arg",defaultToDot:!0,maxArgs:1,minArgs:0,sig:"1F r[1AO] a[?A]"},"one-or-more":{argNames:"arg",maxArgs:1,minArgs:1,sig:"1F r[+] a[*]"},outermost:{argNames:"nodes",maxArgs:1,minArgs:1,sig:"1F r[*N] a[*N]"},"parse-ietf-date":{argNames:"value",maxArgs:1,minArgs:1,sig:"1F r[?AM] a[?AS]"},"parse-json":{argNames:"json-text,options",maxArgs:2,minArgs:1,sig:"1F r[?] a[?AS,1FM]"},"parse-xml":{argNames:"arg", +maxArgs:1,minArgs:1,sig:"1F r[?ND e[NE]] a[?AS]"},"parse-xml-fragment":{argNames:"arg",maxArgs:1,minArgs:1,sig:"1F r[?ND] a[?AS]"},path:{argNames:"arg",defaultToDot:!0,maxArgs:1,minArgs:0,sig:"1F r[?AS] a[?N]"},position:{argNames:"",maxArgs:0,minArgs:0,sig:"1F r[1ADI] a[]"},"prefix-from-QName":{argNames:"arg",maxArgs:1,minArgs:1,sig:"1F r[?ASNTNC] a[?AQ]"},"random-number-generator":{argNames:"seed",maxArgs:1,minArgs:0,sig:"1F r[1FM k[AS] v[1]] a[?A]"},"regex-group":{XSLTonly:!0,argNames:"group-number", +maxArgs:1,minArgs:1,sig:"1F r[1AS] a[1ADI]"},remove:{argNames:"target,position",maxArgs:2,minArgs:2,sig:"1F r[*] a[*,1ADI]"},replace:{argNames:"input,pattern,replacement,flags",maxArgs:4,minArgs:3,sig:"1F r[1AS] a[?AS,1AS,1AS,1AS]"},"resolve-QName":{argNames:"qname,element",maxArgs:2,minArgs:2,sig:"1F r[?AQ] a[?AS,1NE]"},"resolve-uri":{argNames:"relative,base",maxArgs:2,minArgs:1,sig:"1F r[?AU] a[?AS,1AS]"},reverse:{argNames:"arg",maxArgs:1,minArgs:1,sig:"1F a[*] r[*]"},root:{argNames:"arg",defaultToDot:!0, +maxArgs:1,minArgs:0,sig:"1F r[?N] a[?N]"},round:{argNames:"arg,precision",maxArgs:2,minArgs:1,sig:"1F r[?A m[AO,AD,AF]] a[?A m[AO,AD,AF],1ADI]"},"round-half-to-even":{argNames:"arg,precision",maxArgs:2,minArgs:1,sig:"1F r[?A m[AO,AD,AF]] a[?A m[AO,AD,AF],1ADI]"},"seconds-from-dateTime":{argNames:"arg",maxArgs:1,minArgs:1,sig:"1F r[?AD] a[?AM]"},"seconds-from-duration":{argNames:"arg",maxArgs:1,minArgs:1,sig:"1F r[?AD] a[?AR]"},"seconds-from-time":{argNames:"arg",maxArgs:1,minArgs:1,sig:"1F r[?AD] a[?AT]"}, +serialize:{argNames:"arg,params",maxArgs:2,minArgs:1,sig:"1F r[1AS] a[*,?]"},snapshot:{XSLTonly:!0,argNames:"input",defaultToDot:!0,maxArgs:1,minArgs:0,sig:"1F a[*] r[*]"},sort:{argNames:"input,collation,key",maxArgs:3,minArgs:1,sig:"1F r[*] a[*,?AS,1F r[*A] a[1]]"},"starts-with":{argNames:"arg1,arg2,collation",maxArgs:3,minArgs:2,sig:"1F r[1AB] a[?AS,?AS,1AS]"},"static-base-uri":{argNames:"",maxArgs:0,minArgs:0,sig:"1F r[?AU] a[]"},"stream-available":{XSLTonly:!0,argNames:"uri",maxArgs:1,minArgs:1, +sig:"1F r[1AB] a[?AS]"},string:{argNames:"arg",defaultToDot:!0,maxArgs:1,minArgs:0,sig:"1F r[1AS] a[?]"},"string-join":{argNames:"arg1,arg2",maxArgs:2,minArgs:1,sig:"1F r[1AS] a[*A,1AS]"},"string-length":{argNames:"arg",maxArgs:1,minArgs:0,sig:"1F r[1ADI] a[?AS]"},"string-to-codepoints":{argNames:"arg",maxArgs:1,minArgs:1,sig:"1F r[*ADI] a[?AS]"},subsequence:{argNames:"sourceSeq,startingLoc,length",maxArgs:3,minArgs:2,sig:"1F a[*,1AO,1AO] r[*]"},substring:{argNames:"sourceString,start,length",maxArgs:3, +minArgs:2,sig:"1F r[1AS] a[?AS,1AO,1AO]"},"substring-after":{argNames:"arg1,arg2,collation",maxArgs:3,minArgs:2,sig:"1F r[1AS] a[?AS,?AS,1AS]"},"substring-before":{argNames:"arg1,arg2,collation",maxArgs:3,minArgs:2,sig:"1F r[1AS] a[?AS,?AS,1AS]"},sum:{argNames:"arg,zero",maxArgs:2,minArgs:1,sig:"1F r[?A] a[*A,?A]"},"system-property":{XSLTonly:!0,argNames:"property-name",maxArgs:1,minArgs:1,sig:"1F r[1AS] a[1AS]"},tail:{argNames:"arg",maxArgs:1,minArgs:1,sig:"1F a[*] r[*]"},"timezone-from-date":{argNames:"arg", +maxArgs:1,minArgs:1,sig:"1F r[?ARD] a[?AA]"},"timezone-from-dateTime":{argNames:"arg",maxArgs:1,minArgs:1,sig:"1F r[?ARD] a[?AM]"},"timezone-from-time":{argNames:"arg",maxArgs:1,minArgs:1,sig:"1F r[?ARD] a[?AT]"},tokenize:{argNames:"input,pattern,flags",maxArgs:3,minArgs:1,sig:"1F r[*AS] a[?AS,1AS,1AS]"},trace:{argNames:"value,label",maxArgs:2,minArgs:1,sig:"1F a[*,1AS] r[*]"},transform:{argNames:"options",maxArgs:1,minArgs:1,sig:"1F r[1FM] a[1FM]"},translate:{argNames:"arg,mapString,transString", +maxArgs:3,minArgs:3,sig:"1F r[1AS] a[?AS,1AS,1AS]"},"true":{argNames:"",maxArgs:0,minArgs:0,sig:"1F r[1AB] a[]"},"type-available":{XSLTonly:!0,argNames:"type-name",maxArgs:1,minArgs:1,sig:"1F r[1AB] a[1AS]"},unordered:{argNames:"sourceSeq",maxArgs:1,minArgs:1,sig:"1F r[*] a[*]"},"unparsed-entity-public-id":{XSLTonly:!0,argNames:"entity-name,doc",maxArgs:2,minArgs:1,sig:"1F r[1AS] a[1AS,1N]"},"unparsed-entity-uri":{XSLTonly:!0,argNames:"entity-name,doc",maxArgs:2,minArgs:1,sig:"1F r[1AU] a[1AS,1N]"}, +"unparsed-text":{argNames:"href,encoding",maxArgs:2,minArgs:1,sig:"1F r[?AS] a[?AS,1AS]"},"unparsed-text-available":{argNames:"href,encoding",maxArgs:2,minArgs:1,sig:"1F r[1AB] a[?AS,1AS]"},"unparsed-text-lines":{argNames:"href,encoding",maxArgs:2,minArgs:1,sig:"1F r[*AS] a[?AS,1AS]"},"upper-case":{argNames:"arg",maxArgs:1,minArgs:1,sig:"1F r[1AS] a[?AS]"},"uri-collection":{argNames:"arg",maxArgs:1,minArgs:0,sig:"1F r[*AU] a[?AS]"},"xml-to-json":{argNames:"input,options",maxArgs:2,minArgs:1,sig:"1F r[?AS] a[?N,1FM]"}, +"year-from-date":{argNames:"arg",maxArgs:1,minArgs:1,sig:"1F r[?ADI] a[?AA]"},"year-from-dateTime":{argNames:"arg",maxArgs:1,minArgs:1,sig:"1F r[?ADI] a[?AM]"},"years-from-duration":{argNames:"arg",maxArgs:1,minArgs:1,sig:"1F r[?ADI] a[?AR]"},"zero-or-one":{argNames:"arg",maxArgs:1,minArgs:1,sig:"1F r[?] a[*]"}},"http://www.w3.org/2005/xpath-functions/array":{append:{argNames:"array,appendage",maxArgs:2,minArgs:2,sig:"1F r[1FA] a[1FA,*]"},filter:{argNames:"array,function",maxArgs:2,minArgs:2,sig:"1F r[1FA] a[1FA,1F r[1AB] a[*]]"}, +flatten:{argNames:"input",maxArgs:1,minArgs:1,sig:"1F a[*] r[*]"},"fold-left":{argNames:"array,zero,function",maxArgs:3,minArgs:3,sig:"1F a[1FA,*,1F a[*,*]] r[*]"},"fold-right":{argNames:"array,zero,function",maxArgs:3,minArgs:3,sig:"1F a[1FA,*,1F a[*,*]] r[*]"},"for-each":{argNames:"array,action",maxArgs:2,minArgs:2,sig:"1F r[1FA] a[1FA,1F a[*]]"},"for-each-pair":{argNames:"array1,array2,function",maxArgs:3,minArgs:3,sig:"1F r[1FA] a[1FA,1FA,1F a[*,*]]"},get:{argNames:"array,position",maxArgs:2, +minArgs:2,sig:"1F a[1FA,1ADI] r[*]"},head:{argNames:"array",maxArgs:1,minArgs:1,sig:"1F a[1FA] r[*]"},"insert-before":{argNames:"array,position,member",maxArgs:3,minArgs:3,sig:"1F r[1FA] a[1FA,1ADI,*]"},join:{argNames:"arrays",maxArgs:1,minArgs:1,sig:"1F r[1FA] a[*FA]"},put:{argNames:"array,position,member",maxArgs:3,minArgs:3,sig:"1F r[1FA] a[1FA,1ADI,*]"},remove:{argNames:"array,positions",maxArgs:2,minArgs:2,sig:"1F r[1FA] a[1FA,*ADI]"},reverse:{argNames:"array",maxArgs:1,minArgs:1,sig:"1F r[1FA] a[1FA]"}, +size:{argNames:"array",maxArgs:1,minArgs:1,sig:"1F r[1ADI] a[1FA]"},sort:{argNames:"array,collation,key",maxArgs:3,minArgs:1,sig:"1F r[1FA] a[1FA,?AS,1F r[*A] a[*]]"},subarray:{argNames:"array,start,length",maxArgs:3,minArgs:2,sig:"1F r[1FA] a[1FA,1ADI,1ADI]"},tail:{argNames:"array",maxArgs:1,minArgs:1,sig:"1F r[1FA] a[1FA]"}},"http://www.w3.org/2005/xpath-functions/map":{contains:{argNames:"map,key",maxArgs:2,minArgs:2,sig:"1F r[1AB] a[1FM,1A]"},entry:{argNames:"key,value",maxArgs:2,minArgs:2,sig:"1F r[1FM] a[1A,*]"}, +find:{argNames:"input,key",maxArgs:2,minArgs:2,sig:"1F r[1FA] a[*,1A]"},"for-each":{argNames:"map,action",maxArgs:2,minArgs:2,sig:"1F r[*] a[1FM,1F a[1A,*]]"},get:{argNames:"map,key",maxArgs:2,minArgs:2,sig:"1F a[1FM,1A] r[*]"},keys:{argNames:"map",maxArgs:1,minArgs:1,sig:"1F r[*A] a[1FM]"},merge:{argNames:"maps,options",maxArgs:2,minArgs:1,sig:"1F r[1FM] a[*FM,1FM]"},put:{argNames:"map,key,value",maxArgs:3,minArgs:3,sig:"1F r[1FM] a[1FM,1A,*]"},remove:{argNames:"map,keys",maxArgs:2,minArgs:2,sig:"1F r[1FM] a[1FM,*A]"}, +size:{argNames:"map",maxArgs:1,minArgs:1,sig:"1F r[1ADI] a[1FM]"}},"http://www.w3.org/2005/xpath-functions/math":{acos:{argNames:"arg",maxArgs:1,minArgs:1,sig:"1F r[?AO] a[?AO]"},asin:{argNames:"arg",maxArgs:1,minArgs:1,sig:"1F r[?AO] a[?AO]"},atan:{argNames:"arg",maxArgs:1,minArgs:1,sig:"1F r[?AO] a[?AO]"},atan2:{argNames:"y,x",maxArgs:2,minArgs:2,sig:"1F r[1AO] a[1AO,1AO]"},cos:{argNames:"θ",maxArgs:1,minArgs:1,sig:"1F r[?AO] a[?AO]"},exp:{argNames:"arg",maxArgs:1,minArgs:1,sig:"1F r[?AO] a[?AO]"}, +exp10:{argNames:"arg",maxArgs:1,minArgs:1,sig:"1F r[?AO] a[?AO]"},log:{argNames:"arg",maxArgs:1,minArgs:1,sig:"1F r[?AO] a[?AO]"},log10:{argNames:"arg",maxArgs:1,minArgs:1,sig:"1F r[?AO] a[?AO]"},pi:{argNames:"",maxArgs:0,minArgs:0,sig:"1F r[1AO] a[]"},pow:{argNames:"x,y",maxArgs:2,minArgs:2,sig:"1F r[?AO] a[?AO,1A m[AO,AD,AF]]"},sin:{argNames:"θ",maxArgs:1,minArgs:1,sig:"1F r[?AO] a[?AO]"},sqrt:{argNames:"arg",maxArgs:1,minArgs:1,sig:"1F r[?AO] a[?AO]"},tan:{argNames:"θ",maxArgs:1,minArgs:1,sig:"1F r[?AO] a[?AO]"}}}};var de={zp:{apply:{argNames:"functionI, key",maxArgs:2,minArgs:2,sig:"1F r[*] a[1F,1FA]"},"column-number":{argNames:"node",maxArgs:1,minArgs:0,sig:"1F r[1ADI] a[1N]"},"compile-XPath":{argNames:"xpath,options,params",maxArgs:3,minArgs:1,sig:"1F r[1ND] a[1AS,?,?]",returnType:"document-1N"},"compile-GlobalContext":{argNames:"variables,functions,accumulators",maxArgs:3,minArgs:3,sig:"1F r[1] a[1FM,1FM,1FM]"},"discard-document":{argNames:"doc",maxArgs:1,minArgs:1,sig:"1F r[1ND] a[1ND]",returnType:"document-1N"}, +"has-uniform-namespaces":{argNames:"node",maxArgs:1,minArgs:1,sig:"1F r[1AB] a[1N]"},"line-number":{argNames:"node",maxArgs:1,minArgs:0,sig:"1F r[1ADI] a[1N]"},"marshal-type":{argNamess:"code",maxArgs:1,minArgs:1,sig:"1F r[1FM] a[1AS]"},"message-count":{argNames:"errCode",maxArgs:1,minArgs:1,sig:"1F r[1ADI] a[?AQ]"},"parse-sequence-type":{argNames:"type,context,defaultXPathNamespace",maxArgs:3,minArgs:2,sig:"1F r[1FM] a[1AS,1NE,?AS]"},"parse-XPath":{argNames:"xpath,options,params",maxArgs:3,minArgs:1, +sig:"1F r[1ND] a[1AS,?AS,?]"},permute:{argNames:"input",maxArgs:1,minArgs:1,sig:"1F r[*] a[*]"},"system-id":{argNames:"",maxArgs:0,minArgs:0,sig:"1F r[*AU] a[]"},timestamp:{argNames:"",maxArgs:0,minArgs:0,sig:"1F r[1AMP] a[]"}},Oo:{apply:{argNames:"function,arguments",maxArgs:2,minArgs:2,sig:"1F r[*] a[1F,1FA]"},call:{argNames:"object,method,arguments",maxArgs:3,minArgs:3,sig:"1F r[*] a[1,1AS,1FA]"},contains:{argNames:"object,property",maxArgs:2,minArgs:2,sig:"1F r[1AB] a[1,1AS]"},eval:{argNames:"script", +maxArgs:1,minArgs:1,sig:"1F r[*] a[1AS]"},event:{argNames:"",maxArgs:0,minArgs:0,sig:"1F r[?] a[]"},get:{argNames:"object,property",maxArgs:2,minArgs:2,sig:"1F r[*] a[?,1AS]"},location:{argNames:"",maxArgs:0,minArgs:0,sig:"1F r[1AS] a[]"},page:{argNames:"",maxArgs:0,minArgs:0,sig:"1F r[1N] a[]"},"query-params":{argNames:"",maxArgs:0,minArgs:0,sig:"1F r[1FM] a[]"},"set-property":{argNames:"property,value,object",maxArgs:3,minArgs:3,sig:"1F r[0E] a[1AS,*,1NE]"},source:{argNames:"",maxArgs:0,minArgs:0, +sig:"1F r[?N] a[]"},style:{argNames:"node",maxArgs:1,minArgs:1,sig:"1F r[1FM] a[?N]"},window:{argNames:"",maxArgs:0,minArgs:0,sig:"1F r[1] a[]"}},Vn:{"node-set":{argNames:"node",maxArgs:1,minArgs:1,sig:"1F r[?N] a[?N]"}}};var ge=function(){function a(a){var b;var c={};for(b in a){var d=a[b];c[b]=d}return c}function b(){}function d(a){var b={};if(a){a=a.split(" ");for(var c=0;ch?x:h}e.wg=h+1}e.Ep(a);if(a=c.slotTypes)for(g in a)e.Lf[g]=J.Kc(a[g]);for(k in d)e.namespaces[k]=d[k];e.namespaces[""]="";if(d=c.staticTyping)e.Ti=d;if(d=c.xpathDefaultNamespace)e.Mg=d;if(d=c.defaultCollation)e.Bd=d;if(d=c.staticBaseURI)e.Ac=d;d=c.contextType;e.type= +d?new J.Ka(I.ni(d),kb):e.Tb?null:J.B.qe;e.sh=e.type;if(c=c.requiredType)e.zh=J.Kd(c);return e}function l(a){var c=new b;c.type=J.B.qe;c.Cp(a.params,a.inputConvert);["xs","map","array","math","saxon"].forEach(function(a){return c.namespaces[a]=xd[a]});for(var d in a.namespaceContext)c.namespaces[d]=a.namespaceContext[d];a.xpathDefaultNamespace&&(c.Mg=a.xpathDefaultNamespace);return c}function f(a,b,c){var e="pattern"===b.type,d=b.splitPattern,f="XSLT"===b.language;b=b.allowEmpty;wb.find("SaxonJS"); +a=fe.process(a,e,d,c,f,b);return D.l(a)}function k(a,b){b=void 0===b?!1:b;var c={"function":{},globalVariable:{},globalParam:{}},e;for(e in a)if("PRIVATE"!==a[e].visibility){var d=a[e].actor,f=G.da(d)?d.nodeName:d.N,g=G.da(d)?d.getAttribute("name"):d.name;switch(f){case "function":if(b&&"PUBLIC"!==a[e].visibility&&"FINAL"!==a[e].visibility)break;d=(G.da(d)?G.xe(d,"arg"):m(d)).length;c[f][g+"#"+d]=a[e];break;case "globalVariable":case "globalParam":c[f][g]=a[e]}}return c}function r(a,b){b=void 0=== +b?!0:b;var c={N:a.nodeName},e=a.attributes,d;for(d=0;db||b>d.maxArgs&&!d.variadic)?null:d},parseNsAttribute:d,sefToJSON:r,setStaticContext:function(a){A=P.rc(a.value,!0);a={};var b=A.resources,c;for(c in b){var d=b[c];if(d.hasOwnProperty("err")){var f=d.err;f=f.replace(/Q{http:\/\/www\.w3\.org\/2005\/xqt-errors\}/,"");a[c]=new q(f+" "+d.description,f)}else a[c]=d}A.resources=a;return null},resetStaticContext:function(){return A=null},resetNameBase:function(){}}}();var he={parse:function(a,b){if(void 0==b||null==b)b="parse";switch(b){case "parse":case "parseFast":var d=fe.process(a,null,null,!0);return D.l(d);case "pattern.parseFast":return d=fe.process(a,!0,null,!0),D.l(d)}return D.R},parseFast:fe,evaluateXDM:ge.evaluateXDM,evaluate:ge.evaluate,compile:ge.compile,compileGlobalContext:ge.compileGlobalContext,forceBaseURI:ge.forceBaseURI,getFnSignature:ge.getFnSignature,sefToJSON:ge.sefToJSON,setStaticContext:ge.setStaticContext,resetStaticContext:ge.resetStaticContext, +resetNameBase:ge.resetNameBase};var ie={FUNCTION:0,$p:1,rq:2,vq:3,iq:4,gq:5,nq:6,qq:7,oq:8,sq:9,uq:10,hq:11,EVALUATE_RESULT:12,bq:13,Xp:14,kq:15,aq:16,cq:17},je=["doc","id","element-with-id","key","root"];function ke(a,b,d,m){return ie[a]+"|"+b+"|"+d+"|"+m}function le(a,b,d,m){return{gg:function(){return b},Bj:m,eh:function(){return a},save:function(){return d}}}function me(a,b){var d=P.yp(b).required;return le(a,d,b,function(a,b){return"Required type of "+d+" is "+a.toString()+": actual type is "+b.toString()})} +function ne(a,b){var d=null;this.name=a;if(b){this.zc=b;d=b.alphaTree;var m=b.argNames.split(","),c=[],l,f;for(f=0;f=b;){var e=E.G,h=w();switch(e){case 45:case 47:f();var l=u();a:{var m=a;switch(e){case 45:a=new dd(m,l);break a;case 47:a=Wd(m,l);break a;default:throw new Qb(R[e]);}}w()>=h&&c("Left operand of '"+R[E.G]+"' needs parentheses");break;case 46:case 57:f();var p=void 0;if(69===E.G&&"union"===E.ba)throw new q("Saxon union types not supported"); +k(201);if(E.ba)a:{try{var x=d(E.ba,V.yc,V.Cd);break a}catch(ee){c(ee.message,ee.code)}x=void 0}else x=c("Parser tokenization error NAME");l=x;l.uri!==F.Rd&&c("Unknown simple type "+E.ba+" in cast (Saxon-JS is not schema-aware)");f();if(m=213===E.G)E.G=204,f();var r={numeric:"u",ENTITIES:"l",NMTOKENS:"l",IDREFS:"l"}[l.local]||"a";if("a"===r){["anyType","anyAtomicType","NOTATION"].includes(l.local)&&c("Casting to xs:"+l.local+" is not possible (it's an abstract type)","XPST0080");p=C.type[l.local]; +if(!p)throw new q("Cannot find type "+l.ha());p=new I.Ze(p)}a=(57===e?qe:re)(a,r,l,p,m);w()>=h&&c("Left operand of '"+R[E.G]+"' needs parentheses");break;case 76:a=Y(a);break;default:m=40===e;f();m&&H.push(a.b.Va(kb));l=K();for(m&&H.pop();w()>h;)l=t(l,w());if(!(h=w()!==h))a:switch(E.G){case 50:case 51:case 55:case 53:case 54:case 52:case 6:case 22:case 14:case 12:case 13:case 11:case 20:case 38:case 39:case 29:h=!1;break a;default:h=!0}h||c("Left operand of '"+R[E.G]+"' needs parentheses");a=g(a, +e,l)}}return a}function g(a,b,c){switch(b){case 9:return new pd(a,c);case 10:return new od(a,c);case 50:case 51:case 55:case 53:case 54:case 52:return new Pc(a,b,c,V);case 6:case 22:case 14:case 12:case 13:case 11:return V.kh()?new Qc(a,b,c,V):new Nc(a,b,c,V);case 20:case 38:case 39:return new Uc(a,b,c,V);case 29:return new rd(a,c,V.kh());case 30:b=[];var e;if(a instanceof Yc&&"concat"===a.name.name.local&&a.name.name.uri===F.cb)for(a=sa(a.vb),e=a.next();!e.done;e=a.next())b.push(e.value);else{e= +ke("BINARY_OP",0,"","concat");var d=me("FOTY0013",e);a=Od(a,J.B.Sd,d,e,V);b.push(a)}e=ke("BINARY_OP",1,"","concat");d=me("FOTY0013",e);c=Od(c,J.B.Sd,d,e,V);b.push(c);c=fd("concat",b);c.b=J.B.Td;return c;case 15:case 16:case 17:case 18:case 56:case 19:return new bd(a,b,c,V);case 79:return e=C.O.X.xa("vv",F.wk,"otherwise"),b=new md,b.Bh(e),b.Eg(a),ia(b),a=new se(b),e=[fd("exists",[a]),Fc([C.O.Ea.cf],J.B.ic)],b.Ue(new Vc(e,[a,c])),b;case 1:case 23:case 24:return new te(a,b,c,1===Za);case 81:return c= +fd("boolean",c),Wc(a,Fc([C.O.Ea.cf],J.B.ic),c);case 80:return c=fd("boolean",c),Wc(a,c,Fc([C.O.Ea.Qg],J.B.ic));default:throw new Qb(R[b]);}}function K(){switch(E.G){case 16:f();var a=K();a=A(299,a);break;case 15:f();a=K();a=A(15,a);break;default:for(a=e();40===E.G;){f();H.push(a.b.Va(kb));var b=e();H.pop();a=new ud(a,b)}}return a}function A(a,b){if(Ec(b)){var c=b.value[0];return 299===a?Fc([c.Gi()],b.b):b}return new bd(Fc([C.O.Ma.fa(0)],J.B.bf),a,b,V)}function x(){switch(E.G){case 36:case 3:case 201:case 208:case 70:case 207:case 69:case 205:case 206:case 35:case 202:case 209:case 5:case 21:case 43:return!0; +case 60:return["ordered","unordered"].includes(E.ba);default:return!1}}function e(){var a=E.$g;switch(E.G){case 2:return f(),a=new ue,x()?h(a):a;case 8:f();a=new ue;var b=new gd(5,null);a=id(a,b);return h(a);default:201===E.G&&["true","false"].includes(E.ba)&&l("The expression is looking for a child element named '"+E.ba+"' - perhaps "+E.ba+"() was intended? To avoid this warning, use child::"+E.ba+" or ./"+E.ba+".");201===E.G&&-1!==vc(E,E.ba)&&1!==Za&&(0'");return null}function N(a){function b(a){return a instanceof hd||a instanceof $c&&b(a.step)}switch(E.G){case 21:return za();case 5:var e=S();a&&b(e)&&c("Predicate pattern cannot be parenthesized","XTSE0340");return e;case 4:return U();case 202:return Ja(!0);case 209:return ma(!0);case 35:return e=E.ba,0===jc&&1===Za&&(V.hk=!0,a?je.includes(e)||e.includes(":")||c("Function "+e+"() is not permitted at first position in pattern", +"XTSE0340"):c("Function call not at first position in pattern","XTSE0340")),e=T(null),V.hk=!1,e;case 213:return Va(new hd);case 205:return f(),new hd(H[H.length-1]);case 206:return f(),new gd(9,null);case 69:if("function"===E.ba)return ja();case 201:case 208:case 70:case 207:return e=3,69===E.G&&["attribute","schema-attribute"].includes(E.ba)?e=2:69===E.G&&"namespace-node"===E.ba?e=8:a&&69===E.G&&"document-node"===E.ba&&(e=12),a=aa(1),new gd(e,a);case 3:f();switch(E.G){case 201:case 208:case 70:case 207:case 69:return e= +aa(2),new gd(2,e);default:c("@ must be followed by a NodeTest")}break;case 36:try{e=Yb(E.ba)}catch(Pe){c(Pe.message),e=3}a=Wb[e];f();switch(E.G){case 201:case 208:case 70:case 207:case 69:a=aa(a);var d=null;if(2===e){var h=pb.Zc(a,new I.nc(2));h===pb.wd?d="attribute axis can never yield nodes of type "+a:h===pb.gd&&(a=new I.nc(2))}3===e&&9===a.kind&&(d=a.name+" nodes can never be children");2!==a.kind||[2,12].includes(e)||(d="axis "+Vb(e)+" can never yield attribute nodes");if(d){if(1===Za)return new ac(d); +l(d);return Gc()}return new gd(e,a);default:c("Unexpected token "+m()+" after axis name")}break;case 60:switch(E.ba){case "map":return Z();case "array":return X();case "fn":return Ta.kr(this)}break;case 43:return Fa();default:c("Unexpected token "+m()+" at start of expression")}}function S(){f();if(204===E.G)return f(),Gc();var a=r();k(204);f();return a}function ma(){var a=E.ba?xa(E.ba):c("Parser tokenization error NUMBER");isNaN(a)&&c("Invalid numeric literal ("+E.ba+")");f();return Fc([a],"double"=== +a.type?J.B.Qh:"decimal"===a.type?J.B.an:J.B.bf)}function xa(a){try{return 0<=a.indexOf("e")||0<=a.indexOf("E")?C.O.za.g(a):0<=a.indexOf(".")?C.O.od.g(a):C.O.Ma.g(a)}catch(pf){return NaN}}function Ja(){var a=new Hc(E.ba);f();return a}function za(){f();k(201);var a=E.ba;f();a=la(a,"");var b;a:{for(b=Ga.length-1;0<=b;b--){var e=Ga[b];if(e&&e.hg().ia(a)){b=e;break a}}b=void 0}if(null!=b)var d=new se(b);else if(a.uri===F.Qn&&0a.value||a.value>Number.MAX_SAFE_INTEGER)&&c("Number following '#' is out of range","FOAR0002");a=a.value;f();var g=null;try{g=d(b,h.yc,h.Jl)}catch(ae){c(ae.message,ae.code)}b=h.si();var l=new wd(g,a);h=b.Kl(l,h);null==h&&c("Function "+g.ha()+"#"+a+" not found","XPST0017",e);return h.zc.$l&&!g.zf(Kb.hn)?new Ge(h):new He(h)}function ia(a){a.slot=Ga.length;Ga.push(a)}function Ia(a,b){return d(a, +V.yc,function(){return b})}function la(a,b){try{return Ia(a,b)}catch(ub){c(ub.message,ub.code)}}function La(a,b){if(b.startsWith("Q{")){var e=b.substring(2,b.length-2);return new I.kj(a,e)}try{return e=d(b+":dummy",V.yc,function(){return""}),new I.kj(a,e.uri)}catch(Zd){return c(Zd.message,Zd.code),null}}function M(a,b){Nb(b)||c("Local name ["+b+"] contains invalid characters");return new I.ij(a,b)}function Qa(a,b,c,e){this.global=void 0===e?!1:e;this.Nc=this.name=a;this.Qd=b;this.slot=c}var E,bb, +V={},Ga=[],H=[],ua=[],Ta=new Bc,Za=0,be=0,jc=0,Oa=[],kc={Kl:function(a,b){var c=b.getContext();if(c=he.getFnSignature(a.name,a.arity,c))return new ne(a,c)},bind:function(a,b,c){var e=c.getContext(),f=he.getFnSignature(a.name,a.arity,e);if(f){if(a.name.uri===F.cb)switch(a.name.local){case "false":return Fc([C.O.Ea.Qg],J.B.ic);case "true":return Fc([C.O.Ea.cf],J.B.ic);case "normalize-unicode":1===b.length&&b.push(new Hc("NFC"));break;case "copy-of":return new Ie(b[0]?b[0]:new hd(H[H.length-1]));case "current-group":return new Je; +case "current-grouping-key":return new Ke;default:0===a.arity&&0a.arity||a.arity>f.br))throw new q("Wrong argument arity "+b.length+" for function "+a.name.local+"() - should be between "+ +f.minArgs+" and "+f.maxArgs,"XPST0017");if(c.kd)return fd("error",[fd("QName",[new Hc(""),new Hc("XTDE1425")]),new Hc("Unknown function "+a.toString())]);throw new q("Unknown function "+a.ha()+"()","XPST0017");}}};V={Cd:function(){return""},Bd:"http://www.w3.org/2005/xpath-functions/collation/codepoint",hh:!1,Zb:{},Tc:{},Tb:!1,Ee:!1,kd:!1,Ap:function(){V.Cd=function(){return""};V.Bd="http://www.w3.org/2005/xpath-functions/collation/codepoint";V.Zb={};V.Tc={};V.Tb=!1;V.Ee=!1;V.kd=!1},getContext:function(){return{Tb:V.Tb, +Tq:1===Za,Zb:V.Zb}},lo:function(){return V.Bd},Jl:function(){return F.cb},si:function(){return kc},Kq:function(){return null},Sq:function(){return!1},kh:function(){return V.kd},ar:function(){return null}};var fb={};Qa.prototype.hg=function(){return this.name};return{process:function(e,f,h,g,k,l){k=void 0===k?!1:k;l=void 0===l?!1:l;a();bb=e;Za=f?1:0;e=[];fb={};V.Ap();V.yc=b;f&&(V.Tb=!0);if(g){be=g.wi?1:0;g.Ee&&(V.Ee=!0);for(var p in g.namespaces)fb[p]=g.namespaces[p];for(var t in g.Be){p=d(t,V.yc, +function(){return""});var x=g.Be[t],w=J.Kd(x.getAttribute("sType"));e.push(new Qa(p,w,x,!0))}for(var v in g.Ld)t=d(v,V.yc,function(){return""}),e.push(new Qa(t,g.Lf[v],g.Ld[v]));Ga=e;V.Tc=g.Tc;g.hh&&(V.hh=g.hh);g.Bd&&(V.Bd=g.Bd);g.Zb&&(V.Zb=g.Zb);g.Tb&&(V.Tb=g.Tb);g.kd&&(V.kd=g.kd);g.sh&&(H=[g.sh.Va(kb)]);g.Mg&&(V.Cd=function(){return g.Mg});V.yb=g.yb?g.yb:null}v="";for(var u in fb)e=fb[u],e=e===F.me[u]?"~":e,v+=u+"="+e+" ";tc(E,bb);try{var N=r(l)}catch(mc){throw mc instanceof q&&g&&g.Mp&&(mc.code= +g.Mp,mc.message="Invalid XPath expression supplied to xsl:evaluate {"+bb+"}: "+mc.message),mc;}0!==E.G&&c("Found "+m()+" beyond end of expression");f?(N=N.kb(),N instanceof nc&&h&&(N=new pc(oc(N)))):g&&g.zh&&(f=me("XPTY0004",ke("EVALUATE_RESULT",0,"",null)),N=Od(N,g.zh,f,ke));f=k?new Qe:new Re;N.j(f);f=f.current;k?(f=f.documentElement,N.b&&f.setAttribute("sType",N.b.va()),""!==v&&f.setAttribute("ns",v),g&&g.yb&&f.setAttribute("baseUri",g.yb)):(f=f.C[0],""!==v&&(f.ir=v),g&&g.yb&&(f.pc=g.yb));return f}, +parseSequenceType:function(b,e,d){a();V.yc=e;V.Cd=d;Za=0;fb={};tc(E,b);b=u();0!==E.G&&c("Unexpected "+m()+" after SequenceType");return b},getTokenizer:function(){return E}}}();function Re(){this.stack=[];this.current={C:[]}} +Re.prototype={start:function(a,b){b=void 0===b?{}:b;var d={N:a,C:[]},m;for(m in b)d[m]=b[m];this.current.C.push(d);this.stack.push(this.current);this.current=d},Re:function(a,b){this.current[a]=b},end:function(){this.current=this.stack.pop()},Ub:function(a,b){b=void 0===b?{}:b;var d={N:a},m;for(m in b)d[m]=b[m];this.current.C.push(d)}};function Qe(){this.Yj=wb.find("SaxonJS").getPlatform().createDocument();this.stack=[];this.current=this.Yj} +Qe.prototype={start:function(a,b){b=void 0===b?{}:b;var d=this.Yj.createElement(a),m;for(m in b)d.setAttribute(m,b[m]);this.current.appendChild(d);this.stack.push(this.current);this.current=d},Re:function(a,b){this.current.setAttribute(a,b)},end:function(){this.current=this.stack.pop()},Ub:function(a,b){b=void 0===b?{}:b;var d=this.Yj.createElement(a),m;for(m in b)d.setAttribute(m,b[m]);this.current.appendChild(d)}};function Yc(a,b,d){W.call(this);var m=a.name.local;if(a.name.uri===F.Rd){var c=b[0].b;return a=c.na===kb&&c.ca.Ga()&&m===c.ca.Qf.name?b[0]:["NMTOKENS","ENTITIES","IDREFS"].includes(m)?re(b[0],"l",a.name,null,!0):"numeric"===m?re(b[0],"u",a.name,null,!0):re(b[0],"a",null,d.ca,!0)}this.name=a;this.vb=b;this.b=d;switch(m){case "exactly-one":this.b=b[0].b.Va(kb);break;case "head":this.b=b[0].b.Va(gb(b[0].b.na)?lb:kb);break;case "tail":case "subsequence":this.b=b[0].b.Va(jb);break;case "ceiling":case "floor":case "reverse":case "snapshot":this.b= +b[0].b;break;case "last":case "position":this.Mb=!0;break;case "string-length":case "normalize-space":0===b.length&&this.vb.push(fd("string",new hd));break;case "fold-left":case "fold-right":this.b=b[2].resultType;break;case "for-each":this.b=b[1].b.ca.ti().Va(jb);break;case "filter":this.b=b[0].b.Va(jb);break;case "current":this.Ed=!0;break;case "boolean":if(b[0].b.ia(J.B.ic))return b[0]}}n(Yc,W);Yc.prototype.kb=function(){return new ec(this)}; +Yc.prototype.vd=function(){if(this.name.uri===F.cb)return"doc document element-with-id id innermost key outermost".split(" ").includes(this.name.local)?!0:"filter one-or-more subsequence remove tail trace unordered zero-or-more".split(" ").includes(this.name.local)?this.vb[0].vd():!1};Yc.prototype.j=function(a){W.prototype.start.call(this,a,{name:this.name.name.local});for(var b=sa(this.vb),d=b.next();!d.done;d=b.next())d.value.j(a);a.end()};Yc.prototype.V="fn"; +function Se(a,b,d){W.call(this);this.name=a;this.vb=b;this.b=d}n(Se,W);Se.prototype.j=function(a){W.prototype.start.call(this,a,{name:this.name.ha()});for(var b=sa(this.vb),d=b.next();!d.done;d=b.next())d.value.j(a);a.end()};Se.prototype.V="ifCall";function Cd(a,b,d){W.call(this);this.name=a;this.vb=b;this.b=d;if(a="merge"===a.name.local)a=b[0],a=!(a instanceof Cc&&0===a.value.length);a&&(this.b=b[0].b.Va(kb))}n(Cd,W); +Cd.prototype.j=function(a){W.prototype.start.call(this,a,{name:this.name.ha()});for(var b=sa(this.vb),d=b.next();!d.done;d=b.next())d.value.j(a);a.end()};Cd.prototype.V="ifCall";function Dd(a,b,d){W.call(this);this.name=a;this.vb=b;this.b=d}n(Dd,W);Dd.prototype.j=function(a){W.prototype.start.call(this,a,{name:this.name.ha()});for(var b=sa(this.vb),d=b.next();!d.done;d=b.next())d.value.j(a);a.end()};Dd.prototype.V="ifCall";function Me(a,b,d){Se.call(this,a,b,d)}n(Me,Se); +function Ed(a,b,d){W.call(this);this.name=a;this.vb=b;this.b=d}n(Ed,W);Ed.prototype.j=function(a){W.prototype.start.call(this,a,{name:this.name.ha()});for(var b=sa(this.vb),d=b.next();!d.done;d=b.next())d.value.j(a);a.end()};Ed.prototype.V="ifCall";function Ne(a,b,d){W.call(this);this.name=a;this.vb=b;this.b=d}n(Ne,W);Ne.prototype.j=function(a){W.prototype.start.call(this,a,{name:this.name.ha()});for(var b=sa(this.vb),d=b.next();!d.done;d=b.next())d.value.j(a);a.end()};Ne.prototype.V="ifCall"; +function Oe(a,b,d){Ne.call(this,a,b,d);var m=new wd(C.O.X.xa("ixsl",F.sg,"call"),3),c=new wd(C.O.X.xa("ixsl",F.sg,"window"),0);this.name=m;this.vb=[new Ne(c,[],J.B.qe),new Hc(a.name.local),new xe(b)];this.b=d}n(Oe,Ne);function Le(a,b,d,m){W.call(this);this.name=a;this.vb=b;this.b=d;this.zn=m}n(Le,W);Le.prototype.j=function(a){W.prototype.start.call(this,a,{name:this.name.ha(),coId:this.zn});for(var b=sa(this.vb),d=b.next();!d.done;d=b.next())d.value.j(a);a.end()};Le.prototype.V="ufCall"; +function He(a){W.call(this);this.name=a.name.name;this.zc=a.zc;this.arity=a.name.arity;this.b=a.b;this.resultType=a.resultType}n(He,W);He.prototype.j=function(a){this.Ub(a,{name:this.name.ha(),arity:this.arity,resultType:this.resultType.va()})};He.prototype.V="fnRef";function Ge(a){He.call(this,a);this.vn=0}n(Ge,He);Ge.prototype.j=function(a){this.Ub(a,{name:this.name.ha(),arity:this.arity,resultType:this.resultType.va(),bSlot:this.vn})};Ge.prototype.V="ufRef"; +function we(){W.call(this);this.b=J.B.Qa}n(we,W);we.prototype.j=function(a){this.Ub(a,{asCode:"*"})};we.prototype.V="null";function Be(){W.call(this)}n(Be,W);Be.prototype.ck={};Be.prototype.jp={};Be.prototype.so={};function Ce(){W.call(this);this.b=J.B.Qa;this.slot=this.Nc=this.name=this.Qd=null}n(Ce,W);ba=Ce.prototype;ba.Si=function(a){this.Qd=this.b=a};ba.Bh=function(a){this.Nc=this.name=a};ba.hg=function(){return this.name};ba.toString=function(){return"$"+this.name+" as "+this.b.toString()}; +ba.j=function(a){this.Ub(a,{name:this.name,asCode:this.b.va(),slot:this.slot})};ba.V="arg";function De(a,b,d,m){W.call(this);this.Eq=a;this.jm=b;this.resultType=d;var c=[];b.forEach(function(a){c.push(a.b)});m=Oc(m,d,this.ib("body"));this.b=J.ad(new I.re(c,d));this.arity=b.length;this.body=m;m.Jd="body"}n(De,W);ba=De.prototype; +ba.j=function(a){W.prototype.start.call(this,a,{arity:this.arity,name:this.name,as:this.resultType.va()});for(var b=sa(this.jm),d=b.next();!d.done;d=b.next())d.value.j(a);this.body.j(a);a.end()};ba.V="inlineFn";ba.kind=5;ba.ib=function(a,b){b=void 0===b?"XPTY0004":b;return new Rb(this.kind,"("+this.jm.map(function(a){return a.toString()}).join(",")+")"+(this.resultType?" as "+this.resultType.toString():""),a,b)};ba.name="inline"; +function ye(a,b,d){W.call(this);var m=this;if(a.b&&a.b.ca instanceof I.re&&a.b.ea().a.length!==b.length)throw new q("Partially-applied function requires "+a.arity+" arguments, but "+(b.lengtha||a>b)throw new q("Array index ("+a+") out of bounds (1 to "+b+")","FOAY0001",d); +}function l(a){return a[0].next().value}function g(a){return D.l(new mb(a))}function m(a,b,c,d){var e=b.fixed.ya,f=a[1].expand(),g=a[2].expand()[0],h=Object.keys(b.Ha).length;if(g instanceof nb.gb)a=l(a),d||(a=a.reverse()),a.forEach(function(a){f=g.evaluate(d?[f,a]:[a,f],b,c).expand()});else{var k;"function"!==g.N&&(k=g);a[0].sa(function(a){var c=b.ja(!0);k&&(c.La=k);c.Zf();c.Ja="function";c.$b={};c.Xb=null;c.focus=null;d?(c.Ha[h]=f,c.Ha[h+1]=[a]):(c.Ha[h]=[a],c.Ha[h+1]=f);f=e.evaluate(void 0,c).expand()})}return D.K(f)} +var r={append:function(a){return g(l(a).concat([a[1].expand()]))},filter:function(a,b,c){var e=a[1].expand()[0];Object.keys(b.Ha);a=l(a);if(e instanceof nb.gb){var d=[];a.forEach(function(a){var g=e.evaluate([a],b,c).expand();if(Array.isArray(g)&&1!==g.length||!f.Ea.matches(g[0]))throw new q("Wrong type for function result in filter(). Expecting xs:boolean, supplied value is "+B.oa(g),"XPTY0004",c);g[0].value&&d.push(a)});return g(d)}},flatten:function(a){return P.flatten(a[0])},"fold-left":function(a, +b,c){return m(a,b,c,!0)},"fold-right":function(a,b,c){return m(a,b,c,!1)},"for-each":function(a,b,c){var e=a[1].expand()[0];a=l(a);Object.keys(b.Ha);if(e instanceof nb.gb){var d=[];a.forEach(function(a){d.push(e.evaluate([a],b,c).expand())});return g(d)}},"for-each-pair":function(a,b,c){var e=a[2].expand();if(1!==e.length)throw new q("for-each-pair() must have exactly one function item as the third argument. Supplied length "+e.length,"XPTY0004",c);e=e[0];Object.keys(b.Ha);var d=[];ha();pa();ha(); +pa();var f=a[0].next().value[Symbol.iterator]();a=a[1].next().value[Symbol.iterator]();var h=f.next().value,k=a.next().value;if(e instanceof nb.gb)for(;h&&k;)d.push(e.evaluate([h,k],b,c).expand()),h=f.next().value,k=a.next().value;return g(d)},"_from-sequence":function(a){var b=[];a[0].sa(function(a){b.push([a])});return g(b)},get:function(a){var b=l(a);a=a[1].next().J();k(a,b.length);return D.K(b[a-1])},head:function(a){a=l(a);k(1,a.length);return D.K(a[0])},"insert-before":function(a){var b=l(a), +c=a[1].next().J();k(c,b.length+1);a=a[2].expand();return g(b.slice(0,c-1).concat([a]).concat(b.slice(c-1)))},join:function(a){var b=[];a[0].sa(function(a){a.value.forEach(function(a){b.push(a)})});return g(b)},put:function(a){var b=l(a),c=a[1].next().J();k(c,b.length);a=a[2].expand();return g(b.slice(0,c-1).concat([a]).concat(b.slice(c)))},remove:function(a){var b=l(a),c=[];a[1].sa(function(a){a=a.J();k(a,b.length);c.push(a-1)});return g(b.filter(function(a,b){return 0>c.indexOf(b)}))},reverse:function(a){return g(l(a).slice().reverse())}, +size:function(a){return D.Vb(l(a).length)},sort:function(a,b,c){var e=Q.ri(c,a[1],b),d=P.Wd;if(a[2]){var f=a[2].next();d=function(a){return f.evaluate([[a]],b,c)}}return g(l(a).slice().sort(function(b,c){return a[1]?vb.Ai(D.K(b).Ya(d),D.K(c).Ya(d),e):vb.Ai(D.K(b).Ya(d),D.K(c).Ya(d))}))},subarray:function(a){var b=l(a),c=a[1].next().J();k(c,b.length+1);a=a[2]?a[2].next().J():b.length-c+1;if(0>a)throw new q("Length is negative","FOAY0002");k(c+a,b.length+1);return g(b.slice(c-1,c+a-1))},tail:function(a){a= +l(a);k(1,a.length);return g(a.slice(1))},"_to-sequence":function(a){var b=[];l(a).forEach(function(a){a.forEach(function(a){b.push(a)})});return D.K(b)}};if(!r[a])throw new q("Unknown array function: "+a,"SXJS0003",d);return r[a](b,c,d)}function c(a,b,c,d){var k={contains:function(a){var b=a[0].next();a=a[1].next();return D.ka(b.Xa(a))},create:function(a){var b=new cb;a[0].sa(function(a){a.Cb(function(a){b.Ta(a.k,a.v)})});return D.l(b)},entry:function(a){var b=new cb;b.Ta(a[0].next(),a[1].expand()); +return D.l(b)},find:function(a){function b(a){P.isArray(a)?a.value.forEach(c):P.isMap(a)&&(a.Xa(f)&&d.push(a.get(f)),a.keys().forEach(function(b){c(a.get(b))}))}function c(a){a.forEach(b)}var d=[],f=a[1].next();c(a[0].expand());return D.l(new mb(d))},"for-each":function(a,b,c){var d=a[0].next(),f=d.keys(),e=a[1].expand()[0];if(e instanceof nb.gb){var g=[];f.forEach(function(a){g=g.concat(e.evaluate([[a],d.get(a)],b,c).expand())});return D.K(g)}},get:function(a){var b=a[0].next();a=a[1].next();return D.K(b.get(a))}, +keys:function(a){a=a[0].next();return D.K(a.keys())},merge:function(a){var b=new cb,c=a[1]?a[1].next():null;a[0].sa(function(a){a.Cb(function(a){var e=f.T.g("duplicates");e=c&&c.Xa(e)?c.get(e).toString():"use-first";if(!b.Xa(a.k)||["use-last","unspecified","use-any"].includes(e))b.Ta(a.k,a.v);else{if("reject"===e)throw e=f.T.g("duplicates-error-code"),e=c.Xa(e)?c.get(e).toString():"FOJS0003",new q("Duplicate key value '"+a.k.toString()+"'",e,d);if("combine"===e){var g=b.get(a.k);a.v.forEach(function(a){g.push(a)}); +b.Ta(a.k,g)}}})});return D.l(b)},_new:function(a){var b=new cb;a[0]&&a[0].sa(function(a){a.Cb(function(a){if(b.Xa(a.k))throw new q("Duplicate key value '"+a.k.toString()+"'","XSLT"===c.fixed.options.language?"XTDE3365":"XQDY0137",d);b.Ta(a.k,a.v)})});return D.l(b)},put:function(a){var b=a[0].next(),c=a[1].next();a=a[2].expand();return D.l(b.put(c,a))},remove:function(a){var b=a[0].next();a[1].sa(function(a){b=b.remove(a)});return D.l(b)},size:function(a){var b=0;a[0].next().Cb(function(){b++});return D.Vb(b)}, +"untyped-contains":function(a){var b=a[0].next();a=a[1].next();return D.ka(b.Xa(a))}};if(!k[a])throw new q("Unknown map function: "+a,"SXJS0003",d);return k[a](b,c,d)}function l(a,b,c,d){function f(a){return null===a?(l=!0,Number.NaN):a.J()}function k(){var a=b[0].next();return f(a?a:P.Kb(d)(c).next())}function g(){var a=b[1].next();return f(a?a:P.ml(d)(c).next())}var l=!1,m=function(){switch(a){case "pi":return Math.PI;case "exp":return Math.exp(k());case "exp10":return Math.pow(10,k());case "log":return Math.log(k()); +case "log10":return Math.log(k())/Math.LN10;case "pow":var b=k(),c=g();return-1===b&&(Infinity===c||-Infinity===c)||1===b?1:Math.pow(b,c);case "sqrt":return Math.sqrt(k());case "sin":return Math.sin(k());case "cos":return Math.cos(k());case "tan":return Math.tan(k());case "asin":return Math.asin(k());case "acos":return Math.acos(k());case "atan":return Math.atan(k());case "atan2":return Math.atan2(k(),g());default:throw new q("Unknown math function "+d.name,"XPST0017",d);}}();return l?D.R:D.gp(m)} +var f=C.O;P.rp(a);return a})();var nf=function(){function a(a,b){return a.Ic===b.Ic?a.Qe===b.Qe?a.Cg===b.Cg?b.nm-a.nm:a.Cg-b.Cg:a.Qe-b.Qe:a.Ic-b.Ic}function b(a,b){return a.Ic===b.Ic?a.Qe===b.Qe?0:a.Qe-b.Qe:a.Ic-b.Ic}function d(b,c){var d=this;this.Sh=b;this.hm=b.onNo;this.fm=c.Gc(b,"t");c.Gc(b,"F")&&(this.Jj=!0);this.Rk=(b.C||[]).map(function(a){return{Bg:a,Ic:parseInt(a.prec,10),Qe:parseFloat(a.prio),Cg:parseInt(a.seq,10),Wo:parseInt(a.minImp,10),nm:parseInt(a.rank,10),pattern:xb.Df(c.qa(a,"match")),matches:I.Xc(a.matches||"1"), +action:c.qa(a,"action")}}).sort(a).reverse();this.yd={};this.Rk.forEach(function(a){var b=a.matches.ea();var c=[];/^N[EAP]/.test(b.p)?(c=b.p,b.n&&!/}\*$/.test(b.n)&&(c+=" "+b.n.replace(/^(\*:|Q\{.*\})/,"")),c=[c]):c=["."];c.forEach(function(b){var c=d.yd[b];c||(d.yd[b]=c=[]);c.push(a)})})}var m=C.O,c=G.Ab,l={TC:function(a,b,d,f){if(G.da(a))switch(a.nodeType){case 9:case 11:case 1:d=d.ja(!1);d.focus=D.Da(c.pb(a));b.Uc(d,f);break;case 3:case 4:f.append(a);break;case 2:f.text(a.value)}else if(m.wj.matches(a))f.text(a.toString()); +else if(P.isArray(a)){var k=[];a.value.forEach(function(a){k=k.concat(a)});a=d.ja(!1);a.focus=D.Da(D.K(k));b.Uc(a,f)}},SC:function(a,b,d,f){return Bb.xm(a,d,"c",function(){var k=d.ja(!1);k.focus=D.Da(c.ob(a));b.Uc(k,f);k.focus=D.Da(c.pb(a));b.Uc(k,f)},f)},DC:function(a,b,c,d){G.da(a)&&(d.pc=G.baseURI(a));d.append(a)},DS:function(a,b,d,f){if(G.da(a))switch(a.nodeType){case 9:case 11:d=d.ja(!1);var k=[];k[0]=D.Da(c.ob(a));k[1]=D.Da(c.pb(a));d.focus=D.Rc(k);b.Uc(d,f)}},SS:function(a,b,d,f){if(G.da(a))switch(a.nodeType){case 9:case 11:case 1:d= +d.ja(!1),d.focus=D.Da(c.ob(a)),b.Uc(d,f),d.focus=D.Da(c.pb(a)),b.Uc(d,f)}else if(P.isArray(a)){var k=[];a.value.forEach(function(a){k=k.concat(a)});a=d.ja(!1);a.focus=D.Da(D.K(k));b.Uc(a,f)}},bubble:function(a,b,d,f){G.da(a)?1===a.nodeType&&(d=d.ja(!1),d.focus=D.Da(c.parent(a)),b.Uc(d,f)):f.append(a)}};l.TO=l.TC;var f={1:"NE",2:"NA",3:"NT",7:"NP",8:"NC",9:"ND",11:"ND",13:"NN"};d.prototype={Sh:null,Rk:null,hm:"TC",fm:!1,Jj:!1,Uc:function(a,b){var c=this;a.focus.sa(function(d){return c.sj(d,a,b)})}, +sn:function(a,b){var c=a.Xb;if(!c)throw new q("No current template rule","XTDE0560");return this.sj(a.lb(),a,b,function(a){return a.Ic>=c.Wo&&a.Ica(b,d)})},Yn:function(c,d,l){var k=null,m=null,r=this.Jj,g=[];if(G.da(c)){var v=f[c.nodeType],A=G.ma(c);if(A=A?A.local:null)A=v+" "+A,this.yd[A]&&g.push(this.yd[A]);this.yd[v]&&g.push(this.yd[v]);this.yd.N&&g.push(this.yd.N)}this.yd["."]&& +g.push(this.yd["."]);(function(f){f.forEach(function(e){e.forEach(function(e){if(!l||l(e))if(!k||0parseInt(a[b].Ic,10)&&(a[b]=c):a[b]=c};(a.C||[]).forEach(function(a){var b=I.Xc(a.test);b instanceof I.xd?(a.PREC=parseInt(a.prec,10),a.PRIO=2,k(d,b.name.ha(),a)):b instanceof I.kj?(a.PREC=parseInt(a.prec,10),a.PRIO=1,k(e,b.uri,a)):b instanceof I.ij?(a.PREC=parseInt(a.prec,10),a.PRIO=1,k(f,b.localName,a)):b instanceof I.nc?(a.PREC=parseInt(a.prec,10),a.PRIO= +0,k(g,"*",a)):B.ra("Unrecognised strip-space "+a.test)});var l=function(a,b){var c=[],h=d["Q{"+a+"}"+b];h&&c.push(h);(h=e[a])&&c.push(h);(h=f[b])&&c.push(h);g["*"]&&c.push(g["*"]);c.sort(function(a,b){var c=a.PREC,d=b.PREC;return c===d?b.PRIO-a.PRIO:d-c});return 0p.indexOf("Q{")&&(p="Q{}"+p);O="Q{"+F.Ve+"}initial-template";c||T||e(N,O)&&(T=O);var Qa=d.vo;if(Qa){c=d.Cl?d.Cl:[];a=c.length;p=h(N,Qa.toString(),a);if(!p)throw new q("Unknown initial function "+Qa+"#"+a,"XTDE0041");if("PUBLIC"!==p.Rb.vis&&"FINAL"!==p.Rb.vis)throw new q("Uninvocable initial function "+Qa+"#"+a+" with visibility "+p.Rb.vis,"XTDE0041");var E=p.Rb.C[0];N.focus={};N.La=p;N.Zf();N.Ja="function";N.$b={};N.Xb=null;var bb=0;N.Ha=c.map(function(a){var b= +E.C[bb++].as;b=J.Kd(b||"*");return P.gl(P.Ob(a),b,function(){return"function parameter for "+Qa})});c=k();Bb.push(P.qa(E,"body"),N,c);c.close()}else if(T){a=e(N,T);if(!a)throw new q("Unknown initial template "+T,"XTDE0040");p=a.Rb.C[0];N.fixed.Ae?N.focus=D.jc(c):(N.focus=D.Da(D.R),N.focus.next());P.Aj(p,N);N.La=a;N.$b={};m(d,N);c=k();Bb.push(p.C[0],N,c);c.close()}else{T=d.xo;Array.isArray(T)&&r&&T.filter(G.da).map(function(a){return G.mg(a)?a:a.ownerDocument}).map(function(a){return r(a)});O=x(N, +p);if(!O)throw new q("Unknown initial mode "+p,"XTDE0045");if("PRIVATE"===O.visibility&&p!==a.defaultMode&&""!==p)throw new q("Uninvokable initial mode "+p+" with visibility "+O.Rb.vis,"XTDE0045");if(!c&&!T)throw new q("No source input supplied for apply-templates invocation","XTDE0044");a=O.mode;N.La=O;N.focus=D.Da(T?D.K(Array.isArray(T)?T:[T]):D.l(c));c=a.Sh.useAcc;null!=c&&"#all"!==c&&(N.Eh=c.split(/\s+/));m(d,N);c=k();a.Uc(N,c);c.close()}l();if(t){var V=function(){var a=N.fixed.Lg;N.fixed.Lg= +[];return Promise.all(a).then(function(){if(0O.nd.g(a.expiry).ab(O.nd.Sb(new Date,0)))throw new q("Development license for supplied stylesheet has expired","SXJS0006");}}function w(a){function b(a,b){for(var c=b<<8,d=0;de?4294967295+e+1:e).toString(16);if(g!==a){if("unspecified"===a)throw new q("No checksum found in SEF","SXJS0006");throw new q("Invalid checksum in SEF "+a+" != "+g,"SXJS0006");}}function z(a){function b(b,c){function d(c){var d=c.target,f=a.ja(!0);f.Ja=!1;f.Zg=c;f.focus=D.Da(D.l(P.Ob(d)[0]));f.La=b;c=Cb.ae(a);c=new Bb.yf(c);return(f=e.Uc(f,c))?f.expand():[]}var e=b.mode;-1==="httpabort afterprint beforeprint beforeunload hashchange languagechange message offline online pagehide pageshow popstate storage unhandledrejection unload".split(" ").indexOf(c)? +window.document.addEventListener(c,d,!1):window.addEventListener(c,d,!1)}var c=a.fixed.qb;Object.keys(c).forEach(function(a){a=c[a];a.mode&&a.mode.Vl()&&b(a,a.name.split("}on")[1])})}function t(a,b){return a.C?a.C.filter(function(a){return a.N===b}):[]}function g(a,b,c){function d(b,c){e(a,b,c)}function e(a,b,c){a.N===b&&c(a);a.C&&a.C.forEach(function(a){e(a,b,c)})}function f(a){return(a=a.name)?/^Q\{/.test(a)?a:"Q{}"+a:null}function g(a,b){function c(a){a=t(a,"co");for(var c=0;ca.Qc.max&&(a.Qc.max=c);a.Qc.Wa[c]=b.s}}(c)),55296",2:"attribute @"+a.name,3:"text:"+(a.nodeValue?a.nodeValue.substring(0,8):"''"),7:"pi: "+a.target+ +"("+a.tagName+")",8:"comment ("+a.nodeValue+")",9:"document "+(a._saxonDocumentNumber?"#"+a._saxonDocumentNumber:"(No nr / #0)"),11:"docFrag"}[a.nodeType];if("9"===a.nodeType||"11"===a.nodeType){var k;for(k=0;k"+b(a.childNodes[k])}return f}if(a.type)return"string"===a.type?'xdm:"'+a.toString()+'"':"integer"===a.type?"xdm:"+a.Pa().toFixed():"boolean"===a.type?"xdm:"+a.toString():"xs:"+a.type+"('"+a.toString()+"')";if("object"===typeof a&&"length"in a){if(1===a.length)return b(a[0]); +f="(";for(k=0;kk;k++)0!==k&&(f+=","),f+=b(a[k]);4<=a.length&&(f+=",...("+a.length+")");return f+")"}return"function"===typeof a?a.toString():"("+typeof a+") "+a}function d(a){return"{'N':'"+a.N+"','C':["+(a.C||[]).map(function(a){return d(a)}).join(",")+"]}"}function m(a,f){for(var b=a;b;){if(b[f])return b[f];b=b.parentNode}return null}function c(a,b){(void 0===b?1:b)<=f&&Da.Ol().saxonPrint(a)}var l,f=1;Error.stackTraceLimit=100;return{assert:function(f,b){f||a(void 0===b?"assertion failed": +b)},ra:a,location:function(a){return m(a,"module")+"#"+m(a,"line")},qp:function(a){l=a},Gb:c,oa:b,ym:function(a){return a.oa?a.oa():l&&l.da(a)?b(a):a.type?"string"===a.type?'"'+a.toString()+'"':"integer"===a.type?a.Pa().toFixed():"boolean"===a.type?a.toString()+"()":"xs:"+a.type+"('"+a.toString()+"')":a.io?a.toString():"("+typeof a+") "+a},Ip:function(a){if(!a)return"null expr";var f=a.N||"?",b;for(b in a)a.hasOwnProperty(b)&&!["C","N","parentNode","ELAB","PUSH"].includes(b)&&(f+=" "+b+"="+a[b]); +a.C&&(f+=" ("+a.C.map(function(a){return a.N}).join(",")+")");return f+=" at "+this.location(a)},rr:d,vm:function(a){"number"==typeof a&&(f=a)},Bi:f}}();var Ha=function(){function a(){function f(b){if(!(this instanceof f))return void 0===b?a():new f(b);if(b instanceof f)this.Aa=b.Aa,this.e=b.e,this.c=b.c.slice();else{var r,k,c;0===b&&0>1/b?b="-0":l.test(b=""+b)||m(NaN);this.Aa="-"==b.charAt(0)?(b=b.slice(1),-1):1;-1<(r=b.indexOf("."))&&(b=b.replace(".",""));0<(k=b.search(/e/i))?(0>r&&(r=k),r+=+b.slice(k+1),b=b.substring(0,k)):0>r&&(r=b.length);for(k=0;"0"==b.charAt(k);k++);if(k==(c=b.length))this.c=[this.e=0];else{for(;"0"==b.charAt(--c););this.e= +r-k-1;this.c=[];for(r=0;k<=c;this.c[r++]=+b.charAt(k++));}}this.constructor=f}f.prototype=c;f.Og=20;f.Ph=1;f.Pg=-7;f.Kh=21;return f}function b(a,b,r){var f=a.constructor,k=b-(a=new f(a)).e,c=a.c;c.length>++b&&d(a,k,f.Ph);c[0]?r?k=b:(c=a.c,k=a.e+k+1):++k;for(;c.lengtha.Aa&&c[0]?"-":"")+(1k?"e":"e+")+k:a.toString()}function d(a,b,r,c){c=void 0===c?!1:c;var f=a.c,k=a.e+b+1;1===r?c=5<=f[k]:2===r?c= +5k||void 0!==f[k+1]||f[k-1]&1):3===r?c=c||void 0!==f[k]||0>k:(c=!1,0!==r&&m("!Big.RM!"));if(1>k||!f[0])c?(a.e=-b,a.c=[1]):a.c=[a.e=0];else{f.length=k--;if(c)for(;9<++f[k];)f[k]=0,k--||(++a.e,f.unshift(1));for(k=f.length;!f[--k];f.pop());}return a}function m(a){a=Error(a);a.name="BigError";throw a;}var c={},l=/^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i;c.abs=function(){var a=new this.constructor(this);a.Aa=1;return a};c.cmp=function(a){var b=this.c,f=(a=new this.constructor(a)).c, +c=this.Aa,d=a.Aa,l=this.e,t=a.e;if(!b[0]||!f[0])return b[0]?c:f[0]?-d:0;if(c!=d)return c;a=0>c;if(l!=t)return l>t^a?1:-1;c=-1;for(d=(l=b.length)<(t=f.length)?l:t;++cf[c]^a?1:-1;return l==t?0:l>t^a?1:-1};c.pd=function(a,b,r){var f=this.constructor,c=this.c,k=(a=new f(a)).c,t=this.Aa===a.Aa?1:-1;b="undefined"!==typeof b?b:f.Og;r="undefined"!==typeof r?r:f.Ph;(b!==~~b||0>b||1E6L?0:L;for(l.unshift(0);h++g;g++){if(f!=(h=e.length))var O=f>h?1:-1;else{var fa=-1;for(O=0;++fae[fa]?1:-1;break}}if(0>O){for(a=h==f?k:l;h;){if(e[--h]L&&d(p,b,r,void 0!==e[0]);return p};c.On=function(){var a=Ha(0);return!this.cmp(a)};c.Nq=function(a){return 0this.cmp(a)};c.Yq=function(a){return 1>this.cmp(a)};c.sub=c.oh=function(a){var b=this.constructor;var f=this.Aa,c=(a=new b(a)).Aa;if(f!=c)return a.Aa=-c,this.uh(a);var d=this.c.slice();var l=this.e;var t=a.c,g=a.e;if(!d[0]||!t[0])return t[0]?(a.Aa=-c,a):new b(d[0]?this:0);if(f=l-g){(b= +0>f)?(f=-f,l=d):(g=l,l=t);l.reverse();for(c=f;c--;l.push(0));l.reverse()}else for(l=((b=d.lengthf;){if(d[--l]d.length-t.length&&(b=t,t=d,d=b);f=t.length;for(c=0;f;)c=(d[--f]=d[f]+t[f]+c)/10|0,d[f]%=10;c&&(d.unshift(c), +++l);for(f=d.length;0===d[--f];d.pop());a.c=d;a.e=l;return a};c.pow=function(a){var b=this,f=new b.constructor(1),c=f,d=0>a;(a!==~~a||-1E6>a||1E6>=1;if(!a)break;b=b.ke(b)}return d?f.pd(c):c};c.round=function(a,b){var f=this,c=f.constructor;null==a?a=0:(a!==~~a||0>a||1E6c&&m(NaN);c=Math.sqrt(this.toString());0===c||c===1/0?(c=b.join(""),c.length+l&1||(c+="0"),b=new a(Math.sqrt(c).toString()),b.e=((l+1)/2|0)-(0>l||l&1)):b=new a(c.toString());c=b.e+(a.Og+=4);do l=b,b=w.ke(l.uh(this.pd(l)));while(l.c.slice(0,c).join("")!==b.c.slice(0,c).join(""));d(b,a.Og-=4,a.Ph);return b};c.fr=c.ke=function(a){var b=this.constructor;var f=this.c,c=(a=new b(a)).c,d=f.length,l=c.length,t=this.e,g=a.e;a.Aa=this.Aa==a.Aa?1:-1;if(!f[0]||!c[0])return new b(0*a.Aa);a.e=t+g;dt;)l=b[g]+c[t]*f[g-t-1]+l,b[g--]=l%10,l=l/10|0;b[g]=(b[g]+l)%10}l&&++a.e;b[0]||b.shift();for(t=b.length;!b[--t];b.pop());a.c=b;return a};c.toString=c.valueOf=c.toJSON=function(){var a=this.constructor,b=this.e,c=this.c.join(""),d=c.length;if(b<=a.Pg||b>=a.Kh)c=c.charAt(0)+(1b?"e":"e+")+b;else if(0>b){for(;++b;c="0"+c);c="0."+c}else if(0d)for(b-=d;b--;c+="0");else bthis.Aa&&this.c[0]?"-"+c:c};c.toExponential=function(a){null==a?a=this.c.length-1:(a!==~~a||0>a||1E6=a&&(l=b(this,this.e+a),0>this.Aa&&this.c[0]&&0>l.indexOf("-")&&(l="-"+l));c.Pg=f;c.Kh=d;l||m("!toFix!");return l};c.toPrecision=function(a){if(null==a)return this.toString(); +(a!==~~a||1>a||1E6=c)return!0}return!1}function b(a){for(var b=[],c=0;c=d?1024*(d-55296)+(a.charCodeAt(++c)-56320)+65536:d)}return b}return{Xg:function(d,m){if(a(d)||a(m)){a:{var c=b(d.toString());for(var l=b(m.toString()),f=0;;){if(f===c.length){c=f===l.length?0:-1;break a}if(f===l.length){c=1;break a}if(c[f]!==l[f]){c=c[f]-l[f];break a}f++}}return 0>c?-1: +0===c?0:1}return da&&![9,10,13].includes(a)||55295a||65533a||1114111a?String.fromCharCode(a):String.fromCharCode((a-65536>>10)+55296)+String.fromCharCode((a-65536&1023)+56320)});return b},zo:a,Bc:b,dd:function(a){return a.replace(/[ \n\r\t]+/g," ").replace(/^[ ]|[ ]$/g,"")}}}();var Na=function(){function a(){null===d&&(d=Da.Qi("regexCategories"));return d}function b(b,c,d,l){function f(e,b){function g(a){for(a=a.toString(16);4>a.length;)a="0"+a;return"\\u"+(m&&4b)&&a.push([b+1,m?1114111:65535])}b="";for(h=0;ha[h][1])b+=g(a[h][0]),a[h][1]>a[h][0]&&(b+="-"+g(a[h][1]));a= +b;e||(a="["+a+"]");return a}function f(a){return a.sort(function(a,e){return a[0]-e[0]})}function d(a,e,b,h){var g=[];Array.isArray(a)||t("Ranges must be array");a.forEach(function(a){g.push([parseInt(a[0],16),parseInt(a[1],16)])});b&&h&&f(g);return c(g,e,b)}var N=e.charAt(b+1);0>"nrt\\|.-^?*+{}()[]pPsSiIcCdDwW$".indexOf(N)&&(0!==y||!/[0-9]/.test(N))&&t("\\"+N+" is not allowed in XPath regular expressions");switch(N){case "p":case "P":var u=e.indexOf("}",b),l=e.substring(b+3,u);r("x")&&(l=l.replace(/[ \n\r\t]+/g, +""));var w=a(),S=w[l];S||t("Unknown category "+l);if(1===l.length){var ma=[];S.split("|").forEach(function(a){ma=ma.concat(w[a])})}else ma=S;k+=d(ma,0=p&&/[0-9]/.test(e.charAt(b+2))&&(k+="(?:)"),b++):(k+="\\"+N,b++)}return{Ii:k,i:b}}function r(a){return 0<=c.indexOf(a)}function t(a){throw new q("Invalid XPath regular expression: "+a,"FORX0002");}d=void 0===d?null:d;l=void 0===l?null:l;var g=0;c=c?c.toString():"";if(!m&&d&&Ma.zo(d))throw new q("Cannot handle non-BMP characters with regular expressions in this browser", +"SXJS0002");d=(r("i")?"i":"")+(r("m")?"m":"")+(r("g")?"g":"")+(m?"u":"");if(r("j"))return new RegExp(b,c.replace("j",""));if(r("q"))return new RegExp(b.replace(/[\[\]\/\{\}\(\)\*\+\?\.\\^$|]/g,"\\$&"),d);for(var k="",v=[[58,58],[65,90],[95,95],[97,122],[192,214],[216,246],[248,767],[880,893],[895,8191],[8204,8205],[8304,8591],[11264,12271],[12289,55295],[63744,64975],[65008,65533],[65536,983039]],x=[[45,46],[48,58],[65,90],[95,95],[97,122],[183,183],[192,214],[216,246],[248,893],[895,8191],[8204, +8205],[8255,8256],[8304,8591],[11264,12271],[12289,55295],[63744,64975],[65008,65533],[65536,983039]],e=[],h=[],p=1,y=0,u=!1,L=!1,O=0;OL||!/^[0-9]+(,[0-9]*)?$/.test(b.substring(O+1,L)))&&t("Invalid quantifier {"+b.substring(O+1,L+1)),L=!1);k+=fa;break;case " ":case "\n":case "\r":case "\t":if(!r("x")||0=a.J()});g("negativeInteger","nonPositiveInteger","ADINN",function(a){return 0>a.J()});g("long","integer","ADIL",function(a){a=a.Pa();return 0<= +a.cmp(Ha("-9223372036854775808"))&&0>=a.cmp(Ha("9223372036854775807"))});g("int","long","ADILI",function(a){return-2147483648<=a.J()&&2147483647>=a.J()});g("short","int","ADILIS",function(a){return-32768<=a.J()&&32767>=a.J()});g("byte","short","ADILISB",function(a){return-128<=a.J()&&127>=a.J()});g("nonNegativeInteger","integer","ADIP",function(a){return 0<=a.J()});g("positiveInteger","nonNegativeInteger","ADIPP",function(a){return 0=a.Pa().cmp(Ha("18446744073709551615"))});g("unsignedInt","unsignedLong","ADIPLI",function(a){return 0<=a.J()&&0>=a.Pa().cmp(Ha("4294967295"))});g("unsignedShort","unsignedInt","ADIPLIS",function(a){return 0<=a.J()&&65535>=a.J()});g("unsignedByte","unsignedShort","ADIPLISB",function(a){return 0<=a.J()&&255>=a.J()});f("normalizedString","string","ASN",e,function(a){return a.replace(/[ \r\t\n]/g," ")});f("token","normalizedString","ASNT",e,Ma.dd);f("language","token","ASNTL",function(a){return/^[a-zA-Z]{1,8}(-[a-zA-Z0-9]{1,8})*$/.test(a)}, +Ma.dd);f("NMTOKEN","token","ASNTK",Na.Ho,Ma.dd);f("Name","token","ASNTN",Na.Io,Ma.dd);f("NCName","Name","ASNTNC",Na.Yc,Ma.dd);f("ID","NCName","ASNTNCI",Na.Yc,Ma.dd);f("IDREF","NCName","ASNTNCR",Na.Yc,Ma.dd);f("ENTITY","NCName","ASNTNCE",Na.Yc,Ma.dd);d("yearMonthDuration","duration","ARY",function(a){return 0===a.wb});d("dayTimeDuration","duration","ARD",function(a){return 0===a.Eb});M.dayTimeDuration.Bl=function(a){return new L(0,6E4*a,"dayTimeDuration")};H.language=M.language;H.Dk=M.NCName;H.ac= +M.dayTimeDuration;H.ed=M.yearMonthDuration;H.Hl=M.gYearMonth;H.Gl=M.gYear;H.Fl=M.gMonthDay;H.El=M.gMonth;H.Dl=M.gDay;for(var p in M){var t=M[p];t.vr=function(){return this.code};Qa[t.code]=t}a=function(){}}function b(a,e){return e?-a:a}function d(a,e){return e*(void 0===a?0:Math.round(1E3*parseFloat(a)))}function m(a,e){return e*(void 0===a?0:parseInt(a,10))}function c(a,e){return a===e||1===Ja[a+"<"+e]}function l(a){return a.Bb&&!["ADI","ARY","ARD"].includes(a.code)?l(a.Bb):a}function f(a,e){throw new q("Casting from xs:"+ +a.type+" to xs:"+e+" is not allowed","XPTY0004");}function k(a,e,b,g){b=void 0===b?null:b;throw new q('Supplied value "'+a+'" is not a valid xs:'+e+(b?" ("+b+")":""),void 0===g?"FORG0001":g);}function r(a,e){throw new q("Cannot compare xs:"+a+" with xs:"+e,"XPTY0004");}function v(a,e){a=Na.trim(a);/.\.$/.test(a)&&(a+="0");if(/^[-+]?([0-9]+(\.[0-9]*)?|\.[0-9]+)([Ee][-+]?[0-9]+)?$/.test(a))return parseFloat(a);if(/^NaN$/.test(a))return NaN;if(/^-INF$/.test(a))return-Infinity;if(/^(\+)?INF$/.test(a))return Infinity; +e&&k(a,"double");return NaN}function w(a){return Number.isInteger(a)&&Math.abs(a)>16&255;h=d>>8&255;d&=255;64===c?ua[b++]=String.fromCharCode(g):64===f?ua[b++]= +String.fromCharCode(g,h):ua[b++]=String.fromCharCode(g,h,d)}while(ee||0>a&&0e.length;)e+="0";a=a[0]+"."+e}return a}function Y(a){var e=a[0],b=a[1],ua=a[2],g=a[3],h=a[4];a=a[5];return!(1>b||12ua||ua>[31,0!==e%4||0===e%100&&0!==e%400?28:29,31,30,31,30,31,31,30,31,30,31][b-1]||24<=g||60<=h||60<=a)}function N(a,e){var b=a.split(/[\-T:]/).map(function(a){return parseFloat(a)}), +ua=b[0];if(1>ua||9999g[0]&&h.setUTCFullYear(c[0])}h=""===ua?new Date(h.getTime()+6E4*(new Date).getTimezoneOffset()):new Date(h.getTime()-6E4*ma(ua));return new u(h,ma(b[2]?b[2]:""),e)}function ma(a){if(""===a)return null;if("Z"===a)return 0;var e=a.split(":"),b=parseInt(e[0],10),ua=/^\-.*/.test(e[0]);b=Math.abs(b);e=parseInt(e[1],10); +if(14=this.value.length)return this.value;var a=this.Ok,e=this.value.length;if(0===a&&0>18&63;c=d>>12&63;f=d>>6&63;d&=63;g[b++]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(h)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(c)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(f)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(d)}while(e1/this.value?"-0":"0";if(this.value===Number.POSITIVE_INFINITY)return"INF";if(this.value===Number.NEGATIVE_INFINITY)return"-INF";var a=this.value,e=Math.abs(a);if(1E6<=e||1E-6>e){a=a.toExponential(); +var b=a.indexOf("e");e=a.substring(0,b);a=a.substring(b+1);"float"===this.type&&(e=parseFloat(e),e=(0>e?e-5E-8:e+5E-8).toString(),b=e.indexOf("."),e=e.substring(0,b+8),e=e.replace(/\.?0+$/,""));e.includes(".")||(e+=".0");return e+"E"+a.replace("+","")}return"float"===this.type&&0!==a%1?(a=(0>a?a-5E-8:a+5E-8).toString(),e=a.indexOf("."),a=a.substring(0,e+6),a.replace(/0+$/,"")):a.toString()},ia:function(a){return 0===this.ab(a)},ab:function(a){if(a.J)return a="float"===this.type&&Math.fround?Math.fround(a.J()): +a.J(),this.valuethis.value?"-INF":"INF"},Gd:function(){return"n"+this.bc()},J:function(){return this.value},Jg:function(){return this},abs:function(){return new x(Math.abs(this.value),this.type)},Gi:function(){return new x(-this.value, +this.type)},yj:function(){return new x(Math.ceil(this.value),this.type)},floor:function(){return new x(Math.floor(this.value),this.type)},round:function(a){0===a?a=Math.round(this.value):(a=Math.pow(10,-a),a*=Math.round(this.value/a));return new x(a,this.type)},Ri:function(a){return isFinite(this.value)?(a=(new h(Ha(this.value))).Ri(a),0===a.J()&&0>this.value&&(a=H.za.g("-0")),C.type[this.type].aa(a)):this}};e.prototype={value:0,type:"integer",toString:function(){return this.value.toString()},ia:function(a){return 0=== +this.ab(a)},ab:function(a){if(a.J)return this.value-a.J();r(this.type,a.type)},bc:function(){return w(this.value)},mk:function(a){return a instanceof x||a instanceof e?this.value===a.value:a instanceof h?aa.aa(this).ia(a):!1},Gd:function(){return"n"+this.bc()},Jg:function(){return new x(this.value)},J:function(){return this.value},Pa:function(){return new Ha(this.value)},abs:function(){return new e(Math.abs(this.value))},Gi:function(){return new e(-this.value)},yj:function(){return this},floor:function(){return this}, +round:function(a){return 0>a?(a=Math.pow(10,-a),new e(Math.round(this.value/a)*a)):this},Ri:function(a){return 0>a?(a=Math.pow(10,-a),new e(parseInt(Ha(this.value).pd(a,100,2).round(0,2).ke(a),10))):this}};h.prototype={value:null,type:"decimal",toString:function(){return this.value.toFixed()},ia:function(a){return 0===this.ab(a)},ab:function(a){if(a instanceof h)return this.value.cmp(a.value);if(a.Pa)return this.value.cmp(a.Pa());if(a.Jg)return this.value.cmp(new Ha(a.Jg()));r(this.type,a.type)}, +bc:function(){var a=this.value;return a.Ei(Ha(1)).On()&&a.abs().Qo()?this.J().toString(36):this.toString().substring(0,8)},mk:function(a){return a instanceof x||a instanceof e?0===this.ab(aa.aa(a)):a instanceof h?0===this.ab(a):!1},Gd:function(){return"n"+this.bc()},Pa:function(){return this.value},Jg:function(){return new x(parseFloat(this.value.toFixed()))},J:function(){return parseFloat(this.value.toFixed())},abs:function(){return new h(this.value.abs(),this.type)},Gi:function(){var a=Ha(this.value); +a.Aa=-a.Aa;return new h(a,"decimal"===this.type?"decimal":"integer")},yj:function(){return new h(this.value.round(0,0>this.value.Aa?0:3),this.type)},floor:function(){return new h(this.value.round(0,0>this.value.Aa?3:0),this.type)},round:function(a){function e(a,e){var b=new Ha(a);b.e+=e;return b}var b=this.value,g=0;0>a&&(g=a,a=0,b=e(b,g));var c=0 +a?(a=Ha(10).pow(-a),a=this.value.pd(a,100,2).round(0,2).ke(a)):a=this.value.round(a,2);return new h(a,"decimal"===this.type?"decimal":"integer")}};p.prototype={value:null,type:"boolean",toString:function(){return this.value.toString()},ab:function(a){if(a instanceof p)return(this.value?1:0)-(a.value?1:0);r(this.type,a.type)},ia:function(a){return 0===this.ab(a)},bc:function(){return this.value.toString()},Gd:function(){return"b"+this.toString()}};y.prototype={prefix:null,uri:null,local:null,type:"QName", +ha:function(){return"Q{"+this.uri+"}"+this.local},toString:function(){return(0=a&&(a+=12);!Y([b,a,h,0,0,0]);)--h;return C.type[this.type].g((0>b?"-"+(1E4+-b).toString().substring(1):(1E4+b).toString().substring(1))+"-"+(100+a).toString().substring(1)+"-"+(100+h).toString().substring(1)+e.substring(10))},Xi:function(){var a=this.zb;if(a){var e=Math.abs(a);return(0>a?"-":"+")+(100+Math.floor(e/60)).toString().substring(1)+":"+(100+e%60).toString().substring(1)}return 0===a?"Z":""}};L.prototype={type:"duration",Eb:0,wb:0, +gk:function(){function a(a,b){b.forEach(function(b){1E3!==b?(e.push(Math.floor(a/b)),a%=b):e.push(a/b)})}var e=[];a(Math.abs(this.Eb),[12,1]);a(Math.abs(this.wb),[864E5,36E5,6E4,1E3]);return e},nk:function(){var a=this.Eb+this.wb;return 0>a?-1:0a?"-P":"P",this.gk().forEach(function(a,b){3===b&&(e+="T");0!==a&&(e=6===b?e+(a/1E3+"S"):e+(a+"YMDHMS".split("")[b]))}),e=e.replace(/T$/,"");return e}, +ab:function(a){if(a instanceof L){if(H.ed.matches(this)&&H.ed.matches(a))return this.Eb-a.Eb;if(H.ac.matches(this)&&H.ac.matches(a))return this.wb-a.wb;throw new q("Cannot compare durations that mix months and seconds","XPTY0004");}r(this.type,a.type)},ia:function(a){a instanceof L||r(this.type,a.type);return a instanceof L&&this.Eb===a.Eb&&this.wb===a.wb},bc:function(){return this.Eb.toString()+":"+this.wb.toString()},Gd:function(){return"d"+this.bc()}};var za={name:"anyAtomicType",code:"A",matches:function(a){return a instanceof +K||a instanceof h||a instanceof e||a instanceof x||a instanceof A||a instanceof p||a instanceof L||a instanceof u||a instanceof y}},Ka={name:"untypedAtomic",code:"AZ",g:function(a){return new K(a,"untypedAtomic")},matches:function(a){return"untypedAtomic"===a.type},aa:function(a){return new K(a.toString(),"untypedAtomic")}},Va={name:"string",code:"AS",g:function(a){return new K(a,"string")},matches:function(a){return c(a.type,"string")},aa:function(a){return new K(a.toString(),"string")},Fe:function(a){return a instanceof +K}},Ba={name:"anyURI",code:"AU",g:function(a){a=a.replace(/[ \r\t\n]+/g," ").replace(/^[ ]|[ ]$/g,"");return new K(a,"anyURI")},matches:function(a){return"anyURI"===a.type},aa:function(a){if(a instanceof K)return H.kc.g(a.toString());f(a,"anyURI")}},ja={name:"double",code:"AO",g:function(a){return new x(v(a,!0))},oi:function(a){return new x(v(a,!1))},fa:function(a){return new x(a)},matches:function(a){return"double"===a.type},aa:function(a){if(null===a||"undefined"==typeof a)return H.za.fa(NaN);if(H.T.matches(a)|| +H.Ua.matches(a))return H.za.g(a.toString());if(H.numeric.matches(a))return H.za.fa(a.J());if(H.Ea.matches(a))return H.za.fa(a.value?1:0);if("number"===typeof a)return H.za.fa(a);f(a,"double")},NaN:null};ja.NaN=ja.fa(NaN);var aa={name:"decimal",code:"AD",g:function(a){a=Na.trim(a).replace(/^\+/,"");if(/^[-+]?([0-9]+(\.[0-9]*)?|\.[0-9]+)$/.test(a))return new h(new Ha(a));k(a,"decimal")},wc:function(a){return new h(a)},fa:function(a){isFinite(a)||k(a,"decimal",null,"FOCA0002");return new h(new Ha(a))}, +matches:function(a){return a instanceof h||a instanceof e},aa:function(a){if(H.od.matches(a))return new h(a.value,"decimal");if(H.T.matches(a)||H.Ua.matches(a))return H.od.g(a.toString());if(H.numeric.matches(a))return H.od.fa(a.J());if(H.Ea.matches(a))return H.od.g(a.value?"1":"0");f(a,"decimal")}},ra={name:"float",code:"AF",g:function(a){return H.qd.fa(v(a,!0))},fa:function(a){Math.fround&&(a=Math.fround(a));return new x(a,"float")},matches:function(a){return"float"===a.type},aa:function(a){return H.qd.fa(H.za.aa(a).J())}}, +Z={name:"boolean",code:"AB",cf:new p(!0),Qg:new p(!1),g:function(a){switch(Na.trim(a)){case "true":case "1":return this.cf;case "false":case "0":return this.Qg;default:k(a,"boolean")}},Dd:function(a){return a?this.cf:this.Qg},matches:function(a){return a instanceof p},aa:function(a){if(H.T.matches(a)||H.Ua.matches(a))return H.Ea.g(a.toString());if(H.numeric.matches(a))return H.Ea.Dd(0!==a.J()&&!isNaN(a.J()));if(H.Ea.matches(a))return a;if("boolean"===typeof a)return H.Ea.Dd(a);f(a,"boolean")}},U= +{name:"integer",code:"ADI",Bb:"decimal",matches:function(a){return c(a.type,"integer")},g:function(a){if(/^\s*[-+]?[0-9]+\s*$/.test(a))return 9Number.MAX_SAFE_INTEGER)throw new q("Integer constant '"+a+"' out of range","FOCA0003");return new e(a)},wc:function(a){return new h(a,"integer")},valid:function(a){return 0===a.value.Ei(1)},aa:function(a){if(H.T.matches(a)|| +H.Ua.matches(a))return H.Ma.g(a.toString());if(H.numeric.matches(a))return H.Ma.fa(a.J());if(H.Ea.matches(a))return H.Ma.fa(a.value?1:0);f(a,"integer")},Bq:function(a){return"number"===typeof a?H.Ma.fa(a):"boolean"===typeof a?H.Ma.fa(a?1:0):"string"===typeof a?H.Ma.g(a):H.Ma.g(a.toString())}},X={name:"numeric",code:"Anumeric",cr:["double","decimal","float"],matches:function(a){return a instanceof x||a instanceof e||a instanceof h},aa:function(a){if(H.T.matches(a)||H.Ua.matches(a))return H.za.g(a.toString()); +if(H.numeric.matches(a))return a;if(H.Ea.matches(a))return H.za.fa(a.value?1:0);f(a,"numeric")},qh:function(a){var e=H.za;if(null===a)return e.fa(Number.NaN);if(H.Ea.matches(a))return e.fa(a.value?1:0);if(H.numeric.matches(a))return e.aa(a);if(H.T.matches(a)||H.Ua.matches(a))try{return e.g(a.toString())}catch(Za){return e.fa(Number.NaN)}else return e.fa(Number.NaN)}},T={name:"QName",code:"AQ",matches:function(a){return a instanceof y},xa:function(a,e,b){return new y(a,e,b)},g:function(a,e){a=Na.trim(a); +if("Q{"===a.substring(0,2))return H.X.rb(a);Na.Wl(a)||k(a,"QName");var b=a.split(":");if(1===b.length)return H.X.xa("",e(""),b[0]);var g=e(b[0]);if(null===g)throw new q("Undeclared prefix: "+b[0],"FONS0004");return H.X.xa(b[0],g,b[1])},rb:function(a){var e=a.indexOf("{"),b=a.indexOf("}");e=Ma.dd(a.substring(e+1,b));if("http://www.w3.org/2000/xmlns/"===e)throw new q("Use of reserved namespace: "+e,"XQST0070");return H.X.xa("",e,a.substring(b+1))},aa:function(a,e){if(H.T.matches(a)||H.Ua.matches(a)){if(e)return H.X.g(a.toString(), +e);throw new q("Casting to QName requires a namespace resolver","XPTY0117");}if(H.X.matches(a))return a;f(a,"QName")}},oa={name:"notation",code:"AN",g:function(a){return this.aa(a)},matches:function(){return!1},aa:function(){throw new q("Casting to xs:NOTATION is not possible","XPST0080");}},ka={name:"dateTime",code:"AM",matches:function(a){return c(a.type,"dateTime")},g:function(a){return S(a,"dateTime")},Sb:function(a,e){return new u(a,void 0===e?null:e,"dateTime")},aa:function(a){if(H.dateTime.matches(a))return a; +if(H.nd.matches(a))return H.dateTime.Sb(a.ub,a.zb);if(H.T.matches(a)||H.Ua.matches(a))return H.dateTime.g(a.toString());f(a,"dateTime")}},Ya={name:"date",code:"AA",matches:function(a){return a instanceof u&&"date"===a.type},g:function(a){return S(a,"date")},Sb:function(a,e){var b=(new u(a,e,"date")).toString(),g="-"===b.charAt(0)?11:10;b=H.dateTime.g(b.substring(0,g)+"T00:00:00"+b.substring(g));return new u(b.ub,e,"date")},aa:function(a){if(H.nd.matches(a))return a;if(H.dateTime.matches(a))return H.nd.Sb(a.ub, +a.zb);if(H.T.matches(a)||H.Ua.matches(a))return H.nd.g(a.toString());f(a,"date")}},Fa={name:"time",code:"AT",matches:function(a){return a instanceof u&&"time"===a.type},g:function(a){return S(a,"time")},Sb:function(a,e){var b=new u(a,e,"time");b=H.dateTime.g("1972-01-01T"+b.toString());return new u(b.ub,e,"time")},aa:function(a){if(H.time.matches(a))return a;if(H.dateTime.matches(a))return H.time.Sb(a.ub,a.zb);if(H.T.matches(a)||H.Ua.matches(a))return H.time.g(a.toString());f(a,"time")}},ia={name:"dateTimeStamp", +code:"AMP",matches:function(a){return a instanceof u&&"dateTimeStamp"===a.type},g:function(a){return S(a,"dateTimeStamp")},Sb:function(a,e){return new u(a,e,"dateTimeStamp")},aa:function(a){if(H.cg.matches(a))return a;if(H.dateTime.matches(a)||H.nd.matches(a))return H.cg.Sb(a.ub,a.zb);if(H.T.matches(a)||H.Ua.matches(a))return H.cg.g(a.toString());f(a,"dateTimeStamp")}},Ia={name:"duration",code:"AR",matches:function(a){return c(a.type,"duration")},g:function(a){return xa(a,"duration")},rd:function(a, +e){return new L(a,e,"duration")},aa:function(a){if(H.duration.matches(a))return a;if(H.T.matches(a)||H.Ua.matches(a))return H.duration.g(a.toString());f(a,"duration")}},la={name:"hexBinary",code:"AX",matches:function(a){return"hexBinary"===a.type},g:function(a){return new A(g(a),"hexBinary")},aa:function(a){if(a instanceof A)return new A(a.value,"hexBinary");if(H.T.matches(a)||H.Ua.matches(a))return new A(g(a.toString()),"hexBinary");f(a,"hexBinary")}},La={name:"base64Binary",code:"A2",matches:function(a){return"base64Binary"=== +a.type},g:function(a){return new A(z(a),"base64Binary")},Nn:function(a){return new A(a,"base64Binary")},aa:function(a){if(a instanceof A)return new A(a.value,"base64Binary");if(H.T.matches(a)||H.Ua.matches(a))return new A(z(a.toString()),"base64Binary");f(a,"base64Binary")}},M={anyAtomicType:za,untypedAtomic:Ka,string:Va,anyURI:Ba,"double":ja,decimal:aa,"float":ra,"boolean":Z,integer:U,NOTATION:oa,numeric:X,QName:T,dateTime:ka,date:Ya,time:Fa,dateTimeStamp:ia,duration:Ia,hexBinary:la,base64Binary:La}, +Qa={},E={dateTime:/^\s*(-?(?:[1-9][0-9]{4,}|[0-9]{4})-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}(?:\.[0-9]+)?)(Z|(\+|-)[0-9]{2}:[0-9]{2})?\s*$/,date:/^\s*(-?(?:[1-9][0-9]{4,}|[0-9]{4})-[0-9]{2}-[0-9]{2})(Z|(\+|-)[0-9]{2}:[0-9]{2})?\s*$/,time:/^\s*([0-9]{2}:[0-9]{2}:[0-9]{2}(?:\.[0-9]+)?)(Z|(\+|-)[0-9]{2}:[0-9]{2})?\s*$/,dateTimeStamp:/^\s*(-?[0-9]+-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}(?:\.[0-9]+)?)(Z|(\+|-)[0-9]{2}:[0-9]{2})\s*$/,gYearMonth:/^\s*(-?(?:[1-9][0-9]{4,}|[0-9]{4})-[0-9]{2})(Z|(\+|-)[0-9]{2}:[0-9]{2})?\s*$/, +gYear:/^\s*(-?[1-9][0-9]{4,}|-?[0-9]{4})(Z|(\+|-)[0-9]{2}:[0-9]{2})?\s*$/,gMonthDay:/^\s*--([0-9]{2}-[0-9]{2})(Z|(\+|-)[0-9]{2}:[0-9]{2})?\s*$/,gMonth:/^\s*--([0-9]{2})(Z|(\+|-)[0-9]{2}:[0-9]{2})?\s*$/,gDay:/^\s*---([0-9]{2})(Z|(\+|-)[0-9]{2}:[0-9]{2})?\s*$/,duration:/^\s*\-?P(?:([0-9]+)Y)?(?:([0-9]+)M)?(?:([0-9]+)D)?(?:T(?:([0-9]+)H)?(?:([0-9]+)M)?(?:([0-9]+(?:\.[0-9]*)?)S)?)?\s*$/,dayTimeDuration:/^\s*\-?P(?:([0-9]+)D)?(?:T(?:([0-9]+)H)?(?:([0-9]+)M)?(?:([0-9]+(?:\.[0-9]*)?)S)?)?\s*$/,yearMonthDuration:/^\s*\-?P(?:([0-9]+)Y)?(?:([0-9]+)M)?\s*$/}, +bb={dateTime:function(a){return fa(a)},date:function(a){return a+"T00:00:00"},time:function(a){return"1972-01-01T"+fa(a)},dateTimeStamp:function(a){return fa(a)},gYearMonth:function(a){return a+"-01T00:00:00"},gYear:function(a){return a+"-01-01T00:00:00"},gMonthDay:function(a){return"1972-"+a+"T00:00:00"},gMonth:function(a){return"1972-"+a+"-01T00:00:00"},gDay:function(a){return"1972-01-"+a+"T00:00:00"}},V=[function(a,e){return b(m(a[1],12)+m(a[2],1),e.match(/^\s*\-.*/))},function(a,e){return b(m(a[3], +864E5)+m(a[4],36E5)+m(a[5],6E4)+d(a[6],1),e.match(/^\s*\-.*/))},function(a,e){return b(m(a[1],864E5)+m(a[2],36E5)+m(a[3],6E4)+d(a[4],1),e.match(/^\s*\-.*/))},function(){return 0}],Ga={duration:[0,1],dayTimeDuration:[3,2],yearMonthDuration:[0,3]},H={wj:za,kc:Ba,Yk:La,Ea:Z,nd:Ya,dateTime:ka,cg:ia,ac:null,od:aa,za:ja,duration:Ia,qd:ra,Dl:null,El:null,Fl:null,Gl:null,Hl:null,po:la,Ma:U,language:null,Dk:null,jq:oa,numeric:X,X:T,T:Va,time:Fa,Ua:Ka,ed:null};return{ff:a,Ga:function(a){return za.matches(a)}, +Xl:c,pp:l,Wj:function(a,e,b,g){if(a instanceof h||e instanceof h)return U.wc(g(a.Pa(),e.Pa()));b=b(a.J(),e.J());return Math.abs(b)=a.length?-1:a.charAt(m++);c!==b&&l("Expected '"+b+"', found '"+c+"'")}function k(){for(var b=0,c=m;mv?G.qc(c,l):G.qc(b,k)}},hc:function(a){return G.jh(a)?a.parent:a.parentNode},ii:function(a,b,d){a.setAttributeNS("http://www.w3.org/2000/xmlns/",""===b?"xmlns":"xmlns:"+b,d)},De:function(a,b){b=void 0===b?d.Ib:b;for(var c=[{prefix:"xml",uri:F.xml}],k={xml:!0},r,l=b(a);null!== +(r=l.next());)if(1===r.nodeType){var w=G.ma(r);""===w.prefix&&""===w.uri&&(k[""]=!0);r=r.attributes;for(w=0;wa||a>this.value.length)throw new q("Array index ("+a+") out of bounds (1 to "+this.value.length+")","FOAY0001");return this.value[a-1]},size:function(){return this.value.length},oa:function(){for(var a="[",d=0;dd;d++)0!==d&&(a+=","),a+=B.oa(this.value[d]); +4<=this.value.length&&(a+=",...("+this.value.length+")");return a+"]"},flatten:function(a){for(var b=0;b"+b.va(),k=f[d];if(k)return k;k=c(a,b);return f[d]=k}function b(b,c){B.assert(b instanceof I.mc);B.assert(c instanceof I.mc);switch(a(b,c)){case 0:case 1:return b;case 2:return c;case 3:case 4:var d=b.ea(),f=c.ea();d={p:Xa(d.p,f.p),u:[d,f]};return I.ni(d)}}function d(b,c){B.assert(b instanceof I.mc);B.assert(c instanceof I.mc);switch(a(b,c)){case 0:case 1:return c;case 2:return b;case 3:var d= +b.ea(),f=c.ea();d={p:d.p.startsWith(f.p)?d.p:f.p.startsWith(d.p)?f.p:d.p.charAt(0)===f.p.charAt(0)?d.p.charAt(0):"",i:[d,f]};return I.ni(d);case 4:return I.Lh.pa}}function m(a,b){return 0===a&&0===b?0:0!==a&&1!==a||0!==b&&1!==b?0!==a&&2!==a||0!==b&&2!==b?4===a||4===b?4:3:2:1}function c(b,d){function f(a,b){return(a||"")===(b||"")?0:a&&!b?2:b&&!a?1:4}function k(a){return 1===a?2:2===a?1:a}function r(a){return a.n||a.e||a.u||a.i||a.d}B.assert(b instanceof I.mc);B.assert(d instanceof I.mc);var t=b.ea(), +g=d.ea(),K=b.va(),A=d.va();if("F"===t.p){if(!(b instanceof I.Hh&&d instanceof I.Hh))return 3;B.assert(b.Zc);return b.Zc(d)}if(K===A)return 0;if(b.Ge())return d.Ge()?0:/^A[ODF]/.test(g.p)?1:"A"===g.p||""===g.p?2:4;if(d.Ge())return k(c(d,b));if(t.p===g.p){if(b.pg())return t.u&&g.u?3:t.e&&g.e?f(t.e,g.e):t.n&&g.n?f(t.n,g.n):r(t)&&!r(g)?2:r(g)&&!r(t)?1:0;if(b.Ga())return 0;if("FA"===t.p)return t=b.ze?b.ze():J.B.Qa,g=d.ze?d.ze():J.B.Qa,l(t,g);if("FM"===t.p)return t=a(b.ye(),d.ye()),g=l(b.Sj(),d.Sj()),m(t, +g);if(!(b instanceof I.Hh&&d instanceof I.Hh))return 3;B.assert(b.Zc);return b.Zc(d)}return t.p.startsWith(g.p)?t.u?3:2:g.p.startsWith(t.p)?t.u?3:1:4}function l(b,c){B.assert(b instanceof J.Ka);B.assert(c instanceof J.Ka);var d=b.na;var f=c.na;d=d===f?pb.Dc:(d|f)===d?pb.gd:(d|f)===f?pb.Ud:0===(d|f)?pb.wd:pb.Hk;f=a(b.ca,c.ca);return m(d,f)}var f={};return{Dc:0,gd:1,Ud:2,Hk:3,wd:4,Zc:a,Ko:function(b,c){B.assert(b instanceof I.mc);B.assert(c instanceof I.mc);var d=a(b,c);return 0===d||2===d},fq:b,ug:function(a){B.assert(0< +a.length);return a.slice(1).reduce(function(a,c){return b(a,c)},a[0])},qo:function(a){B.assert(0a};case "+":return function(a){return 0a};case 6:return function(a){return 0b;case ">":case "gt":return 0=":case "ge":return 0<=b; +case "<=":case "le":return 0>=b;case "!=":case "ne":return 0!==b;default:throw new q("Unknown operator "+a,"SXJS0003");}}function e(a,b){return a.map(function(a){var e=b.fixed.ya;a=e.qa(a,"dataType");e=null===a?null:e.evaluate(a,b).next();return"number"===e?function(a){return null===a?null:S.za.oi(a.toString())}:"text"===e?function(a){return null===a?null:S.T.aa(a)}:function(a){return a}})}function h(a,b){return a.substring(0,b.length)===b}function p(a,b){return a.substring(a.length-b.length)===b} +function y(a,b){return b&&(b=b.next())?b.toString():a.collation}function u(a,b){var e=a?h(a,"http://www.w3.org/2013/collation/UCA")&&36b.zg?1:a.zg===b.zg?0:-1});return D.K(h.map(function(a){return a.item}))}},Vi:x,Fm:function(a,b){switch(a){case "=":case "eq":return b;case "!=":case "ne":return!b;case "<":case "lt":case ">":case "gt":case ">=":case "ge":case "<=":case "le":throw new q("Operator "+a+" not allowed for unordered types","SXJS0003");default:throw new q("Unknown operator "+ +a,"SXJS0003");}},Wi:function(a,b){function e(a){return S.T.Fe(a)?d(a.Gd()):a.Gd()}var c=new cb,d=a.collationKey;if(!d)throw new q("Collation is unsuitable for keys and grouping","XTDE1110");var h={Se:function(b,e){return vb.Cj(D.K(b),D.K(e),a.ia)},hash:function(a){return a.map(e).join()}},g={Se:function(a,b){return e(a)===e(b)},hash:function(a){return e(a)}};c.options=b?h:g;return c},Op:"http://www.w3.org/2013/collation/UCA",Wp:"http://www.w3.org/xslts/collation/caseblind"}}();var wb=function(){var a={};return{register:function(b,d){a[b]=d},find:function(b){return a[b]},er:a}}();var xb=function(){function a(b){var d=G.Ab,m={"p.any":function(){return function(){return!0}},"p.never":function(){return function(){return!1}},"p.booleanExp":function(a){var b=P.Kb(a);return function(a,c){var d=c.ja();d.focus=D.jc(a);return P.dg(b(d))}},"p.genNode":function(a){var b=P.Kb(a);return function(a,c){if(!G.da(a))return!1;for(var d=G.Ab.Ib(a),f;null!==(f=d.next());){var k=c.ja(!1);k.focus=D.jc(f);for(f=b(k);null!==(k=f.next());)if(G.isSameNode(k,a))return!0}return!1}},"p.genPos":function(a){var b= +I.Xc(a.test).ta(),c=P.Kb(a);return function(a,f){if(!b(a))return!1;var k=f.fixed.ya,r=f.ja(!1),l=d.pb(G.hc(a)).filter(b);for(r.focus=D.Da(l);null!=(l=r.focus.next());)if(l===a&&k.dg(c(r)))return!0;return!1}},"p.nodeSet":function(a){var b=P.Kb(a);return function(a,c){return b(c).some(function(b){return b===a})}},"p.nodeTest":function(a){return I.Xc(a.test).ta()},"p.simPos":function(a){var b=I.Xc(a.test).ta(),c=parseInt(a.pos,10);return function(a){return b(a)&&d.Oe(a).filter(b).count()===c-1}},"p.venn":function(b){var c= +b.C,d=a(c[0]),k=a(c[1]);b=b.op;switch(b){case "union":return function(a,b){return d(a,b)||k(a,b)};case "intersect":return function(a,b){return d(a,b)&&k(a,b)};case "except":return function(a,b){return d(a,b)&&!k(a,b)};default:throw new q("unknown op "+b,"SXJS0003");}},"p.withCurrent":function(b){var c=a(b.C[0]);return function(a,b){var d=b.ja(!0);d.Ha[0]=[a];return c(a,d)}},"p.withPredicate":function(b){b=b.C;var c=a(b[0]),d=P.Fc(b[1]);return function(a,b){if(!c(a,b))return!1;var f=b.ja(!1);f.focus= +D.jc(a);return P.dg(d(f))}},"p.withUpper":function(b){var c=b.C,d=a(c[0]),k=a(c[1]),r=b.axis;return"parent"===r?"true"===b.upFirst?function(a,b){var c=G.hc(a);return c&&k(c,b)&&d(a,b)}:function(a,b){var c=G.hc(a);return c&&d(a,b)&&k(c,b)}:function(a,b){if(!d(a,b))return!1;for(var c=G.Xk[r](a),f;null!==(f=c.next());)if(k(f,b))return!0;return!1}}}[b.N];if(m)return m(b);throw new q("Unimplemented pattern "+b.N,"SXJS0002");}return{Df:a,matches:function(a,d,m){m.Mi(null);a=a(d,m);m.jk();return a}}}();var yb=function(){function a(a,b,l,f){function c(a){for(var b=[],e=a.length-1;0<=e;e--)b.push({Bg:a[e],action:a[e].C[1],pattern:xb.Df(a[e].C[0])});return b}function r(a){a._saxonAccumulators||(a._saxonAccumulators={});a._saxonAccumulators[l]={};var b=m(A,a);b&&(h=z(b,a));a._saxonAccumulators[l].pre=h;d.pb(a).sa(r);(b=m(x,a))&&(h=z(b,a));a._saxonAccumulators[l].post=h}function m(a,b){for(var c=0,d=a.length;cf.indexOf(a[0].value))throw new q("Invalid value "+g+"="+a[0],"FOJS0005");return a[0].value}throw new q("Invalid option: "+b+": must be "+c,"XPTY0004");}return d}function b(a,b){function c(a){throw new q(a, +"FOJS0001");}function d(){return y=f()}function f(){for(y="";;){if(p>=a.length)return["eof"];var b=a.charAt(p++);if(!/[ \n\r\t]/.test(b))break}switch(b){case "[":case "{":case "]":case "}":case ":":case ",":return[b];case '"':for(b=!1;;){var e=a.charAt(p++);if('"'!==e||b)y+=e,b="\\"===e&&!b;else return["string",y];p>=a.length&&c("Unclosed quotes in string literal")}case "-":case "0":case "1":case "2":case "3":case "4":case "5":case "6":case "7":case "8":case "9":for(y+=b;p=b){if(y+=b,++p>=a.length)break}else break;if(["true","false","null"].includes(y))return[y];c("Unknown constant "+y);break;default:return c("Unexpected character '"+b+"' ("+Ma.Bc(b)+") at position "+p),-1}}function k(a){y[0]!==a&&c("Expected "+a+", found "+y[0])}function x(a){return y[0]=== +a?(d(),!0):!1}function e(a){if(y[0]===a)return d(),!0;if(","===y[0])return d(),!1;c("Expected ',' or '"+a+"', found '"+y[0]+"'")}function h(){switch(y[0]){case "[":d();b.Am();if(!x("]")){do h();while(!e("]"))}b.ul();break;case "{":d();b.Bm();if(!x("}")){do k("string"),b.ql(y[1]),d(),k(":"),d(),h();while(!e("}"))}b.vl();break;case "string":b.tl(y[1]);d();break;case "number":b.sl(y[1]);d();break;case "true":case "false":b.pl(y[0]);d();break;case "null":b.rl();d();break;default:c("Unexpected token "+ +y[0])}}a=a.replace(/^[\uFEFF]/,"");var p=0,y=d();h();k("eof");return b.result()}function d(a){try{return JSON.parse('"'+a+'"')}catch(z){throw new q(z.toString(),"FOJS0001");}}function m(a,b){var d=b.Yb,g=b.Vf;var f=g?function(a){return g.evaluate([[C.O.T.g(c(a))]],d).next().toString()}:function(){return"�"};a=a.replace(/[\x00-\x08\x0B\x0C\x0E-\x0F\x80-\x9F\uFFFF]/g,f);return a=a.replace(/[\uD800-\uDFFF]+/g,function(a){for(var b="",e=0;ec||e=== +a.length-1&&"\udc00">c?f(c):c}return b})}function c(a){for(a=a.charCodeAt(0).toString(16);4>a.length;)a="0"+a;return"\\u"+a.toUpperCase()}function l(b,c){this.Hb=[];this.hf=[];this.Yb=c;a(b,"liberal","boolean",!1);this.Vf=a(b,"fallback","function",null);this.Vd=a(b,"escape","boolean",!1);this.Ug=a(b,"duplicates","string","use-first",["reject","use-first","use-last"]);if(this.Vd&&this.Vf)throw new q("parse-json: cannot use fallback with escape:true()","FOJS0005");}function f(b,c){this.Hb=[];this.hf= +[];this.Vg=[];this.Yb=c;a(b,"liberal","boolean",!1);if(a(b,"validate","boolean",!1))throw new q("json-to-xml: validate option not supported in a non-schema-aware processor","FOJS0004");this.Vf=a(b,"fallback","function",null);this.Vd=a(b,"escape","boolean",!1);this.Ug=a(b,"duplicates","string","use-first",["reject","use-first","retain"]);if(this.Vd&&this.Vf)throw new q("json-to-xml: cannot use fallback with escape:true()","FOJS0005");}var k=F.cb,r=C.O,v=G.Ab;l.prototype={Hb:[],hf:[],Yb:null,Vd:!1, +Vf:null,Ug:"use-first",xh:function(a){return this.Vd?JSON.stringify(a).replace(/^"|"$/g,"").replace(/\\"/g,'"').replace(/[\uD800-\uDFFF]/g,c):m(a,this)},Oa:function(){return this.Hb[this.Hb.length-1]},Oc:function(a){if(0===this.Hb.length)this.Hb.push(a);else if(this.Oa()instanceof mb)this.Oa().value.push(a);else{var b=this.Oa(),c=r.T.g(this.hf.pop());if(b.Xa(c))switch(this.Ug){case "reject":throw new q("json-to-xml: duplicate key '"+c.toString()+"'","FOJS0003");case "use-first":return}b.Ta(c,a)}}, +rl:function(){this.Oc([])},pl:function(a){this.Oc([r.Ea.g(a)])},sl:function(a){this.Oc([r.za.fa(parseFloat(a))])},tl:function(a){this.Oc([r.T.g(this.xh(d(a)))])},ql:function(a){this.hf.push(this.xh(d(a)))},Am:function(){this.Hb.push(new mb([]))},ul:function(){this.Oc([this.Hb.pop()])},Bm:function(){this.Hb.push(new cb)},vl:function(){this.Oc([this.Hb.pop()])},result:function(){return void 0!==this.Oa()[0]?this.Oa()[0]:null}};f.prototype={Hb:[],hf:[{}],Vg:[],Yb:null,Vf:null,Vd:!1,Ug:"use-first",xh:function(a){return this.Vd? +JSON.stringify(a).replace(/^"|"$/g,"").replace(/\\"/g,'"').replace(/[\uD800-\uDFFF]/g,c):m(a,this)},Oa:function(){return this.Hb[this.Hb.length-1]},Oc:function(a){if(0===this.Hb.length)a.setAttribute("xmlns",k),this.Hb.push(a);else{var b=this.Oa();if("map"===b.tagName){var c=this.hf.pop(),d=this.Vg[this.Vg.length-1];if(c in d)switch(this.Ug){case "reject":throw new q("parse-json: duplicate key '"+c.toString()+"'","FOJS0003");case "use-first":return}d[c]=a;a.setAttribute("key",c);this.Vd&&/\\/.test(c.toString())&& +a.setAttribute("escaped-key","true")}b.appendChild(a)}},rl:function(){var a=this.Yb.wa.createElementNS(k,"null");this.Oc(a)},pl:function(a){var b=this.Yb.wa.createElementNS(k,"boolean");b.appendChild(this.Yb.wa.createTextNode(a.toString()));this.Oc(b)},sl:function(a){var b=this.Yb.wa.createElementNS(k,"number");b.appendChild(this.Yb.wa.createTextNode(a.toString()));this.Oc(b)},tl:function(a){var b=this.Yb.wa.createElementNS(k,"string");if(""!==a){a=this.xh(d(a));var c=this.Yb.wa.createTextNode(a); +this.Vd&&/\\/.test(a)&&b.setAttribute("escaped","true");b.appendChild(c)}this.Oc(b)},ql:function(a){this.hf.push(this.xh(d(a)))},Am:function(){var a=this.Yb.wa.createElementNS(k,"array");this.Hb.push(a)},ul:function(){this.Oc(this.Hb.pop())},Bm:function(){var a=this.Yb.wa.createElementNS(k,"map");this.Hb.push(a);this.Vg.push({})},vl:function(){this.Vg.pop();this.Oc(this.Hb.pop())},result:function(){return this.Oa()}};return{fk:function(a,c,d){return b(a,new l(c,d))},lp:function(a,c,d){return b(a, +new f(c,d))},Up:function(b,f){function l(a){throw new q("Invalid input to xml-to-json(): "+a,"FOJS0006");}function g(a){0!==h.xe(a).length&&l("node "+a.tagName+" must have no element children")}function m(a){v.pb(a).filter(function(a){return 3===a.nodeType&&a.nodeValue&&""!==Na.trim(a.nodeValue)}).next()&&l("node "+a.tagName+" must have no text content")}function A(a){try{return r.Ea.g(a).value}catch(y){l("invalid boolean: '"+a+"'")}}function x(a){try{JSON.parse('"'+a+'"')}catch(y){throw new q("invalid escape sequence: "+ +y.toString(),"FOJS0007");}}function e(a,b){b=void 0===b?!0:b;if(9===a.nodeType||11===a.nodeType){var f=h.xe(a);1!==f.length&&l("document node has "+f.length+" element children");return e(f[0])}if(1===a.nodeType){var p=!1;if(a.namespaceURI===k)switch(v.ob(a).sa(function(e){if(0>e.name.indexOf(":")||e.namespaceURI===k)"key"===e.name||"escaped-key"===e.name?"escaped-key"===e.name?(b||"map"===h.hc(a).localName||l("@escaped-key is allowed only on children of map"),A(e.value)&&x(a.getAttribute("key"))): +b||"map"===h.hc(a).localName||l("@key is allowed only on children of map"):"escaped"===e.name?("string"!==a.localName&&l("@escaped is allowed only on string"),p=A(e.value)):l("invalid attribute "+e.name)}),a.hasAttribute("escaped-key")&&!b&&"map"!==h.hc(a).localName&&l("escaped-key is allowed only on children of map"),a.localName){case "null":return v.pb(a).filter(function(a){return 8!==a.nodeType&&7!==a.nodeType}).next()&&l("null element must have no content"),"null";case "string":g(a);f=a.textContent; +if(p)f=f.replace(/^"/g,'\\"').replace(/^[\b]/g,"\\b").replace(/^\f/g,"\\f").replace(/^\n/g,"\\n").replace(/^\r/g,"\\r").replace(/^\t/g,"\\t").replace(/^\//g,"\\/").replace(/([^\\])"/g,'$1\\"').replace(/([^\\])[\b]/g,"$1\\b").replace(/([^\\])\f/g,"$1\\f").replace(/([^\\])\n/g,"$1\\n").replace(/([^\\])\r/g,"$1\\r").replace(/([^\\])\t/g,"$1\\t").replace(/([^\\])\//g,"$1\\/").replace(/[\u0001-\u001F\u007F-\u009F]/g,c),x(f);else return JSON.stringify(f).replace(/\//g,"\\/");return'"'+f+'"';case "number":g(a); +try{f=r.za.g(a.textContent)}catch(ma){l("invalid number")}isFinite(f.J())||l("NaN and INF not allowed");return f.toString();case "boolean":return g(a),A(a.textContent),r.Ea.g(a.textContent).toString();case "array":m(a);var y="[",t="";h.xe(a).forEach(function(a){y+=t+e(a,!1);t=","});return y+"]";case "map":m(a);var Y="{",N="",S={};h.xe(a).forEach(function(a){a.hasAttribute("key")||l("child element of map must have a key");var b=h.getAttribute(a,"key"),c=b,g=h.getAttribute(a,"escaped-key"),f=!1;g&& +A(g)&&(f=!0,c=d(b));S[c]&&l("duplicate key '"+b+"'");S[c]=!0;Y+=N+(f?'"'+b+'"':JSON.stringify(b).replace(/\//g,"\\/"))+":"+e(a,!1);N=","});return Y+"}";default:l("unknown local name "+a.localName)}else l("wrong namespace "+a.namespaceURI)}else h.da(a)||l("not a node"),Error.Gj&&Error.Gj(),l("wrong node kind "+a.nodeType)}var h=G;a(f,"indent","boolean",!1);return e(b)}}}();var Ab=function(){function a(a,b,c,d,m){c="xml"===c?b.fixed.tc:b.fixed.Od;b=b.fixed.Ah;var f=c[a];if(!f||f instanceof q){f=b[a];if(!f){try{f=d()}catch(z){f=z}b[a]=f}f=m(f);c[a]=f}if(f instanceof q)throw f;return f}function b(a,b){b||(b="utf-8");var c=a.responseText||a;if(b.startsWith("utf")&&0<=c.indexOf("�"))throw new q("External file contains non-Unicode characters","FOUT1190");return c}function d(a){if(0<=a.indexOf("\x00"))throw new q("External file contains non-XML characters","FOUT1190");return a} +function m(a){""===a.charAt(0)&&(a=a.substring(1));return a}function c(a,b,c){if((a=a[0].next())&&G.Bf(a.toString()))return a.toString();b=b.fixed.ya.yb(c,b);if(null===b||"#UNDEFINED"===b)throw new q("No base URI for relative resolution","FODC0002",c);return null===a?null:Da.$c(a.toString(),b)}return{Uk:c,Zh:function(a,b,d){try{return c(a,b,d)}catch(r){if(r instanceof q&&"XPTY0004"===r.code)throw r;throw new q(r.message,"FOUT1170",d);}},zj:function(a){if(""===a)return null;if(!["utf-8","utf-16", +"utf-16be","iso-8859-1"].includes(a.toLowerCase()))throw new q("Unrecognized encoding "+a,"FOUT1190");return a},dl:d,el:m,ve:function(b,c){if(0<=b.indexOf("#"))throw new q("Fragments not supported in external document URIs","FODC0002");return a(b,c,"xml",function(){try{var a=Da.readFile(b,!0)}catch(r){if(r instanceof q&&"FOUT1190"===r.code)throw new q(r.message,"FODC0002");throw r;}return a},function(a){if(a instanceof q)return a;a=a.responseText||a;a=m(d(a));a=G.fe(Da.parseXmlFromString(a));a._saxonBaseUri= +b;a._saxonDocUri=b;return a})},Xn:function(c,d){if(0<=c.indexOf("#"))throw new q("Fragments not supported in text document URIs","FOUT1170");return a(c,d,"text",function(){try{var a=Da.readFile(c,!0)}catch(r){if(r instanceof q)throw new q(r.message,"FOUT1170");throw r;}return a},function(a){if(a instanceof q)return a;var c=a.responseText||a;c=m(c);a.responseText?a.responseText=c:a=c;return b(a,"utf-8")})},Kj:function(c,f,k,r){if(0<=c.indexOf("#"))throw new q("Fragments not supported in text document URIs", +"FOUT1170");return a(c,f,"text",function(){try{var a=Da.readFile(c,!0)}catch(w){if(w instanceof q&&"FOUT1190"===w.code)throw w;throw new q("Cannot retrieve unparsed-text "+c.toString()+" "+w.toString(),"FOUT1170",k);}return a},function(a){if(a instanceof q)return a;var c=a.responseText||a;c=m(d(c));a.responseText?a.responseText=c:a=c;return b(a,r)})},pm:function(a){try{return a(),D.ka(!0)}catch(f){if(f instanceof q&&"XPTY0004"===f.code)throw f;return D.ka(!1)}}}}();var Cb=function(){function a(){this.Vh=[];this.Yh=[]}function b(a,b){var c=f.call(this)||this;c.$=a;c.Sf=!1;c.level=0;c.rh=!1;c.first=!0;c.separator=C.O.T.g(b);c.$a=!1;return c}function d(a){var b=f.call(this)||this;b.$=a;b.Sf=!1;b.level=0;b.rh=!1;b.$a=!1;return b}function m(a){this.Bb=a}function c(a){var b=f.call(this)||this;b.Jm=!1;b.uk=!1;b.done=!1;b.Dp(a);return b}function l(a){this.vf=(this.context=a)?a.wa:Da.Ol().createDocument();this.Dg=[];this.Xd=null;this.level=0;this.If=null;return this} +function f(){this.$=null;return this}function k(){}k.prototype.tb=function(){};k.prototype.hb=function(){};k.prototype.Ba=function(){};k.prototype.Na=function(){};k.prototype.text=function(){};k.prototype.Sa=function(){};k.prototype.Ra=function(){};k.prototype.append=function(){};k.prototype.close=function(){};n(f,k);f.prototype.tb=function(a){this.$.tb(a)};f.prototype.hb=function(){this.$.hb()};f.prototype.Ba=function(a,b,c,d){this.$.Ba(a,b,c,d)};f.prototype.Na=function(){this.$.Na()};f.prototype.text= +function(a,b){this.$.text(a,b)};f.prototype.Sa=function(a,b){this.$.Sa(a,b)};f.prototype.Ra=function(a,b,c){this.$.Ra(a,b,c)};f.prototype.append=function(a,b){this.$.append(a,b)};f.prototype.close=function(){this.$.close()};f.prototype.Rf=function(a){this.$=a;return this};f.prototype.Dp=function(a){this.$=a};n(l,k);l.prototype.Bp=function(){this.vf=new m(this.vf)};l.prototype.tb=function(a){if(0===this.level++){var b=this.Xd=this.vf.createDocumentFragment();a&&a.BASE_URI&&(b._saxonBaseUri=a.BASE_URI); +this.Dg.push(b)}else throw new q("Builder.startDoc() not at top level");};l.prototype.hb=function(){0===--this.level&&(this.Xd=null)};l.prototype.ai=function(a){0===this.level?this.Dg.push(a):this.Xd.appendChild(a)};l.prototype.Ba=function(a,b,c,d){var f=this.vf.createElementNS(a.uri,a.toString());d.BASE_URI&&(f._saxonBaseUri=d.BASE_URI);d.ORIGINAL_NODE&&(f._saxonOriginal=d.ORIGINAL_NODE);d.CALLBACK&&d.CALLBACK(f);this.ai(f);this.Xd=f;this.level++;this.If=null;b.forEach(function(a,b){f.setAttributeNS(b.uri, +b.toString(),a.value)});for(var g in c)c.hasOwnProperty(g)&&(a=c[g],""===g?f.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns",a):f.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:"+g,a))};l.prototype.Na=function(){0===--this.level?this.Xd=null:this.Xd=this.Xd.parentNode;this.If=null};l.prototype.text=function(a){this.If?this.If.appendData(a):(a=this.vf.createTextNode(a),this.ai(a),0a?void 0:this.Yh[a]};a.prototype.set=function(a,b){var c=this.ef(a);0<=c?this.Yh[c]=b:(this.Vh.push(a),this.Yh.push(b))};a.prototype.forEach=function(a){for(var b=0;bf||c.index===f&&e)&&d.push({Ie:!1,T:h(a.substring(f,c.index))}),d.push({Ie:!0,groups:c,T:h(c[0])}),f=b.lastIndex,0===c[0].length&&b.lastIndex++,g++>10*a.length)throw new q("analyze-string looping???","SXJS0004"); +a.length>f&&d.push({Ie:!1,T:h(a.substring(f,a.length))});return d}function z(a){var b="compAtt"===a.N,c=P.Fc(P.qa(a,"name")),d=P.Fc(P.qa(a,"namespace"));return function(e){function h(){throw new q((b?"Attribute":"Element")+" name '"+f+"' is not a lexical QName",b?"XTDE0850":"XTDE0820",a);}var f=Na.trim(c(e).next().toString());if(d){e=d(e).next().value;if(!P.Rp(e))throw new q((b?"Attribute":"Element")+" namespace '"+e+"' is invalid",b?"XTDE0865":"XTDE0835",a);var g=C.O.X;if(""===e&&f.includes(":"))g= +g.xa("","",f.replace(/^.*:/,""));else if(f.includes(":")){var x=f.split(":");""!==x[0]&&""!==x[1]||h();g=g.xa(x[0],e,x[1])}else g=""===e?g.xa("","",f):g.xa(b?"ns0":"",e,f)}else{if(b&&"xmlns"===f)throw new q("Attribute must not be named xmlns","XTDE0855",a);try{g=P.qk(a,f,!b)}catch(L){if(L instanceof q){if("XTDE0290"===L.code)throw new q((b?"Attribute":"Element")+" name '"+f+"' has an unbound prefix",b?"XTDE0860":"XTDE0830",a);"FORG0001"===L.code&&h()}throw L;}}if("http://www.w3.org/2000/xmlns/"=== +g.uri)throw new q("Disallowed namespace "+g.uri,b?"XTDE0865":"XTDE0835",a);return g}}b.prototype.tb=function(){};b.prototype.hb=function(){};b.prototype.Ba=function(){};b.prototype.ob=function(){};b.prototype.Hc=function(){};b.prototype.Na=function(){};b.prototype.text=function(){};b.prototype.Sa=function(){};b.prototype.Ra=function(){};b.prototype.append=function(){};b.prototype.close=function(){};n(a,b);a.prototype.mi=function(a,b,c){var d=this.ie[a];if(d&&d!==b)if(c){if(this.Lj[a])throw new q("Two conflicting bindings for prefix '"+ +a+"'","XTDE0430");if(this.Id.prefix===a){for(d=a+"_9";this.ie[d];)d+="9";this.Id=C.O.X.xa(d,this.Id.uri,this.Id.local);this.ie[d]=this.Id.uri}this.ie[a]=b}else return""===a&&(a="NULL"),this.mi(a+"0",b,!1);c&&(this.Lj[a]=!0);for(c=this.ph.length-1;0<=c;c--)if(d=this.ph[c],d[0]===a)return d[1]!==b&&(this.ie[a]=b),a;if(""!==a||""!==b)this.ie[a]=b;return a};a.prototype.tb=function(){0===this.level&&(this.$.tb({BASE_URI:this.pc,ORIGINAL_NODE:this.Ke}),this.ph=[]);this.we();this.level++;this.$a=this.lg= +!1};a.prototype.hb=function(){this.level--;0===this.level&&this.$.hb();this.$a=!1};a.prototype.Ba=function(a){this.we();this.level++;this.lg=!0;this.Id=a;this.ik=new Cb.$e;this.ie={};this.Lj={};this.mi(a.prefix,a.uri,!1);this.Li=this.Ke;this.$a=!1};a.prototype.ob=function(a,b){if(0===this.level)this.$.append(new $a(a,b,null));else{if(!this.lg){if(this.Id)throw new q("Cannot write attribute ("+a.ha()+"="+b+") after writing child nodes (level="+this.level+", start tag = "+this.Id+")","XTDE0410");throw new q("Cannot attach an attribute ("+ +a.ha()+"="+b+") to a document node","XTDE0420");}if(""!==a.uri){["","xmlns"].includes(a.prefix)&&(a=a.me("ns_"));var c=this.mi(a.prefix,a.uri,!1);c!==a.prefix&&(a=a.me(c))}this.ik.set(a,{value:b,ec:0})}};a.prototype.Hc=function(a,b){if(0===this.level)this.$.append(new ab(a,b));else{if(!this.lg)throw new q("Cannot write namespace after writing child nodes","XTDE0410");if(""===a&&""===this.Id.uri)throw new q("Cannot add default namespace declaration to a no-namespace element","XTDE0440");this.mi(a, +b,!0)}};a.prototype.Na=function(){this.we();this.$.Na();this.level--;for(var a=this.gm.pop();0h.findIndex(function(a){return a===d})&&(a[d].group.push(b),h.push(d))):(d=a.length,a.push({group:[b],key:[c]}),e.Ta(c,d),h.push(d))})})},by_c:function(){var b=P.qa(a,"collation");b=b?P.evaluate(b,d).next().toString():Q.ag;b=Q.Pj(b,d);var e=P.qa(a,"key"),c=Q.Wi(b,!0);return h(function(a,b){var d=P.evaluate(e,g).expand();if(c.Xa(d)){var h=c.get(d); +a[h].group.push(b)}else h=a.length,a.push({group:[b],key:d}),c.Ta(d,h)})}};k.adjacent_c=k.adjacent;var x=a.algorithm+(P.Gc(a,"c")?"_c":"");try{var l=k[x]()}catch(xa){if(xa instanceof q&&"FOCH0002"===xa.code)throw new q("Unknown collation:"+xa.message,"XTDE1110");throw xa;}var m=P.Ec(a,"sortKey");if(0c)return-1;if(0/g,"? >").replace(/^\s+/,"");e.Ra(h,f)}},sequence:c,sourceDoc:function(a){var b=P.Fc(P.qa(a,"href")),c=d(a.C[1]);return function(d,e){var h=d.ja(!1),f=null===b?"":b(d).next().toString();f=Da.$c(f,P.yb(a,d));f=Ab.ve(f,d);var g=d.fixed.Ch;null!==g&&(f=g(f));h.focus=D.jc(f);h.Xb=null;c(h,e)}},useAS:function(a){return function(b,d){var f= +P.Rj(a,b,"attributeSet"),e=b.ja(!0);e.Ja="attribute set";e.La=f;f=f.actor;f.C&&c(f)(e,d)}},valueOf:function(a){var b=P.Kb(a),c={};P.Gc(a,"d")&&(c.DISABLE_ESCAPING=!0);return function(a,e){var d=r(b(a));e.text(d,c)}}};return{vj:w,Ln:d,yf:function(b){return new a(b)},push:function(a,b,c){if("undefined"===typeof c)throw B.Gb(Error().stack),new q("No output for "+m(a));if(t[a.N]){var f=d(a);try{f(b,c)}catch(p){throw p instanceof q&&!p.oe&&Ea(p,a),p;}}else{f=P.Fc(a);try{for(var e=f(b),h;null!=(h=e.next());)c.append(h)}catch(p){throw p instanceof +q&&!p.oe&&Ea(p,a),p;}}},Ni:f,Oi:l,xm:v}}();var Db=function(){function a(a,b,e,c,d){function f(a){return a.nodeType===g.nodeType&&(null===x?!0:p.ma(a).ia(x))}function h(a){return null===p.hc(a)}var k=d.fixed.ya;if(b){var g=k.evaluate(b,d).next();if(!g||!p.da(g))throw new q("xsl:number/@select must yield a single node","XTTE1000");}else d.Wc("XTTE0990","xsl:number"),g=d.lb();var x=p.ma(g),l=f;if(null!==e){var N=xb.Df(e);l=function(a){return xb.matches(N,a,d)}}if(null===c)b=h;else{var m=xb.Df(c);b=function(a){return h(a)||xb.matches(m,a,d)}}switch(a){case "simple":return a= +y.Oe(g).filter(f),D.Vb(a.count()+1);case "single":a=y.Ib(g).filter(l).next();var t=y.Ib(g).filter(b).next();a=null===a?null:null!==y.Ib(a).filter(function(a){return p.isSameNode(a,t)}).next()?a:null;if(null===a)return D.R;a=y.Oe(a).filter(l);return D.Vb(a.count()+1);case "multi":a=D.K(y.Ib(g).filter(l).expand().reverse());t=y.Ib(g).filter(b).next();a=a.filter(function(a){return null!==y.Ib(a).filter(function(a){return p.isSameNode(a,t)}).next()});var U=u.Ma.fa;return a.Ia(function(a){return U(y.Oe(a).filter(l).count()+ +1)});case "any":return e=function(a,b){return p.qc(b,a)},a=D.qj(y.kk(g).filter(l),y.Ib(g).filter(l),e),t=D.qj(y.kk(g).filter(b),y.Ib(g).filter(b),e).next(),null===t&&B.ra("from pattern selected empty"),a=a.filter(function(a){return 0<=p.qc(a,t)}),a=a.count(),0===a?D.R:D.Vb(a);default:B.ra("unknown xsl:number/@level "+a)}}function b(a,b,e,c,d,f,h){function p(a){""===a&&(a="1");if(/^[\x01-\x7f]*$/.test(a)){a=a.split(/\b/);var b=function(a){return/\w+/.test(a)}}else{if(a.length!==Ma.Bc(a).length)throw new q("Cannot handle non-BMP characters in format-number picture", +"SXJS0002");var e=Bb.vj(a,"[\\p{Nd}\\p{Nl}\\p{No}\\p{Lu}\\p{Ll}\\p{Lt}\\p{Lm}\\p{Lo}]+","",!0,!1);b=function(a,b){return e[b].Ie};a=e.map(function(a){return a.T.toString()})}for(var c={prefix:"",uf:[],Ig:""},d=".",f=0;f=k.uf.length?k.uf[k.uf.length-1]:k.uf[b];0!==b&&(u+=f.sm);f=f.cl;d&&(f+=";o");f=Db.Mj(a.J(),f);null!==e&&null!==c&&(f=Db.tj(f,e,c));u+=f});u+=k.Ig;return D.ua(u)}(a.expand())}function d(a,b,e,c,d){var f=d.fixed.ya,h=[1];null!==e&&(h=f.evaluate(e,d).next().toString().split(/\s+/).map(function(a){if(!/^-?[0-9]+$/.test(a))throw new q("xsl:number/@start-at must be a sequence of integers. Offending value: "+ +a,"XTSE0020");return parseInt(a,10)}));if(b&&c){a=a.next();if(null===a)return null;try{a=u.Ma.aa(a.round(0))}catch(Ka){return null}a=D.K([a])}return a.Ia(function(a,b){a=u.numeric.matches(a)?a.Jg():u.za.oi(a.toString());if(0>a.J())throw new q("xsl:number/@value is less than zero","XTDE0980");try{a=u.Ma.aa(a.round(0))}catch(ja){throw ja.code="XTDE0980",ja;}var e=b>=h.length?h[h.length-1]:h[b];1!==e&&(a=u.Ma.fa(a.J()+(e-1)));return a})}function m(a){if(1>a||4999=c[d];)b+=e[d],a-=c[d];return b}function c(a,b){function e(a){return(a>c?e(Math.floor((a-1)/c)):"")+b.charAt((a-1)%c)}if(1>a)return a.toString();var c=b.length;return e(a)}function l(a,b){return ae?e.toString():Ha(e).toFixed();e.lengtha&&(e="-"+e);return e}function k(a,b){b=void 0===b?"FODF1310": +b;var e=Ma.Bc(a),c={},d=!0,f=0,h=Na.wh("\\p{Nd}",null),p=a.search(h);if(0>p)d=!1;else{f=Na.ep().Nd;for(var k=0;ke[p]||e[p]>g+10)throw new q("Picture string mixes digits from different digit families: "+a,b);}else if(Na.wh("\\p{N}\\p{L}",null).test(f))throw new q("Picture string is invalid: "+a,b);var u=[];f=g-48;e.forEach(function(a){g<=a&&a<=g+ +10?u.push(48):u.push(a)});a=Ma.ld(u)}c.Do=d;c.format=a;c.Fj=f;c.$i=g;return c}function r(a,b){var e=[];Ma.Bc(a).forEach(function(a){48<=a&&57>=a?e.push(a+b):e.push(a)});return Ma.ld(e)}function v(a,b,e,c,d){c=void 0===c?"":c;d=void 0===d?!1:d;for(var f=0,h=0;he[0]&&(p=!1);if(p)for(h=1;ha?b[a]:100>a?e[Math.floor(a/10)]+(0===a%10?"":" "+b[a%10]):1E3>a?z(Math.floor(a/100))+" Hundred"+(0===a%100?"":" and "+z(a%100)):1E6>a?z(Math.floor(a/1E3))+" Thousand"+(0===a%1E3?"":(100>a%1E3?" and ":" ")+z(a%1E3)):1E9>a?z(Math.floor(a/1E6))+" Million"+(0===a%1E3?"":(100>a%1E3?" and ":" ")+z(a%1E6)):a.toString()}function t(a){var b="Zeroth First Second Third Fourth Fifth Sixth Seventh Eighth Ninth Tenth Eleventh Twelfth Thirteenth Fourteenth Fifteenth Sixteenth Seventeenth Eighteenth Nineteenth".split(" "), +e=" Twent Thirt Fort Fift Sixt Sevent Eight Ninet".split(" ");return 20>a?b[a]:100>a?e[Math.floor(a/10)]+(0===a%10?"ieth":"y "+b[a%10]):1E3>a?z(Math.floor(a/100))+" Hundred"+(0===a%100?"th":" and "+t(a%100)):1E6>a?z(Math.floor(a/1E3))+" Thousand"+(0===a%1E3?"th":(100>a%1E3?" and ":" ")+t(a%1E3)):1E9>a?z(Math.floor(a/1E6))+" Million"+(0===a%1E3?"th":(100>a%1E3?" and ":" ")+t(a%1E6)):a.toString()}function g(a){return 1===a%10&&11!==a%100?"st":2===a%10&&12!==a%100?"nd":3===a%10&&13!==a%100?"rd":"th"} +function K(a,b,e){function d(a,b){for(var e="",c=a.charCodeAt(0),d=0;da?"-":"";if("o"===h)switch(b.toString()){case "a":case "A":case "i":case "I":break; +case "Ww":return f+t(Math.abs(a));case "W":return f+t(Math.abs(a)).toUpperCase();case "w":return f+t(Math.abs(a)).toLowerCase();default:return w(a,b,e)+g(Math.abs(a))}switch(b.toString()){case "a":return c(a,d("a",26));case "A":return c(a,d("A",26));case "α":return c(a,d("α",25));case "Α":return c(a,d("Α",25));case "i":return m(a);case "I":return m(a).toUpperCase();case "Ww":return f+z(Math.abs(a));case "W":return f+z(Math.abs(a)).toUpperCase();case "w":return f+z(Math.abs(a)).toLowerCase();case "①":return l(a, +"⓪"+d("①",20)+d("㉑",15)+d("㊱",15));case "⑴":return l(a,"0"+d("⑴",20));case "⒈":return 0===a?"\ud83c\udd00":l(a,"0"+d("⒈",20));case "❶":return l(a,"⓿"+d("❶",10)+d("⓫",10));case "➀":return 0===a?"\ud83c\udd0b":l(a,"0"+d("➀",10));case "➊":return 0===a?"\ud83c\udd0c":l(a,"0"+d("➊",10));case "⓵":return l(a,"0"+d("⓵",10));case "㈠":return l(a,"0"+d("㈠",10));case "㊀":return l(a,"0"+d("㊀",10));default:return w(a,b,e)}}function A(a,b){return String.fromCharCode(parseInt(a[b]?a[b]:L[b],10))}function x(a,b){function e(a){[["$gs", +"grouping separator"],["$es","exponent separator"],["$ds","decimal separator"],["$pc","non-prefix passive character"],["$pp","percent|permille"],["$od","optional digit"],["$md","mandatory digit"],["$ip","integer part"],["$fp","fractional part"]].forEach(function(b){a=a.replace(b[0],b[1])});throw new q("Invalid picture: "+a,"FODF1310");}for(var c={},d=a.indexOf(b.gi),f=0<=d,h=b.$i.charCodeAt(0),p=0,g=0,k=[],u=[],x=[],y=-1,l=-1,U=!1,m=!1,t=-1,r=0,N=f?d:a.length,L=0;L= +h&&wp&&0>y&&(y=L),p++,g++)):w===b.ll.charCodeAt(0)?(0y&&(y=L,m=!0),g++):w===b.fh.charCodeAt(0)?(0>y&&e("$gs before any digit"),0y&&e("$pp before any digit"),0l&&(l=L),w=== +b.Hf.charCodeAt(0)?c.Hf=!0:c.th=!0):!f&&0<=y&&w===b.ue.charCodeAt(0)&&0>l?U?(x.push(w),0l&&(l=L):(x.push(w),U=!1,t=-1,0>l&&(l=L-1))):(U=!0,t=L):0<=y&&f?e("$pc before $ds"):U&&0===r?(U=!1,t=-1,x.push(b.ue.charCodeAt(0)),x.push(w),0>l&&(l=L-1)):0<=y?(x.push(w),0>l&&(l=L)):u.push(w)}if(0=h&&Ol?r++:0<=f||0<=l?e("$md follows $od or $pc in $fp"):(N++,L++):O===b.ll.charCodeAt(0)?((0<=l||U)&&e("$od follows $pc or $es"),0>f&&(f=A),L++):O===b.fh.charCodeAt(0)?((0<=l||U)&&e("$gs follows $pc or $es"),w.push(A-d+1)):O===b.gi.charCodeAt(0)?e("more than one $ds"):O===b.Hf.charCodeAt(0)||O===b.th.charCodeAt(0)?((0<=l||U)&&e("$pp follows $pc or $es"),x.push(O),l=A,O===b.Hf.charCodeAt(0)?c.Hf=!0:c.th= +!0):O===b.ue.charCodeAt(0)&&0>l?U?(x.push(O),0l&&(l=A):(x.push(O),U=!1,t=-1,0>l&&(l=A-1))):(U=!0,t=A):U&&0===r?(U=!1,t=-1,x.push(b.ue.charCodeAt(0)),x.push(O),0>l&&(l=A-1)):(x.push(O),0>l&&(l=A))}}0>y&&0===L&&e("mantissa contains no digits");if(0!==w.length)for(0===w[0]&&e("$gs at beginning of $fp"),d=0;d=f+c?h(new Date(d.getTime()-864E5),b):Math.floor((c+f-2)/7)+(5>f?1:0)}var p=G,y=p.Ab,u=C.O,L={"decimal-separator":"46","grouping-separator":"44",digit:"35","minus-sign":"45",percent:"37","per-mille":"8240", +"zero-digit":"48","exponent-separator":"101","pattern-separator":"59",infinity:"Infinity",NaN:"NaN"},O={Y:"getUTCFullYear",M:"getUTCMonth",D:"getUTCDate",F:"getUTCDay",H:"getUTCHours",m:"getUTCMinutes",s:"getUTCSeconds",f:"getUTCMilliseconds"},fa={d:e,W:function(a){return h(a,!0)},w:function(a){return h(a,!1)},h:function(a){return 13>a.getUTCHours()?0===a.getUTCHours()?12:a.getUTCHours():a.getUTCHours()-12},P:function(a){return 12>a.getUTCHours()?"Am":"Pm"},E:function(a){return 0>a.getUTCFullYear()? +"BC":"AD"}};return{bp:function(b,e){var c=e.fixed.ya,d=b.level,f=c.qa(b,"select"),h=c.qa(b,"count");c=c.qa(b,"from");return a(d,f,h,c,e)},cp:function(a,e){var c=e.fixed.ya,f=c.qa(a,"value"),h=c.qa(a,"format"),p=c.Zd(c.qa(a,"gpSep"),e).next(),g=c.Zd(c.qa(a,"gpSize"),e).next(),k=c.Zd(c.qa(a,"ordinal"),e).next(),u=c.Zd(c.qa(a,"lang"),e).next(),x=a.flags||"",y=c.qa(a,"startAt");x=/1/.test(x);c=c.evaluate(f,e);y=d(c,x,y,!0,e);k=k?P.Mo(k.toString()):!1;return null===y?D.ua("NaN"):b(y,h,p,g,k,u,e)},Mj:K, +tj:function(a,b,e){for(var c="",d=0;da?!0:0===a?0>1/a:!1;e={gi:A(e,"decimal-separator"),fh:A(e,"grouping-separator"),ll:A(e,"digit"),Xo:A(e,"minus-sign"),Hf:A(e,"percent"),th:A(e,"per-mille"),$i:A(e,"zero-digit"),ue:A(e,"exponent-separator"),km:A(e,"pattern-separator"),uo:e.infinity||L.infinity,Zo:e.NaN||L.NaN};if(isNaN(a))return e.Zo;b=b.includes(e.km)?b.split(e.km):[b];if(2a?b[1]:b[0],e);if(isFinite(a)){if(0m&&(a=Ha(a.toPrecision(m)));(m=t!==a.e)&&(h+=1);1h)||u&&m||(h=l.join("").slice(h),p+="."+h)}else throw new q("Empty mantissa", +"SXJS0004");k=p+k+f(a.e,y)}else{k=Math.abs(a);d.Hf&&(k=Math.abs(100*a));d.th&&(k=Math.abs(1E3*a));k="Infinity"===k+""?k+"":999999>k?k.toString():Ha(k).toFixed();y=k.indexOf(".");0>y&&(y=k.length,0k.indexOf(".")&&(k+=".0")):k=Ha(k).round(0,1).toString());h=k.length-1-y;if(0h;h++)y+=String.fromCharCode(e.$i.charCodeAt(0)+h);y+=e.gi;h="";for(g=0;ga?h+=u:ah&&(h=y.length);k=y.substring(0,h);y=y.substring(h);if(0d.ud[0]&&(h=!1);k=h?Db.tj(k,e.fh,d.ud[0]):v(k, +d.ud,null,e.fh)}0f||"*"!==h&&1>h||"*"!==f&&"*"!==h&&f>h)throw new q("Invalid width modifier in date/time formatting picture","FOFD1340");}var p=null;1h||12d.length;)d="0"+d;p=Ma.Bc(d);d=parseInt(Ma.ld(p.reverse()),10);if(!e&&!c&&/^[0-9]$/.test(g))for(;p.length>g.length;)g+="#";if(e&&"*"!==e){u=/^([0-9]*)(#*)$/.exec(g);g=u[1]?u[1]:"";for(u=u[2]?u[2]:"";e>g.length;)g+="0",u=u.slice(0,-1);g+=u}if(c)for("*"===c&&(c=p.length);g.lengthg.length;)d=d.slice(0,-1);e&&"*"!== +e||0!==parseInt(d,10)||(d="0");h||(d=r(d,f));e=d}else{if(/[nN]/.test(c))f="January February March April May June July August September October November December".split(" "),d="Monday Tuesday Wednesday Thursday Friday Saturday Sunday".split(" "),p="M"===e?f[u-1]:"F"===e?d[u-1]:u,"F"===e&&h&&"*"!==h&&6>h&&(p=p.replace(/(ur)?day$/,""),p=p.replace(/nes$/,"s")),"n"===c?p=p.toLowerCase():"N"===c&&(p=p.toUpperCase()),h&&"*"!==h&&(p=p.substring(0,h));else{g=/;/.test(c)?c+";":c;p&&(g+=(";"===g.charAt(g.length- +1)?"":";")+p);p=K(u,g,"FOFD1340");if("Y"===e&&/[^iIwWnN]/.test(c.charAt(c.length-1))&&(!f&&2===c.length||2==h))for(;2":">","&":"&",'"':""","\n":" ","\r":" ","\t":" "},d={"<":"<",">":">","&":"&"}; +return b?a.replace(/&|<|>|"|\n|\r|\t/g,e(c)):a.replace(/&|<|>/g,e(d))}if(e){e="";a=a.split("\x00");for(var d=0;d=a:"US-ASCII"===b.toUpperCase()?127>=a:!0}function y(a,b){return function(e){for(var c=!0,d=0;d=a.min&&h<=a.max){c=!1;break}}if(c)return e;c="";d=!1;for(h=0;h= +p;g&&(p=e.codePointAt(h));a.Wa[p]?(b&&!d&&(c+="\x00",d=!0),c+=a.Wa[p],g&&h++):(b&&d&&(c+="\x00",d=!1),c+=f)}return c}}function u(a){return""===a.uri||"http://www.w3.org/1999/xhtml"===a.uri}function L(a){return["http://www.w3.org/1999/xhtml","http://www.w3.org/2000/svg","http://www.w3.org/1998/Math/MathML"].includes(a)}function O(a,b){var e={action:["form"],archive:["object"],background:["body"],cite:["blockquote","del","ins","q"],classid:["object"],codebase:["applet","object"],data:["object"],datasrc:"button div input object select span table textarea".split(" "), +"for":["script"],formaction:["button","input"],href:["a","area","base","link"],icon:["command"],longdesc:["frame","iframe","img"],manifest:["html"],name:["a"],poster:["video"],profile:["head"],src:"audio embed frame iframe img input script source track video".split(" "),usemap:["img","input","object"],value:["input"]}[b.local];return e&&e.includes(a.local)}function fa(a,e,h){h=void 0===h?null:h;switch(a.method){case "xml":e=new x(a,e);if(a.version&&"1.0"!==a.version)throw new q("Serializer does not support the requested XML version: "+ +a.version,"SESU0013");ja(a);if(a["undeclare-prefixes"])throw new q("Cannot undeclare prefixes with XML 1.0 serializer","SEPM0010");a.indent&&(e=Ja(a,e));e=za(a,e);e=Ka(a,e);e=Va(a,e);return xa(a,e);case "html":return aa(a,e);case "text":return ja(a),e=new b(a,e),e=za(a,e),e=Ka(a,e),xa(a,e);case "xhtml":return aa(a,e);case "json":return ja(a),a.indent?new c(a,e,h):new l(a,e,h);case "adaptive":return new m(a,e,h);default:return new d(a,e)}}function Y(a,b,e){function c(a,b){b=b.trim();if(["yes","true", +"1"].includes(b))return!0;if(["no","false","0"].includes(b))return!1;throw new q("Value of "+a+" must be yes(=true, 1) or no(=false, 0)","SEPM0016");}function d(a){return function(b,e){e=e.trim();return e.split(/\s+/).map(function(b){/^Q\{/.test(b)||/:/.test(b)||(b="Q{}"+b);return/^Q\{/.test(b)?b:Z.X.g(b,a).ha()})}}function h(a){return function(b,e){e=e.trim();if(a.includes(e))return e;throw new q("Value of "+b+"("+e+"): must be one of "+a.join("|"),"SEPM0016");}}function f(a){return function(b,e){if(a.test(e))return e; +throw new q("Invalid value for "+b+": must match the pattern "+a,"SEPM0016");}}function p(a,b){return b}function g(a,b){b=b.trim();if(/[0-9]+/.test(b))return 1*b;throw new q("Value of "+a+" must be an integer (Actual value is "+B.oa(b)+")","SEPM0016");}e={"allow-duplicate-names":c,"build-tree":c,"byte-order-mark":c,"cdata-section-elements":d(e),"doctype-public":f(/[\sa-zA-Z0-9\-'()+,.:=?;!*#@$_%\/]*/),"doctype-system":f(/[^']*|[^"]*/),encoding:f(/[\x21-\x7e]+/),"escape-uri-attributes":c,"html-version":function(a, +b){if(/[0-9]+(\.[0-9]+)?/.test(b))return 1*b;throw new q("Value of "+a+" must be a decimal number","SEPM0016");},"include-content-type":c,indent:c,"item-separator":p,"json-node-output-method":h(["xml","xhtml","html","text"]),"media-type":p,method:function(a,b){return function(e,c){c=c.trim();!/^Q\{/.test(c)&&/:/.test(c)&&(c=Z.X.g(c,b).ha());if(a.includes(c))return c;throw new q("Value of "+e+"("+c+"): must be one of "+a.join("|"),"SEPM0016");}}("xml xhtml html text json adaptive Q{http://saxonica.com/ns/interactiveXSLT}append-content Q{http://saxonica.com/ns/interactiveXSLT}replace-content".split(" "), +e),"normalization-form":h("NFC NFD NFKC NFKD fully-normalized none".split(" ")),"omit-xml-declaration":c,standalone:function(a,b){return"omit"===b.trim()?null:c(a,b)},"suppress-indentation":d(e),"undeclare-prefixes":c,"use-character-maps":d(e),version:p,"Q{http://saxon.sf.net/}indent-spaces":g,"Q{http://saxon.sf.net/}line-length":g,"Q{http://saxon.sf.net/}stylesheet-version":g};/^\{/.test(a)&&(a="Q"+a);if("string"!==typeof b)throw new q("Value of "+a+" must be supplied as a string","SEPM0016");if(e[a])return e[a](a, +b);if(!/^Q\{/.test(a))throw new q("Unknown serialization parameter "+a,"SEPM0017");}function N(a,b,e){function c(a,b,e){if(!Array.isArray(b))throw new q("Value of "+a+" must be an array","SEPM0016");return(e||[]).concat(b)}function d(a,b){if("boolean"!==typeof b)throw new q("Value of "+a+" must be boolean","SEPM0016");return b}function h(a,b){if("number"!==typeof b)throw new q("Value of "+a+" must be an integer (actual value is "+B.oa(b)+")","SEPM0016");return b}var f={"allow-duplicate-names":d,"build-tree":d, +"byte-order-mark":d,"cdata-section-elements":c,"escape-uri-attributes":d,"html-version":function(a,b){if("number"!==typeof b)throw new q("Value of "+a+" must be a decimal number","SEPM0016");return b},"include-content-type":d,indent:d,"omit-xml-declaration":d,standalone:function(a,b){return null===b?null:d(a,b)},"suppress-indentation":c,"undeclare-prefixes":d,"use-character-maps":function(a,b,e){e&&Array.isArray(e)&&B.ra("Problem with existing character map supplied to overrideParam");if("object"!== +typeof b)throw new q("Value of "+a+" must be an object","SEPM0016");if(void 0===b.Wa)throw new q("Value of "+a+" must be a character map object","SEPM0016");(a=e)?S(a,b):a=b;return a},"Q{http://saxon.sf.net/}indent-spaces":h,"Q{http://saxon.sf.net/}line-length":h,"Q{http://saxon.sf.net/}stylesheet-version":h};/^{/.test(a)&&(a="Q"+a);return f[a]?f[a](a,b,e):Y(a,b.toString())}function S(a,b){b.mina.max&&(a.max=b.max);for(var e in b.Wa)b.Wa.hasOwnProperty(e)&&(a.Wa[e]=b.Wa[e])} +function ma(a,b){var e={};a.forEach(function(a,c){var d=b.bl[a];if(!d)throw new q("Unknown character map "+a,"SEPM0016");0===c?e=d:S(e,d)});return e}function xa(a,b){return a["item-separator"]&&"#absent"!==a["item-separator"]?new Cb.en(b,a["item-separator"]):new Cb.Rg(b)}function Ja(a,b){var e=a["Q{http://saxon.sf.net/}indent-spaces"],c=a["suppress-indentation"];return("xml"===a.method?new A(e,c):new w(e,c)).Rf(b)}function za(a,b){a["normalization-form"]&&"none"!==a["normalization-form"]&&(b=(new K(a["normalization-form"])).Rf(b)); +return b}function Ka(a,b){a["use-character-maps"]&&(b=(new g(a["use-character-maps"])).Rf(b));return b}function Va(a,b){a["cdata-section-elements"]&&(b=(new t(a["cdata-section-elements"],a.encoding||"UTF-8",a["normalization-form"]&&"none"!==a["normalization-form"]?a["normalization-form"]:null)).Rf(b));return b}function Ba(a,b){return void 0===a[b]||a[b]}function ja(a){if(a.encoding&&!["UTF-8","UTF-16","ISO-646","ISO-8859-1","US-ASCII"].includes(a.encoding.toUpperCase()))throw new q("Serializer does not support the requested encoding: "+ +a.encoding,"SESU0007");}function aa(a,b){var e="xhtml"===a.method,c=e?new r(a,b):new z(a,b);if(e&&a.version&&"1.0"!==a.version)throw new q("Serializer does not support the requested XML version: "+a.version,"SESU0013");if((e=e?a["html-version"]:a["html-version"]||a.version)&&5!==1*e)throw new q("Serializer does not support the requested HTML version: "+e,"SESU0013");ja(a);Ba(a,"indent")&&(c=Ja(a,c));c=za(a,c);c=Ka(a,c);c=Va(a,c);c=(new v).Rf(c);Ba(a,"escape-uri-attributes")&&(c=(new k).Rf(c));Ba(a, +"include-content-type")&&(c=(new f(a)).Rf(c));return xa(a,c)}function ra(a,b,e,c){function d(a,b){switch(a.nodeType){case 9:case 11:b.tb(p);for(var e=a.childNodes,c=0;c"),this.xc=!1):this.ga.write("")};x.prototype.text=function(a,b){this.bd||this.Hd();this.xc&&this.$f();this.ga.write(b.DISABLE_ESCAPING? +this.encode(a,!1):this.encode(h(a,!1,!1),!0))};x.prototype.Sa=function(a){this.bd||this.Hd();this.xc&&this.$f();this.ga.write("\x3c!--"+this.encode(a,!1)+"--\x3e")};x.prototype.Ra=function(a,b){this.bd||this.Hd();this.xc&&this.$f();this.ga.write("")};x.prototype.append=function(a,b){this.text(a.toString(),b)};x.prototype.Hd=function(){this.hi||this.Sp()};x.prototype.$f=function(){this.ga.write(">");this.xc=!1};x.prototype.Tp=function(a, +b){var e=this,c=[],d;for(d in a)if(b[d]!==a[d]){var f="";"xml"!==d&&(f=""===d?' xmlns="'+h(a[d],!0,!1)+'"':" xmlns:"+d+'="'+h(a[d],!0,!1)+'"');""!==f&&c.push(f)}c.sort();c.forEach(function(a){return e.ga.write(a)})};x.prototype.Mm=function(a,b){if(b){var e=this;b.forEach(function(a,b){e.Km(b,a)})}};x.prototype.Km=function(a,b){var e=!0===b.ec.USE_NULL_MARKERS;e=b.ec.DISABLE_ESCAPING?this.encode(b.value,!1):this.encode(h(b.value,!0,e),!0);this.ga.write(" "+this.encode(a.toString(),!1)+'="'+e+'"')}; +x.prototype.Sp=function(){this.sb["byte-order-mark"]&&"UTF-8"===this.sb.encoding&&this.ga.write("");this.hi=!0;var a=!0===this.sb["omit-xml-declaration"];this.ig=!a;var b=this.sb.standalone;if(a&&void 0!==b&&null!==b)throw new q("Serializer values of 'standalone' and 'omit-xml-declaration' conflict","SEPM0009");a||this.ga.write('")};x.prototype.Fh=function(a){var b=this.sb["doctype-system"]|| +null,e=this.sb["doctype-public"]||null;null!==b&&(this.ig&&this.ga.write("\n"),this.ga.write("\n"):this.ga.write(' PUBLIC "'+this.encode(e,!1)+'" '+this.encode(a,!1)+">\n"),this.gh=!0)};x.prototype.encode=function(a,b){function e(a){if(b)return"&#"+a+";";throw new q("Character "+String.fromCodePoint(a)+" (decimal "+a+") is not available in the chosen encoding", +"SERE0008");}var c=this.encoding;return function(a){var b="",d=0,h=a.length;if(0===h)return"";for(;dg)break;else if(127>g)f++;else if(160>g||8232===g||55296<=g&&56320>=g||!p(g,c))break;else f++}if(f>=h)return 0===d?a:b+a.substring(d,f);f>d&&(b+=a.substring(d,f));g=a.charCodeAt(f);d=a.charAt(f);if(0===g)throw new q("Null marker","ZZZZ9999");160>g||8232===g?b+=e(g):55296<=g&&56320>=g?(g=a.codePointAt(f++),b+=p(g,c)?d+a.charAt(f): +e(g)):p(g,c)||(b+=e(g));d=++f;if(d>=h)return b}}(a)};n(A,Cb.Za);A.prototype.Ba=function(a,b,e,c){this.zd||this.oc?this.td():this.$d();if(0>this.fc){var d=b.get(Z.X.xa("","http://www.w3.org/XML/1998/namespace","space"));d&&"preserve"===d.value&&(this.fc=this.level)}this.level++;this.Ui&&-1===this.fc&&0<=this.Ui.indexOf(a.ha())&&(this.fc=this.level);this.$.Ba(a,b,e,c);this.zd=this.Te=!0;this.oc=!1};A.prototype.Na=function(){this.level--;this.oc&&!this.Te?this.td():this.zd&&!this.oc?this.yg=null:this.$d(); +this.$.Na();this.Te=!1;this.oc=!0;this.zd=!1;this.level===this.fc-1&&(this.fc=-1)};A.prototype.text=function(a,b){0>this.fc&&""===Na.trim(a)?(this.yg=a,this.Ne=b):(this.$d(),0<=a.indexOf("\n")&&(this.Te=!1),this.$.text(a,b),this.oc=this.zd=!1)};A.prototype.Sa=function(a,b){this.oc?this.td():this.$d();this.$.Sa(a,b);this.oc=this.zd=!1};A.prototype.Ra=function(a,b,e){this.oc?this.td():this.$d();this.$.Ra(a,b,e);this.oc=this.zd=!1};A.prototype.td=function(){0<=this.fc?this.$d():this.bm()};A.prototype.bm= +function(){this.yg=null;var a=this.level*this.Sl;if(a+1>this.ih.length){var b=5*this.Sl;a+1>this.ih.length+b&&(b+=a+1);for(var e=0;e=e.min&&p<=e.max){h=!1;break}}if(h)c=a;else for(h=0;h=p;g&&(p=a.codePointAt(h));e.Wa[p]?(d||(""!==c&&(this.$.text(c,b),c=""),d=!0),c+=e.Wa[p],g&&h++):(d&&(d=Object.assign({},b),d.DISABLE_ESCAPING=!0, +d.NO_NORMALIZATION=!0,this.$.text(c,d),c="",d=!1),c+=f)}d?(e=Object.assign({},b),e.DISABLE_ESCAPING=!0,e.NO_NORMALIZATION=!0,this.$.text(c,e)):this.$.text(c,b)}};n(t,Cb.Za);t.prototype.Ba=function(a,b,e,c){this.flush();this.dh.push(a.ha());this.$.Ba(a,b,e,c)};t.prototype.Na=function(){this.flush();this.dh.pop();this.$.Na()};t.prototype.text=function(a,b){0<=this.Yo.indexOf(0===this.dh.length?null:this.dh[this.dh.length-1])?b.DISABLE_ESCAPING?(this.flush(),this.$.text(a,b)):(this.buffer+=a,this.Ne= +b):this.$.text(a,b)};t.prototype.Sa=function(a,b){this.flush();this.$.Sa(a,b)};t.prototype.Ra=function(a,b,e){this.flush();this.$.Ra(a,b,e)};t.prototype.flush=function(){if(""!==this.buffer){for(var a=this.form?this.buffer.normalize(this.form):this.buffer,b=a.length,e=0;ee&&this.$n(a.substring(e,c));c"),this.xc=!1),this.ga.write(""))};z.prototype.text=function(a,b){if(0"))throw new q("A processing instruction in HTML must not contain a > character","SERE0015");this.ga.write("")};z.prototype.Hd=function(){this.hi||(this.sb["byte-order-mark"]&&"UTF-8"===this.sb.encoding&&this.ga.write(""),this.hi=!0)};z.prototype.Mm=function(a,b){var e=this;if(b){var c=this;b.forEach(function(b,d){a.zf("")&&e.Bo(a,d,b.value)?c.ga.write(" "+d.toString()):c.Km(d,b)})}};z.prototype.Fh=function(a){var b=this.sb["doctype-system"]|| +null,e=this.sb["doctype-public"]||null;null===b&&null===e?u(a)&&"html"===a.local.toLowerCase()&&(this.ig&&this.ga.write("\n"),this.ga.write("\n"),this.gh=!0):null===b?(a=u(a)&&"html"===a.local.toLowerCase()?a.toString():"html",this.ig&&this.ga.write("\n"),this.ga.write("\n'),this.gh=!0):x.prototype.Fh.call(this,"html"===a.local.toLowerCase()?a:Z.X.xa("","","html"))};z.prototype.Bo=function(a,b,e){b=b.local.toLowerCase(); +a=a.local.toLowerCase();return b===e.toLowerCase()&&(this.xj[a]&&this.xj[a].includes(b)||this.xj["*"].includes(b))};n(w,A);w.prototype.Ba=function(a,b,e,c){this.Vj=this.Tl.includes(a.local.toLowerCase())&&u(a);this.zd||this.oc?this.td():this.$d();this.level++;0>this.fc&&this.bo.includes(a.local.toLowerCase())&&u(a)&&(this.fc=this.level);this.Ui&&-1===this.fc&&0<=this.Ui.indexOf(a.ha())&&(this.fc=this.level);this.$.Ba(a,b,e,c);this.zd=this.Te=!0;this.Vj=this.Xf=this.oc=!1;this.Kf.push(a)};w.prototype.Na= +function(){var a=this.Kf.pop();this.level--;this.oc&&!this.Te?this.td():this.$d();this.$.Na();this.Te=!1;this.oc=!0;this.zd=!1;this.Xf=this.Tl.includes(a.local.toLowerCase())&&u(a);this.level===this.fc-1&&(this.fc=-1)};w.prototype.text=function(a,b){A.prototype.text.call(this,a,b);0>this.fc&&""===Na.trim(a)||(this.Xf=!1)};w.prototype.Sa=function(a,b){A.prototype.Sa.call(this,a,b);this.Xf=!1};w.prototype.Ra=function(a,b,e){A.prototype.Ra.call(this,a,b,e);this.Xf=!1};w.prototype.td=function(){0<=this.fc|| +this.Vj||this.Xf?this.$d():this.bm()};n(v,Cb.Za);v.prototype.Ba=function(a,b,e,c){for(var d in e)L(e[d])&&delete e[d];L(a.uri)&&(""!==a.prefix&&(a=Z.X.xa("",a.uri,a.local)),e[""]=a.uri);b.forEach(function(a,b){L(b.uri)&&(e[b.prefix]=b.uri)});Cb.Za.prototype.Ba.call(this,a,b,e,c)};n(r,x);r.prototype.Na=function(){this.Je.pop();var a=this.Kf.pop();this.xc&&this.Hj.includes(a.local)&&u(a)?(this.ga.write(" />"),this.xc=!1):(this.xc&&x.prototype.$f.call(this),this.ga.write(""))};r.prototype.text= +function(a,b){(this.bd||""!==Na.trim(a))&&x.prototype.text.call(this,a,b)};r.prototype.Fh=function(a){var b=this.sb["doctype-system"]||null;null===b&&u(a)&&"html"===a.local.toLowerCase()?(this.ig&&this.ga.write("\n"),this.ga.write("\n"),this.gh=!0):null!==b&&x.prototype.Fh.call(this,a)};n(k,Cb.Za);k.prototype.Ba=function(a,b,e,c){var d=!1;b.forEach(function(b,e){return d=d||O(a,e)});if(d){var h=new Cb.$e;b.forEach(function(b,e){if(O(a,e)){var c=P.escape(b.value.normalize("NFC"), +function(a){return 32>a||126=d||127<=d&&159>=d||!p(d,b)?e+("\\u"+("0000"+d.toString(16).toUpperCase()).slice(-4)): +e+h}}return e};l.prototype.stringify=function(a){var b='"';if(this.Wa){for(var e=this.Wa,c="",d=!1,h=!0,f=0;f=e.min&&p<=e.max){h=!1;break}}if(h)c=a;else for(h=0;h=p;g&&(p=a.codePointAt(h));e.Wa[p]?(d||(""!==c&&(b+=this.Ij(c),c=""),d=!0),c+=e.Wa[p],g&&h++):(d&&(b+=c,c="",d=!1),c+=f)}b=d?b+c:b+this.Ij(c)}else b+=this.Ij(a);return b+'"'};l.prototype.kp=function(b){function e(a){switch(a.length){case 0:d.ga.write("null"); +break;case 1:c(a[0]);break;default:throw new q("Cannot output a sequence of length "+a.length+" as JSON","SERE0023");}}function c(b){var c=C.O;if(C.Ga(b))if(c.Ea.matches(b))d.ga.write(b.toString());else if(c.numeric.matches(b)){b=b.toString();if(["NaN","INF","-INF"].includes(b))throw new q("Cannot output INF or NaN as JSON","SERE0020");d.ga.write(b)}else d.ga.write(d.stringify(b.toString()));else if(G.da(b)){c=Object.assign({},d.xb);c.method=c["json-node-output-method"]||"xml";c["item-separator"]= +null;c["omit-xml-declaration"]=!0;c.encoding="utf-8";var h=new a;ra(b,c,h,d.context);d.ga.write(d.stringify(h.toString()))}else if(P.isArray(b))if(b=b.value,0===b.length)d.ga.write("[]");else{d.Hi("[");e(b[0]);for(c=1;cp.max&&(p.max=e))}else c("invalid child of use-character-maps: "+G.ma(a).toString())});55296c&&(c=p);55296=e&&b+1a};return function(c,d,f){var h=c[0];d.fixed.ya.Gc(f,"i")&&(h=h.filter(function(a){return!Q.ce(a)}));c=Q.sd(f,c[1],"compare",d);var p=Q.yn(c),g=A.Ua.matches,u=A.numeric.matches, +y=A.za.matches,x=A.qd.matches,l=A.kc.matches,m=A.T.matches;c=A.duration.matches;var t=A.ed.matches,r=A.ac.matches;d=A.X.matches;var L=A.za.aa,w=A.qd.aa,v=A.T.aa;h=h.Ia(function(a){return g(a)?L(a):a});f=h.next();if(null===f)return D.R;d(f)&&b(a+"() not defined over QName");!c(f)||t(f)||r(f)||b(a+"() not defined over mixed duations");return D.l(k(h,f,function(a,c){(m(a)&&u(c)||m(c)&&u(a))&&b("Cannot compare string with numeric");(t(a)&&!t(c)||r(a)&&!r(c))&&b("Cannot compare mixed durations");if(Q.ce(c))return y(a)? +L(c):c;if(Q.ce(a))return y(c)?L(a):a;y(c)&&!m(a)?a=L(a):y(a)&&!m(c)?c=L(c):x(c)&&!m(a)?a=w(a):x(a)&&!m(c)&&(c=w(c));l(c)&&m(a)?c=v(c):l(a)&&m(c)&&(a=v(a));try{return e(p(a,c))?a:c}catch(Z){throw Z instanceof q&&"XPTY0004"===Z.code&&(Z.code="FORG0006"),Z;}}))}}function v(a,b){var e=a[0].next();if(null===e)return D.R;if("timezone"===b)return null===e.zb?D.R:D.l(A.ac.Bl(e.zb));if("seconds"===b)return e=e.proxy(),D.bk(e.getUTCSeconds()+e.getUTCMilliseconds()/1E3);e=e.proxy()[b]();"getUTCMonth"===b&&e++; +return D.Vb(e)}function w(a,b){var e=a[0].next();return null===e?D.R:5!==b?D.Vb(e.gk()[b]*e.nk()):D.bk(e.gk()[b]*e.nk())}function z(a,b,c){function e(a,e){return D.l(C.type[b].Sb(a,e))}var d=a[0].next();if(!d)return D.R;c=c.fixed.md.getTimezoneOffset();if(a[1]){var f=a[1].next();a=null!==f?f.wb/6E4:null;if(null!==a&&(-840>a||840c&&(c=b.wa.createTextNode(a[0].substring(c,p)),e.appendChild(c));c=b.wa.createElementNS(d,"group");c.setAttribute("nr",h);c.appendChild(b.wa.createTextNode(a[h]));e.appendChild(c);c=p+a[h].length}ca||126p?f=!0:(b=a(b.actor,"arg").length,p===b&&(f=!0)))}); +f||(e=A.X.rb(h),null==g&&(g=Da.Qi("functions")),f=(c=g[e.uri])&&c[e.local]?"concat"===e.local&&e.uri===F.cb&&(-1===p||2<=p)?!0:0<=p?0<=c[e.local].indexOf(p):!0:!1);return D.ka(f)},"function-lookup":function(a,b,c){var e=a[0].next();a=a[1].next().J();var d=wb.find("SaxonJS").XPath,f=b.ja(!0);f.Tb=!0;d=d.getFnSignature(e,a,f);if(!d)return D.R;b=d.isUserFunction?new nb.jj(d,b):e.uri===F.Rd?new nb.dj(d,e,c):new nb.Ih(d,e,a,c,b);return D.l(b)},"function-name":function(a){a=a[0].next();if(!(a instanceof +nb.gb))throw new q("Input to function-name() is not an XdmFunction ","XXXX9999");return a.getName()&&a.getName().uri!==F.wk?D.l(a.getName()):D.R},"generate-id":function(a){a=a[0].next();return D.ua(a?l(a):"")},"has-children":function(a){return D.ka(null!==x.pb(a[0].next()).next())},head:function(a){return D.l(a[0].next())},"hours-from-dateTime":function(a){return v(a,"getUTCHours")},"hours-from-duration":function(a){return w(a,3)},"hours-from-time":function(a){return v(a,"getUTCHours")},id:function(a, +b){var e="";a[0].sa(function(a){e+=a.value.trim()+" "});var c=a[1]?a[1].next():G.be(b.lb());if(!G.da(c))throw new q("Context item is not a node for fn:id()","XPTY0004");9!==c.nodeType&&(c=G.be(c));var d,f=[],h=e.trim().split(/\s+/);if(9===c.nodeType){h=sa(h);for(var g=h.next();!g.done;g=h.next())(d=c.getElementById(g.value))&&f.push(d);return G.jg(D.K(f))}if(11===c.nodeType){for(c=x.li(c);null!==(d=c.next());)1===d.nodeType&&(h.includes(d.getAttributeNS(F.xml,"id"))||h.includes(d.getAttribute("id")))&& +f.push(d);return G.jg(D.K(f))}return D.R},idref:function(){return D.R},"implicit-timezone":function(a,b){return D.l(A.ac.Bl(-b.fixed.md.getTimezoneOffset()))},"index-of":function(a,b,c){var e=D.Da(a[0]),d=a[1].next();a=Q.sd(c,a[2],"equals",b);var f=Q.Pn(a);return e.Ia(function(a){try{return f(a,d)?A.Ma.fa(e.position):null}catch(fa){return null}})},innermost:function(a,b,c){var e=[];(b.fixed.ya.Gc(c,"p")?a[0]:G.jg(a[0])).sa(function(a){0b?D.Rc([e,c]):b>c.zi()?D.Rc([c,e]):c.Ya(function(e){return c.position===b?D.Rc([a[2],D.l(e)]):D.l(e)})},"iri-to-uri":function(a){return D.ua(P.escape(m(a[0]),function(a,b){return 32>=a||126"{}|\\^`]/.test(b)}))},"json-doc":function(a,b,c){c=Ab.Zh(a,b,c);if(!c)return D.R; +c=Ab.Xn(c,b);a=a[1]?a[1].next():null;return D.l(zb.fk(c,a,b))},"json-to-xml":function(a,b,c){var e=b.fixed.ya,d=a[0].next();if(null===d)return D.R;a=a[1]?a[1].next():null;d=zb.lp(d.toString(),a,b);a=b.wa.createDocumentFragment();a.appendChild(d);a._saxonBaseUri=e.yb(c,b);return D.l(a)},key:function(a,c,d){function e(a){a=z?A.T.aa(a):a;return v.Xa(a)?(a=D.K(v.get(a)),t===r?a:a.filter(function(a){return null!==x.Ib(a).filter(function(a){return a===r}).next()})):D.R}function f(a){return{visibility:"PRIVATE", +Rb:a,im:k,actor:a,ci:a.binds.split(" ").map(function(a){return parseInt(a,10)})}}var h=c.fixed.ya,g=b(a[0],c,d,"XTDE1260"),k=h.ah(d,c),p=k.keys[g];if(!p)throw new q("Unknown key "+g,"XTDE1260");var l=p.tk,m=h.Gc(p.tg[0],"c"),t;if(a[2]){var r=a[2].next();G.da(r)&&(t=G.be(r))}else{var w=c.lb();G.da(w)&&(t=r=G.be(w))}if(!t||9!==t.nodeType&&11!==t.nodeType)throw new q("No containing document for key()","XTDE1270",d);t._saxonIndexes||(t._saxonIndexes={},t._saxonIndexesBC={});d=t._saxonIndexes;var v=d[l]; +if("under construction"===v)throw new q("Definition of key "+g+" is circular","XTDE0640");var z=!1;if(v)z=t._saxonIndexesBC[l];else{g=Q.ri(p.tg[0],null,c);v=Q.Wi(g,m);d[l]="under construction";g=function(a){return D.Rc([x.self(a),x.Hc(a),x.ob(a)])};w=function(a){return D.Rc([x.self(a),x.ob(a)])};for(var K=function(a){return D.Rc([x.self(a),x.Hc(a)])},Ba={},ja=0;jav.get(a).indexOf(b)&&(v.get(a).push(b),1c.length+1&&e.substring(0,c.length)===c&&"-"===e.charAt(c.length);return D.ka(c)},last:function(a,b){b.Wc("XPDY0002","last()");return D.Vb(b.focus.zi())},"load-xquery-module":function(){throw new q("No XQuery processor available","FOQM0006");},"local-name":function(a){a=G.ma(a[0].next());return D.ua(a?a.local:"")},"local-name-from-QName":function(a){a=a[0].next();return null===a?D.R:D.l(C.type.NCName.g(a.local))},"lower-case":function(a){return D.ua(m(a[0]).toLowerCase())},matches:function(a){var b= +m(a[0]),e=a[1].next().toString();a=a[2]?a[2].next().toString():"";if(!a.match(/^[smijxq]*$/))throw new q("Illegal flags for regular expression: "+a,"FORX0001");e=Na.wh(e,a,b);return D.ka(0<=b.search(e))},max:r("max"),min:r("min"),"minutes-from-dateTime":function(a){return v(a,"getUTCMinutes")},"minutes-from-duration":function(a){return w(a,4)},"minutes-from-time":function(a){return v(a,"getUTCMinutes")},"month-from-date":function(a){return v(a,"getUTCMonth")},"month-from-dateTime":function(a){return v(a, +"getUTCMonth")},"months-from-duration":function(a){return w(a,1)},name:function(a){a=G.ma(a[0].next());return D.ua(a?a.toString():"")},"namespace-uri":function(a){a=G.ma(a[0].next());return D.l(A.kc.g(a?a.uri:""))},"namespace-uri-for-prefix":function(a){var b=m(a[0]);a=a[1].next();b="xml"===b?F.xml:a.lookupNamespaceURI(""===b?null:b);return null!==b?D.l(A.kc.g(b)):D.R},"namespace-uri-from-QName":function(a){a=a[0].next();return null===a?D.R:D.l(A.kc.g(a.uri))},nilled:function(a){return(a=a[0].next())&& +1===a.nodeType?D.ka(!1):D.R},"node-name":function(a){return D.l(G.ma(a[0].next()))},"normalize-space":function(a){a=m(a[0]);return D.ua(Ma.dd(a))},"normalize-unicode":function(a){if(String.prototype.normalize){var b=m(a[0]);a=a[1]?a[1].next().toString().toUpperCase().trim():"NFC";if(["NFC","NFD","NFKC","NFKD"].includes(a))return D.ua(b.normalize(a));if(""===a)return D.ua(b)}throw new q("normalize-unicode(): not supported on this Javascript platform","FOCH0003");},not:function(a,b){return D.ka(!b.fixed.ya.dg(a[0]))}, +number:function(a){return D.l(C.O.numeric.qh(a[0].next()))},"one-or-more":function(a){a=D.fd(a[0]);if(null===a.Oa())throw new q("Required length >= 1, actual length zero","FORG0004");return a},outermost:function(a,b,c){b=b.fixed.ya.Gc(c,"p");a=a[0];b||(a=G.jg(a));var e=null;return a.filter(function(a){return null===e||null===x.jf(a).filter(function(a){return a===e}).next()?(e=a,!0):!1})},"parse-ietf-date":function(a){return a[0].Ia(function(a){function b(a){return 1===a.length?"0"+a:a}function e(){throw new q("Invalid IETF date/time "+ +a.toString(),"FORG0010");}var c=a.toString().trim().toLowerCase();c=c.replace(/^(monday|tuesday|wednesday|thursday|friday|saturday|sunday|mon|tue|wed|thu|fri|sat|sun),?\s+/,"");if(/^[a-z]/.test(c)){var d=/^([a-z]{3})(?:\s*-\s*|\s+)(\d\d\d?\d?)\s+([\d:.]+)\s*([a-z]+|[+\-]\d\d?:?(?:\d\d)?(?:\s*\(\s*[a-z]+\s*\))?)?\s+(\d+)$/;c=d.exec(c);if(null!==c){var f=c[1];var h=c[2];var g=c[3];var k=c[4];var x=c[5]}else e()}else d=/^(\d+)(?:\s*-\s*|\s+)([a-z]{3})(?:\s*-\s*|\s+)(\d\d\d?\d?)\s+([\d:.]+)\s*([a-z]+|[+\-]\d\d?:?(?:\d\d)?(?:\s*\(\s*[a-z]+\s*\))?)?$/, +c=d.exec(c),null!==c?(h=c[1],f=c[2],x=c[3],g=c[4],k=c[5]):e();2===x.length&&(x="19"+x);f="jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec".indexOf(f||"*");0>f&&e();c={ut:"Z",utc:"Z",gmt:"Z",est:"-05:00",edt:"-04:00",cst:"-06:00",cdt:"-05:00",mst:"-07:00",mdt:"-06:00",pst:"-08:00",pdt:"-07:00"};/^[0-9]:/.test(g)&&(g="0"+g);5===g.length&&(g+=":00");k&&(k=/([a-z]+)|([+\-]\d\d?:?(?:\d\d)?)(?:\s*\(\s*([a-z]+)\s*\))?$/.exec(k),(!k[3]||k[3]in c)&&(!k[1]||k[1]in c)||e(),k=k[1]?k[1]:k[2],/^[+\-][0-9]((:|$)|[0-9]{2}$)/.test(k)&& +(k=k.substring(0,1)+"0"+k.substring(1)),k in c?k=c[k]:3===k.length?k+=":00":4===k.length?k+="00":5===k.length&&(k=k.substring(0,3)+":"+k.substring(3)));h=x+"-"+b((f/4+1).toString())+"-"+b(h)+"T"+g+(k||"Z");try{return A.dateTime.g(h)}catch(ma){throw new q("''"+a.toString()+"'' is not a valid IETF date","FORG0010");}})},"parse-json":function(a,b){var e=a[0].next();if(null===e)return D.R;var c=a[1]?a[1].next():null;return D.l(zb.fk(e.toString(),c,b))},"parse-xml":function(a,b,c){a=a[0].next();if(null=== +a)return D.R;var e=b.fixed.ya;try{var d=Da.parseXmlFromString(a.toString());d._saxonBaseUri=e.yb(c,b);return D.l(d)}catch(L){throw new q(L.message,"FODC0006");}},"parse-xml-fragment":function(a,b,c){var e=b.fixed.ya;return a[0].Ia(function(a){var d=/^<\?xml(?:\s+version\s*=\s*(['"])1.[0-9]+['"])?\s+encoding\s*=\s*(['"][A-Za-z](?:[A-Za-z0-9._\-])*)['"]\s*\?>/;a=a.toString();if(/^<\?xml/.test(a)&&!d.test(a))throw new q("Invalid XML header for a text declaration","FODC0006");a=a.replace(d,"");try{var f= +Da.parseXmlFromString(""+a+"")}catch(Y){throw new q(Y.message,"FODC0006");}var h=b.wa.createDocumentFragment();x.pb(f.documentElement).sa(function(a){h.appendChild(a)});h._saxonBaseUri=e.yb(c,b);return h})},path:function(a){return a[0].Ia(function(a){var b="";x.Ib(a).sa(function(a){function e(a){return x.Oe(a).filter(function(b){return a.nodeType===b.nodeType})}switch(a.nodeType){case 1:var c=G.ma(a);b="/"+c.ha()+"["+(1+e(a).filter(function(a){return G.ma(a).ia(c)}).count())+"]"+b;break;case 3:b= +"/text()["+(1+e(a).count())+"]";break;case 8:b="/comment()["+(1+e(a).count())+"]";break;case 7:b="/processing-instruction("+a.target+")["+(1+e(a).filter(function(b){return a.target===b.target}).count())+"]";break;case 2:b="/@"+(0>a.name.indexOf(":")?a.name:G.ma(a).ha());break;case 13:b="/namespace::"+(""!==a.prefix?a.prefix:"*[Q{"+F.cb+'}local-name()=""]')}});""===b&&(b="/");return A.T.g(b)})},"prefix-from-QName":function(a){return a[0].Ia(function(a){return""===a.prefix?null:A.Dk.g(a.prefix)})}, +position:function(a,b){b.Wc("XPDY0002","position()");return D.Vb(b.focus.position)},QName:function(a){var b=a[1].next().value,e=b.split(":"),c=2===e.length?e[0]:"";a=m(a[0]);if(""!==c&&""===a)throw new q("Prefix but no URI for QName()","FOCA0002");if(2===e.length&&""===c||""!==c&&!Na.Yc(c))throw new q(b+" not valid for QName()","FOCA0002");b=2===e.length?e[1]:e[0];if(!Na.Yc(b))throw new q(b+" not valid local name for QName()","FOCA0002");return D.l(A.X.xa(c,a,b))},"random-number-generator":function(a, +b){var e=new cb;e.Ta(A.T.g("number"),[A.za.fa(Math.random())]);var c=A.X.xa("fn",F.cb,"random-number-generator"),d=wb.find("SaxonJS").XPath,f=d.getFnSignature(c,0,b);c=new nb.Ih(f,c,0,{},b);e.Ta(A.T.g("next"),[c]);c=A.X.xa("saxon",F.Jc,"permute");f=b.ja();f.Tb=!0;d=d.getFnSignature(c,1,f);d=new nb.Ih(d,c,1,{},b);e.Ta(A.T.g("permute"),[d]);return D.l(e)},"regex-group":function(a,b){var e=a[0].next().J();try{return D.ua(b.focus.yh[e]||"")}catch(y){return D.ua("")}},remove:function(a){var b=a[1].next().J(), +e=D.Da(a[0]);return e.filter(function(){return e.position!==b})},replace:function(a){var b=m(a[0]),e=a[3]?a[3].next().toString():"";if(!e.match(/^[smijxq]*$/))throw new q("Illegal flags for regular expression: "+e,"FORX0001");var c=0,d=Na.wh(a[1].next().toString(),e+"g",null,function(a){c=a});if(d.test(""))throw new q("Regular expression matches zero-length string","FORX0003");a=Na.Fn(a[2].next().toString(),e,c);return D.ua(b.replace(d,a))},"resolve-QName":function(a){var b=a[1].next();return a[0].Ia(function(a){try{return G.up(b, +a.toString(),!0)}catch(y){throw y instanceof q&&"FORG0001"===y.code&&(y.code=Na.Wl(a)?"FONS0004":"FOCA0002"),y;}})},"resolve-uri":function(a,b,c){var e=b.fixed.ya;b=a[1]?a[1].next().toString():e.yb(c,b);a=a[0].next();if(null===a)return D.R;b=b.replace(/^file:\/(?!\/)/,"file:///");a=a.toString();c=G.Bf(a);if(!c&&!G.Bf(b))throw new q("resolve-uri: invalid URI (base="+b+", relative="+a+")","FORG0002");if(!Da.Af()&&/#/.test(b))throw new q("Base URI "+b+" contains a fragment identifier","FORG0002");a= +c?a:Da.$c(a,b).toString();return D.l(A.kc.g(a))},reverse:function(a){return D.K(a[0].expand().slice().reverse())},root:function(a){return a[0].Ya(function(a){return x.Ib(a)}).filter(function(a){return!G.hc(a)})},round:function(a){return a[0].Ia(function(b){return b.round(a[1]?Math.min(a[1].next().value,1E4):0)})},"round-half-to-even":function(a){return a[0].Ia(function(b){return b.Ri(a[1]?Math.min(a[1].next().value,1E4):0)})},"seconds-from-dateTime":function(a){return v(a,"seconds")},"seconds-from-duration":function(a){return w(a, +5)},"seconds-from-time":function(a){return v(a,"seconds")},serialize:function(a,b){function c(a){a.method="xml";a.indent=!1;a["omit-xml-declaration"]=!0}var e=new Eb.pj,d={};if(a[1]){var f=a[1].next();if(null===f)c(d);else if(G.da(f)){if(!G.Ul(f))throw new q("Second argument supplied to serialize() is wrong kind of node","XPTY0004");Eb.Ki(f,d,"XPTY0004")}else{if(!(f instanceof cb))throw new q("Second argument supplied to serialize() does not match required type","XPTY0004");var h=function(a,b,c,e, +h){h=void 0===h?!1:h;var g=C.O.T.g(a);if(f.Xa(g)){var k=f.get(g);if(0c.max&&(c.max=e);c.Wa[e]=b[h]}d[a]=c}})("use-character-maps")}}else c(d);Eb.um(a[0].expand(),d,e,b);return D.ua(e.toString())},snapshot:function(a,b,c){return a[0].Ia(function(a){function e(h){if(0=a.length){for(;l=b.length){for(;k=c(a[k],b[l])?d(a[k++]):d(b[l++]);return f}function d(a,b){return b.fixed.ya.Ec(a,"sortKey").map(function(a){return Q.Jp(a,b)})}function m(a){return function(b,c){for(var d=0;dd){k={items:[m.item],keys:m.keys,groups:{}};for(d=0;d 1");else return!0}var e=a.next();if(null===e)return!1;if(la.da(e))return!0;if(C.Ga(e)){if(M.Ea.matches(e))return c()&&e.value;if(M.numeric.matches(e))return e=e.J(),c()&&!isNaN(e)&&0!==e;if(M.T.matches(e)||M.Ua.matches(e)||M.kc.matches(e))return c()&&0!==e.toString().length;b("type "+e.type)}else U(e)?b("maps"):Z(e)?b("arrays"):X(e)?b("functions"):b("value "+B.oa(e))}function v(a,b){var c=Pa["i+i"],e=M.Ma.fa(1);return D.Uf(a, +function(a){a=c(a,e);return 0",1);c=Ba(a,b);"object"===typeof c&&"next"in c||B.ra("Result of "+Va(a)+" is not an iterator");B.Gb(V.substring(0,bb)+"",1);bb--;return c}function Va(a){var b=a.N;a.parentNode&&(b=Va(a.parentNode)+"/"+b);return b}function Ba(a,b){var c=E[a.N];c||B.ra("Unknown expr: "+a.N+" parent="+a.p);try{return c(a,b)}catch(Ta){throw Ta instanceof q&&(b.Yg=Ta,Ta.oe||Ea(Ta,a), +Ta.context||(Ta.context=b)),Ta;}}function ja(a){return function(b){var c=Cb.ae(b),e=Bb.yf(c);Bb.push(a,b,e);e.close();return c.rg()}}function aa(a,b){a instanceof q&&!a.oe&&Ea(a,b);throw a;}function ra(a,b){function c(b){return"Context item for template "+a.name+" must be "+b}if(b.ee()&&-1===a.flags.indexOf("o"))throw new q(c("supplied"),"XTTE3090",a);b.ee()||-1!==a.flags.indexOf("s")||(b.focus={});var e=a.cxt;if(e&&!b.ee()&&!I.Xc(e).ta()(b.lb()))throw new q(c("instance of "+I.Xc(e).toString()),"XTTE0590", +a);}function Z(a){return a instanceof mb}function U(a){return a instanceof cb||a instanceof oa}function X(a){return a instanceof nb.gb||Z(a)||U(a)}function T(a,b,c){B.assert(Array.isArray(a));B.assert(b instanceof J.Ka);var e=b.ea(),d=e.p;if(e.o&&!tb(e.o)(a.length))throw new q("Supplied value "+B.oa(a)+" does not match required cardinality "+e.o+(c?" in "+c():""),"XPTY0004");if(0=h&&a<=g});return D.ka(a)}},is:function(a){var b=K(a,function(a,b){return M.Ea.Dd(la.isSameNode(a,b))});return function(a){return D.l(b(a))}},isLast:function(a){var b="1"===a.test;return function(a){return D.ka(a.focus.position===a.focus.zi()===b)}},iterate:ja,javaCall:function(a){var b=M.X.rb(a.name),c=(a.C||[]).map(u);return function(e){var d=c.map(function(a){return a(e)});return Qa(b.uri,b.local,d,e,a)}},lastOf:function(a){var b=p(a);return function(a){var c=D.fd(b(a));return c.filter(function(){return null=== +c.Oa()})}},let:function(a){var b=p(a),c=y(a),e=parseInt(a.slot,10);return function(a){var d=a.Ja;a.Ja="variable";var f=b(a).expand();a.Ja=d;a.Ha[e]=f;return c(a)}},literal:d,lookup:function(a){var b=p(a),c=y(a);return function(e){function d(a){k=k.concat(p[a.toString()])}function f(a){k=k.concat(p.get(a))}function h(b){return function(c){if(!M.Ma.matches(c))throw new q("Array lookup key must be of type xs:integer; supplied value is "+B.oa(c),"XPTY0004",a);c=c.J();if(1>c||c>b.length)throw new q("Array index ("+ +c+") out of bounds (1 to "+b.length+")","FOAY0001",a);k=k.concat(b[c-1])}}var g=b(e),k=[],p;e=c(e).expand();var x=a.tuple;if(null!=x)for(var l=x.split(/\s+/),m=sa(e),t=m.next();!t.done;t=m.next())if(t=t.value,-1===l.indexOf(t.toString()))throw new q("Tuple lookup key must be one of "+x+". Supplied key is "+t.toString(),"XPTY0004",a);for(;null!==(p=g.next());)if(P.isArray(p))e.forEach(h(p.value));else if(P.isMap(p))e.forEach(f);else if(null!=x&&P.Yl(p))e.forEach(d);else throw new q("The source for a lookup operator (?) must be of type array() or map(); supplied value is "+ +B.oa(p),"XPTY0004",a);return D.K(k)}},lookupAll:function(a){var b=p(a);return function(c){function e(a){f=f.concat(a)}function d(a){f=f.concat(h.get(a))}c=b(c);for(var f=[],h;null!==(h=c.next());)if(P.isArray(h))h.value.forEach(e);else if(P.isMap(h))h.keys().forEach(d);else throw new q("The source for a lookup operator ('?') must be of type array() or map(); supplied value is "+B.oa(h),"XPTY0004",a);return D.K(f)}},lookupTuple:function(a){var b=p(a),c=a.key;return function(e){e=b(e);for(var d=[], +f;null!==(f=e.next());)if(null!=c&&P.Yl(f))d=d.concat(f[c]);else throw new q("The source for a lookupTuple operator (?) must be of type tuple(); supplied value is "+B.oa(f),"XPTY0004",a);return D.K(d)}},map:function(a){var b=(a.C||[]).map(u);return function(c){var e=new cb,d=null;b.forEach(function(b){if(null===d)d=b(c).next();else{if(e.Xa(d))throw new q("Duplicate map constructor entries for key:"+B.oa(d),"XQDY0137",a);b=b(c).expand();e.Ta(d,b);d=null}});return D.l(e)}},merge:function(a){return function(b){return Gb.Vo(a, +b)}},mergeAdj:function(a){var b=p(a);return function(a){for(var c=[],e=b(a),d=!1,f;null!==(f=e.next());){var h=la.da(f)&&3===f.nodeType;h&&""===f.nodeValue||(d&&h?c.push(a.wa.createTextNode(c.pop().nodeValue+f.nodeValue)):(d=h,c.push(f)))}return D.K(c)}},message:function(a){var b=u(L(a,"terminate")),e=u(L(a,"error"));return function(d){var f=d.Ja;d.Ja="variable";var h=b(d).next(),g=e(d).next().toString();try{g=S(a,g,!0).ha()}catch(fb){g="Q{http://www.w3.org/2005/xqt-errors}XTMM9000"}try{var k=c(h.toString())}catch(fb){throw new q("The terminate attribute of xsl:message must be yes|no|true|false|1|0", +"XTDE0030",a);}h=Cb.ae(d);var p=new Cb.Rg(h);try{Bb.push(a.C[0],d,Bb.yf(p))}catch(fb){p.append(C.O.T.g("xsl:message evaluation at "+B.location(a)+" failed: "+fb))}h=h.rg().next();d.fixed.options.Dj||(d.fixed.options.Dj=Da.Il());try{d.Gn(g),d.fixed.options.Dj(h,g)}catch(fb){}if(k)throw B.Gb(d.ui()),new q("Terminated with "+h,g,a);d.Ja=f;return D.R}},minus:function(a){var b=p(a);return function(a){return b(a).Ia(function(a){return a.Gi()})}},namespace:function(a){var b=p(a),c=y(a);return function(e){var d= +b(e).next().toString();e=c(e).next().toString();if(""!==d&&!Na.Yc(d))throw new q("Prefix "+d+" is not an NCName","XTDE0920",a);if(""===e)throw new q("Namespace is zero-length","XTDE0930",a);if("xmlns"===d)throw new q("Disallowed prefix xmlns","XTDE0920",a);if("http://www.w3.org/2000/xmlns/"===e)throw new q("Disallowed namespace "+e,"XTDE0905",a);if(!t(e))throw new q("Invalid namespace "+e,"XTDE0905",a);if("xml"===d!==(e===F.xml))throw new q("The xml namespace prefix and uri can only be used together", +"XTDE0925",a);return D.l(new ab(d,e))}},nextIteration:ja,nextMatch:ja,nodeNum:function(a){return function(b){return Db.bp(a,b)}},"null":function(a){return function(){return D.l(a)}},numSeqFmt:function(a){return function(b){return Db.cp(a,b)}},onEmpty:d,onNonEmpty:d,or:function(a){var b=p(a),c=y(a);return function(a){return D.ka(r(b(a))||r(c(a)))}},origFC:function(a){a.C||(a.C=[]);var b=a.C.map(u);return function(c){if(!a._target){var e=a.pack,d=S(a,a.name,!1).ha(),f=a.C.length,h=c.fixed.qb;Object.keys(h).forEach(function(b){b= +h[b];b.im.name===e&&b.name===d&&b.actor&&"function"===b.actor.N&&w(b.actor,"arg").length===f&&(a._target=b.id)})}var g=c.fixed.qb[a._target],k=b.map(function(a){return a(c).expand()});return Ja(a,g,k,c)}},param:function(a){var b=a.name,c=parseInt(a.slot,10),e=O(a,"t"),d=u(L(a,"select")),f=u(L(a,"conversion"));return function(h){var g=e?h.cd:h.He,k=C.O.X.rb(b);if(g.Xa(k))g=g.get(k),""!==J.Kd(a.as||"*").ea().p&&(g=Fa(g));else if(d&&!O(a,"r"))k=h.Ja,h.Ja="xsl:param",g=d(h).expand(),h.Ja=k;else throw new q("Required parameter $"+ +b+" not supplied","XTDE0700",a);B.assert(Array.isArray(g));h.Ha[c]=g;if(f)try{h.Ha[c]=f(h).expand()}catch(fb){throw new q("Supplied value for parameter $"+b+" could not be converted to required type","XTTE0590",a);}return D.R}},partialApply:function(a){for(var b=p(a),c=[],e=[],d=0,f=a.C.length-1,h=1;hla.qc(a,b))});return function(a){return D.l(b(a))}},procInst:ja,qName:function(a){var b=M.X.xa(a.pre,a.uri,a.loc);return function(){return D.l(b)}},range:function(a){var b=M.Ma.g(a.from),c=M.Ma.g(a.to);return function(){return v(b,c)}},resultDoc:function(b){return function(c){try{if(c.Ja)throw new q("Cannot call xsl:result-document while evaluating "+c.Ja,"XTDE1480", +b);var e=za(b,c),d={},f=function(){},h=L(b,"format");if(h){var k=a(h,c).next().toString();k=S(b,k,!0).ha();var p=e.dk[k];if(!p)throw new q("Unknown xsl:output format "+k,"XTDE1460");for(var l,t,m=sa(p.C),r=m.next();!r.done;r=m.next()){var u=r.value,y=u.name;"parameter-document"===y?l=u.value:"Q{http://saxon.sf.net/}parameter-document-base-uri"===y?t=u.value:d[y]="use-character-maps"===y?Eb.Yi(y,u.value,e):Eb.Zi(y,u.value)}if(l){var v=Da.$c(l,t),w=Ab.ve(v,c);Eb.Ki(w.documentElement,d)}}g(b.global, +d,e);g(b.local,d,e);var z=sa(b.C);for(r=z.next();!r.done;r=z.next()){var A=r.value,H=A.role.replace(/^Q{\}/,"");if(!["href","format","content","parameter-document"].includes(H)){"output-version"===H&&(H="version");var K=a(A,c).next().toString();K="use-character-maps"===H?Eb.Yi(H,K,e):Eb.Zi(H,K,N(b,!0));"undefined"!==typeof K&&(d[H]=Eb.Ji(H,K,d[H]))}}var ma=L(b,"Q{}parameter-document");if(null!==ma){var E=a(ma,c).next().toString(),Ga=Da.$c(E,P.yb(b,c)),O=Ab.ve(Ga,c);Eb.Ki(O.documentElement,d)}var Z= +c.fixed.Ad,xa=L(b,"href"),U=null===xa?"":a(xa,c).next().toString();var X=Z?Da.newURL(U,Z):la.Bf(U)?Da.newURL(U):U;var ja=X.toString();if(c.fixed.Ad&&ja===c.fixed.Ad.toString()&&1=e--})}},tailCallLoop:d,to:function(a){var b=p(a),c=y(a);return function(a){var e=b(a).next();a=c(a).next();return null===e||null===a||0a?Math.ceil(a):Math.floor(a)};Array.prototype.findIndex||Object.defineProperty(Array.prototype,"findIndex",{value:function(a,b){if(null===this||"undefined"==typeof this)throw new TypeError("Array.prototype.findIndex called on null or undefined");if("function"!==typeof a)throw new TypeError("predicate must be a function");for(var c=Object(this),d=c.length>>>0,l,m=0;mthis.length?!1:-1!==this.indexOf(a,b)})}var b=Resources,d,m={name:"Browser",init:function(){a()}, +inBrowser:function(){return!0},expose:function(a,b){window[b]=a},getPromise:function(a){return new Promise(function(b,c){var d=new XMLHttpRequest;d.open("GET",a);d.onload=function(){200<=this.status&&300>this.status?b({responseText:d.responseText,contentType:d.getResponseHeader("Content-Type")}):c(new q(d.statusText+": "+a,"SXJS0006"))};d.onerror=function(){c(new q("Document fetch failed: "+a,"SXJS0006"))};d.send(null)})},asyncGet:function(a,b,d){var c=new XMLHttpRequest;c.open("GET",a,!0);0!==d&& +(c.timeout=d);c.onload=function(){4===c.readyState&&(200===c.status?b({responseText:c.responseText,contentType:c.getResponseHeader("Content-Type")}):b(new q(c.statusText+": "+a,"SXJS0006")))};c.ontimeout=function(){b(new q("Document fetch timeout: "+a,"SXJS0008"))};c.onabort=function(){b(new q("Document fetch aborted: "+a,"SXJS0008"))};c.onerror=function(){b(new q("Document fetch failed: "+a,"SXJS0006"))};c.send(null);return c},addDoc:function(a,b,d,k){function c(c){B.Gb("Add to response pool "+a, +2);d[a]=c;b(d)}if(!d[a]||d[a]instanceof q)return m.asyncGet(a,c,k);B.Gb("Doc already in pool "+a,2);b(d);return null},addMultipleDocs:function(a,b,d,k){function c(a){0>=--f&&d(a)}for(var f=a.length,l={},z=0;z";R[1]="|";R[2]="/";R[3]="@";R[48]="~";R[4]="[";R[5]="(";R[6]="=";R[7]=",";R[8]="//";R[9]="or";R[10]="and";R[11]=">";R[12]="<";R[13]=">=";R[14]="<=";R[15]="+";R[16]="-";R[299]="-";R[17]="*";R[18]="div";R[19]="mod";R[20]="is";R[21]="$";R[22]="!=";R[40]="!";R[30]="||";R[23]="intersect";R[24]="except";R[25]="return";R[26]="then";R[27]="else";R[29]="to";R[31]="in";R[32]="some";R[33]="every";R[34]="satisfies";R[35]="(";R[36]="";R[37]="if(";R[38]="<<";R[39]=">>"; +R[41]="::";R[42]=":*";R[44]="#";R[45]="instance of";R[46]="cast as";R[47]="treat as";R[50]="eq";R[51]="ne";R[52]="gt";R[54]="ge";R[53]="lt";R[55]="le";R[56]="idiv";R[57]="castable as";R[58]=":=";R[71]="as";R[75]=":";R[76]="=>";R[79]="otherwise";R[80]="andAlso";R[81]="orElse";R[201]="";R[202]="";R[203]="]";R[204]=")";R[205]=".";R[206]="..";R[207]="*";R[208]="";R[209]="";R[69]="()";R[211]="for";R[70]="<*:local-name>";R[213]="?";R[59]="{"; +R[60]=" {";R[215]="}";R[216]="let";R[299]="-";function Jb(a,b){Ib[a]=b;R[b]=a}Jb("instance of",45);Jb("cast as",46);Jb("treat as",47);Jb("castable as",57);var Kb={Hq:function(){return null}},Lb;for(Lb in F)Kb[Lb.toUpperCase()]=F[Lb];Kb.pq=F.Rd;Kb.hn=F.Ve;function Mb(a){a=a.charCodeAt(0);return 65<=a&&90>=a||97<=a&&122>=a}var Nb=Na.Yc;function Ob(a){var b=a.charCodeAt(0);return Mb(a)||48<=b&&57>=b}function Pb(a,b){return new q(a,void 0===b?"XPST0003":b)}function Qb(a){return new q(void 0===a?"Illegal Argument":a,"XPST0003")};function Rb(a,b,d,m){this.kind=a;this.ip=b;this.hp=d;this.errorCode=void 0===m?"XPTY0004":m}Rb.prototype={eh:function(){return this.errorCode},save:function(){var a=this.kind+"|"+this.hp+"|";a+=("XPTY0004"===this.errorCode?"":this.errorCode)+"|";return a+=this.ip}};function W(){this.b=J.B.Qa}ba=W.prototype;ba.start=function(a,b){b=void 0===b?{}:b;a.start(this.V,b);this.Jd&&a.Re("role",this.Jd);this.b&&(B.assert(this.b instanceof J.Ka),a.Re("sT",this.b.va()));this.Al&&a.Re("sType",this.b.va())};ba.vd=function(){return!ib(this.b.na)};ba.Ub=function(a,b){b=void 0===b?{}:b;this.start(a,b);a.end()};ba.j=function(a){this.Ub(a)};ba.V="Expression";ba.kind=null;ba.Jd=null;ba.Al=null;ba.ib=function(a,b){return new Rb(this.kind,this.V,a,void 0===b?"XPTY0004":b)}; +ba.kb=function(){throw new Pb(B.Ip(this)+" is not a valid pattern","XTSE0340");};ba.eg=function(){return this};function Sb(a,b,d){W.call(this);this.Lb=b;this.Ca=a;this.Fa=d;if(this.Ca.Mb||this.Fa.Mb)this.Mb=!0;this.Ca.Ed&&this.Fa.Ed&&(this.Ed=!0)}n(Sb,W);Sb.prototype.j=function(a){W.prototype.start.call(this,a,this.Lb?{op:R[this.Lb]}:{});this.Ca.j(a);this.Fa.j(a);a.end()};Sb.prototype.kind=1;function Tb(a){W.call(this);this.bb=a;this.bb.Mb&&(this.Mb=!0);this.bb.Ed&&(this.Ed=!0)}n(Tb,W); +Tb.prototype.j=function(a){W.prototype.start.call(this,a);this.bb.j(a);a.end()};Tb.prototype.kind=9;var Ub=[!1,!1,!0,!0,!0,!0,!0,!0,!0,!0,!1,!1,!0,!1];function Vb(a){return"ancestor ancestor-or-self attribute child descendant descendant-or-self following following-sibling namespace parent preceding preceding-sibling self preceding-or-ancestor".split(" ")[a]}var Wb=[1,1,2,1,1,1,1,1,13,1,1,1,1,1],Xb=[4,5,9,9,0,1,10,11,9,3,6,7,12]; +function Yb(a){switch(a){case "self":return 12;case "child":return 3;case "parent":return 9;case "ancestor":return 0;case "attribute":return 2;case "following":return 6;case "namespace":return 8;case "preceding":return 10;case "descendant":return 4;case "ancestor-or-self":return 1;case "following-sibling":return 7;case "preceding-sibling":return 11;case "descendant-or-self":return 5}throw new Pb("Unknown axis name: "+a);};function Zb(){W.call(this);this.b=J.B.qe}n(Zb,W);Zb.prototype.kb=function(){return this};Zb.prototype.j=function(a){W.prototype.Ub.call(this,a)};function $b(a){Zb.apply(this,arguments)}n($b,Zb);$b.prototype.V="p.any";function ac(a,b){b=void 0===b?"match":b;Zb.call(this);this.message=a;this.Jd=b;this.b=J.B.qe}n(ac,Zb);ac.prototype.j=function(a){Zb.prototype.Ub.call(this,a,{message:this.message})};ac.prototype.V="p.warning";function bc(a){Zb.call(this);this.Nb=a;this.b=J.B.qe}n(bc,Zb); +bc.prototype.j=function(a){Zb.prototype.start.call(this,a);this.Nb.j(a);a.end()};bc.prototype.V="p.booleanExp";function cc(a,b){Zb.call(this);B.assert(b instanceof I.mc);this.test=b;this.b=new J.Ka(b,kb)}n(cc,Zb);cc.prototype.j=function(a){Zb.prototype.Ub.call(this,a,{test:this.test.va()})};cc.prototype.V="p.nodeTest";function dc(a,b){Zb.call(this);this.pattern=a;this.Nb=b;this.b=a.b;a.code&&(this.code=a.code)}n(dc,Zb); +dc.prototype.j=function(a){Zb.prototype.start.call(this,a);this.code&&a.Re("code",this.code);this.pattern.j(a);this.Nb.j(a);a.end()};dc.prototype.V="p.withPredicate";function ec(a){Zb.call(this);this.ho=a;this.b=a.b.Va(kb)}n(ec,Zb);ec.prototype.j=function(a){Zb.prototype.start.call(this,a);this.ho.j(a);a.end()};ec.prototype.V="p.nodeSet";function fc(a){Zb.call(this);this.bb=a;this.b=a.b.Va(kb)}n(fc,Zb);fc.prototype.j=function(a){Zb.prototype.start.call(this,a);this.bb.j(a);a.end()}; +fc.prototype.V="p.genNode";function gc(a,b){Zb.call(this);this.Nb=b;this.code=a.b.va();this.b=a.b.Va(kb)}n(gc,Zb);gc.prototype.j=function(a){Zb.prototype.start.call(this,a,{test:this.code});this.Nb.j(a);a.end()};gc.prototype.V="p.genPos";function hc(a,b){Zb.call(this);this.code=a.va();this.zg=b;this.b=a.Va(kb)}n(hc,Zb);hc.prototype.j=function(a){Zb.prototype.Ub.call(this,a,{test:this.code,pos:this.zg})};hc.prototype.V="p.simPos"; +function ic(a,b,d){Zb.call(this);this.axis=Xb[a];this.Bb=b;this.upper=d;this.b=b.b}n(ic,Zb);ic.prototype.j=function(a){Zb.prototype.start.call(this,a,{axis:Vb(this.axis)});this.Bb.j(a);this.upper.j(a);a.end()};ic.prototype.V="p.withUpper";function lc(a,b,d,m){Zb.call(this);this.Lb=b;this.Ca=a;this.Fa=d;this.b=m.Va(kb)}n(lc,Zb);lc.prototype.j=function(a){Zb.prototype.start.call(this,a,{op:1===this.Lb?"union":R[this.Lb]});this.Ca.j(a);this.Fa.j(a);a.end()};lc.prototype.V="p.venn"; +function nc(a,b,d){lc.call(this,a,1,b,d)}n(nc,lc);function oc(a){var b=[];a.Ca instanceof nc?b=oc(a.Ca):b.push(a.Ca);a.Fa instanceof nc?b=b.concat(oc(a.Fa)):b.push(a.Fa);return b}function pc(a){Zb.call(this);this.lm=a;a=sa(this.lm);for(var b=a.next();!b.done;b=a.next())b.value.Al=!0}n(pc,Zb);pc.prototype.j=function(a){Zb.prototype.start.call(this,a);for(var b=sa(this.lm),d=b.next();!d.done;d=b.next())d.value.j(a);a.end()};pc.prototype.V="UnionExprP";function qc(){this.G=this.state=0;this.ba=null;this.la=this.$g=0;this.Fb=null;this.dc=0;this.input=null;this.eb=this.I=0;this.$j=this.lineNumber=1;this.vg=null;this.lc=-1;this.vh="";this.Wk=this.In=!1}ba=qc.prototype;ba.getState=function(){return this.state};function rc(a,b){a.state=b;0===b?(a.lc=-1,a.vh="",a.G=-1):b===sc&&(a.lc=204,a.vh=")",a.G=204)}function tc(a,b){a.state=0;a.la=0;a.Fb=null;a.dc=0;a.I=0;a.input=b;a.lineNumber=0;a.$j=0;a.eb=b.length;uc(a);a.next()} +ba.next=function(){this.lc=this.G;this.vh=this.ba;this.G=this.la;this.ba=this.Fb;null===this.ba&&(this.ba="");this.$g=this.dc;this.lineNumber=this.$j;switch(this.G){case 201:var a=vc(this,this.ba);-1===a||150>=this.lc||213===this.lc||(this.G=a);break;case 207:150>=this.lc||213===this.lc||(this.G=17)}if(215!==this.G&&(a=this.lc,uc(this),201===this.G&&this.state!==wc&&21!==a))switch(this.la){case 5:var b=vc(this,this.ba);-1===b||150>=a?(this.G=this.Qj(this.ba),uc(this)):this.G=b;break;case 59:this.state!== +xc&&(this.G=60,uc(this));break;case 41:uc(this);this.G=36;break;case 44:uc(this);this.G=43;break;case 42:uc(this);this.G=208;break;case 21:"for"===this.ba?this.G=211:"some"===this.ba?this.G=32:"every"===this.ba?this.G=33:"let"===this.ba&&(this.G=216);break;case 201:a=this.ba+" "+this.Fb,b=Ib[a],null!=b&&(this.G=b,this.ba=a,uc(this))}}; +function uc(a){a.lc=a.la;a.vh=a.Fb;a.Fb=null;for(a.dc=a.I;;){if(a.I>=a.eb){a.la=0;break}var b=a.input.charAt(a.I++);switch(b){case "/":if(a.I"===a.input.charAt(a.I)){a.I++; +a.la=76;return}a.la=6;return;case "!":if(a.I":if(a.I"===a.input.charAt(a.I)){a.I++;a.la=39;return}a.la=11;return;case ".":if(a.Ia.input.charAt(a.I)||"9"=b||127d?0:d-5,d+5)+"'",new Pb("Separator needed after numeric literal"+a);a.I--;break a}if(a.I>=a.eb)break;b=a.input.charAt(a.I++)}a.Fb=a.input.substring(a.dc,a.I);a.la=209;return; +case '"':case "'":for(a.Fb="";;){a.I=a.input.indexOf(b,a.I);if(0>a.I)throw a.I=a.dc+1,new Pb("Unmatched quote in expression");a.Fb+=a.input.substring(a.dc+1,a.I++);if(a.Ib.charCodeAt(0)&&!Mb(b))throw new Pb("Invalid character '"+b+"' in expression");case "_":d=!1;a:for(;a.I< +a.eb;a.I++)switch(b=a.input.charAt(a.I),b){case ":":if(d)break a;else{if(213===a.lc||70===a.lc){a.Fb=a.input.substring(a.dc,a.I);a.la=201;return}if(a.I+1b.charCodeAt(0)&&!Ob(b))break a}a.Fb=a.input.substring(a.dc,a.I);a.la=201;return}}} +function vc(a,b){var d={or:9,is:20,to:29,"in":31,eq:50,ne:51,le:55,lt:53,gt:52,ge:54,as:71,and:10,div:18,mod:19,idiv:56,then:26,"else":27,"case":67,where:28,union:1,except:24,"return":25,otherwise:79,orElse:81,"default":212,andAlso:80,intersect:23,satisfies:34}[b];return 1===d&&a.In||[81,80].includes(d)&&!a.Wk?-1:d||-1} +ba.Qj=function(a){var b={"if":37,array:69,attribute:69,comment:69,"document-node":69,element:69,"empty-sequence":69,"function":69,map:69,item:69,"namespace-node":69,node:69,"processing-instruction":69,"schema-attribute":69,"schema-element":69,"switch":69,otherwise:79,text:69,tuple:69,typeswitch:69,union:69}[a];return b?["tuple","union"].includes(a)&&!this.Wk?35:b:35};function yc(a,b){b=void 0===b?-1:b;a.lineNumber++;a.$j++;null===a.vg&&(a.vg=[]);a.vg.push(-1===b?a.I-1:b)} +function zc(a){a.I>a.eb&&(a.I=a.eb);return 34>a.I?a.input.substring(0,a.I):Na.collapse("..."+a.input.substring(a.I-30,a.I)).toString()}function Ac(a,b){if(null===a.vg)return b;for(var d=a.vg.length-1;0<=d;d--){var m=a.vg[d];if(b>m)return d+1<<16|b-m}return b}ba.getLineNumber=function(a){return(a=void 0===a?null:a)?Ac(this,a)>>16:this.lineNumber};ba.getColumnNumber=function(a){a=void 0===a?null:a;return Ac(this,a?a:this.$g)&32767};var wc=1,xc=2,sc=3;function Bc(){};function Cc(a,b){W.call(this);Array.isArray(a)||B.ra("Literal value must be array");b instanceof J.Ka&&b.ca.va||B.ra("Literal type must be a SequenceType");a&&(this.value=a,b&&(this.b=b));this.Jd=null}n(Cc,W);function Dc(a){return 1===a.value.length&&I.Nh.pa.ta()(a.value[0])}Cc.prototype.toString=function(){return this.value.toString()}; +Cc.prototype.j=function(a){function b(b,d){var c={val:b.toString()};d&&(c.role=d);var k=C.type[b.type].code;switch(k){case "AS":a.start("str",c);break;case "AO":a.start("dbl",c);break;case "AB":a.start(b.value?"true":"false",{});break;case "AD":a.start("dec",c);break;case "ADI":a.start("int",c);break;case "AQ":a.start("qName",{pre:b.prefix,uri:b.uri,loc:b.local});break;default:c.type=k,a.start("atomic",c)}a.end()}if(0===this.value.length)a.start("empty",this.Jd?{role:this.Jd}:{}),a.end();else if(1=== +this.value.length)b(this.value[0],this.Jd);else{var d={count:this.value.length};this.Jd&&(d.role=this.Jd);a.start("atomic",d);d=sa(this.value);for(var m=d.next();!m.done;m=d.next())b(m.value);a.end()}};function Ec(a){return a instanceof Cc&&Dc(a)}function Fc(a,b){return new Cc(a,b)}function Gc(){return new Cc([],J.B.fj)}Cc.prototype.V="literal";Cc.prototype.Ed=!0;function Hc(a){Cc.call(this,[C.O.T.g(a)],J.B.Td);this.b=J.B.Td}n(Hc,Cc);var Ic={6:50,22:51,11:52,12:53,13:54,14:55};function Jc(a,b){var d=a.ea().p;b.ea();if("AZ"===d&&b.qg())return!1;if("A"===d&&b.Ga())return!0;""===d&&b.Ga();return!0}function Kc(a){return/^A[BAMT2XQ]/.test(a)}function Lc(a,b,d,m){Sb.call(this,a,b,d);a=m.lo();b="GAC";switch(a){case Q.Rl:b="CAC"}a.startsWith(Q.Op)&&(b="CAC");d.b===J.B.cn&&(b="EQC");this.bg=b+"|"+a;this.b=J.B.ic}n(Lc,Sb);Lc.prototype.j=function(a){Sb.prototype.start.call(this,a,{op:R[this.Lb],comp:this.bg});this.Ca.j(a);this.Fa.j(a);a.end()}; +function Mc(a,b,d,m){Lc.call(this,a,b,d,m)}n(Mc,Lc);Mc.prototype.j=function(a){Lc.prototype.start.call(this,a,{op:R[this.Lb],comp:this.bg,card:"1:1"});this.Ca.j(a);this.Fa.j(a);a.end()}; +function Nc(a,b,d,m){Lc.call(this,a,b,d,m);a=Oc(a,J.B.Ng,this.ib(0));d=Oc(d,J.B.Ng,this.ib(1));var c=a.b.ea(),l=d.b.ea();var f=c.p;var k=l.p;f===k||[f,k].includes("AZ")||[f,k].includes("A")?f=!0:(/^A[ODF]/.test(f)&&(f="AO"),/^A[ODF]/.test(k)&&(k="AO"),/^A[SU]/.test(f)&&(f="AS"),/^A[SU]/.test(k)&&(k="AS"),f="E"===f||"E"===k?!0:f===k);if(!f)if(f="Cannot compare items of types "+a.b.ca.toString()+" and "+d.b.ca.toString(),/[*?]/.test(c.o)||/[*?]/.test(l.o))B.Gb("Cannot compare items of types "+a.b.ca.toString()+ +" and "+d.b.ca.toString()+": the comparison can succeed only if one of the values is an empty sequence",2);else throw new Pb(f,"XPTY0004");if(c=a.b.na===kb&&d.b.na===kb&&Ic[b])c=a.b.ca,l=d.b.ca,f=c.ea().p,k=l.ea().p,c=Kc(f)||Kc(k)?f===k:c.qg()&&l.qg()?!0:/^A[SZU]/.test(f)&&/^A[SZU]/.test(k);if(c)return new Pc(a,Ic[b],d,m);this.Ca=a;this.Fa=d}n(Nc,Mc);Nc.prototype.V="gc";function Qc(a,b,d,m){Lc.call(this,a,b,d,m)}n(Qc,Mc);Qc.prototype.V="gc10"; +function Pc(a,b,d,m,c){c=void 0===c?!0:c;Lc.call(this,a,b,d,m);var l=a.b.ca,f=d.b.ca,k=l.ea().p,r=f.ea().p;if(!("A"===k&&f.Ga()||"A"===r&&l.Ga()||""===k||""===r||l.ea().p.startsWith("AM")&&f.ea().p.startsWith("AM")||(Kc(k)||Kc(r)?k===r:Jc(l,f)||Jc(f,l))))throw new Pb("Cannot compare "+a.b.toString()+" "+R[b]+" "+d.b.toString(),"XPTY0004");a=Oc(a,J.B.Sd,this.ib(0));d=Oc(d,J.B.Sd,this.ib(1));if(51!==b&&50!==b&&/^A[QGHIJK]/.test(a.b.ca.ea().p))throw new Pb("Cannot order-compare "+a.b.toString()+" "+ +R[b]+" "+d.b.toString(),"XPTY0004");if(c){if(Ec(d)&&C.O.Ma.matches(d.value[0])&&"ADI"===a.b.ea().p)return new Rc(a,b,d,m);if(d instanceof Hc)return new Sc(a,b,d,m)}this.Ca=a;this.Fa=d}n(Pc,Lc);Pc.prototype.V="vc";function Tc(a,b,d,m){return Pc.call(this,a,b,d,m,!1)||this}n(Tc,Pc);Tc.prototype.j=function(a){Pc.prototype.start.call(this,a,{op:R[this.Lb],val:this.Fa.value[0]});this.Ca.j(a);a.end()};function Rc(a,b,d,m){return Tc.call(this,a,b,d,m)||this}n(Rc,Tc);Rc.prototype.V="compareToInt"; +function Sc(a,b,d,m){return Tc.call(this,a,b,d,m)||this}n(Sc,Tc);Sc.prototype.j=function(a){Tc.prototype.start.call(this,a,{op:R[this.Lb],val:this.Fa.value[0].toString(),comp:this.bg});this.Ca.j(a);a.end()};Sc.prototype.V="compareToString";function Uc(a,b,d,m){Lc.call(this,a,b,d,m);a=Oc(a,J.B.Oh,this.ib(0));d=Oc(d,J.B.Oh,this.ib(0));this.Ca=a;this.Fa=d;this.V=38===b?"precedes":39===b?"follows":"is"}n(Uc,Lc);Uc.prototype.j=function(a){Lc.prototype.start.call(this,a);this.Ca.j(a);this.Fa.j(a);a.end()};function Vc(a,b){W.call(this);this.En=a;this.actions=b;this.Mb=b.some(function(a){return a.Mb});var d=pb.ug(b.map(function(a){return a.b.ca})),m=rb(b.map(function(a){return a.b.na}));this.b=new J.Ka(d,m)}n(Vc,W);Vc.prototype.j=function(a){W.prototype.start.call(this,a);for(var b=0,d=sa(this.En),m=d.next();!m.done;m=d.next())m.value.j(a),this.actions[b++].j(a);a.end()};function Wc(a,b,d){a=[a,Fc([C.O.Ea.cf],J.B.ic)];return new Vc(a,[b,d])}Vc.prototype.V="choose";function Xc(a,b){return a instanceof Yc&&a.name.name.uri===F.cb&&a.name.name.local===b}function Zc(a,b){return a instanceof Pc&&a.Lb===b&&Xc(a.Ca,"position")&&Xc(a.Fa,"last")} +function $c(a,b){W.call(this);if(b){var d=Xc(b,"last")||Zc(b,50);if(d)return new ad(a);d=d||Zc(b,53);var m=b.Mb||b instanceof bd,c=b.Ed;if(!m&&c&&b.b.ia(J.B.bf))return new cd(a,b);m||(m=b.b.ca.ea().p,m="AB"===m||m.startsWith("N")?!1:"A"===m||/^A[ODF]/.test(m));this.step=a;this.b=a.b;b instanceof dd?this.b=b.type.Va(this.b.na):b instanceof Cc&&Dc(b)&&(this.b=this.b.Va(lb));m&&(this.Mb=!0);c&&(this.Ed=!0);this.Nb=d?new ed(50===b.Lb?"1":"0"):b}}n($c,W);ba=$c.prototype;ba.xf=function(){return this.step.xf()}; +ba.vd=function(){return W.prototype.vd.call(this)||this.step.vd()};ba.kb=function(){if(!this.b.ca.pg()){var a=fd("exists",this);return new bc(a)}return this.Mb&&this.step instanceof gd&&!(this.Nb instanceof ed)?new gc(this.step,this.Nb):this.Mb?new fc(this.eg()):new dc(this.step.kb(),this.Nb)};ba.eg=function(){if(this.step instanceof hd)return this.Nb;this.step=this.step instanceof gd?id(new hd,this.step):this.step.eg();return this}; +ba.j=function(a){W.prototype.start.call(this,a);var b="";this.Ed&&(b+="i");this.Mb&&(b+="p");""!==b&&a.Re("flags",b);this.step.j(a);this.Nb.j(a);a.end()};ba.V="filter";function cd(a,b){var d=$c.call(this,a,null)||this;if(Ec(b)&&C.O.Ma.matches(b.value[0])&&1===b.value[0].value)return new jd(a);d.step=a;d.b=a.b.Va(lb);d.Nb=b;d.Mb=!0;return d}n(cd,$c); +cd.prototype.kb=function(){return this.step instanceof hd?new ac("Numeric predicates other than 1 in PredicatePatterns never match. Value provided:"+this.Nb.value.value):this.step instanceof gd?new hc(this.step.b,this.Nb.value[0].value):new fc(this.eg())};cd.prototype.V="subscript";function jd(a){var b=cd.call(this,a,null)||this;b.step=a;b.Mb=!0;b.b=a.b.Va(lb);return b}n(jd,cd); +jd.prototype.kb=function(){return this.b.ca.pg()?this.step instanceof gd?new fc(new jd(id(new hd,this.step))):new fc(this.eg()):new bc(this)};jd.prototype.j=function(a){cd.prototype.start.call(this,a);this.step.j(a);a.end()};jd.prototype.V="first";function ad(a){var b=cd.call(this,a,null)||this;b.step=a;b.Mb=!0;b.b=a.b.Va(lb);return b}n(ad,cd); +ad.prototype.kb=function(){if(!(this.step instanceof gd))return new fc(this.eg());if(3===this.step.axis){var a=new gd(7,this.step.Nb);return new dc(this.step.kb(),fd("empty",[a]))}return new hc(this.step.b,1)};ad.prototype.j=function(a){cd.prototype.start.call(this,a);this.step.j(a);a.end()};ad.prototype.V="lastOf";function ed(a){a=void 0===a?"1":a;W.call(this);this.test=a;this.b=J.B.ic}n(ed,W);ed.prototype.j=function(a){this.Ub(a,{test:this.test})};ed.prototype.V="isLast";function kd(){W.call(this);this.action=this.value=this.Qd=this.Nc=null;this.slot=0}n(kd,W);ba=kd.prototype;ba.Bh=function(a){this.Nc=a};ba.hg=function(){return this.Nc};ba.Ue=function(a){this.action=a;this.b=a.b};ba.Si=function(){};ba.Eg=function(a){this.value=a;this.Qd=a.b};ba.j=function(a){W.prototype.start.call(this,a,{name:this.Nc.ha(),slot:this.slot});this.value.j(a);this.action.j(a);a.end()};function ld(){kd.call(this)}n(ld,kd); +ld.prototype.Eg=function(a){this.value=a;this.Qd=a.b.Va(kb);this.action&&(this.b=this.action.b.Fi(a.b.na))};ld.prototype.Ue=function(a){this.action=a;this.value&&(this.b=a.b.Fi(this.value.b.na))};ld.prototype.V="for";function md(){kd.call(this)}n(md,kd);md.prototype.V="let";function nd(a,b){Sb.call(this,a,null,b);this.b=J.B.ic}n(nd,Sb);function od(a,b){nd.call(this,a,b)}n(od,nd);od.prototype.V="and";function pd(a,b){nd.call(this,a,b)}n(pd,nd);pd.prototype.V="or";function qd(a){return Ec(a)&&C.O.Ma.matches(a.value[0])&&1E7>a.value[0].value}function rd(a,b,d){d=void 0===d?!1:d;Sb.call(this,a,null,b);d&&(a=sd(a),b=sd(b));a=Oc(a,J.B.Ek,this.ib(0));b=Oc(b,J.B.Ek,this.ib(1));if(qd(a)&&qd(b))return new td(a.value[0],b.value[0]);this.Ca=a;this.Fa=b;this.b=J.B.gj}n(rd,Sb);rd.prototype.V="to";function td(a,b){W.call(this);if(a.value>b.value)return Gc();if(a.value===b.value)return new Cc([a],J.B.gj);this.from=a;this.Np=b;this.b=J.B.gj}n(td,W); +td.prototype.j=function(a){W.prototype.Ub.call(this,a,{from:this.from,to:this.Np})};td.prototype.V="range";function ud(a,b){W.call(this);this.bb=a;this.next=b;this.b=b.b.Fi(a.b.na)}n(ud,W);ud.prototype.j=function(a){W.prototype.start.call(this,a);this.bb.j(a);this.next.j(a);a.end()};ud.prototype.V="forEach";var vd="array attribute comment document-node element empty-sequence function if item map namespace-node node processing-instruction schema-attribute schema-element switch text typeswitch".split(" ");function wd(a,b){if(""===a.prefix&&vd.includes(a.local))throw new Pb("The unprefixed function name '"+a.local+"' is reserved","XPST0003");this.name=a;this.arity=b}wd.prototype.ha=function(){return this.name.ha()};wd.prototype.toString=function(){return this.name.ha()+"#"+this.arity};var xd={array:"http://www.w3.org/2005/xpath-functions/array",fn:"http://www.w3.org/2005/xpath-functions",map:"http://www.w3.org/2005/xpath-functions/map",math:"http://www.w3.org/2005/xpath-functions/math",saxon:"http://saxon.sf.net/",xml:"http://www.w3.org/XML/1998/namespace",xs:"http://www.w3.org/2001/XMLSchema",xsl:"http://www.w3.org/1999/XSL/Transform"},yd={},zd;for(zd in xd)yd[xd[zd]]=zd;function Ad(a,b,d,m){W.call(this);this.name=C.O.X.xa(yd[d],d,a);this.arity=b;this.uri=d;this.b=J.B.mj;this.resultType=m}n(Ad,W); +function Bd(a,b){var d=new wd(a.name,a.arity),m=J.B.Qa;switch(a.uri){case F.map:m=J.B.Kk;switch(a.name.local){case "get":m=b[0].b.valueType;break;case "merge":m=J.B.Kk;break;case "entry":m=J.ad(new I.oj(b[0].b,b[1].b))}return new Cd(d,b,m);case F.kf:switch(a.name.local){case "_from-sequence":m=J.ad(new I.nj(b[0].b),kb)}return new Dd(d,b,m);case F.Jc:switch(a.name.local){case "apply":m=b[0].b,m=m.ca?m.ca:m,m=m.resultType?m.resultType:J.B.Qa}return new Ed(d,b,m)}}Ad.prototype.V="function"; +function Fd(){}Fd.prototype.uri=F.cb;function Gd(a,b,d){return new Ad(b,d,a.uri,J.B.Qa)}function Hd(){}n(Hd,Fd);Hd.prototype.uri=F.map;var Id=new Hd;function Jd(){}n(Jd,Fd);Jd.prototype.uri=F.kf;var Kd=new Jd;function Ld(){}n(Ld,Fd);Ld.prototype.uri=F.Jc;function Md(){}n(Md,Ld);var Nd=new Md;function Od(a,b,d,m,c){c=void 0===c?{}:c;B.assert(b);B.assert(b instanceof J.Ka);B.assert(a.b);B.assert(a.b instanceof J.Ka);var l=b.ea(),f=a,k,r=b.ca,v=b.na,w=ib(v),z=null,t=-1,g=v===jb;g||(t=a.b.na,g=(v|t)===v);l=""===l.p;v===hb&&(l=!0);l||(z=a.b.ca,t=a.b.na,l=pb.Zc(r,z),l===pb.wd&&(l=z===I.pe.pa?pb.Ud:r===I.pe.pa?pb.gd:l),l=l===pb.Dc||l===pb.gd);if(l&&g)return f;if(c.kd&&!w&&(ib(t)&&(f=k=new jd(f),t=lb,g=(v|t)===v),!l)){if(r.Ga("AS")){try{k=Od(f,J.B.Fk,d,m)}catch(K){throw K;}f=fd("string",k);z= +I.Lk;t=kb;f.b=J.B.Td;g=(v|t)===v;l=!0}if(r.Ge()||r.Ga("AO")){try{k=Od(f,J.B.Fk,d,m)}catch(K){throw K;}f=fd("number",k);z=I.af;t=kb;f.b=J.B.Qh;g=(v|t)===v;l=!0}}if(!l)if(r.Ga()){if(!z.Ga()&&t!==hb){if(!z.Ao)throw b=new q("An atomic value is required for the "+d.gg()+", but the supplied value (type "+z.toString()+") cannot be atomized","error()"===z.name?"FOER0000":"FOTY0013",a),b;z=!ib(t);t=!ib(v);k=z?new Pd(f,m,gb(v)):new Qd(f,m);t&&!z&&(k=Rd(k,v,m));f=k;z=f.b.ca;t=f.b.na;g=(v|t)===v}z.Ga("AZ")&& +(r.Ge()||!r.Ga("AZ")&&"A"!==r.ea().p)&&(f=k=Sd(f,r,m),l=!0,z=r);"A"!==z.va()||["A","AZ"].includes(r.va())||(f=k=Sd(f,r,m),z=f.b.ca);r.Ga()&&(r.Ga("AO")&&pb.Zc(z,I.Nh.pa)!==pb.wd?(f=k=new Td(f,J.B.Qh,m),z=I.Jb.af,t=-1):r.Ga("AF")&&pb.Zc(z,I.Nh.pa)!==pb.wd&&!pb.Ko(z,I.Jb.af)&&(f=k=new Td(f,J.B.bn,m),z=I.Jb.FLOAT,t=-1),r.Ga("AS")&&z.Ga("AU")&&(l=!0,f=k=new Td(f,J.B.Td,m),z=I.Jb.Lk))}else r.ng()&&"F"===r.ea().p&&(z.ng()||(f=new Ud(f,I.Xe.pa,m),z=I.Xe.pa),r instanceof I.Xe||(k=z.ea(),("FM"===k.p||"FA"=== +k.p)&&1===r.wf().length)||(f=new Vd(f,J.ad(r),m)),l=!0);if(l&&g)return f;-1===t&&(t=f.b.na,g||(g=(v|t)===v));if(g&&t===hb)return f;if(t===hb&&!gb(v))throw b=new q("An empty sequence is not allowed as the "+d.gg(),d.eh()),b;l=l?pb.Ud:pb.Zc(z,r);l===pb.wd&&(l=z===I.pe.pa?pb.gd:r===I.pe.pa?pb.Ud:l);v===hb&&(l=pb.Dc);if(l===pb.wd)if(gb(t)&&gb(v))t!==hb&&(k=d.Bj(r,z),B.Gb(k+". The expression can succeed only if the supplied value is an empty sequence.",1));else throw k=d.Bj(r,z),b=new q(k,"error()"=== +z.name?"FOER0000":d.eh()),b;if(l!==pb.Dc&&l!==pb.Ud){if(f.Go){m=C.O.T.g(f.getAttribute("val"));if(b.Ga&&b.matches(m))return f;k=d.Bj(r,z);b=new q(k,d.eh());throw b;}f=k=Wd(f,new J.Ka(r,v),m);g=!0}if(!g){if(f.Go)throw b=new q("Required cardinality of "+d.gg()+" is "+eb(v)+"; supplied value has cardinality "+eb(t),d.eh()),b;f=k=Rd(f,v,m)}return f}function Sd(a,b,d){b=b.Ge()?"AO":b.ea().p;return new Xd(a,b,d)};var ce={wr:{QuantifiedExpr:"1AB",OrExpr:"1AB",AndExpr:"1AB",ComparisonExpr:"1AB",StringConcatExpr:"1AS",RangeExpr:"*ADI",AdditiveExpr:"?A",MultiplicativeExpr:"?A",IntersectExceptExpr:"*N",InstanceOfExpr:"1AB",CastableExpr:"1AB",UnaryExpr:"?A m[UO,UD,UF]",StringLiteral:"1AS",IntegerLiteral:"1ADI",DecimalLiteral:"1AD",DoubleLiteral:"1AO",NamedFunctionRef:"1F",InlineFunctionExpr:"1F",MapExpr:"1FM",Root:"1ND"},Vp:{"http://www.w3.org/2005/xpath-functions":{QName:{argNames:"paramURI,paramQName",maxArgs:2, +minArgs:2,sig:"1F r[1AQ] a[?AS,1AS]"},abs:{argNames:"arg",maxArgs:1,minArgs:1,sig:"1F r[?A m[AO,AD,AF]] a[?A m[AO,AD,AF]]"},"accumulator-after":{XSLTonly:!0,argNames:"name",maxArgs:1,minArgs:1,sig:"1F a[1AS] r[*]"},"accumulator-before":{XSLTonly:!0,argNames:"name",maxArgs:1,minArgs:1,sig:"1F a[1AS] r[*]"},"adjust-date-to-timezone":{argNames:"arg,timezone",maxArgs:2,minArgs:1,sig:"1F r[?AA] a[?AA,?ARD]"},"adjust-dateTime-to-timezone":{argNames:"arg,timezone",maxArgs:2,minArgs:1,sig:"1F r[?AM] a[?AM,?ARD]"}, +"adjust-time-to-timezone":{argNames:"arg,timezone",maxArgs:2,minArgs:1,sig:"1F r[?AT] a[?AT,?ARD]"},"analyze-string":{argNames:"input,pattern,flags",maxArgs:3,minArgs:2,sig:"1F r[1NE nQ{http://www.w3.org/2005/xpath-functions}analyze-string-result] a[?AS,1AS,1AS]"},apply:{argNames:"function,array",maxArgs:2,minArgs:2,sig:"1F a[1F,1FA] r[*]"},"available-environment-variables":{argNames:"",maxArgs:0,minArgs:0,sig:"1F r[*AS] a[]"},"available-system-properties":{XSLTonly:!0,argNames:"",maxArgs:0,minArgs:0, +sig:"1F r[*AQ] a[]"},avg:{argNames:"arg",maxArgs:1,minArgs:1,sig:"1F r[?A] a[*A]"},"base-uri":{argNames:"arg",defaultToDot:!0,maxArgs:1,minArgs:0,sig:"1F r[?AU] a[?N]"},"boolean":{argNames:"arg",maxArgs:1,minArgs:1,sig:"1F r[1AB] a[*]"},ceiling:{argNames:"arg",maxArgs:1,minArgs:1,sig:"1F r[?A m[AO,AD,AF]] a[?A m[AO,AD,AF]]"},"codepoint-equal":{argNames:"comparand1,comparand2",maxArgs:2,minArgs:2,sig:"1F r[?AB] a[?AS,?AS]"},"codepoints-to-string":{argNames:"arg",maxArgs:1,minArgs:1,sig:"1F r[1AS] a[*ADI]"}, +"collation-key":{argNames:"key,collation",maxArgs:2,minArgs:1,sig:"1F r[1A2] a[1AS,1AS]"},collection:{argNames:"arg",maxArgs:1,minArgs:0,sig:"1F a[?AS] r[*]"},compare:{argNames:"comparand1,comparand2,collation",maxArgs:3,minArgs:2,sig:"1F r[?ADI] a[?AS,?AS,1AS]"},concat:{argNames:"arg1,arg2,...",maxArgs:1E3,minArgs:2,sig:"1F r[1AS] a[?A,?A,?A]",variadic:!0},contains:{argNames:"arg1,arg2,collation",maxArgs:3,minArgs:2,sig:"1F r[1AB] a[?AS,?AS,1AS]"},"contains-token":{argNames:"input,token,collation", +maxArgs:3,minArgs:2,sig:"1F r[1AB] a[*AS,1AS,1AS]"},"copy-of":{XSLTonly:!0,argNames:"input",defaultToDot:!0,maxArgs:1,minArgs:0,sig:"1F a[*] r[*]"},count:{argNames:"arg",maxArgs:1,minArgs:1,sig:"1F r[1ADI] a[*]"},current:{XSLTonly:!0,argNames:"",maxArgs:0,minArgs:0,sig:"1F r[1] a[]"},"current-date":{argNames:"",maxArgs:0,minArgs:0,sig:"1F r[1AA] a[]"},"current-dateTime":{argNames:"",maxArgs:0,minArgs:0,sig:"1F r[1AMP] a[]"},"current-group":{XSLTonly:!0,argNames:"",maxArgs:0,minArgs:0,sig:"1F a[] r[*]"}, +"current-grouping-key":{XSLTonly:!0,argNames:"",maxArgs:0,minArgs:0,sig:"1F r[*A] a[]"},"current-merge-group":{XSLTonly:!0,argNames:"source",maxArgs:1,minArgs:0,sig:"1F a[1AS] r[*]"},"current-merge-key":{XSLTonly:!0,argNames:"",maxArgs:0,minArgs:0,sig:"1F r[*A] a[]"},"current-output-uri":{XSLTonly:!0,argNames:"",maxArgs:0,minArgs:0,sig:"1F r[?AU] a[]"},"current-time":{argNames:"",maxArgs:0,minArgs:0,sig:"1F r[1AT] a[]"},data:{argNames:"arg",defaultToDot:!0,maxArgs:1,minArgs:0,sig:"1F r[*A] a[*]"}, +dateTime:{argNames:"arg1,arg2",maxArgs:2,minArgs:2,sig:"1F r[?AM] a[?AA,?AT]"},"day-from-date":{argNames:"arg",maxArgs:1,minArgs:1,sig:"1F r[?ADI] a[?AA]"},"day-from-dateTime":{argNames:"arg",maxArgs:1,minArgs:1,sig:"1F r[?ADI] a[?AM]"},"days-from-duration":{argNames:"arg",maxArgs:1,minArgs:1,sig:"1F r[?ADI] a[?AR]"},"deep-equal":{argNames:"parameter1,parameter2,collation",maxArgs:3,minArgs:2,sig:"1F r[1AB] a[*,*,1AS]"},"default-collation":{argNames:"",maxArgs:0,minArgs:0,sig:"1F r[1AS] a[]"},"default-language":{argNames:"", +maxArgs:0,minArgs:0,sig:"1F r[1ASNTL] a[]"},"distinct-values":{argNames:"arg,collation",maxArgs:2,minArgs:1,sig:"1F r[*A] a[*A,1AS]"},doc:{argNames:"uri",maxArgs:1,minArgs:1,sig:"1F r[?ND] a[?AS]"},"doc-available":{argNames:"uri",maxArgs:1,minArgs:1,sig:"1F r[1AB] a[?AS]"},document:{XSLTonly:!0,argNames:"uri-sequence,base-node",maxArgs:2,minArgs:1,sig:"1F r[*N] a[*,1N]"},"document-uri":{argNames:"arg",defaultToDot:!0,maxArgs:1,minArgs:0,sig:"1F r[?AU] a[?N]"},"element-available":{XSLTonly:!0,argNames:"element-name", +maxArgs:1,minArgs:1,sig:"1F r[1AB] a[1AS]"},"element-with-id":{argNames:"arg,node",defaultToDot:!0,maxArgs:2,minArgs:1,sig:"1F r[*NE] a[*AS,1N]"},empty:{argNames:"arg",maxArgs:1,minArgs:1,sig:"1F r[1AB] a[*]"},"encode-for-uri":{argNames:"uri-part",maxArgs:1,minArgs:1,sig:"1F r[1AS] a[?AS]"},"ends-with":{argNames:"arg1,arg2,collation",maxArgs:3,minArgs:2,sig:"1F r[1AB] a[?AS,?AS,1AS]"},"environment-variable":{argNames:"name",maxArgs:1,minArgs:1,sig:"1F r[?AS] a[1AS]"},error:{argNames:"code,description,error-object", +maxArgs:3,minArgs:0,sig:"1F r[0E] a[?AQ,1AS,*]"},"escape-html-uri":{argNames:"uri",maxArgs:1,minArgs:1,sig:"1F r[1AS] a[?AS]"},"exactly-one":{argNames:"arg",maxArgs:1,minArgs:1,sig:"1F r[1] a[*]"},exists:{argNames:"arg",maxArgs:1,minArgs:1,sig:"1F r[1AB] a[*]"},"false":{argNames:"",maxArgs:0,minArgs:0,sig:"1F r[1AB] a[]"},filter:{argNames:"seq,f",maxArgs:2,minArgs:2,sig:"1F r[*] a[*,1F r[1AB] a[1]]"},floor:{argNames:"arg",maxArgs:1,minArgs:1,sig:"1F r[?A m[AO,AD,AF]] a[?A m[AO,AD,AF]]"},"fold-left":{argNames:"seq,zero,f", +maxArgs:3,minArgs:3,sig:"1F a[*,*,1F a[*,1] r[*]] r[*]"},"fold-right":{argNames:"seq,zero,f",maxArgs:3,minArgs:3,sig:"1F a[*,*,1F a[1,*] r[*]] r[*]"},"for-each":{argNames:"seq,action",maxArgs:2,minArgs:2,sig:"1F a[*,1F a[1] r[*]] r[*]"},"for-each-pair":{argNames:"seq1,seq2,action",maxArgs:3,minArgs:3,sig:"1F a[*,*,1F a[1,1] r[*]] r[*]"},"format-date":{argNames:"value,picture,language,calendar,place",maxArgs:5,minArgs:2,sig:"1F r[?AS] a[?AA,1AS,?AS,?AS,?AS]"},"format-dateTime":{argNames:"value,picture,language,calendar,place", +maxArgs:5,minArgs:2,sig:"1F r[?AS] a[?AM,1AS,?AS,?AS,?AS]"},"format-integer":{argNames:"value,picture,lang",maxArgs:3,minArgs:2,sig:"1F r[1AS] a[?ADI,1AS,?AS]"},"format-number":{argNames:"value,picture,decimal-format-name",maxArgs:3,minArgs:2,sig:"1F r[1AS] a[?A m[AO,AD,AF],1AS,?AS]"},"format-time":{argNames:"value,picture,language,calendar,place",maxArgs:5,minArgs:2,sig:"1F r[?AS] a[?AT,1AS,?AS,?AS,?AS]"},"function-arity":{argNames:"func",maxArgs:1,minArgs:1,sig:"1F r[1ADI] a[1F]"},"function-available":{XSLTonly:!0, +argNames:"function-name,arity",maxArgs:2,minArgs:1,sig:"1F r[1AB] a[1AS,1ADI]"},"function-lookup":{argNames:"name,arity",maxArgs:2,minArgs:2,sig:"1F r[?F] a[1AQ,1ADI]"},"function-name":{argNames:"func",maxArgs:1,minArgs:1,sig:"1F r[?AQ] a[1F]"},"generate-id":{argNames:"arg",defaultToDot:!0,maxArgs:1,minArgs:0,sig:"1F r[1AS] a[?N]"},"has-children":{argNames:"node",defaultToDot:!0,maxArgs:1,minArgs:0,sig:"1F r[1AB] a[?N]"},head:{argNames:"arg",maxArgs:1,minArgs:1,sig:"1F r[?] a[*]"},"hours-from-dateTime":{argNames:"arg", +maxArgs:1,minArgs:1,sig:"1F r[?ADI] a[?AM]"},"hours-from-duration":{argNames:"arg",maxArgs:1,minArgs:1,sig:"1F r[?ADI] a[?AR]"},"hours-from-time":{argNames:"arg",maxArgs:1,minArgs:1,sig:"1F r[?ADI] a[?AT]"},id:{argNames:"arg,node",defaultToDot:!0,maxArgs:2,minArgs:1,sig:"1F r[*NE] a[*AS,1N]"},idref:{argNames:"arg,node",defaultToDot:!0,maxArgs:2,minArgs:1,sig:"1F r[*N] a[*AS,1N]"},"implicit-timezone":{argNames:"",maxArgs:0,minArgs:0,sig:"1F r[1ARD] a[]"},"in-scope-prefixes":{argNames:"element",maxArgs:1, +minArgs:1,sig:"1F r[*AS] a[1NE]"},"index-of":{argNames:"seq,search,collation",maxArgs:3,minArgs:2,sig:"1F r[*ADI] a[*A,1A,1AS]"},innermost:{argNames:"nodes",maxArgs:1,minArgs:1,sig:"1F r[*N] a[*N]"},"insert-before":{argNames:"target,position,inserts",maxArgs:3,minArgs:3,sig:"1F a[*,1ADI,*] r[*]"},"iri-to-uri":{argNames:"iri",maxArgs:1,minArgs:1,sig:"1F r[1AS] a[?AS]"},"json-doc":{argNames:"href,options",maxArgs:2,minArgs:1,sig:"1F r[?] a[?AS,1FM]"},"json-to-xml":{argNames:"json-text,options",maxArgs:2, +minArgs:1,sig:"1F r[?ND] a[?AS,1FM]"},key:{XSLTonly:!0,argNames:"key-name,key-value,top",maxArgs:3,minArgs:2,sig:"1F r[*N] a[1AS,*A,1N]"},lang:{argNames:"testlang,node",defaultToDot:!0,maxArgs:2,minArgs:1,sig:"1F r[1AB] a[?AS,1N]"},last:{argNames:"",maxArgs:0,minArgs:0,sig:"1F r[1ADI] a[]"},"load-xquery-module":{argNames:"module-uri,options",maxArgs:2,minArgs:1,sig:"1F r[1FM] a[1AS,1FM]"},"local-name":{argNames:"arg",defaultToDot:!0,maxArgs:1,minArgs:0,sig:"1F r[1AS] a[?N]"},"local-name-from-QName":{argNames:"arg", +maxArgs:1,minArgs:1,sig:"1F r[?ASNTNC] a[?AQ]"},"lower-case":{argNames:"arg",maxArgs:1,minArgs:1,sig:"1F r[1AS] a[?AS]"},matches:{argNames:"input,pattern,flags",maxArgs:3,minArgs:2,sig:"1F r[1AB] a[?AS,1AS,1AS]"},max:{argNames:"arg,collation",maxArgs:2,minArgs:1,sig:"1F r[?A] a[*A,1AS]"},min:{argNames:"arg,collation",maxArgs:2,minArgs:1,sig:"1F r[?A] a[*A,1AS]"},"minutes-from-dateTime":{argNames:"arg",maxArgs:1,minArgs:1,sig:"1F r[?ADI] a[?AM]"},"minutes-from-duration":{argNames:"arg",maxArgs:1,minArgs:1, +sig:"1F r[?ADI] a[?AR]"},"minutes-from-time":{argNames:"arg",maxArgs:1,minArgs:1,sig:"1F r[?ADI] a[?AT]"},"month-from-date":{argNames:"arg",maxArgs:1,minArgs:1,sig:"1F r[?ADI] a[?AA]"},"month-from-dateTime":{argNames:"arg",maxArgs:1,minArgs:1,sig:"1F r[?ADI] a[?AM]"},"months-from-duration":{argNames:"arg",maxArgs:1,minArgs:1,sig:"1F r[?ADI] a[?AR]"},name:{argNames:"arg",defaultToDot:!0,maxArgs:1,minArgs:0,sig:"1F r[1AS] a[?N]"},"namespace-uri":{argNames:"arg",defaultToDot:!0,maxArgs:1,minArgs:0,sig:"1F r[1AU] a[?N]"}, +"namespace-uri-for-prefix":{argNames:"prefix,element",maxArgs:2,minArgs:2,sig:"1F r[?AU] a[?AS,1NE]"},"namespace-uri-from-QName":{argNames:"arg",maxArgs:1,minArgs:1,sig:"1F r[?AU] a[?AQ]"},nilled:{argNames:"arg",defaultToDot:!0,maxArgs:1,minArgs:0,sig:"1F r[?AB] a[?N]"},"node-name":{argNames:"arg",defaultToDot:!0,maxArgs:1,minArgs:0,sig:"1F r[?AQ] a[?N]"},"normalize-space":{argNames:"arg",maxArgs:1,minArgs:0,sig:"1F r[1AS] a[?AS]"},"normalize-unicode":{argNames:"arg,normalizationForm",maxArgs:2,minArgs:1, +sig:"1F r[1AS] a[?AS,1AS]"},not:{argNames:"arg",maxArgs:1,minArgs:1,sig:"1F r[1AB] a[*]"},number:{argNames:"arg",defaultToDot:!0,maxArgs:1,minArgs:0,sig:"1F r[1AO] a[?A]"},"one-or-more":{argNames:"arg",maxArgs:1,minArgs:1,sig:"1F r[+] a[*]"},outermost:{argNames:"nodes",maxArgs:1,minArgs:1,sig:"1F r[*N] a[*N]"},"parse-ietf-date":{argNames:"value",maxArgs:1,minArgs:1,sig:"1F r[?AM] a[?AS]"},"parse-json":{argNames:"json-text,options",maxArgs:2,minArgs:1,sig:"1F r[?] a[?AS,1FM]"},"parse-xml":{argNames:"arg", +maxArgs:1,minArgs:1,sig:"1F r[?ND e[NE]] a[?AS]"},"parse-xml-fragment":{argNames:"arg",maxArgs:1,minArgs:1,sig:"1F r[?ND] a[?AS]"},path:{argNames:"arg",defaultToDot:!0,maxArgs:1,minArgs:0,sig:"1F r[?AS] a[?N]"},position:{argNames:"",maxArgs:0,minArgs:0,sig:"1F r[1ADI] a[]"},"prefix-from-QName":{argNames:"arg",maxArgs:1,minArgs:1,sig:"1F r[?ASNTNC] a[?AQ]"},"random-number-generator":{argNames:"seed",maxArgs:1,minArgs:0,sig:"1F r[1FM k[AS] v[1]] a[?A]"},"regex-group":{XSLTonly:!0,argNames:"group-number", +maxArgs:1,minArgs:1,sig:"1F r[1AS] a[1ADI]"},remove:{argNames:"target,position",maxArgs:2,minArgs:2,sig:"1F r[*] a[*,1ADI]"},replace:{argNames:"input,pattern,replacement,flags",maxArgs:4,minArgs:3,sig:"1F r[1AS] a[?AS,1AS,1AS,1AS]"},"resolve-QName":{argNames:"qname,element",maxArgs:2,minArgs:2,sig:"1F r[?AQ] a[?AS,1NE]"},"resolve-uri":{argNames:"relative,base",maxArgs:2,minArgs:1,sig:"1F r[?AU] a[?AS,1AS]"},reverse:{argNames:"arg",maxArgs:1,minArgs:1,sig:"1F a[*] r[*]"},root:{argNames:"arg",defaultToDot:!0, +maxArgs:1,minArgs:0,sig:"1F r[?N] a[?N]"},round:{argNames:"arg,precision",maxArgs:2,minArgs:1,sig:"1F r[?A m[AO,AD,AF]] a[?A m[AO,AD,AF],1ADI]"},"round-half-to-even":{argNames:"arg,precision",maxArgs:2,minArgs:1,sig:"1F r[?A m[AO,AD,AF]] a[?A m[AO,AD,AF],1ADI]"},"seconds-from-dateTime":{argNames:"arg",maxArgs:1,minArgs:1,sig:"1F r[?AD] a[?AM]"},"seconds-from-duration":{argNames:"arg",maxArgs:1,minArgs:1,sig:"1F r[?AD] a[?AR]"},"seconds-from-time":{argNames:"arg",maxArgs:1,minArgs:1,sig:"1F r[?AD] a[?AT]"}, +serialize:{argNames:"arg,params",maxArgs:2,minArgs:1,sig:"1F r[1AS] a[*,?]"},snapshot:{XSLTonly:!0,argNames:"input",defaultToDot:!0,maxArgs:1,minArgs:0,sig:"1F a[*] r[*]"},sort:{argNames:"input,collation,key",maxArgs:3,minArgs:1,sig:"1F r[*] a[*,?AS,1F r[*A] a[1]]"},"starts-with":{argNames:"arg1,arg2,collation",maxArgs:3,minArgs:2,sig:"1F r[1AB] a[?AS,?AS,1AS]"},"static-base-uri":{argNames:"",maxArgs:0,minArgs:0,sig:"1F r[?AU] a[]"},"stream-available":{XSLTonly:!0,argNames:"uri",maxArgs:1,minArgs:1, +sig:"1F r[1AB] a[?AS]"},string:{argNames:"arg",defaultToDot:!0,maxArgs:1,minArgs:0,sig:"1F r[1AS] a[?]"},"string-join":{argNames:"arg1,arg2",maxArgs:2,minArgs:1,sig:"1F r[1AS] a[*A,1AS]"},"string-length":{argNames:"arg",maxArgs:1,minArgs:0,sig:"1F r[1ADI] a[?AS]"},"string-to-codepoints":{argNames:"arg",maxArgs:1,minArgs:1,sig:"1F r[*ADI] a[?AS]"},subsequence:{argNames:"sourceSeq,startingLoc,length",maxArgs:3,minArgs:2,sig:"1F a[*,1AO,1AO] r[*]"},substring:{argNames:"sourceString,start,length",maxArgs:3, +minArgs:2,sig:"1F r[1AS] a[?AS,1AO,1AO]"},"substring-after":{argNames:"arg1,arg2,collation",maxArgs:3,minArgs:2,sig:"1F r[1AS] a[?AS,?AS,1AS]"},"substring-before":{argNames:"arg1,arg2,collation",maxArgs:3,minArgs:2,sig:"1F r[1AS] a[?AS,?AS,1AS]"},sum:{argNames:"arg,zero",maxArgs:2,minArgs:1,sig:"1F r[?A] a[*A,?A]"},"system-property":{XSLTonly:!0,argNames:"property-name",maxArgs:1,minArgs:1,sig:"1F r[1AS] a[1AS]"},tail:{argNames:"arg",maxArgs:1,minArgs:1,sig:"1F a[*] r[*]"},"timezone-from-date":{argNames:"arg", +maxArgs:1,minArgs:1,sig:"1F r[?ARD] a[?AA]"},"timezone-from-dateTime":{argNames:"arg",maxArgs:1,minArgs:1,sig:"1F r[?ARD] a[?AM]"},"timezone-from-time":{argNames:"arg",maxArgs:1,minArgs:1,sig:"1F r[?ARD] a[?AT]"},tokenize:{argNames:"input,pattern,flags",maxArgs:3,minArgs:1,sig:"1F r[*AS] a[?AS,1AS,1AS]"},trace:{argNames:"value,label",maxArgs:2,minArgs:1,sig:"1F a[*,1AS] r[*]"},transform:{argNames:"options",maxArgs:1,minArgs:1,sig:"1F r[1FM] a[1FM]"},translate:{argNames:"arg,mapString,transString", +maxArgs:3,minArgs:3,sig:"1F r[1AS] a[?AS,1AS,1AS]"},"true":{argNames:"",maxArgs:0,minArgs:0,sig:"1F r[1AB] a[]"},"type-available":{XSLTonly:!0,argNames:"type-name",maxArgs:1,minArgs:1,sig:"1F r[1AB] a[1AS]"},unordered:{argNames:"sourceSeq",maxArgs:1,minArgs:1,sig:"1F r[*] a[*]"},"unparsed-entity-public-id":{XSLTonly:!0,argNames:"entity-name,doc",maxArgs:2,minArgs:1,sig:"1F r[1AS] a[1AS,1N]"},"unparsed-entity-uri":{XSLTonly:!0,argNames:"entity-name,doc",maxArgs:2,minArgs:1,sig:"1F r[1AU] a[1AS,1N]"}, +"unparsed-text":{argNames:"href,encoding",maxArgs:2,minArgs:1,sig:"1F r[?AS] a[?AS,1AS]"},"unparsed-text-available":{argNames:"href,encoding",maxArgs:2,minArgs:1,sig:"1F r[1AB] a[?AS,1AS]"},"unparsed-text-lines":{argNames:"href,encoding",maxArgs:2,minArgs:1,sig:"1F r[*AS] a[?AS,1AS]"},"upper-case":{argNames:"arg",maxArgs:1,minArgs:1,sig:"1F r[1AS] a[?AS]"},"uri-collection":{argNames:"arg",maxArgs:1,minArgs:0,sig:"1F r[*AU] a[?AS]"},"xml-to-json":{argNames:"input,options",maxArgs:2,minArgs:1,sig:"1F r[?AS] a[?N,1FM]"}, +"year-from-date":{argNames:"arg",maxArgs:1,minArgs:1,sig:"1F r[?ADI] a[?AA]"},"year-from-dateTime":{argNames:"arg",maxArgs:1,minArgs:1,sig:"1F r[?ADI] a[?AM]"},"years-from-duration":{argNames:"arg",maxArgs:1,minArgs:1,sig:"1F r[?ADI] a[?AR]"},"zero-or-one":{argNames:"arg",maxArgs:1,minArgs:1,sig:"1F r[?] a[*]"}},"http://www.w3.org/2005/xpath-functions/array":{append:{argNames:"array,appendage",maxArgs:2,minArgs:2,sig:"1F r[1FA] a[1FA,*]"},filter:{argNames:"array,function",maxArgs:2,minArgs:2,sig:"1F r[1FA] a[1FA,1F r[1AB] a[*]]"}, +flatten:{argNames:"input",maxArgs:1,minArgs:1,sig:"1F a[*] r[*]"},"fold-left":{argNames:"array,zero,function",maxArgs:3,minArgs:3,sig:"1F a[1FA,*,1F a[*,*]] r[*]"},"fold-right":{argNames:"array,zero,function",maxArgs:3,minArgs:3,sig:"1F a[1FA,*,1F a[*,*]] r[*]"},"for-each":{argNames:"array,action",maxArgs:2,minArgs:2,sig:"1F r[1FA] a[1FA,1F a[*]]"},"for-each-pair":{argNames:"array1,array2,function",maxArgs:3,minArgs:3,sig:"1F r[1FA] a[1FA,1FA,1F a[*,*]]"},get:{argNames:"array,position",maxArgs:2, +minArgs:2,sig:"1F a[1FA,1ADI] r[*]"},head:{argNames:"array",maxArgs:1,minArgs:1,sig:"1F a[1FA] r[*]"},"insert-before":{argNames:"array,position,member",maxArgs:3,minArgs:3,sig:"1F r[1FA] a[1FA,1ADI,*]"},join:{argNames:"arrays",maxArgs:1,minArgs:1,sig:"1F r[1FA] a[*FA]"},put:{argNames:"array,position,member",maxArgs:3,minArgs:3,sig:"1F r[1FA] a[1FA,1ADI,*]"},remove:{argNames:"array,positions",maxArgs:2,minArgs:2,sig:"1F r[1FA] a[1FA,*ADI]"},reverse:{argNames:"array",maxArgs:1,minArgs:1,sig:"1F r[1FA] a[1FA]"}, +size:{argNames:"array",maxArgs:1,minArgs:1,sig:"1F r[1ADI] a[1FA]"},sort:{argNames:"array,collation,key",maxArgs:3,minArgs:1,sig:"1F r[1FA] a[1FA,?AS,1F r[*A] a[*]]"},subarray:{argNames:"array,start,length",maxArgs:3,minArgs:2,sig:"1F r[1FA] a[1FA,1ADI,1ADI]"},tail:{argNames:"array",maxArgs:1,minArgs:1,sig:"1F r[1FA] a[1FA]"}},"http://www.w3.org/2005/xpath-functions/map":{contains:{argNames:"map,key",maxArgs:2,minArgs:2,sig:"1F r[1AB] a[1FM,1A]"},entry:{argNames:"key,value",maxArgs:2,minArgs:2,sig:"1F r[1FM] a[1A,*]"}, +find:{argNames:"input,key",maxArgs:2,minArgs:2,sig:"1F r[1FA] a[*,1A]"},"for-each":{argNames:"map,action",maxArgs:2,minArgs:2,sig:"1F r[*] a[1FM,1F a[1A,*]]"},get:{argNames:"map,key",maxArgs:2,minArgs:2,sig:"1F a[1FM,1A] r[*]"},keys:{argNames:"map",maxArgs:1,minArgs:1,sig:"1F r[*A] a[1FM]"},merge:{argNames:"maps,options",maxArgs:2,minArgs:1,sig:"1F r[1FM] a[*FM,1FM]"},put:{argNames:"map,key,value",maxArgs:3,minArgs:3,sig:"1F r[1FM] a[1FM,1A,*]"},remove:{argNames:"map,keys",maxArgs:2,minArgs:2,sig:"1F r[1FM] a[1FM,*A]"}, +size:{argNames:"map",maxArgs:1,minArgs:1,sig:"1F r[1ADI] a[1FM]"}},"http://www.w3.org/2005/xpath-functions/math":{acos:{argNames:"arg",maxArgs:1,minArgs:1,sig:"1F r[?AO] a[?AO]"},asin:{argNames:"arg",maxArgs:1,minArgs:1,sig:"1F r[?AO] a[?AO]"},atan:{argNames:"arg",maxArgs:1,minArgs:1,sig:"1F r[?AO] a[?AO]"},atan2:{argNames:"y,x",maxArgs:2,minArgs:2,sig:"1F r[1AO] a[1AO,1AO]"},cos:{argNames:"θ",maxArgs:1,minArgs:1,sig:"1F r[?AO] a[?AO]"},exp:{argNames:"arg",maxArgs:1,minArgs:1,sig:"1F r[?AO] a[?AO]"}, +exp10:{argNames:"arg",maxArgs:1,minArgs:1,sig:"1F r[?AO] a[?AO]"},log:{argNames:"arg",maxArgs:1,minArgs:1,sig:"1F r[?AO] a[?AO]"},log10:{argNames:"arg",maxArgs:1,minArgs:1,sig:"1F r[?AO] a[?AO]"},pi:{argNames:"",maxArgs:0,minArgs:0,sig:"1F r[1AO] a[]"},pow:{argNames:"x,y",maxArgs:2,minArgs:2,sig:"1F r[?AO] a[?AO,1A m[AO,AD,AF]]"},sin:{argNames:"θ",maxArgs:1,minArgs:1,sig:"1F r[?AO] a[?AO]"},sqrt:{argNames:"arg",maxArgs:1,minArgs:1,sig:"1F r[?AO] a[?AO]"},tan:{argNames:"θ",maxArgs:1,minArgs:1,sig:"1F r[?AO] a[?AO]"}}}};var de={zp:{apply:{argNames:"functionI, key",maxArgs:2,minArgs:2,sig:"1F r[*] a[1F,1FA]"},"column-number":{argNames:"node",maxArgs:1,minArgs:0,sig:"1F r[1ADI] a[1N]"},"compile-XPath":{argNames:"xpath,options,params",maxArgs:3,minArgs:1,sig:"1F r[1ND] a[1AS,?,?]",returnType:"document-1N"},"compile-GlobalContext":{argNames:"variables,functions,accumulators",maxArgs:3,minArgs:3,sig:"1F r[1] a[1FM,1FM,1FM]"},"discard-document":{argNames:"doc",maxArgs:1,minArgs:1,sig:"1F r[1ND] a[1ND]",returnType:"document-1N"}, +"has-uniform-namespaces":{argNames:"node",maxArgs:1,minArgs:1,sig:"1F r[1AB] a[1N]"},"line-number":{argNames:"node",maxArgs:1,minArgs:0,sig:"1F r[1ADI] a[1N]"},"marshal-type":{argNamess:"code",maxArgs:1,minArgs:1,sig:"1F r[1FM] a[1AS]"},"message-count":{argNames:"errCode",maxArgs:1,minArgs:1,sig:"1F r[1ADI] a[?AQ]"},"parse-sequence-type":{argNames:"type,context,defaultXPathNamespace",maxArgs:3,minArgs:2,sig:"1F r[1FM] a[1AS,1NE,?AS]"},"parse-XPath":{argNames:"xpath,options,params",maxArgs:3,minArgs:1, +sig:"1F r[1ND] a[1AS,?AS,?]"},permute:{argNames:"input",maxArgs:1,minArgs:1,sig:"1F r[*] a[*]"},"system-id":{argNames:"",maxArgs:0,minArgs:0,sig:"1F r[*AU] a[]"},timestamp:{argNames:"",maxArgs:0,minArgs:0,sig:"1F r[1AMP] a[]"}},Oo:{apply:{argNames:"function,arguments",maxArgs:2,minArgs:2,sig:"1F r[*] a[1F,1FA]"},call:{argNames:"object,method,arguments",maxArgs:3,minArgs:3,sig:"1F r[*] a[1,1AS,1FA]"},contains:{argNames:"object,property",maxArgs:2,minArgs:2,sig:"1F r[1AB] a[1,1AS]"},eval:{argNames:"script", +maxArgs:1,minArgs:1,sig:"1F r[*] a[1AS]"},event:{argNames:"",maxArgs:0,minArgs:0,sig:"1F r[?] a[]"},get:{argNames:"object,property",maxArgs:2,minArgs:2,sig:"1F r[*] a[?,1AS]"},location:{argNames:"",maxArgs:0,minArgs:0,sig:"1F r[1AS] a[]"},page:{argNames:"",maxArgs:0,minArgs:0,sig:"1F r[1N] a[]"},"query-params":{argNames:"",maxArgs:0,minArgs:0,sig:"1F r[1FM] a[]"},"set-property":{argNames:"property,value,object",maxArgs:3,minArgs:3,sig:"1F r[0E] a[1AS,*,1NE]"},source:{argNames:"",maxArgs:0,minArgs:0, +sig:"1F r[?N] a[]"},style:{argNames:"node",maxArgs:1,minArgs:1,sig:"1F r[1FM] a[?N]"},window:{argNames:"",maxArgs:0,minArgs:0,sig:"1F r[1] a[]"}},Vn:{"node-set":{argNames:"node",maxArgs:1,minArgs:1,sig:"1F r[?N] a[?N]"}}};var ge=function(){function a(a){var b;var c={};for(b in a){var d=a[b];c[b]=d}return c}function b(){}function d(a){var b={};if(a){a=a.split(" ");for(var c=0;ch?x:h}e.wg=h+1}e.Ep(a);if(a=c.slotTypes)for(g in a)e.Lf[g]=J.Kc(a[g]);for(k in d)e.namespaces[k]=d[k];e.namespaces[""]="";if(d=c.staticTyping)e.Ti=d;if(d=c.xpathDefaultNamespace)e.Mg=d;if(d=c.defaultCollation)e.Bd=d;if(d=c.staticBaseURI)e.Ac=d;d=c.contextType;e.type= +d?new J.Ka(I.ni(d),kb):e.Tb?null:J.B.qe;e.sh=e.type;if(c=c.requiredType)e.zh=J.Kd(c);return e}function l(a){var c=new b;c.type=J.B.qe;c.Cp(a.params,a.inputConvert);["xs","map","array","math","saxon"].forEach(function(a){return c.namespaces[a]=xd[a]});for(var d in a.namespaceContext)c.namespaces[d]=a.namespaceContext[d];a.xpathDefaultNamespace&&(c.Mg=a.xpathDefaultNamespace);return c}function f(a,b,c){var e="pattern"===b.type,d=b.splitPattern,f="XSLT"===b.language;b=b.allowEmpty;wb.find("SaxonJS"); +a=fe.process(a,e,d,c,f,b);return D.l(a)}function k(a,b){b=void 0===b?!1:b;var c={"function":{},globalVariable:{},globalParam:{}},e;for(e in a)if("PRIVATE"!==a[e].visibility){var d=a[e].actor,f=G.da(d)?d.nodeName:d.N,g=G.da(d)?d.getAttribute("name"):d.name;switch(f){case "function":if(b&&"PUBLIC"!==a[e].visibility&&"FINAL"!==a[e].visibility)break;d=(G.da(d)?G.xe(d,"arg"):m(d)).length;c[f][g+"#"+d]=a[e];break;case "globalVariable":case "globalParam":c[f][g]=a[e]}}return c}function r(a,b){b=void 0=== +b?!0:b;var c={N:a.nodeName},e=a.attributes,d;for(d=0;db||b>d.maxArgs&&!d.variadic)?null:d},parseNsAttribute:d,sefToJSON:r,setStaticContext:function(a){A=P.rc(a.value,!0);a={};var b=A.resources,c;for(c in b){var d=b[c];if(d.hasOwnProperty("err")){var f=d.err;f=f.replace(/Q{http:\/\/www\.w3\.org\/2005\/xqt-errors\}/,"");a[c]=new q(f+" "+d.description,f)}else a[c]=d}A.resources=a;return null},resetStaticContext:function(){return A=null},resetNameBase:function(){}}}();var he={parse:function(a,b){if(void 0==b||null==b)b="parse";switch(b){case "parse":case "parseFast":var d=fe.process(a,null,null,!0);return D.l(d);case "pattern.parseFast":return d=fe.process(a,!0,null,!0),D.l(d)}return D.R},parseFast:fe,evaluateXDM:ge.evaluateXDM,evaluate:ge.evaluate,compile:ge.compile,compileGlobalContext:ge.compileGlobalContext,forceBaseURI:ge.forceBaseURI,getFnSignature:ge.getFnSignature,sefToJSON:ge.sefToJSON,setStaticContext:ge.setStaticContext,resetStaticContext:ge.resetStaticContext, +resetNameBase:ge.resetNameBase};var ie={FUNCTION:0,$p:1,rq:2,vq:3,iq:4,gq:5,nq:6,qq:7,oq:8,sq:9,uq:10,hq:11,EVALUATE_RESULT:12,bq:13,Xp:14,kq:15,aq:16,cq:17},je=["doc","id","element-with-id","key","root"];function ke(a,b,d,m){return ie[a]+"|"+b+"|"+d+"|"+m}function le(a,b,d,m){return{gg:function(){return b},Bj:m,eh:function(){return a},save:function(){return d}}}function me(a,b){var d=P.yp(b).required;return le(a,d,b,function(a,b){return"Required type of "+d+" is "+a.toString()+": actual type is "+b.toString()})} +function ne(a,b){var d=null;this.name=a;if(b){this.zc=b;d=b.alphaTree;var m=b.argNames.split(","),c=[],l,f;for(f=0;f=b;){var e=E.G,h=w();switch(e){case 45:case 47:f();var l=u();a:{var m=a;switch(e){case 45:a=new dd(m,l);break a;case 47:a=Wd(m,l);break a;default:throw new Qb(R[e]);}}w()>=h&&c("Left operand of '"+R[E.G]+"' needs parentheses");break;case 46:case 57:f();var p=void 0;if(69===E.G&&"union"===E.ba)throw new q("Saxon union types not supported"); +k(201);if(E.ba)a:{try{var x=d(E.ba,V.yc,V.Cd);break a}catch(ee){c(ee.message,ee.code)}x=void 0}else x=c("Parser tokenization error NAME");l=x;l.uri!==F.Rd&&c("Unknown simple type "+E.ba+" in cast (Saxon-JS is not schema-aware)");f();if(m=213===E.G)E.G=204,f();var r={numeric:"u",ENTITIES:"l",NMTOKENS:"l",IDREFS:"l"}[l.local]||"a";if("a"===r){["anyType","anyAtomicType","NOTATION"].includes(l.local)&&c("Casting to xs:"+l.local+" is not possible (it's an abstract type)","XPST0080");p=C.type[l.local]; +if(!p)throw new q("Cannot find type "+l.ha());p=new I.Ze(p)}a=(57===e?qe:re)(a,r,l,p,m);w()>=h&&c("Left operand of '"+R[E.G]+"' needs parentheses");break;case 76:a=Y(a);break;default:m=40===e;f();m&&H.push(a.b.Va(kb));l=K();for(m&&H.pop();w()>h;)l=t(l,w());if(!(h=w()!==h))a:switch(E.G){case 50:case 51:case 55:case 53:case 54:case 52:case 6:case 22:case 14:case 12:case 13:case 11:case 20:case 38:case 39:case 29:h=!1;break a;default:h=!0}h||c("Left operand of '"+R[E.G]+"' needs parentheses");a=g(a, +e,l)}}return a}function g(a,b,c){switch(b){case 9:return new pd(a,c);case 10:return new od(a,c);case 50:case 51:case 55:case 53:case 54:case 52:return new Pc(a,b,c,V);case 6:case 22:case 14:case 12:case 13:case 11:return V.kh()?new Qc(a,b,c,V):new Nc(a,b,c,V);case 20:case 38:case 39:return new Uc(a,b,c,V);case 29:return new rd(a,c,V.kh());case 30:b=[];var e;if(a instanceof Yc&&"concat"===a.name.name.local&&a.name.name.uri===F.cb)for(a=sa(a.vb),e=a.next();!e.done;e=a.next())b.push(e.value);else{e= +ke("BINARY_OP",0,"","concat");var d=me("FOTY0013",e);a=Od(a,J.B.Sd,d,e,V);b.push(a)}e=ke("BINARY_OP",1,"","concat");d=me("FOTY0013",e);c=Od(c,J.B.Sd,d,e,V);b.push(c);c=fd("concat",b);c.b=J.B.Td;return c;case 15:case 16:case 17:case 18:case 56:case 19:return new bd(a,b,c,V);case 79:return e=C.O.X.xa("vv",F.wk,"otherwise"),b=new md,b.Bh(e),b.Eg(a),ia(b),a=new se(b),e=[fd("exists",[a]),Fc([C.O.Ea.cf],J.B.ic)],b.Ue(new Vc(e,[a,c])),b;case 1:case 23:case 24:return new te(a,b,c,1===Za);case 81:return c= +fd("boolean",c),Wc(a,Fc([C.O.Ea.cf],J.B.ic),c);case 80:return c=fd("boolean",c),Wc(a,c,Fc([C.O.Ea.Qg],J.B.ic));default:throw new Qb(R[b]);}}function K(){switch(E.G){case 16:f();var a=K();a=A(299,a);break;case 15:f();a=K();a=A(15,a);break;default:for(a=e();40===E.G;){f();H.push(a.b.Va(kb));var b=e();H.pop();a=new ud(a,b)}}return a}function A(a,b){if(Ec(b)){var c=b.value[0];return 299===a?Fc([c.Gi()],b.b):b}return new bd(Fc([C.O.Ma.fa(0)],J.B.bf),a,b,V)}function x(){switch(E.G){case 36:case 3:case 201:case 208:case 70:case 207:case 69:case 205:case 206:case 35:case 202:case 209:case 5:case 21:case 43:return!0; +case 60:return["ordered","unordered"].includes(E.ba);default:return!1}}function e(){var a=E.$g;switch(E.G){case 2:return f(),a=new ue,x()?h(a):a;case 8:f();a=new ue;var b=new gd(5,null);a=id(a,b);return h(a);default:201===E.G&&["true","false"].includes(E.ba)&&l("The expression is looking for a child element named '"+E.ba+"' - perhaps "+E.ba+"() was intended? To avoid this warning, use child::"+E.ba+" or ./"+E.ba+".");201===E.G&&-1!==vc(E,E.ba)&&1!==Za&&(0'");return null}function N(a){function b(a){return a instanceof hd||a instanceof $c&&b(a.step)}switch(E.G){case 21:return za();case 5:var e=S();a&&b(e)&&c("Predicate pattern cannot be parenthesized","XTSE0340");return e;case 4:return U();case 202:return Ja(!0);case 209:return ma(!0);case 35:return e=E.ba,0===jc&&1===Za&&(V.hk=!0,a?je.includes(e)||e.includes(":")||c("Function "+e+"() is not permitted at first position in pattern", +"XTSE0340"):c("Function call not at first position in pattern","XTSE0340")),e=T(null),V.hk=!1,e;case 213:return Va(new hd);case 205:return f(),new hd(H[H.length-1]);case 206:return f(),new gd(9,null);case 69:if("function"===E.ba)return ja();case 201:case 208:case 70:case 207:return e=3,69===E.G&&["attribute","schema-attribute"].includes(E.ba)?e=2:69===E.G&&"namespace-node"===E.ba?e=8:a&&69===E.G&&"document-node"===E.ba&&(e=12),a=aa(1),new gd(e,a);case 3:f();switch(E.G){case 201:case 208:case 70:case 207:case 69:return e= +aa(2),new gd(2,e);default:c("@ must be followed by a NodeTest")}break;case 36:try{e=Yb(E.ba)}catch(Pe){c(Pe.message),e=3}a=Wb[e];f();switch(E.G){case 201:case 208:case 70:case 207:case 69:a=aa(a);var d=null;if(2===e){var h=pb.Zc(a,new I.nc(2));h===pb.wd?d="attribute axis can never yield nodes of type "+a:h===pb.gd&&(a=new I.nc(2))}3===e&&9===a.kind&&(d=a.name+" nodes can never be children");2!==a.kind||[2,12].includes(e)||(d="axis "+Vb(e)+" can never yield attribute nodes");if(d){if(1===Za)return new ac(d); +l(d);return Gc()}return new gd(e,a);default:c("Unexpected token "+m()+" after axis name")}break;case 60:switch(E.ba){case "map":return Z();case "array":return X();case "fn":return Ta.kr(this)}break;case 43:return Fa();default:c("Unexpected token "+m()+" at start of expression")}}function S(){f();if(204===E.G)return f(),Gc();var a=r();k(204);f();return a}function ma(){var a=E.ba?xa(E.ba):c("Parser tokenization error NUMBER");isNaN(a)&&c("Invalid numeric literal ("+E.ba+")");f();return Fc([a],"double"=== +a.type?J.B.Qh:"decimal"===a.type?J.B.an:J.B.bf)}function xa(a){try{return 0<=a.indexOf("e")||0<=a.indexOf("E")?C.O.za.g(a):0<=a.indexOf(".")?C.O.od.g(a):C.O.Ma.g(a)}catch(pf){return NaN}}function Ja(){var a=new Hc(E.ba);f();return a}function za(){f();k(201);var a=E.ba;f();a=la(a,"");var b;a:{for(b=Ga.length-1;0<=b;b--){var e=Ga[b];if(e&&e.hg().ia(a)){b=e;break a}}b=void 0}if(null!=b)var d=new se(b);else if(a.uri===F.Qn&&0a.value||a.value>Number.MAX_SAFE_INTEGER)&&c("Number following '#' is out of range","FOAR0002");a=a.value;f();var g=null;try{g=d(b,h.yc,h.Jl)}catch(ae){c(ae.message,ae.code)}b=h.si();var l=new wd(g,a);h=b.Kl(l,h);null==h&&c("Function "+g.ha()+"#"+a+" not found","XPST0017",e);return h.zc.$l&&!g.zf(Kb.hn)?new Ge(h):new He(h)}function ia(a){a.slot=Ga.length;Ga.push(a)}function Ia(a,b){return d(a, +V.yc,function(){return b})}function la(a,b){try{return Ia(a,b)}catch(ub){c(ub.message,ub.code)}}function La(a,b){if(b.startsWith("Q{")){var e=b.substring(2,b.length-2);return new I.kj(a,e)}try{return e=d(b+":dummy",V.yc,function(){return""}),new I.kj(a,e.uri)}catch(Zd){return c(Zd.message,Zd.code),null}}function M(a,b){Nb(b)||c("Local name ["+b+"] contains invalid characters");return new I.ij(a,b)}function Qa(a,b,c,e){this.global=void 0===e?!1:e;this.Nc=this.name=a;this.Qd=b;this.slot=c}var E,bb, +V={},Ga=[],H=[],ua=[],Ta=new Bc,Za=0,be=0,jc=0,Oa=[],kc={Kl:function(a,b){var c=b.getContext();if(c=he.getFnSignature(a.name,a.arity,c))return new ne(a,c)},bind:function(a,b,c){var e=c.getContext(),f=he.getFnSignature(a.name,a.arity,e);if(f){if(a.name.uri===F.cb)switch(a.name.local){case "false":return Fc([C.O.Ea.Qg],J.B.ic);case "true":return Fc([C.O.Ea.cf],J.B.ic);case "normalize-unicode":1===b.length&&b.push(new Hc("NFC"));break;case "copy-of":return new Ie(b[0]?b[0]:new hd(H[H.length-1]));case "current-group":return new Je; +case "current-grouping-key":return new Ke;default:0===a.arity&&0a.arity||a.arity>f.br))throw new q("Wrong argument arity "+b.length+" for function "+a.name.local+"() - should be between "+ +f.minArgs+" and "+f.maxArgs,"XPST0017");if(c.kd)return fd("error",[fd("QName",[new Hc(""),new Hc("XTDE1425")]),new Hc("Unknown function "+a.toString())]);throw new q("Unknown function "+a.ha()+"()","XPST0017");}}};V={Cd:function(){return""},Bd:"http://www.w3.org/2005/xpath-functions/collation/codepoint",hh:!1,Zb:{},Tc:{},Tb:!1,Ee:!1,kd:!1,Ap:function(){V.Cd=function(){return""};V.Bd="http://www.w3.org/2005/xpath-functions/collation/codepoint";V.Zb={};V.Tc={};V.Tb=!1;V.Ee=!1;V.kd=!1},getContext:function(){return{Tb:V.Tb, +Tq:1===Za,Zb:V.Zb}},lo:function(){return V.Bd},Jl:function(){return F.cb},si:function(){return kc},Kq:function(){return null},Sq:function(){return!1},kh:function(){return V.kd},ar:function(){return null}};var fb={};Qa.prototype.hg=function(){return this.name};return{process:function(e,f,h,g,k,l){k=void 0===k?!1:k;l=void 0===l?!1:l;a();bb=e;Za=f?1:0;e=[];fb={};V.Ap();V.yc=b;f&&(V.Tb=!0);if(g){be=g.wi?1:0;g.Ee&&(V.Ee=!0);for(var p in g.namespaces)fb[p]=g.namespaces[p];for(var t in g.Be){p=d(t,V.yc, +function(){return""});var x=g.Be[t],w=J.Kd(x.getAttribute("sType"));e.push(new Qa(p,w,x,!0))}for(var v in g.Ld)t=d(v,V.yc,function(){return""}),e.push(new Qa(t,g.Lf[v],g.Ld[v]));Ga=e;V.Tc=g.Tc;g.hh&&(V.hh=g.hh);g.Bd&&(V.Bd=g.Bd);g.Zb&&(V.Zb=g.Zb);g.Tb&&(V.Tb=g.Tb);g.kd&&(V.kd=g.kd);g.sh&&(H=[g.sh.Va(kb)]);g.Mg&&(V.Cd=function(){return g.Mg});V.yb=g.yb?g.yb:null}v="";for(var u in fb)e=fb[u],e=e===F.me[u]?"~":e,v+=u+"="+e+" ";tc(E,bb);try{var N=r(l)}catch(mc){throw mc instanceof q&&g&&g.Mp&&(mc.code= +g.Mp,mc.message="Invalid XPath expression supplied to xsl:evaluate {"+bb+"}: "+mc.message),mc;}0!==E.G&&c("Found "+m()+" beyond end of expression");f?(N=N.kb(),N instanceof nc&&h&&(N=new pc(oc(N)))):g&&g.zh&&(f=me("XPTY0004",ke("EVALUATE_RESULT",0,"",null)),N=Od(N,g.zh,f,ke));f=k?new Qe:new Re;N.j(f);f=f.current;k?(f=f.documentElement,N.b&&f.setAttribute("sType",N.b.va()),""!==v&&f.setAttribute("ns",v),g&&g.yb&&f.setAttribute("baseUri",g.yb)):(f=f.C[0],""!==v&&(f.ir=v),g&&g.yb&&(f.pc=g.yb));return f}, +parseSequenceType:function(b,e,d){a();V.yc=e;V.Cd=d;Za=0;fb={};tc(E,b);b=u();0!==E.G&&c("Unexpected "+m()+" after SequenceType");return b},getTokenizer:function(){return E}}}();function Re(){this.stack=[];this.current={C:[]}} +Re.prototype={start:function(a,b){b=void 0===b?{}:b;var d={N:a,C:[]},m;for(m in b)d[m]=b[m];this.current.C.push(d);this.stack.push(this.current);this.current=d},Re:function(a,b){this.current[a]=b},end:function(){this.current=this.stack.pop()},Ub:function(a,b){b=void 0===b?{}:b;var d={N:a},m;for(m in b)d[m]=b[m];this.current.C.push(d)}};function Qe(){this.Yj=wb.find("SaxonJS").getPlatform().createDocument();this.stack=[];this.current=this.Yj} +Qe.prototype={start:function(a,b){b=void 0===b?{}:b;var d=this.Yj.createElement(a),m;for(m in b)d.setAttribute(m,b[m]);this.current.appendChild(d);this.stack.push(this.current);this.current=d},Re:function(a,b){this.current.setAttribute(a,b)},end:function(){this.current=this.stack.pop()},Ub:function(a,b){b=void 0===b?{}:b;var d=this.Yj.createElement(a),m;for(m in b)d.setAttribute(m,b[m]);this.current.appendChild(d)}};function Yc(a,b,d){W.call(this);var m=a.name.local;if(a.name.uri===F.Rd){var c=b[0].b;return c.na===kb&&c.ca.Ga()&&m===c.ca.Qf.name?b[0]:["NMTOKENS","ENTITIES","IDREFS"].includes(m)?re(b[0],"l",a.name,null,!0):"numeric"===m?re(b[0],"u",a.name,null,!0):re(b[0],"a",null,d.ca,!0)}this.name=a;this.vb=b;this.b=d;switch(m){case "exactly-one":this.b=b[0].b.Va(kb);break;case "head":this.b=b[0].b.Va(gb(b[0].b.na)?lb:kb);break;case "tail":case "subsequence":this.b=b[0].b.Va(jb);break;case "ceiling":case "floor":case "reverse":case "snapshot":this.b= +b[0].b;break;case "last":case "position":this.Mb=!0;break;case "string-length":case "normalize-space":0===b.length&&this.vb.push(fd("string",new hd));break;case "fold-left":case "fold-right":this.b=b[2].resultType;break;case "for-each":this.b=b[1].b.ca.ti().Va(jb);break;case "filter":this.b=b[0].b.Va(jb);break;case "current":this.Ed=!0;break;case "boolean":if(b[0].b.ia(J.B.ic))return b[0]}}n(Yc,W);Yc.prototype.kb=function(){return new ec(this)}; +Yc.prototype.vd=function(){if(this.name.uri===F.cb)return"doc document element-with-id id innermost key outermost".split(" ").includes(this.name.local)?!0:"filter one-or-more subsequence remove tail trace unordered zero-or-more".split(" ").includes(this.name.local)?this.vb[0].vd():!1};Yc.prototype.j=function(a){W.prototype.start.call(this,a,{name:this.name.name.local});for(var b=sa(this.vb),d=b.next();!d.done;d=b.next())d.value.j(a);a.end()};Yc.prototype.V="fn"; +function Se(a,b,d){W.call(this);this.name=a;this.vb=b;this.b=d}n(Se,W);Se.prototype.j=function(a){W.prototype.start.call(this,a,{name:this.name.ha()});for(var b=sa(this.vb),d=b.next();!d.done;d=b.next())d.value.j(a);a.end()};Se.prototype.V="ifCall";function Cd(a,b,d){W.call(this);this.name=a;this.vb=b;this.b=d;if(a="merge"===a.name.local)a=b[0],a=!(a instanceof Cc&&0===a.value.length);a&&(this.b=b[0].b.Va(kb))}n(Cd,W); +Cd.prototype.j=function(a){W.prototype.start.call(this,a,{name:this.name.ha()});for(var b=sa(this.vb),d=b.next();!d.done;d=b.next())d.value.j(a);a.end()};Cd.prototype.V="ifCall";function Dd(a,b,d){W.call(this);this.name=a;this.vb=b;this.b=d}n(Dd,W);Dd.prototype.j=function(a){W.prototype.start.call(this,a,{name:this.name.ha()});for(var b=sa(this.vb),d=b.next();!d.done;d=b.next())d.value.j(a);a.end()};Dd.prototype.V="ifCall";function Me(a,b,d){Se.call(this,a,b,d)}n(Me,Se); +function Ed(a,b,d){W.call(this);this.name=a;this.vb=b;this.b=d}n(Ed,W);Ed.prototype.j=function(a){W.prototype.start.call(this,a,{name:this.name.ha()});for(var b=sa(this.vb),d=b.next();!d.done;d=b.next())d.value.j(a);a.end()};Ed.prototype.V="ifCall";function Ne(a,b,d){W.call(this);this.name=a;this.vb=b;this.b=d}n(Ne,W);Ne.prototype.j=function(a){W.prototype.start.call(this,a,{name:this.name.ha()});for(var b=sa(this.vb),d=b.next();!d.done;d=b.next())d.value.j(a);a.end()};Ne.prototype.V="ifCall"; +function Oe(a,b,d){Ne.call(this,a,b,d);var m=new wd(C.O.X.xa("ixsl",F.sg,"call"),3),c=new wd(C.O.X.xa("ixsl",F.sg,"window"),0);this.name=m;this.vb=[new Ne(c,[],J.B.qe),new Hc(a.name.local),new xe(b)];this.b=d}n(Oe,Ne);function Le(a,b,d,m){W.call(this);this.name=a;this.vb=b;this.b=d;this.zn=m}n(Le,W);Le.prototype.j=function(a){W.prototype.start.call(this,a,{name:this.name.ha(),coId:this.zn});for(var b=sa(this.vb),d=b.next();!d.done;d=b.next())d.value.j(a);a.end()};Le.prototype.V="ufCall"; +function He(a){W.call(this);this.name=a.name.name;this.zc=a.zc;this.arity=a.name.arity;this.b=a.b;this.resultType=a.resultType}n(He,W);He.prototype.j=function(a){this.Ub(a,{name:this.name.ha(),arity:this.arity,resultType:this.resultType.va()})};He.prototype.V="fnRef";function Ge(a){He.call(this,a);this.vn=0}n(Ge,He);Ge.prototype.j=function(a){this.Ub(a,{name:this.name.ha(),arity:this.arity,resultType:this.resultType.va(),bSlot:this.vn})};Ge.prototype.V="ufRef"; +function we(){W.call(this);this.b=J.B.Qa}n(we,W);we.prototype.j=function(a){this.Ub(a,{asCode:"*"})};we.prototype.V="null";function Be(){W.call(this)}n(Be,W);Be.prototype.ck={};Be.prototype.jp={};Be.prototype.so={};function Ce(){W.call(this);this.b=J.B.Qa;this.slot=this.Nc=this.name=this.Qd=null}n(Ce,W);ba=Ce.prototype;ba.Si=function(a){this.Qd=this.b=a};ba.Bh=function(a){this.Nc=this.name=a};ba.hg=function(){return this.name};ba.toString=function(){return"$"+this.name+" as "+this.b.toString()}; +ba.j=function(a){this.Ub(a,{name:this.name,asCode:this.b.va(),slot:this.slot})};ba.V="arg";function De(a,b,d,m){W.call(this);this.Eq=a;this.jm=b;this.resultType=d;var c=[];b.forEach(function(a){c.push(a.b)});m=Oc(m,d,this.ib("body"));this.b=J.ad(new I.re(c,d));this.arity=b.length;this.body=m;m.Jd="body"}n(De,W);ba=De.prototype; +ba.j=function(a){W.prototype.start.call(this,a,{arity:this.arity,name:this.name,as:this.resultType.va()});for(var b=sa(this.jm),d=b.next();!d.done;d=b.next())d.value.j(a);this.body.j(a);a.end()};ba.V="inlineFn";ba.kind=5;ba.ib=function(a,b){b=void 0===b?"XPTY0004":b;return new Rb(this.kind,"("+this.jm.map(function(a){return a.toString()}).join(",")+")"+(this.resultType?" as "+this.resultType.toString():""),a,b)};ba.name="inline"; +function ye(a,b,d){W.call(this);var m=this;if(a.b&&a.b.ca instanceof I.re&&a.b.ea().a.length!==b.length)throw new q("Partially-applied function requires "+a.arity+" arguments, but "+(b.lengtha||a>b)throw new q("Array index ("+a+") out of bounds (1 to "+b+")","FOAY0001",d); +}function l(a){return a[0].next().value}function g(a){return D.l(new mb(a))}function m(a,b,c,d){var e=b.fixed.ya,f=a[1].expand(),g=a[2].expand()[0],h=Object.keys(b.Ha).length;if(g instanceof nb.gb)a=l(a),d||(a=a.reverse()),a.forEach(function(a){f=g.evaluate(d?[f,a]:[a,f],b,c).expand()});else{var k;"function"!==g.N&&(k=g);a[0].sa(function(a){var c=b.ja(!0);k&&(c.La=k);c.Zf();c.Ja="function";c.$b={};c.Xb=null;c.focus=null;d?(c.Ha[h]=f,c.Ha[h+1]=[a]):(c.Ha[h]=[a],c.Ha[h+1]=f);f=e.evaluate(void 0,c).expand()})}return D.K(f)} +var r={append:function(a){return g(l(a).concat([a[1].expand()]))},filter:function(a,b,c){var e=a[1].expand()[0];Object.keys(b.Ha);a=l(a);if(e instanceof nb.gb){var d=[];a.forEach(function(a){var g=e.evaluate([a],b,c).expand();if(Array.isArray(g)&&1!==g.length||!f.Ea.matches(g[0]))throw new q("Wrong type for function result in filter(). Expecting xs:boolean, supplied value is "+B.oa(g),"XPTY0004",c);g[0].value&&d.push(a)});return g(d)}},flatten:function(a){return P.flatten(a[0])},"fold-left":function(a, +b,c){return m(a,b,c,!0)},"fold-right":function(a,b,c){return m(a,b,c,!1)},"for-each":function(a,b,c){var e=a[1].expand()[0];a=l(a);Object.keys(b.Ha);if(e instanceof nb.gb){var d=[];a.forEach(function(a){d.push(e.evaluate([a],b,c).expand())});return g(d)}},"for-each-pair":function(a,b,c){var e=a[2].expand();if(1!==e.length)throw new q("for-each-pair() must have exactly one function item as the third argument. Supplied length "+e.length,"XPTY0004",c);e=e[0];Object.keys(b.Ha);var d=[];ha();pa();ha(); +pa();var f=a[0].next().value[Symbol.iterator]();a=a[1].next().value[Symbol.iterator]();var h=f.next().value,k=a.next().value;if(e instanceof nb.gb)for(;h&&k;)d.push(e.evaluate([h,k],b,c).expand()),h=f.next().value,k=a.next().value;return g(d)},"_from-sequence":function(a){var b=[];a[0].sa(function(a){b.push([a])});return g(b)},get:function(a){var b=l(a);a=a[1].next().J();k(a,b.length);return D.K(b[a-1])},head:function(a){a=l(a);k(1,a.length);return D.K(a[0])},"insert-before":function(a){var b=l(a), +c=a[1].next().J();k(c,b.length+1);a=a[2].expand();return g(b.slice(0,c-1).concat([a]).concat(b.slice(c-1)))},join:function(a){var b=[];a[0].sa(function(a){a.value.forEach(function(a){b.push(a)})});return g(b)},put:function(a){var b=l(a),c=a[1].next().J();k(c,b.length);a=a[2].expand();return g(b.slice(0,c-1).concat([a]).concat(b.slice(c)))},remove:function(a){var b=l(a),c=[];a[1].sa(function(a){a=a.J();k(a,b.length);c.push(a-1)});return g(b.filter(function(a,b){return 0>c.indexOf(b)}))},reverse:function(a){return g(l(a).slice().reverse())}, +size:function(a){return D.Vb(l(a).length)},sort:function(a,b,c){var e=Q.ri(c,a[1],b),d=P.Wd;if(a[2]){var f=a[2].next();d=function(a){return f.evaluate([[a]],b,c)}}return g(l(a).slice().sort(function(b,c){return a[1]?vb.Ai(D.K(b).Ya(d),D.K(c).Ya(d),e):vb.Ai(D.K(b).Ya(d),D.K(c).Ya(d))}))},subarray:function(a){var b=l(a),c=a[1].next().J();k(c,b.length+1);a=a[2]?a[2].next().J():b.length-c+1;if(0>a)throw new q("Length is negative","FOAY0002");k(c+a,b.length+1);return g(b.slice(c-1,c+a-1))},tail:function(a){a= +l(a);k(1,a.length);return g(a.slice(1))},"_to-sequence":function(a){var b=[];l(a).forEach(function(a){a.forEach(function(a){b.push(a)})});return D.K(b)}};if(!r[a])throw new q("Unknown array function: "+a,"SXJS0003",d);return r[a](b,c,d)}function c(a,b,c,d){var k={contains:function(a){var b=a[0].next();a=a[1].next();return D.ka(b.Xa(a))},create:function(a){var b=new cb;a[0].sa(function(a){a.Cb(function(a){b.Ta(a.k,a.v)})});return D.l(b)},entry:function(a){var b=new cb;b.Ta(a[0].next(),a[1].expand()); +return D.l(b)},find:function(a){function b(a){P.isArray(a)?a.value.forEach(c):P.isMap(a)&&(a.Xa(f)&&d.push(a.get(f)),a.keys().forEach(function(b){c(a.get(b))}))}function c(a){a.forEach(b)}var d=[],f=a[1].next();c(a[0].expand());return D.l(new mb(d))},"for-each":function(a,b,c){var d=a[0].next(),f=d.keys(),e=a[1].expand()[0];if(e instanceof nb.gb){var g=[];f.forEach(function(a){g=g.concat(e.evaluate([[a],d.get(a)],b,c).expand())});return D.K(g)}},get:function(a){var b=a[0].next();a=a[1].next();return D.K(b.get(a))}, +keys:function(a){a=a[0].next();return D.K(a.keys())},merge:function(a){var b=new cb,c=a[1]?a[1].next():null;a[0].sa(function(a){a.Cb(function(a){var e=f.T.g("duplicates");e=c&&c.Xa(e)?c.get(e).toString():"use-first";if(!b.Xa(a.k)||["use-last","unspecified","use-any"].includes(e))b.Ta(a.k,a.v);else{if("reject"===e)throw e=f.T.g("duplicates-error-code"),e=c.Xa(e)?c.get(e).toString():"FOJS0003",new q("Duplicate key value '"+a.k.toString()+"'",e,d);if("combine"===e){var g=b.get(a.k);a.v.forEach(function(a){g.push(a)}); +b.Ta(a.k,g)}}})});return D.l(b)},_new:function(a){var b=new cb;a[0]&&a[0].sa(function(a){a.Cb(function(a){if(b.Xa(a.k))throw new q("Duplicate key value '"+a.k.toString()+"'","XSLT"===c.fixed.options.language?"XTDE3365":"XQDY0137",d);b.Ta(a.k,a.v)})});return D.l(b)},put:function(a){var b=a[0].next(),c=a[1].next();a=a[2].expand();return D.l(b.put(c,a))},remove:function(a){var b=a[0].next();a[1].sa(function(a){b=b.remove(a)});return D.l(b)},size:function(a){var b=0;a[0].next().Cb(function(){b++});return D.Vb(b)}, +"untyped-contains":function(a){var b=a[0].next();a=a[1].next();return D.ka(b.Xa(a))}};if(!k[a])throw new q("Unknown map function: "+a,"SXJS0003",d);return k[a](b,c,d)}function l(a,b,c,d){function f(a){return null===a?(l=!0,Number.NaN):a.J()}function k(){var a=b[0].next();return f(a?a:P.Kb(d)(c).next())}function g(){var a=b[1].next();return f(a?a:P.ml(d)(c).next())}var l=!1,m=function(){switch(a){case "pi":return Math.PI;case "exp":return Math.exp(k());case "exp10":return Math.pow(10,k());case "log":return Math.log(k()); +case "log10":return Math.log(k())/Math.LN10;case "pow":var b=k(),c=g();return-1===b&&(Infinity===c||-Infinity===c)||1===b?1:Math.pow(b,c);case "sqrt":return Math.sqrt(k());case "sin":return Math.sin(k());case "cos":return Math.cos(k());case "tan":return Math.tan(k());case "asin":return Math.asin(k());case "acos":return Math.acos(k());case "atan":return Math.atan(k());case "atan2":return Math.atan2(k(),g());default:throw new q("Unknown math function "+d.name,"XPST0017",d);}}();return l?D.R:D.gp(m)} +var f=C.O;P.rp(a);return a})();var nf=function(){function a(a,b){return a.Ic===b.Ic?a.Qe===b.Qe?a.Cg===b.Cg?b.nm-a.nm:a.Cg-b.Cg:a.Qe-b.Qe:a.Ic-b.Ic}function b(a,b){return a.Ic===b.Ic?a.Qe===b.Qe?0:a.Qe-b.Qe:a.Ic-b.Ic}function d(b,c){var d=this;this.Sh=b;this.hm=b.onNo;this.fm=c.Gc(b,"t");c.Gc(b,"F")&&(this.Jj=!0);this.Rk=(b.C||[]).map(function(a){return{Bg:a,Ic:parseInt(a.prec,10),Qe:parseFloat(a.prio),Cg:parseInt(a.seq,10),Wo:parseInt(a.minImp,10),nm:parseInt(a.rank,10),pattern:xb.Df(c.qa(a,"match")),matches:I.Xc(a.matches||"1"), +action:c.qa(a,"action")}}).sort(a).reverse();this.yd={};this.Rk.forEach(function(a){var b=a.matches.ea();var c=[];/^N[EAP]/.test(b.p)?(c=b.p,b.n&&!/}\*$/.test(b.n)&&(c+=" "+b.n.replace(/^(\*:|Q\{.*\})/,"")),c=[c]):c=["."];c.forEach(function(b){var c=d.yd[b];c||(d.yd[b]=c=[]);c.push(a)})})}var m=C.O,c=G.Ab,l={TC:function(a,b,d,f){if(G.da(a))switch(a.nodeType){case 9:case 11:case 1:d=d.ja(!1);d.focus=D.Da(c.pb(a));b.Uc(d,f);break;case 3:case 4:f.append(a);break;case 2:f.text(a.value)}else if(m.wj.matches(a))f.text(a.toString()); +else if(P.isArray(a)){var k=[];a.value.forEach(function(a){k=k.concat(a)});a=d.ja(!1);a.focus=D.Da(D.K(k));b.Uc(a,f)}},SC:function(a,b,d,f){return Bb.xm(a,d,"c",function(){var k=d.ja(!1);k.focus=D.Da(c.ob(a));b.Uc(k,f);k.focus=D.Da(c.pb(a));b.Uc(k,f)},f)},DC:function(a,b,c,d){G.da(a)&&(d.pc=G.baseURI(a));d.append(a)},DS:function(a,b,d,f){if(G.da(a))switch(a.nodeType){case 9:case 11:d=d.ja(!1);var k=[];k[0]=D.Da(c.ob(a));k[1]=D.Da(c.pb(a));d.focus=D.Rc(k);b.Uc(d,f)}},SS:function(a,b,d,f){if(G.da(a))switch(a.nodeType){case 9:case 11:case 1:d= +d.ja(!1),d.focus=D.Da(c.ob(a)),b.Uc(d,f),d.focus=D.Da(c.pb(a)),b.Uc(d,f)}else if(P.isArray(a)){var k=[];a.value.forEach(function(a){k=k.concat(a)});a=d.ja(!1);a.focus=D.Da(D.K(k));b.Uc(a,f)}},bubble:function(a,b,d,f){G.da(a)?1===a.nodeType&&(d=d.ja(!1),d.focus=D.Da(c.parent(a)),b.Uc(d,f)):f.append(a)}};l.TO=l.TC;var f={1:"NE",2:"NA",3:"NT",7:"NP",8:"NC",9:"ND",11:"ND",13:"NN"};d.prototype={Sh:null,Rk:null,hm:"TC",fm:!1,Jj:!1,Uc:function(a,b){var c=this;a.focus.sa(function(d){return c.sj(d,a,b)})}, +sn:function(a,b){var c=a.Xb;if(!c)throw new q("No current template rule","XTDE0560");return this.sj(a.lb(),a,b,function(a){return a.Ic>=c.Wo&&a.Ica(b,d)})},Yn:function(c,d,l){var k=null,m=null,r=this.Jj,g=[];if(G.da(c)){var v=f[c.nodeType],A=G.ma(c);if(A=A?A.local:null)A=v+" "+A,this.yd[A]&&g.push(this.yd[A]);this.yd[v]&&g.push(this.yd[v]);this.yd.N&&g.push(this.yd.N)}this.yd["."]&& +g.push(this.yd["."]);(function(f){f.forEach(function(e){e.forEach(function(e){if(!l||l(e))if(!k||0parseInt(a[b].Ic,10)&&(a[b]=c):a[b]=c};(a.C||[]).forEach(function(a){var b=I.Xc(a.test);b instanceof I.xd?(a.PREC=parseInt(a.prec,10),a.PRIO=2,k(d,b.name.ha(),a)):b instanceof I.kj?(a.PREC=parseInt(a.prec,10),a.PRIO=1,k(e,b.uri,a)):b instanceof I.ij?(a.PREC=parseInt(a.prec,10),a.PRIO=1,k(f,b.localName,a)):b instanceof I.nc?(a.PREC=parseInt(a.prec,10),a.PRIO= +0,k(g,"*",a)):B.ra("Unrecognised strip-space "+a.test)});var l=function(a,b){var c=[],h=d["Q{"+a+"}"+b];h&&c.push(h);(h=e[a])&&c.push(h);(h=f[b])&&c.push(h);g["*"]&&c.push(g["*"]);c.sort(function(a,b){var c=a.PREC,d=b.PREC;return c===d?b.PRIO-a.PRIO:d-c});return 0p.indexOf("Q{")&&(p="Q{}"+p);O="Q{"+F.Ve+"}initial-template";c||T||e(N,O)&&(T=O);var Qa=d.vo;if(Qa){c=d.Cl?d.Cl:[];a=c.length;p=h(N,Qa.toString(),a);if(!p)throw new q("Unknown initial function "+Qa+"#"+a,"XTDE0041");if("PUBLIC"!==p.Rb.vis&&"FINAL"!==p.Rb.vis)throw new q("Uninvocable initial function "+Qa+"#"+a+" with visibility "+p.Rb.vis,"XTDE0041");var E=p.Rb.C[0];N.focus={};N.La=p;N.Zf();N.Ja="function";N.$b={};N.Xb=null;var bb=0;N.Ha=c.map(function(a){var b= +E.C[bb++].as;b=J.Kd(b||"*");return P.gl(P.Ob(a),b,function(){return"function parameter for "+Qa})});c=k();Bb.push(P.qa(E,"body"),N,c);c.close()}else if(T){a=e(N,T);if(!a)throw new q("Unknown initial template "+T,"XTDE0040");p=a.Rb.C[0];N.fixed.Ae?N.focus=D.jc(c):(N.focus=D.Da(D.R),N.focus.next());P.Aj(p,N);N.La=a;N.$b={};m(d,N);c=k();Bb.push(p.C[0],N,c);c.close()}else{T=d.xo;Array.isArray(T)&&r&&T.filter(G.da).map(function(a){return G.mg(a)?a:a.ownerDocument}).map(function(a){return r(a)});O=x(N, +p);if(!O)throw new q("Unknown initial mode "+p,"XTDE0045");if("PRIVATE"===O.visibility&&p!==a.defaultMode&&""!==p)throw new q("Uninvokable initial mode "+p+" with visibility "+O.Rb.vis,"XTDE0045");if(!c&&!T)throw new q("No source input supplied for apply-templates invocation","XTDE0044");a=O.mode;N.La=O;N.focus=D.Da(T?D.K(Array.isArray(T)?T:[T]):D.l(c));c=a.Sh.useAcc;null!=c&&"#all"!==c&&(N.Eh=c.split(/\s+/));m(d,N);c=k();a.Uc(N,c);c.close()}l();if(t){var V=function(){var a=N.fixed.Lg;N.fixed.Lg= +[];return Promise.all(a).then(function(){if(0O.nd.g(a.expiry).ab(O.nd.Sb(new Date,0)))throw new q("Development license for supplied stylesheet has expired","SXJS0006");}}function w(a){function b(a,b){for(var c=b<<8,d=0;de?4294967295+e+1:e).toString(16);if(g!==a){if("unspecified"===a)throw new q("No checksum found in SEF","SXJS0006");throw new q("Invalid checksum in SEF "+a+" != "+g,"SXJS0006");}}function z(a){function b(b,c){function d(c){var d=c.target,f=a.ja(!0);f.Ja=!1;f.Zg=c;f.focus=D.Da(D.l(P.Ob(d)[0]));f.La=b;c=Cb.ae(a);c=new Bb.yf(c);return(f=e.Uc(f,c))?f.expand():[]}var e=b.mode;-1==="httpabort afterprint beforeprint beforeunload hashchange languagechange message offline online pagehide pageshow popstate storage unhandledrejection unload".split(" ").indexOf(c)? +window.document.addEventListener(c,d,!1):window.addEventListener(c,d,!1)}var c=a.fixed.qb;Object.keys(c).forEach(function(a){a=c[a];a.mode&&a.mode.Vl()&&b(a,a.name.split("}on")[1])})}function t(a,b){return a.C?a.C.filter(function(a){return a.N===b}):[]}function g(a,b,c){function d(b,c){e(a,b,c)}function e(a,b,c){a.N===b&&c(a);a.C&&a.C.forEach(function(a){e(a,b,c)})}function f(a){return(a=a.name)?/^Q\{/.test(a)?a:"Q{}"+a:null}function g(a,b){function c(a){a=t(a,"co");for(var c=0;ca.Qc.max&&(a.Qc.max=c);a.Qc.Wa[c]=b.s}}(c)),55296 - + diff --git a/home/webapps/examples/xsl/saxon-js/saxon-js.xsl b/home/webapps/examples/xsl/saxon-js/saxon-js.xsl index c052af9a..6f2a4927 100644 --- a/home/webapps/examples/xsl/saxon-js/saxon-js.xsl +++ b/home/webapps/examples/xsl/saxon-js/saxon-js.xsl @@ -20,13 +20,15 @@ Book Catalogue - + diff --git a/src/main/java/nl/armatiek/xslweb/configuration/WebApp.java b/src/main/java/nl/armatiek/xslweb/configuration/WebApp.java index 580770fa..200113df 100644 --- a/src/main/java/nl/armatiek/xslweb/configuration/WebApp.java +++ b/src/main/java/nl/armatiek/xslweb/configuration/WebApp.java @@ -1,5 +1,3 @@ -package nl.armatiek.xslweb.configuration; - /* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with @@ -16,19 +14,18 @@ * See the License for the specific language governing permissions and * limitations under the License. */ +package nl.armatiek.xslweb.configuration; import static org.quartz.CronScheduleBuilder.cronSchedule; import static org.quartz.JobBuilder.newJob; import static org.quartz.TriggerBuilder.newTrigger; -import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.io.Closeable; import java.io.File; import java.io.FileNotFoundException; import java.io.StringReader; import java.io.StringWriter; -import java.nio.charset.StandardCharsets; import java.util.ArrayList; import java.util.Collection; import java.util.HashMap; @@ -114,6 +111,7 @@ import net.sf.saxon.s9api.Processor; import net.sf.saxon.s9api.QName; import net.sf.saxon.s9api.SaxonApiException; +import net.sf.saxon.s9api.UnprefixedElementMatchingPolicy; import net.sf.saxon.s9api.XQueryCompiler; import net.sf.saxon.s9api.XQueryExecutable; import net.sf.saxon.s9api.XdmDestination; @@ -144,7 +142,7 @@ public class WebApp implements ErrorHandler { private Map xqueryExecutableCache = new ConcurrentHashMap(); private Map templatesCache = new ConcurrentHashMap(); private Map schemaCache = new ConcurrentHashMap(); - private Map stylesheetExportFileCache = new ConcurrentHashMap(); + private Map stylesheetExportFileCache = new ConcurrentHashMap(); private Map> attributes = new ConcurrentHashMap>(); private Map dataSourceCache = new ConcurrentHashMap(); private Map fopFactoryCache = new ConcurrentHashMap(); @@ -422,7 +420,7 @@ public void executeEvent(final QName templateName) { return; } TransformationErrorListener errorListener = new TransformationErrorListener(null, developmentMode); - XsltExecutable templates = getXsltExecutable("events.xsl", errorListener, false); + XsltExecutable templates = getXsltExecutable("events.xsl", errorListener); Xslt30Transformer transformer = templates.load30(); SaxonUtils.setMessageEmitter(transformer.getUnderlyingController(), getConfiguration(), errorListener); transformer.setErrorListener(errorListener); @@ -584,16 +582,16 @@ public Processor getProcessor() { return processor; } - public XsltExecutable getRequestDispatcherTemplates(ErrorListener errorListener, boolean tracing) throws Exception { + public XsltExecutable getRequestDispatcherTemplates(ErrorListener errorListener) throws Exception { return tryXsltExecutableCache(new File(getHomeDir(), - Definitions.PATHNAME_REQUESTDISPATCHER_XSL).getAbsolutePath(), errorListener, tracing); + Definitions.PATHNAME_REQUESTDISPATCHER_XSL).getAbsolutePath(), errorListener); } - public XsltExecutable getXsltExecutable(String path, ErrorListener errorListener, boolean tracing) throws Exception { + public XsltExecutable getXsltExecutable(String path, ErrorListener errorListener) throws Exception { if (new File(path).isAbsolute()) { - return tryXsltExecutableCache(path, errorListener, tracing); + return tryXsltExecutableCache(path, errorListener); } - return tryXsltExecutableCache(new File(getHomeDir(), "xsl" + "/" + path).getAbsolutePath(), errorListener, tracing); + return tryXsltExecutableCache(new File(getHomeDir(), "xsl" + "/" + path).getAbsolutePath(), errorListener); } public XsltExecutable getIdentityXsltExecutable() { @@ -607,11 +605,11 @@ public Templates getTemplates(String path, ErrorListener errorListener) throws E return tryTemplatesCache(new File(getHomeDir(), "stx" + "/" + path).getAbsolutePath(), errorListener); } - public XQueryExecutable getQuery(String path, ErrorListener errorListener, boolean tracing) throws Exception { + public XQueryExecutable getQuery(String path, ErrorListener errorListener) throws Exception { if (new File(path).isAbsolute()) { - return tryQueryCache(path, errorListener, tracing); + return tryQueryCache(path, errorListener); } - return tryQueryCache(new File(getHomeDir(), "xquery" + "/" + path).getAbsolutePath(), errorListener, tracing); + return tryQueryCache(new File(getHomeDir(), "xquery" + "/" + path).getAbsolutePath(), errorListener); } public Schema getSchema(Collection schemaPaths, ErrorListener errorListener) throws Exception { @@ -633,11 +631,11 @@ public XsltExecutable getSchematron(String path, String phase, ErrorListener err return trySchematronCache(new File(getHomeDir(), "sch" + "/" + path).getAbsolutePath(), phase, errorListener); } - public XdmNode getStylesheetExportFile(String xslPath, ErrorListener errorListener, boolean tracing) throws Exception { + public byte[] getStylesheetExportFile(String xslPath, ErrorListener errorListener) throws Exception { if (new File(xslPath).isAbsolute()) { - return tryStylesheetExportFile(xslPath, tracing, errorListener); + return tryStylesheetExportFile(xslPath, errorListener); } - return tryStylesheetExportFile(new File(getHomeDir(), "xsl" + "/" + xslPath).getAbsolutePath(), tracing, errorListener); + return tryStylesheetExportFile(new File(getHomeDir(), "xsl" + "/" + xslPath).getAbsolutePath(), errorListener); } public File getStaticFile(String path) { @@ -658,8 +656,7 @@ public Resource matchesResource(String path) { return null; } - public XsltExecutable tryXsltExecutableCache(String transformationPath, - ErrorListener errorListener, boolean tracing) throws Exception { + public XsltExecutable tryXsltExecutableCache(String transformationPath, ErrorListener errorListener) throws Exception { String key = FilenameUtils.normalize(transformationPath); XsltExecutable xsltExecutable = xsltExecutableCache.get(key); if (xsltExecutable == null) { @@ -673,7 +670,6 @@ public XsltExecutable tryXsltExecutableCache(String transformationPath, XMLReader reader = parser.getXMLReader(); Source source = new SAXSource(reader, new InputSource(transformationPath)); XsltCompiler comp = processor.newXsltCompiler(); - comp.setCompileWithTracing(tracing); comp.setErrorListener(errorListener); xsltExecutable = comp.compile(source); } catch (Exception e) { @@ -716,8 +712,7 @@ public Templates tryTemplatesCache(String transformationPath, return templates; } - public XQueryExecutable tryQueryCache(String xqueryPath, - ErrorListener errorListener, boolean tracing) throws Exception { + public XQueryExecutable tryQueryCache(String xqueryPath, ErrorListener errorListener) throws Exception { String key = FilenameUtils.normalize(xqueryPath); XQueryExecutable xquery = xqueryExecutableCache.get(key); if (xquery == null) { @@ -725,7 +720,6 @@ public XQueryExecutable tryQueryCache(String xqueryPath, try { XQueryCompiler comp = processor.newXQueryCompiler(); comp.setErrorListener(errorListener); - comp.setCompileWithTracing(tracing); xquery = comp.compile(new File(xqueryPath)); } catch (Exception e) { logger.error("Could not compile XQuery \"" + xqueryPath + "\"", e); @@ -780,13 +774,13 @@ public XsltExecutable trySchematronCache(String schematronPath, String phase, ErrorListener listener = new TransformationErrorListener(null, developmentMode); - Xslt30Transformer stage1 = tryXsltExecutableCache(new File(schematronDir, "iso_dsdl_include.xsl").getAbsolutePath(), errorListener, false).load30(); + Xslt30Transformer stage1 = tryXsltExecutableCache(new File(schematronDir, "iso_dsdl_include.xsl").getAbsolutePath(), errorListener).load30(); stage1.setErrorListener(listener); SaxonUtils.setMessageEmitter(stage1.getUnderlyingController(), getConfiguration(), errorListener); - Xslt30Transformer stage2 = tryXsltExecutableCache(new File(schematronDir, "iso_abstract_expand.xsl").getAbsolutePath(), errorListener, false).load30(); + Xslt30Transformer stage2 = tryXsltExecutableCache(new File(schematronDir, "iso_abstract_expand.xsl").getAbsolutePath(), errorListener).load30(); stage2.setErrorListener(listener); SaxonUtils.setMessageEmitter(stage2.getUnderlyingController(), getConfiguration(), errorListener); - Xslt30Transformer stage3 = tryXsltExecutableCache(new File(schematronDir, "iso_svrl_for_xslt2.xsl").getAbsolutePath(), errorListener, false).load30(); + Xslt30Transformer stage3 = tryXsltExecutableCache(new File(schematronDir, "iso_svrl_for_xslt2.xsl").getAbsolutePath(), errorListener).load30(); stage3.setErrorListener(listener); SaxonUtils.setMessageEmitter(stage3.getUnderlyingController(), getConfiguration(), errorListener); @@ -832,23 +826,22 @@ public XsltExecutable trySchematronCache(String schematronPath, String phase, return templates; } - public XdmNode tryStylesheetExportFile(String xslPath, boolean tracing, ErrorListener errorListener) throws Exception { + public byte[] tryStylesheetExportFile(String xslPath, ErrorListener errorListener) throws Exception { String key = FilenameUtils.normalize(xslPath); - XdmNode sef = stylesheetExportFileCache.get(key); + byte[] sef = stylesheetExportFileCache.get(key); if (sef == null) { logger.info("Generating and caching stylesheet export file for \"" + xslPath + "\" ..."); try { XsltCompiler comp = processor.newXsltCompiler(); comp.setTargetEdition("JS"); - comp.setCompileWithTracing(tracing); comp.setErrorListener(errorListener); comp.setJustInTimeCompilation(false); + comp.setDefaultElementNamespace(Definitions.NAMESPACEURI_XHTML); + comp.setUnprefixedElementMatchingPolicy(UnprefixedElementMatchingPolicy.DEFAULT_NAMESPACE_OR_NONE); XsltExecutable exec = comp.compile(new StreamSource(xslPath)); - String encoding = exec.getUnderlyingCompiledStylesheet().getOutputProperties().getProperty(OutputKeys.ENCODING); - encoding = (encoding == null) ? StandardCharsets.UTF_8.name() : encoding; ByteArrayOutputStream baos = new ByteArrayOutputStream(); exec.export(baos, "JS"); - sef = processor.newDocumentBuilder().build(new StreamSource(new ByteArrayInputStream(baos.toByteArray()))); + sef = baos.toByteArray(); } catch (Exception e) { logger.error("Could not generate stylesheet export file for \"" + xslPath + "\"", e); throw e; diff --git a/src/main/java/nl/armatiek/xslweb/pipeline/FopSerializerStep.java b/src/main/java/nl/armatiek/xslweb/pipeline/FopSerializerStep.java index 25e2a06e..cd795159 100644 --- a/src/main/java/nl/armatiek/xslweb/pipeline/FopSerializerStep.java +++ b/src/main/java/nl/armatiek/xslweb/pipeline/FopSerializerStep.java @@ -22,6 +22,7 @@ import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; +import javax.xml.transform.ErrorListener; import org.xml.sax.Attributes; @@ -42,8 +43,8 @@ public FopSerializerStep(Attributes atts) { } @Override - public Destination getDestination(WebApp webApp, HttpServletRequest req, - HttpServletResponse resp, OutputStream os, Properties outputProperties) throws Exception { + public Destination getDestination(WebApp webApp, HttpServletRequest req, HttpServletResponse resp, + OutputStream os, Properties outputProperties, ErrorListener errorListener) throws Exception { return new SAXDestination(new FopSerializer(webApp, req, resp, os)); } diff --git a/src/main/java/nl/armatiek/xslweb/pipeline/IdentityTransformerStep.java b/src/main/java/nl/armatiek/xslweb/pipeline/IdentityTransformerStep.java index 82b41ca3..475e674f 100644 --- a/src/main/java/nl/armatiek/xslweb/pipeline/IdentityTransformerStep.java +++ b/src/main/java/nl/armatiek/xslweb/pipeline/IdentityTransformerStep.java @@ -1,5 +1,3 @@ -package nl.armatiek.xslweb.pipeline; - /* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with @@ -16,11 +14,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ +package nl.armatiek.xslweb.pipeline; import java.io.File; import nl.armatiek.xslweb.configuration.Context; -import nl.armatiek.xslweb.configuration.WebApp; /** * Pipeline step that performs an identity transformation @@ -30,8 +28,8 @@ */ public class IdentityTransformerStep extends TransformerStep { - public IdentityTransformerStep(WebApp webApp) { - super(webApp, new File(Context.getInstance().getHomeDir(), "common/xsl/system/identity/identity.xsl").getAbsolutePath(), "identity", false); + public IdentityTransformerStep() { + super(new File(Context.getInstance().getHomeDir(), "common/xsl/system/identity/identity.xsl").getAbsolutePath(), "identity", false); } } \ No newline at end of file diff --git a/src/main/java/nl/armatiek/xslweb/pipeline/JSONSerializerStep.java b/src/main/java/nl/armatiek/xslweb/pipeline/JSONSerializerStep.java index 164df97c..c9742ac5 100644 --- a/src/main/java/nl/armatiek/xslweb/pipeline/JSONSerializerStep.java +++ b/src/main/java/nl/armatiek/xslweb/pipeline/JSONSerializerStep.java @@ -28,6 +28,7 @@ import javax.xml.namespace.QName; import javax.xml.stream.XMLOutputFactory; import javax.xml.stream.XMLStreamException; +import javax.xml.transform.ErrorListener; import org.xml.sax.Attributes; @@ -78,8 +79,8 @@ public void addNamespaceDeclaration(String namespace, String name) { } @Override - public Destination getDestination(WebApp webApp, HttpServletRequest req, - HttpServletResponse resp, OutputStream os, Properties outputProperties) throws XMLStreamException { + public Destination getDestination(WebApp webApp, HttpServletRequest req, HttpServletResponse resp, + OutputStream os, Properties outputProperties, ErrorListener errorListener) throws XMLStreamException { JsonXMLConfig config = new JsonXMLConfigBuilder() .autoArray(autoArray) .autoPrimitive(autoPrimitive) diff --git a/src/main/java/nl/armatiek/xslweb/pipeline/PipelineHandler.java b/src/main/java/nl/armatiek/xslweb/pipeline/PipelineHandler.java index fca30390..1ca2971f 100644 --- a/src/main/java/nl/armatiek/xslweb/pipeline/PipelineHandler.java +++ b/src/main/java/nl/armatiek/xslweb/pipeline/PipelineHandler.java @@ -1,5 +1,3 @@ -package nl.armatiek.xslweb.pipeline; - /* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with @@ -16,6 +14,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ +package nl.armatiek.xslweb.pipeline; import java.io.ByteArrayOutputStream; import java.io.OutputStream; @@ -53,10 +52,8 @@ public class PipelineHandler implements ContentHandler { private StringBuilder chars = new StringBuilder(); private Processor processor; private Configuration conf; - private WebApp webApp; public PipelineHandler(WebApp webApp) { - this.webApp = webApp; this.processor = webApp.getProcessor(); this.conf = webApp.getConfiguration(); } @@ -159,7 +156,7 @@ public void startElement(String uri, String localName, String qName, Attributes } String name = getAttribute(atts, "name", "transformer-" + Integer.toString(pipelineSteps.size()+1)); boolean log = getAttribute(atts, "log", "false").equals("true"); - pipelineSteps.add(new TransformerStep(webApp, xslPath, name, log)); + pipelineSteps.add(new TransformerStep(xslPath, name, log)); } else if (localName.equals("query")) { String xqueryPath = getAttribute(atts, "xquery-path", null); if (StringUtils.isBlank(xqueryPath)) { @@ -167,7 +164,7 @@ public void startElement(String uri, String localName, String qName, Attributes } String name = getAttribute(atts, "name", "query-" + Integer.toString(pipelineSteps.size()+1)); boolean log = getAttribute(atts, "log", "false").equals("true"); - pipelineSteps.add(new QueryStep(webApp, xqueryPath, name, log)); + pipelineSteps.add(new QueryStep(xqueryPath, name, log)); } else if (localName.equals("transformer-stx")) { String stxPath = getAttribute(atts, "stx-path", null); if (StringUtils.isBlank(stxPath)) { diff --git a/src/main/java/nl/armatiek/xslweb/pipeline/QueryStep.java b/src/main/java/nl/armatiek/xslweb/pipeline/QueryStep.java index 56b2ca33..75e89d89 100644 --- a/src/main/java/nl/armatiek/xslweb/pipeline/QueryStep.java +++ b/src/main/java/nl/armatiek/xslweb/pipeline/QueryStep.java @@ -1,10 +1,3 @@ -package nl.armatiek.xslweb.pipeline; - -import net.sf.saxon.lib.TraceListener; -import net.sf.saxon.trace.XQueryTraceListener; -import nl.armatiek.xslweb.configuration.WebApp; -import nl.armatiek.xslweb.saxon.trace.XSLWebTimingTraceListener; - /* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with @@ -21,18 +14,19 @@ * See the License for the specific language governing permissions and * limitations under the License. */ +package nl.armatiek.xslweb.pipeline; /** * Pipeline step that executes an XQuery * * @author Maarten Kroon */ -public class QueryStep extends TraceablePipelineStep { +public class QueryStep extends ParameterizablePipelineStep { private String xqueryPath; - public QueryStep(WebApp webApp, String xqueryPath, String name, boolean log) { - super(webApp, name, log); + public QueryStep(String xqueryPath, String name, boolean log) { + super(name, log); this.xqueryPath = xqueryPath; } @@ -40,13 +34,4 @@ public String getXQueryPath() { return this.xqueryPath; } - @Override - protected TraceListener getTraceListenerInternal(TraceType traceType) { - if (traceType.equals(TraceType.BASIC)) - return new XQueryTraceListener(); - else if (traceType.equals(TraceType.TIMING)) - return new XSLWebTimingTraceListener(webApp); - return null; - } - } \ No newline at end of file diff --git a/src/main/java/nl/armatiek/xslweb/pipeline/ResourceSerializerStep.java b/src/main/java/nl/armatiek/xslweb/pipeline/ResourceSerializerStep.java index cd3b8ca6..544a8ece 100644 --- a/src/main/java/nl/armatiek/xslweb/pipeline/ResourceSerializerStep.java +++ b/src/main/java/nl/armatiek/xslweb/pipeline/ResourceSerializerStep.java @@ -23,6 +23,7 @@ import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.xml.stream.XMLStreamException; +import javax.xml.transform.ErrorListener; import org.xml.sax.Attributes; @@ -38,8 +39,8 @@ public ResourceSerializerStep(Attributes atts) { } @Override - public Destination getDestination(WebApp webApp, HttpServletRequest req, - HttpServletResponse resp, OutputStream os, Properties outputProperties) throws XMLStreamException { + public Destination getDestination(WebApp webApp, HttpServletRequest req, HttpServletResponse resp, + OutputStream os, Properties outputProperties, ErrorListener errorListener) throws XMLStreamException { return new SAXDestination(new ResourceSerializer(webApp, req, resp, os)); } diff --git a/src/main/java/nl/armatiek/xslweb/pipeline/SerializerStep.java b/src/main/java/nl/armatiek/xslweb/pipeline/SerializerStep.java index ab4a5131..3946e17b 100644 --- a/src/main/java/nl/armatiek/xslweb/pipeline/SerializerStep.java +++ b/src/main/java/nl/armatiek/xslweb/pipeline/SerializerStep.java @@ -1,5 +1,3 @@ -package nl.armatiek.xslweb.pipeline; - /* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with @@ -16,12 +14,14 @@ * See the License for the specific language governing permissions and * limitations under the License. */ +package nl.armatiek.xslweb.pipeline; import java.io.OutputStream; import java.util.Properties; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; +import javax.xml.transform.ErrorListener; import org.xml.sax.Attributes; @@ -46,8 +46,12 @@ public SerializerStep(Attributes atts) { ); } - public abstract Destination getDestination(WebApp webApp, HttpServletRequest req, HttpServletResponse resp, - OutputStream os, Properties outputProperties) throws Exception; + public abstract Destination getDestination(WebApp webApp, HttpServletRequest req, + HttpServletResponse resp, OutputStream os, Properties outputProperties, ErrorListener errorListener) throws Exception; + + public boolean hasSourceDocument() { + return true; + } protected static String getAttribute(Attributes attr, String name, String defaultValue) { int index = -1; diff --git a/src/main/java/nl/armatiek/xslweb/pipeline/StylesheetExportFileStep.java b/src/main/java/nl/armatiek/xslweb/pipeline/StylesheetExportFileStep.java index 3805495b..fcc05bff 100644 --- a/src/main/java/nl/armatiek/xslweb/pipeline/StylesheetExportFileStep.java +++ b/src/main/java/nl/armatiek/xslweb/pipeline/StylesheetExportFileStep.java @@ -1,5 +1,3 @@ -package nl.armatiek.xslweb.pipeline; - /* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with @@ -16,8 +14,22 @@ * See the License for the specific language governing permissions and * limitations under the License. */ +package nl.armatiek.xslweb.pipeline; + +import java.io.File; +import java.io.OutputStream; +import java.util.Properties; -public class StylesheetExportFileStep extends ParameterizablePipelineStep { +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import javax.xml.stream.XMLStreamException; +import javax.xml.transform.ErrorListener; + +import net.sf.saxon.s9api.Destination; +import net.sf.saxon.s9api.NullDestination; +import nl.armatiek.xslweb.configuration.WebApp; + +public class StylesheetExportFileStep extends SerializerStep { private String xslPath; @@ -29,5 +41,22 @@ public StylesheetExportFileStep(String xslPath, String name, boolean log) { public String getXslPath() { return this.xslPath; } + + @Override + public Destination getDestination(WebApp webApp, HttpServletRequest req, HttpServletResponse resp, + OutputStream os, Properties outputProperties, ErrorListener errorListener) throws XMLStreamException { + try { + byte[] sef; + if (new File(xslPath).isAbsolute()) { + sef = webApp.tryStylesheetExportFile(xslPath, errorListener); + } else { + sef = webApp.tryStylesheetExportFile(new File(webApp.getHomeDir(), "xsl" + "/" + xslPath).getAbsolutePath(), errorListener); + } + os.write(sef); + } catch (Exception e) { + throw new XMLStreamException(e); + } + return new NullDestination(); + } } \ No newline at end of file diff --git a/src/main/java/nl/armatiek/xslweb/pipeline/SystemTransformerStep.java b/src/main/java/nl/armatiek/xslweb/pipeline/SystemTransformerStep.java index bab03723..e986a098 100644 --- a/src/main/java/nl/armatiek/xslweb/pipeline/SystemTransformerStep.java +++ b/src/main/java/nl/armatiek/xslweb/pipeline/SystemTransformerStep.java @@ -1,7 +1,3 @@ -package nl.armatiek.xslweb.pipeline; - -import nl.armatiek.xslweb.configuration.WebApp; - /* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with @@ -18,11 +14,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ +package nl.armatiek.xslweb.pipeline; public class SystemTransformerStep extends TransformerStep { - public SystemTransformerStep(WebApp webApp, String xslPath, String name, boolean log) { - super(webApp, xslPath, name, log); + public SystemTransformerStep(String xslPath, String name, boolean log) { + super(xslPath, name, log); } } diff --git a/src/main/java/nl/armatiek/xslweb/pipeline/TraceablePipelineStep.java b/src/main/java/nl/armatiek/xslweb/pipeline/TraceablePipelineStep.java deleted file mode 100644 index c5f93880..00000000 --- a/src/main/java/nl/armatiek/xslweb/pipeline/TraceablePipelineStep.java +++ /dev/null @@ -1,62 +0,0 @@ -package nl.armatiek.xslweb.pipeline; - -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import java.io.ByteArrayOutputStream; -import java.io.PrintStream; -import java.nio.charset.StandardCharsets; - -import net.sf.saxon.lib.Logger; -import net.sf.saxon.lib.StandardLogger; -import net.sf.saxon.lib.TraceListener; -import nl.armatiek.xslweb.configuration.WebApp; - -public abstract class TraceablePipelineStep extends ParameterizablePipelineStep { - - public enum TraceType { NONE, BASIC, TIMING } - - protected TraceListener traceListener; - protected ByteArrayOutputStream baos; - protected PrintStream ps; - protected WebApp webApp; - - public TraceablePipelineStep(WebApp webApp, String name, boolean log) { - super(name, log); - this.webApp = webApp; - } - - public TraceListener getTraceListener(TraceType traceType) { - this.baos = new ByteArrayOutputStream(); - this.ps = new PrintStream(baos); - Logger logger = new StandardLogger(ps); - this.traceListener = getTraceListenerInternal(traceType); - this.traceListener.setOutputDestination(logger); - return this.traceListener; - } - - protected abstract TraceListener getTraceListenerInternal(TraceType traceType); - - public String getTracing() { - if (traceListener == null) - return null; - this.traceListener.close(); - this.ps.flush(); - return new String(baos.toByteArray(), StandardCharsets.UTF_8); - } - -} \ No newline at end of file diff --git a/src/main/java/nl/armatiek/xslweb/pipeline/TransformerStep.java b/src/main/java/nl/armatiek/xslweb/pipeline/TransformerStep.java index cc4709de..4826d35c 100644 --- a/src/main/java/nl/armatiek/xslweb/pipeline/TransformerStep.java +++ b/src/main/java/nl/armatiek/xslweb/pipeline/TransformerStep.java @@ -1,10 +1,5 @@ package nl.armatiek.xslweb.pipeline; -import net.sf.saxon.lib.TraceListener; -import net.sf.saxon.trace.XSLTTraceListener; -import nl.armatiek.xslweb.configuration.WebApp; -import nl.armatiek.xslweb.saxon.trace.XSLWebTimingTraceListener; - /* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with @@ -22,12 +17,12 @@ * limitations under the License. */ -public class TransformerStep extends TraceablePipelineStep { +public class TransformerStep extends ParameterizablePipelineStep { private String xslPath; - public TransformerStep(WebApp webApp, String xslPath, String name, boolean log) { - super(webApp, name, log); + public TransformerStep(String xslPath, String name, boolean log) { + super(name, log); this.xslPath = xslPath; } @@ -35,13 +30,4 @@ public String getXslPath() { return this.xslPath; } - @Override - protected TraceListener getTraceListenerInternal(TraceType traceType) { - if (traceType.equals(TraceType.BASIC)) - return new XSLTTraceListener(); - else if (traceType.equals(TraceType.TIMING)) - return new XSLWebTimingTraceListener(webApp); - return null; - } - } \ No newline at end of file diff --git a/src/main/java/nl/armatiek/xslweb/pipeline/ZipSerializerStep.java b/src/main/java/nl/armatiek/xslweb/pipeline/ZipSerializerStep.java index a702c969..08f1f1f2 100644 --- a/src/main/java/nl/armatiek/xslweb/pipeline/ZipSerializerStep.java +++ b/src/main/java/nl/armatiek/xslweb/pipeline/ZipSerializerStep.java @@ -23,6 +23,7 @@ import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.xml.stream.XMLStreamException; +import javax.xml.transform.ErrorListener; import org.xml.sax.Attributes; @@ -38,8 +39,8 @@ public ZipSerializerStep(Attributes atts) { } @Override - public Destination getDestination(WebApp webApp, HttpServletRequest req, - HttpServletResponse resp, OutputStream os, Properties outputProperties) throws XMLStreamException { + public Destination getDestination(WebApp webApp, HttpServletRequest req, HttpServletResponse resp, + OutputStream os, Properties outputProperties, ErrorListener errorListener) throws XMLStreamException { return new SAXDestination(new ZipSerializer(webApp, req, resp, os)); } diff --git a/src/main/java/nl/armatiek/xslweb/saxon/errrorlistener/MessageListenerProxy.java b/src/main/java/nl/armatiek/xslweb/saxon/errrorlistener/MessageListenerProxy.java index c1027f84..5c34c246 100644 --- a/src/main/java/nl/armatiek/xslweb/saxon/errrorlistener/MessageListenerProxy.java +++ b/src/main/java/nl/armatiek/xslweb/saxon/errrorlistener/MessageListenerProxy.java @@ -1,14 +1,16 @@ package nl.armatiek.xslweb.saxon.errrorlistener; import net.sf.saxon.event.PipelineConfiguration; -import net.sf.saxon.event.ReceiverOptions; +import net.sf.saxon.event.ReceiverOption; import net.sf.saxon.event.SequenceWriter; -import net.sf.saxon.expr.parser.ExplicitLocation; -import net.sf.saxon.expr.parser.Location; +import net.sf.saxon.expr.parser.Loc; +import net.sf.saxon.om.AttributeMap; import net.sf.saxon.om.Item; +import net.sf.saxon.om.NamespaceMap; import net.sf.saxon.om.NodeInfo; import net.sf.saxon.om.NodeName; import net.sf.saxon.om.TreeModel; +import net.sf.saxon.s9api.Location; import net.sf.saxon.s9api.MessageListener; import net.sf.saxon.s9api.XdmNode; import net.sf.saxon.trans.XPathException; @@ -50,10 +52,12 @@ public MessageListener getMessageListener() { /** * Start of a document node. + * + * @param properties */ public void startDocument(int properties) throws XPathException { - terminate = (properties & ReceiverOptions.TERMINATE) != 0; + terminate = ReceiverOption.contains(properties, ReceiverOption.TERMINATE); locationId = null; errorCode = null; super.startDocument(properties); @@ -61,22 +65,13 @@ public void startDocument(int properties) throws XPathException { /** * Output an element start tag. - * - * @param nameCode - * The element name code - a code held in the Name Pool - * @param typeCode - * Integer code identifying the type of this element. Zero identifies - * the default type, that is xs:anyType - * @param location - * @param properties - * bit-significant flags indicating any special information */ - public void startElement(NodeName nameCode, SchemaType typeCode, Location location, int properties) throws XPathException { + public void startElement(NodeName elemName, SchemaType type, AttributeMap attributes, NamespaceMap namespaces, Location location, int properties) throws XPathException { if (this.locationId == null) { this.locationId = location; } - super.startElement(nameCode, typeCode, location, properties); + super.startElement(elemName, type, attributes, namespaces, location, properties); } @Override @@ -91,7 +86,7 @@ public void processingInstruction(String target, CharSequence data, Location loc /** * Produce text content output. - * + * * @param s * The String to be output * @param locationId @@ -100,7 +95,6 @@ public void processingInstruction(String target, CharSequence data, Location loc * @param properties * bit-significant flags for extra information, e.g. * disable-output-escaping @throws net.sf.saxon.trans.XPathException - * for any failure */ public void characters(CharSequence s, Location locationId, int properties) throws XPathException { @@ -133,7 +127,7 @@ public void append(Item item, Location locationId, int copyNamespaces) throws XP public void write(Item item) throws XPathException { Location loc; if (locationId == null) { - loc = ExplicitLocation.UNKNOWN_LOCATION; + loc = Loc.NONE; } else { loc = locationId.saveLocation(); } diff --git a/src/main/java/nl/armatiek/xslweb/saxon/functions/ExtensionFunctionCall.java b/src/main/java/nl/armatiek/xslweb/saxon/functions/ExtensionFunctionCall.java index 059665a0..56cdfdb4 100644 --- a/src/main/java/nl/armatiek/xslweb/saxon/functions/ExtensionFunctionCall.java +++ b/src/main/java/nl/armatiek/xslweb/saxon/functions/ExtensionFunctionCall.java @@ -255,8 +255,8 @@ protected Collection sequenceToAttributeCollection(Sequence seq, XPat return attrs; } - protected ZeroOrMore> attributeCollectionToSequence(Collection attrs, XPathContext context) throws Exception { - ArrayList> results = new ArrayList>(); + protected ZeroOrMore attributeCollectionToSequence(Collection attrs, XPathContext context) throws Exception { + ArrayList results = new ArrayList(); if (attrs != null) { for (Attribute attr : attrs) { Object value = attr.getValue(); @@ -267,7 +267,7 @@ protected ZeroOrMore> attributeCollectionToSequence(Collection>(results); + return new ZeroOrMore(results); } protected NodeInfo source2NodeInfo(Source source, Configuration configuration) { diff --git a/src/main/java/nl/armatiek/xslweb/saxon/functions/cache/Remove.java b/src/main/java/nl/armatiek/xslweb/saxon/functions/cache/Remove.java index b1f91df4..87ec32f4 100644 --- a/src/main/java/nl/armatiek/xslweb/saxon/functions/cache/Remove.java +++ b/src/main/java/nl/armatiek/xslweb/saxon/functions/cache/Remove.java @@ -1,5 +1,3 @@ -package nl.armatiek.xslweb.saxon.functions.cache; - /* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with @@ -16,6 +14,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ +package nl.armatiek.xslweb.saxon.functions.cache; import net.sf.ehcache.Cache; import net.sf.saxon.expr.XPathContext; @@ -73,7 +72,7 @@ public ExtensionFunctionCall makeCallExpression() { private static class ClearCall extends ExtensionFunctionCall { @Override - public Sequence call(XPathContext context, Sequence[] arguments) throws XPathException { + public Sequence call(XPathContext context, Sequence[] arguments) throws XPathException { try { String key = ((StringValue) arguments[0].head()).getStringValue(); Cache cache = Context.getInstance().getCacheManager().getCache(Definitions.CACHENAME_RESPONSECACHINGFILTER); diff --git a/src/main/java/nl/armatiek/xslweb/saxon/functions/common/GetAttributeCall.java b/src/main/java/nl/armatiek/xslweb/saxon/functions/common/GetAttributeCall.java index a807dd05..aec08161 100644 --- a/src/main/java/nl/armatiek/xslweb/saxon/functions/common/GetAttributeCall.java +++ b/src/main/java/nl/armatiek/xslweb/saxon/functions/common/GetAttributeCall.java @@ -1,5 +1,3 @@ -package nl.armatiek.xslweb.saxon.functions.common; - /* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with @@ -16,6 +14,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ +package nl.armatiek.xslweb.saxon.functions.common; import java.util.Collection; @@ -33,7 +32,7 @@ public abstract class GetAttributeCall extends ExtensionFunctionCall { protected abstract Collection getAttributes(String name, XPathContext context); @Override - public ZeroOrMore> call(XPathContext context, Sequence[] arguments) throws XPathException { + public ZeroOrMore call(XPathContext context, Sequence[] arguments) throws XPathException { try { String name = ((StringValue) arguments[0].head()).getStringValue(); Collection attrs = getAttributes(name, context); diff --git a/src/main/java/nl/armatiek/xslweb/saxon/functions/common/GetCacheValueCall.java b/src/main/java/nl/armatiek/xslweb/saxon/functions/common/GetCacheValueCall.java index 97d70478..21086844 100644 --- a/src/main/java/nl/armatiek/xslweb/saxon/functions/common/GetCacheValueCall.java +++ b/src/main/java/nl/armatiek/xslweb/saxon/functions/common/GetCacheValueCall.java @@ -1,5 +1,3 @@ -package nl.armatiek.xslweb.saxon.functions.common; - /* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with @@ -16,6 +14,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ +package nl.armatiek.xslweb.saxon.functions.common; import java.util.Collection; @@ -33,7 +32,7 @@ public abstract class GetCacheValueCall extends ExtensionFunctionCall { protected abstract Collection getAttributes(String cacheName, String keyName, XPathContext context); @Override - public ZeroOrMore> call(XPathContext context, Sequence[] arguments) throws XPathException { + public ZeroOrMore call(XPathContext context, Sequence[] arguments) throws XPathException { try { String cacheName = ((StringValue) arguments[0].head()).getStringValue(); String keyName = ((StringValue) arguments[1].head()).getStringValue(); diff --git a/src/main/java/nl/armatiek/xslweb/saxon/functions/common/SetAttributeCall.java b/src/main/java/nl/armatiek/xslweb/saxon/functions/common/SetAttributeCall.java index 8f3d2e22..8f7cff49 100644 --- a/src/main/java/nl/armatiek/xslweb/saxon/functions/common/SetAttributeCall.java +++ b/src/main/java/nl/armatiek/xslweb/saxon/functions/common/SetAttributeCall.java @@ -1,5 +1,3 @@ -package nl.armatiek.xslweb.saxon.functions.common; - /* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with @@ -16,6 +14,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ +package nl.armatiek.xslweb.saxon.functions.common; import java.util.Collection; @@ -32,7 +31,7 @@ public abstract class SetAttributeCall extends ExtensionFunctionCall { protected abstract void setAttributes(String name, Collection attrs, XPathContext context); @Override - public Sequence call(XPathContext context, Sequence[] arguments) throws XPathException { + public Sequence call(XPathContext context, Sequence[] arguments) throws XPathException { String name = ((StringValue) arguments[0].head()).getStringValue(); Collection attrs = null; if (arguments.length > 1) { diff --git a/src/main/java/nl/armatiek/xslweb/saxon/functions/common/SetCacheValueCall.java b/src/main/java/nl/armatiek/xslweb/saxon/functions/common/SetCacheValueCall.java index 6b872086..ada8ec68 100644 --- a/src/main/java/nl/armatiek/xslweb/saxon/functions/common/SetCacheValueCall.java +++ b/src/main/java/nl/armatiek/xslweb/saxon/functions/common/SetCacheValueCall.java @@ -1,4 +1,3 @@ -package nl.armatiek.xslweb.saxon.functions.common; /* * Licensed to the Apache Software Foundation (ASF) under one or more @@ -16,6 +15,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ +package nl.armatiek.xslweb.saxon.functions.common; import java.util.Collection; @@ -34,7 +34,7 @@ protected abstract void setAttributes(String cacheName, String keyName, Collecti int tti, int ttl, XPathContext context); @Override - public Sequence call(XPathContext context, Sequence[] arguments) throws XPathException { + public Sequence call(XPathContext context, Sequence[] arguments) throws XPathException { String cacheName = ((StringValue) arguments[0].head()).getStringValue(); String keyName = ((StringValue) arguments[1].head()).getStringValue(); int tti = (int) ((IntegerValue) arguments[3].head()).longValue(); diff --git a/src/main/java/nl/armatiek/xslweb/saxon/functions/dynfunc/Call.java b/src/main/java/nl/armatiek/xslweb/saxon/functions/dynfunc/Call.java index 662bdae2..4195f648 100644 --- a/src/main/java/nl/armatiek/xslweb/saxon/functions/dynfunc/Call.java +++ b/src/main/java/nl/armatiek/xslweb/saxon/functions/dynfunc/Call.java @@ -74,7 +74,7 @@ public ExtensionFunctionCall makeCallExpression() { private static class CallFunctionCall extends ExtensionFunctionCall { @Override - public Sequence call(XPathContext context, Sequence[] arguments) throws XPathException { + public Sequence call(XPathContext context, Sequence[] arguments) throws XPathException { String functionName = ((QualifiedNameValue) arguments[0].head()).getClarkName(); ExtensionFunctionDefinition funcDef = getWebApp(context).getExtensionFunctionDefinition(functionName); if (funcDef == null) { diff --git a/src/main/java/nl/armatiek/xslweb/saxon/functions/dynfunc/DynamicExtensionFunctionDefinition.java b/src/main/java/nl/armatiek/xslweb/saxon/functions/dynfunc/DynamicExtensionFunctionDefinition.java index 56e0ec9e..74d1c990 100644 --- a/src/main/java/nl/armatiek/xslweb/saxon/functions/dynfunc/DynamicExtensionFunctionDefinition.java +++ b/src/main/java/nl/armatiek/xslweb/saxon/functions/dynfunc/DynamicExtensionFunctionDefinition.java @@ -326,7 +326,7 @@ public ExtensionFunctionCall makeCallExpression() { return new ExtensionFunctionCall() { @SuppressWarnings("unchecked") @Override - public Sequence call(XPathContext context, Sequence[] arguments) throws XPathException { + public Sequence call(XPathContext context, Sequence[] arguments) throws XPathException { try { ArrayList implicitObjects = new ArrayList(); for (Class paramType: parameterTypes) { @@ -372,15 +372,15 @@ public Sequence call(XPathContext context, Sequence[] arguments) throws XPath } for (int i=0; i> argument = arguments[i]; + Sequence argument = arguments[i]; Class paramType = parameterTypes[i + implicitObjects.size()]; boolean isArray = paramType.isArray(); Object param; if (isArray) { Class componentType = paramType.getComponentType(); ArrayList list = new ArrayList(); - SequenceIterator> si = argument.iterate(); - Item item; + SequenceIterator si = argument.iterate(); + Item item; while ((item = si.next()) != null) { list.add(convertToJava(item, componentType)); } diff --git a/src/main/java/nl/armatiek/xslweb/saxon/functions/dynfunc/Register.java b/src/main/java/nl/armatiek/xslweb/saxon/functions/dynfunc/Register.java index 828dc43e..f6bc0b1e 100644 --- a/src/main/java/nl/armatiek/xslweb/saxon/functions/dynfunc/Register.java +++ b/src/main/java/nl/armatiek/xslweb/saxon/functions/dynfunc/Register.java @@ -49,10 +49,15 @@ import net.sf.saxon.event.PipelineConfiguration; import net.sf.saxon.expr.StaticProperty; import net.sf.saxon.expr.XPathContext; -import net.sf.saxon.expr.parser.ExplicitLocation; +import net.sf.saxon.expr.parser.Loc; import net.sf.saxon.lib.ExtensionFunctionDefinition; +import net.sf.saxon.om.AttributeInfo; +import net.sf.saxon.om.AttributeMap; import net.sf.saxon.om.CodedName; +import net.sf.saxon.om.EmptyAttributeMap; +import net.sf.saxon.om.LargeAttributeMap; import net.sf.saxon.om.NamePool; +import net.sf.saxon.om.NamespaceMap; import net.sf.saxon.om.NodeInfo; import net.sf.saxon.om.Sequence; import net.sf.saxon.om.SequenceIterator; @@ -277,24 +282,27 @@ public ZeroOrOne call(XPathContext context, Sequence[] arguments) thro WebApp webApp = getWebApp(context); Fingerprints fingerprints = webApp.getFingerprints(); NamePool namePool = context.getConfiguration().getNamePool(); - PipelineConfiguration config = context.getConfiguration().makePipelineConfiguration(); TinyBuilder builder = (TinyBuilder) TreeModel.TINY_TREE.makeBuilder(config); builder.setLineNumbering(false); builder.open(); builder.startDocument(0); - builder.startElement(new CodedName(fingerprints.FUNCTION_DIAGNOSTICS, "dynfunc", namePool), Untyped.getInstance(), ExplicitLocation.UNKNOWN_LOCATION, 0); + NamespaceMap nsMap = NamespaceMap.of("dynfunc", Definitions.NAMESPACEURI_XSLWEB_FX_DYNFUNC); + builder.startElement(new CodedName(fingerprints.FUNCTION_DIAGNOSTICS, "dynfunc", namePool), Untyped.getInstance(), + EmptyAttributeMap.getInstance(), nsMap, Loc.NONE, 0); List> diags = diagnostics.getDiagnostics(); for (Diagnostic diag : diags) { - builder.startElement(new CodedName(fingerprints.FUNCTION_DIAGNOSTIC, "dynfunc", namePool), Untyped.getInstance(), ExplicitLocation.UNKNOWN_LOCATION, 0); - builder.attribute(new CodedName(fingerprints.CODE, "", namePool), BuiltInAtomicType.UNTYPED_ATOMIC, StringUtils.defaultString(diag.getCode()), null, 0); - builder.attribute(new CodedName(fingerprints.LINE, "", namePool), BuiltInAtomicType.UNTYPED_ATOMIC, Long.toString(diag.getLineNumber()), null, 0); - builder.attribute(new CodedName(fingerprints.COLUMN, "", namePool), BuiltInAtomicType.UNTYPED_ATOMIC, Long.toString(diag.getColumnNumber()), null, 0); - builder.attribute(new CodedName(fingerprints.START, "", namePool), BuiltInAtomicType.UNTYPED_ATOMIC, Long.toString(diag.getStartPosition()), null, 0); - builder.attribute(new CodedName(fingerprints.END, "", namePool), BuiltInAtomicType.UNTYPED_ATOMIC, Long.toString(diag.getEndPosition()), null, 0); - builder.attribute(new CodedName(fingerprints.KIND, "", namePool), BuiltInAtomicType.UNTYPED_ATOMIC, diag.getKind().name(), null, 0); - builder.attribute(new CodedName(fingerprints.MESSAGE, "", namePool), BuiltInAtomicType.UNTYPED_ATOMIC, StringUtils.defaultString(diag.getMessage(null)), null, 0); - builder.attribute(new CodedName(fingerprints.POSITION, "", namePool), BuiltInAtomicType.UNTYPED_ATOMIC, Long.toString(diag.getPosition()), null, 0); + ArrayList attrList = new ArrayList(); + attrList.add(new AttributeInfo(new CodedName(fingerprints.CODE, "", namePool), BuiltInAtomicType.UNTYPED_ATOMIC, StringUtils.defaultString(diag.getCode()), Loc.NONE, 0)); + attrList.add(new AttributeInfo(new CodedName(fingerprints.LINE, "", namePool), BuiltInAtomicType.UNTYPED_ATOMIC, Long.toString(diag.getLineNumber()), Loc.NONE, 0)); + attrList.add(new AttributeInfo(new CodedName(fingerprints.COLUMN, "", namePool), BuiltInAtomicType.UNTYPED_ATOMIC, Long.toString(diag.getColumnNumber()), Loc.NONE, 0)); + attrList.add(new AttributeInfo(new CodedName(fingerprints.START, "", namePool), BuiltInAtomicType.UNTYPED_ATOMIC, Long.toString(diag.getStartPosition()), Loc.NONE, 0)); + attrList.add(new AttributeInfo(new CodedName(fingerprints.END, "", namePool), BuiltInAtomicType.UNTYPED_ATOMIC, Long.toString(diag.getEndPosition()), Loc.NONE, 0)); + attrList.add(new AttributeInfo(new CodedName(fingerprints.KIND, "", namePool), BuiltInAtomicType.UNTYPED_ATOMIC, diag.getKind().name(), Loc.NONE, 0)); + attrList.add(new AttributeInfo(new CodedName(fingerprints.MESSAGE, "", namePool), BuiltInAtomicType.UNTYPED_ATOMIC, StringUtils.defaultString(diag.getMessage(null)), Loc.NONE, 0)); + attrList.add(new AttributeInfo(new CodedName(fingerprints.POSITION, "", namePool), BuiltInAtomicType.UNTYPED_ATOMIC, Long.toString(diag.getPosition()), Loc.NONE, 0)); + AttributeMap attrMap = new LargeAttributeMap(attrList); + builder.startElement(new CodedName(fingerprints.FUNCTION_DIAGNOSTIC, "dynfunc", namePool), Untyped.getInstance(), attrMap, nsMap, Loc.NONE, 0); builder.endElement(); } builder.endElement(); diff --git a/src/main/java/nl/armatiek/xslweb/saxon/functions/exec/ExecExternal.java b/src/main/java/nl/armatiek/xslweb/saxon/functions/exec/ExecExternal.java index 6295b868..a414abed 100644 --- a/src/main/java/nl/armatiek/xslweb/saxon/functions/exec/ExecExternal.java +++ b/src/main/java/nl/armatiek/xslweb/saxon/functions/exec/ExecExternal.java @@ -1,3 +1,19 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package nl.armatiek.xslweb.saxon.functions.exec; import java.io.File; @@ -78,7 +94,7 @@ public ExtensionFunctionCall makeCallExpression() { private static class ExecExternalCall extends ExtensionFunctionCall { @Override - public Sequence call(XPathContext context, Sequence[] arguments) throws XPathException { + public Sequence call(XPathContext context, Sequence[] arguments) throws XPathException { final CommandLine cmdLine = new CommandLine(((StringValue) arguments[0].head()).getStringValue()); if (arguments.length > 1) { SequenceIterator args = arguments[1].iterate(); diff --git a/src/main/java/nl/armatiek/xslweb/saxon/functions/expath/file/Copy.java b/src/main/java/nl/armatiek/xslweb/saxon/functions/expath/file/Copy.java index ed739ce2..c2647056 100644 --- a/src/main/java/nl/armatiek/xslweb/saxon/functions/expath/file/Copy.java +++ b/src/main/java/nl/armatiek/xslweb/saxon/functions/expath/file/Copy.java @@ -1,5 +1,3 @@ -package nl.armatiek.xslweb.saxon.functions.expath.file; - /* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with @@ -16,6 +14,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ +package nl.armatiek.xslweb.saxon.functions.expath.file; import java.io.File; @@ -82,7 +81,7 @@ public ExtensionFunctionCall makeCallExpression() { private static class CopyCall extends FileExtensionFunctionCall { @Override - public Sequence call(XPathContext context, Sequence[] arguments) throws XPathException { + public Sequence call(XPathContext context, Sequence[] arguments) throws XPathException { try { File sourceFile = getFile(((StringValue) arguments[0].head()).getStringValue()); File targetFile = getFile(((StringValue) arguments[1].head()).getStringValue()); diff --git a/src/main/java/nl/armatiek/xslweb/saxon/functions/expath/file/CreateDir.java b/src/main/java/nl/armatiek/xslweb/saxon/functions/expath/file/CreateDir.java index 29d38c3d..3ea31150 100644 --- a/src/main/java/nl/armatiek/xslweb/saxon/functions/expath/file/CreateDir.java +++ b/src/main/java/nl/armatiek/xslweb/saxon/functions/expath/file/CreateDir.java @@ -82,7 +82,7 @@ public ExtensionFunctionCall makeCallExpression() { private static class CreateDirCall extends FileExtensionFunctionCall { @Override - public Sequence call(XPathContext context, Sequence[] arguments) throws XPathException { + public Sequence call(XPathContext context, Sequence[] arguments) throws XPathException { try { File dir = getFile(((StringValue) arguments[0].head()).getStringValue()); if (dir.isFile()) { diff --git a/src/main/java/nl/armatiek/xslweb/saxon/functions/expath/file/Delete.java b/src/main/java/nl/armatiek/xslweb/saxon/functions/expath/file/Delete.java index b86b7cbf..2d6b5d63 100644 --- a/src/main/java/nl/armatiek/xslweb/saxon/functions/expath/file/Delete.java +++ b/src/main/java/nl/armatiek/xslweb/saxon/functions/expath/file/Delete.java @@ -83,7 +83,7 @@ public ExtensionFunctionCall makeCallExpression() { private static class DeleteCall extends FileExtensionFunctionCall { @Override - public Sequence call(XPathContext context, Sequence[] arguments) throws XPathException { + public Sequence call(XPathContext context, Sequence[] arguments) throws XPathException { try { File file = getFile(((StringValue) arguments[0].head()).getStringValue()); boolean recursive = false; diff --git a/src/main/java/nl/armatiek/xslweb/saxon/functions/expath/file/Exists.java b/src/main/java/nl/armatiek/xslweb/saxon/functions/expath/file/Exists.java index 1fc755d7..7d5a6e3a 100644 --- a/src/main/java/nl/armatiek/xslweb/saxon/functions/expath/file/Exists.java +++ b/src/main/java/nl/armatiek/xslweb/saxon/functions/expath/file/Exists.java @@ -80,7 +80,7 @@ public ExtensionFunctionCall makeCallExpression() { private static class ExistsCall extends FileExtensionFunctionCall { @Override - public Sequence call(XPathContext context, Sequence[] arguments) throws XPathException { + public Sequence call(XPathContext context, Sequence[] arguments) throws XPathException { try { File file = getFile(((StringValue) arguments[0].head()).getStringValue()); return BooleanValue.get(file.exists()); diff --git a/src/main/java/nl/armatiek/xslweb/saxon/functions/expath/file/IsDir.java b/src/main/java/nl/armatiek/xslweb/saxon/functions/expath/file/IsDir.java index 74fb6b25..96138616 100644 --- a/src/main/java/nl/armatiek/xslweb/saxon/functions/expath/file/IsDir.java +++ b/src/main/java/nl/armatiek/xslweb/saxon/functions/expath/file/IsDir.java @@ -80,7 +80,7 @@ public ExtensionFunctionCall makeCallExpression() { private static class IsDirCall extends FileExtensionFunctionCall { @Override - public Sequence call(XPathContext context, Sequence[] arguments) throws XPathException { + public Sequence call(XPathContext context, Sequence[] arguments) throws XPathException { try { File file = getFile(((StringValue) arguments[0].head()).getStringValue()); return BooleanValue.get(file.isDirectory()); diff --git a/src/main/java/nl/armatiek/xslweb/saxon/functions/expath/file/IsFile.java b/src/main/java/nl/armatiek/xslweb/saxon/functions/expath/file/IsFile.java index d5083c63..28ff26f6 100644 --- a/src/main/java/nl/armatiek/xslweb/saxon/functions/expath/file/IsFile.java +++ b/src/main/java/nl/armatiek/xslweb/saxon/functions/expath/file/IsFile.java @@ -80,7 +80,7 @@ public ExtensionFunctionCall makeCallExpression() { private static class IsFileCall extends FileExtensionFunctionCall { @Override - public Sequence call(XPathContext context, Sequence[] arguments) throws XPathException { + public Sequence call(XPathContext context, Sequence[] arguments) throws XPathException { try { File file = getFile(((StringValue) arguments[0].head()).getStringValue()); return BooleanValue.get(file.isFile()); diff --git a/src/main/java/nl/armatiek/xslweb/saxon/functions/expath/file/LineSeparator.java b/src/main/java/nl/armatiek/xslweb/saxon/functions/expath/file/LineSeparator.java index 63070feb..afaf4f5a 100644 --- a/src/main/java/nl/armatiek/xslweb/saxon/functions/expath/file/LineSeparator.java +++ b/src/main/java/nl/armatiek/xslweb/saxon/functions/expath/file/LineSeparator.java @@ -80,7 +80,7 @@ public ExtensionFunctionCall makeCallExpression() { private static class LineSeparatorCall extends FileExtensionFunctionCall { @Override - public Sequence call(XPathContext context, Sequence[] arguments) throws XPathException { + public Sequence call(XPathContext context, Sequence[] arguments) throws XPathException { return new StringValue(NEWLINE); } } diff --git a/src/main/java/nl/armatiek/xslweb/saxon/functions/expath/file/Move.java b/src/main/java/nl/armatiek/xslweb/saxon/functions/expath/file/Move.java index 0786eb1b..b7e87707 100644 --- a/src/main/java/nl/armatiek/xslweb/saxon/functions/expath/file/Move.java +++ b/src/main/java/nl/armatiek/xslweb/saxon/functions/expath/file/Move.java @@ -82,7 +82,7 @@ public ExtensionFunctionCall makeCallExpression() { private static class MoveCall extends FileExtensionFunctionCall { @Override - public Sequence call(XPathContext context, Sequence[] arguments) throws XPathException { + public Sequence call(XPathContext context, Sequence[] arguments) throws XPathException { try { File sourceFile = getFile(((StringValue) arguments[0].head()).getStringValue()); File targetFile = getFile(((StringValue) arguments[1].head()).getStringValue()); diff --git a/src/main/java/nl/armatiek/xslweb/saxon/functions/expath/file/WriteBinaryCall.java b/src/main/java/nl/armatiek/xslweb/saxon/functions/expath/file/WriteBinaryCall.java index a829fe3f..7b1fc3d9 100644 --- a/src/main/java/nl/armatiek/xslweb/saxon/functions/expath/file/WriteBinaryCall.java +++ b/src/main/java/nl/armatiek/xslweb/saxon/functions/expath/file/WriteBinaryCall.java @@ -43,7 +43,7 @@ public WriteBinaryCall(boolean append) { } @Override - public Sequence call(XPathContext context, Sequence[] arguments) throws XPathException { + public Sequence call(XPathContext context, Sequence[] arguments) throws XPathException { try { File file = getFile(((StringValue) arguments[0].head()).getStringValue()); File parentFile = file.getParentFile(); diff --git a/src/main/java/nl/armatiek/xslweb/saxon/functions/expath/file/WriteCall.java b/src/main/java/nl/armatiek/xslweb/saxon/functions/expath/file/WriteCall.java index bf4b496b..a25996c9 100644 --- a/src/main/java/nl/armatiek/xslweb/saxon/functions/expath/file/WriteCall.java +++ b/src/main/java/nl/armatiek/xslweb/saxon/functions/expath/file/WriteCall.java @@ -45,7 +45,7 @@ public WriteCall(boolean append) { } @Override - public Sequence call(XPathContext context, Sequence[] arguments) throws XPathException { + public Sequence call(XPathContext context, Sequence[] arguments) throws XPathException { try { File file = getFile(((StringValue) arguments[0].head()).getStringValue()); File parentFile = file.getParentFile(); diff --git a/src/main/java/nl/armatiek/xslweb/saxon/functions/expath/file/WriteTextCall.java b/src/main/java/nl/armatiek/xslweb/saxon/functions/expath/file/WriteTextCall.java index 8f5d6637..dd0c1c23 100644 --- a/src/main/java/nl/armatiek/xslweb/saxon/functions/expath/file/WriteTextCall.java +++ b/src/main/java/nl/armatiek/xslweb/saxon/functions/expath/file/WriteTextCall.java @@ -43,7 +43,7 @@ public WriteTextCall(boolean append) { } @Override - public Sequence call(XPathContext context, Sequence[] arguments) throws XPathException { + public Sequence call(XPathContext context, Sequence[] arguments) throws XPathException { try { File file = getFile(((StringValue) arguments[0].head()).getStringValue()); File parentFile = file.getParentFile(); diff --git a/src/main/java/nl/armatiek/xslweb/saxon/functions/expath/file/WriteTextLinesCall.java b/src/main/java/nl/armatiek/xslweb/saxon/functions/expath/file/WriteTextLinesCall.java index dfaea5d1..06b41511 100644 --- a/src/main/java/nl/armatiek/xslweb/saxon/functions/expath/file/WriteTextLinesCall.java +++ b/src/main/java/nl/armatiek/xslweb/saxon/functions/expath/file/WriteTextLinesCall.java @@ -46,7 +46,7 @@ public WriteTextLinesCall(boolean append) { } @Override - public Sequence call(XPathContext context, Sequence[] arguments) throws XPathException { + public Sequence call(XPathContext context, Sequence[] arguments) throws XPathException { try { File file = getFile(((StringValue) arguments[0].head()).getStringValue()); File parentFile = file.getParentFile(); diff --git a/src/main/java/nl/armatiek/xslweb/saxon/functions/httpclient/HttpClientEntityResolver.java b/src/main/java/nl/armatiek/xslweb/saxon/functions/httpclient/HttpClientEntityResolver.java index 0df05029..27d17461 100644 --- a/src/main/java/nl/armatiek/xslweb/saxon/functions/httpclient/HttpClientEntityResolver.java +++ b/src/main/java/nl/armatiek/xslweb/saxon/functions/httpclient/HttpClientEntityResolver.java @@ -1,23 +1,28 @@ package nl.armatiek.xslweb.saxon.functions.httpclient; -import java.io.IOException; import java.io.StringReader; +import java.util.ArrayList; import org.xml.sax.InputSource; import org.xml.sax.SAXException; import net.sf.saxon.event.PipelineConfiguration; import net.sf.saxon.expr.XPathContext; -import net.sf.saxon.expr.parser.ExplicitLocation; +import net.sf.saxon.expr.parser.Loc; import net.sf.saxon.lib.StandardEntityResolver; +import net.sf.saxon.om.AttributeInfo; +import net.sf.saxon.om.AttributeMap; import net.sf.saxon.om.AxisInfo; import net.sf.saxon.om.CodedName; import net.sf.saxon.om.FingerprintedQName; import net.sf.saxon.om.Item; +import net.sf.saxon.om.LargeAttributeMap; import net.sf.saxon.om.NamePool; +import net.sf.saxon.om.NamespaceMap; import net.sf.saxon.om.NodeInfo; import net.sf.saxon.om.NodeName; import net.sf.saxon.om.Sequence; +import net.sf.saxon.om.SmallAttributeMap; import net.sf.saxon.om.TreeModel; import net.sf.saxon.om.ZeroOrMore; import net.sf.saxon.pattern.NameTest; @@ -40,14 +45,15 @@ public class HttpClientEntityResolver extends StandardEntityResolver { private final WebApp webApp; public HttpClientEntityResolver(XPathContext context, NodeInfo requestNode, WebApp webApp) { - this.setConfiguration(context.getConfiguration()); + super(context.getConfiguration()); + // this.setConfiguration(context.getConfiguration()); this.context = context; this.requestNode = requestNode; this.webApp = webApp; } @Override - public InputSource resolveEntity(String publicId, String systemId) throws SAXException, IOException { + public InputSource resolveEntity(String publicId, String systemId) throws SAXException { /* Try to find the entity in XML Catalog: */ InputSource is = super.resolveEntity(publicId, systemId); if (is != null) { @@ -67,7 +73,8 @@ public InputSource resolveEntity(String publicId, String systemId) throws SAXExc builder.setLineNumbering(false); builder.open(); builder.startDocument(0); - builder.startElement(new CodedName(fingerprints.HTTPCLIENT_REQUEST, "http", namePool), Untyped.getInstance(), ExplicitLocation.UNKNOWN_LOCATION, 0); + + ArrayList attrList = new ArrayList(); /* Copy relevant attribute nodes: */ AxisIterator attrs = requestNode.iterateAxis(AxisInfo.ATTRIBUTE); @@ -83,24 +90,31 @@ public InputSource resolveEntity(String publicId, String systemId) throws SAXExc } else { name = new FingerprintedQName("", "", attr.getLocalPart()); } - builder.attribute(name, BuiltInAtomicType.UNTYPED_ATOMIC, attr.getStringValue(), null, 0); + attrList.add(new AttributeInfo(name, BuiltInAtomicType.UNTYPED_ATOMIC, attr.getStringValue(), Loc.NONE, 0)); } /* Create new attribute nodes specific for this request */ - builder.attribute(new CodedName(fingerprints.METHOD, "", namePool), BuiltInAtomicType.UNTYPED_ATOMIC, "GET", null, 0); - builder.attribute(new CodedName(fingerprints.HREF, "", namePool), BuiltInAtomicType.UNTYPED_ATOMIC, systemId, null, 0); - builder.attribute(new CodedName(fingerprints.STATUSONLY, "", namePool), BuiltInAtomicType.UNTYPED_ATOMIC, "false", null, 0); - builder.attribute(new CodedName(fingerprints.OVERRIDEMEDIATYPE, "", namePool), BuiltInAtomicType.UNTYPED_ATOMIC, "text/plain", null, 0); + attrList.add(new AttributeInfo(new CodedName(fingerprints.METHOD, "", namePool), BuiltInAtomicType.UNTYPED_ATOMIC, "GET", Loc.NONE, 0)); + attrList.add(new AttributeInfo(new CodedName(fingerprints.HREF, "", namePool), BuiltInAtomicType.UNTYPED_ATOMIC, systemId, Loc.NONE, 0)); + attrList.add(new AttributeInfo(new CodedName(fingerprints.STATUSONLY, "", namePool), BuiltInAtomicType.UNTYPED_ATOMIC, "false", Loc.NONE, 0)); + attrList.add(new AttributeInfo(new CodedName(fingerprints.OVERRIDEMEDIATYPE, "", namePool), BuiltInAtomicType.UNTYPED_ATOMIC, "text/plain", Loc.NONE, 0)); + + AttributeMap attrMap = new LargeAttributeMap(attrList); + + NamespaceMap nsMap = NamespaceMap.of("http", Types.EXT_NAMESPACEURI); + builder.startElement(new CodedName(fingerprints.HTTPCLIENT_REQUEST, "http", namePool), Untyped.getInstance(), attrMap, nsMap, Loc.NONE, 0); - builder.startContent(); + // builder.startContent(); /* Copy all header elements: */ AxisIterator headers = requestNode.iterateAxis(AxisInfo.CHILD, new NameTest(Type.ELEMENT, Types.EXT_NAMESPACEURI, "header", context.getConfiguration().getNamePool())); NodeInfo header; while ((header = headers.next()) != null) { - builder.startElement(new CodedName(fingerprints.HTTPCLIENT_HEADER, "http", namePool), Untyped.getInstance(), ExplicitLocation.UNKNOWN_LOCATION, 0); - builder.attribute(new CodedName(fingerprints.NAME, "", namePool), BuiltInAtomicType.UNTYPED_ATOMIC, header.getAttributeValue("", "name"), null, 0); - builder.attribute(new CodedName(fingerprints.VALUE, "", namePool), BuiltInAtomicType.UNTYPED_ATOMIC, header.getAttributeValue("", "value"), null, 0); + ArrayList hAttrList = new ArrayList(); + hAttrList.add(new AttributeInfo(new CodedName(fingerprints.NAME, "", namePool), BuiltInAtomicType.UNTYPED_ATOMIC, header.getAttributeValue("", "name"), Loc.NONE, 0)); + hAttrList.add(new AttributeInfo(new CodedName(fingerprints.VALUE, "", namePool), BuiltInAtomicType.UNTYPED_ATOMIC, header.getAttributeValue("", "value"), Loc.NONE, 0)); + AttributeMap hAttrMap = new SmallAttributeMap(hAttrList); + builder.startElement(new CodedName(fingerprints.HTTPCLIENT_HEADER, "http", namePool), Untyped.getInstance(), hAttrMap, nsMap, Loc.NONE, 0); builder.endElement(); } builder.endElement(); @@ -113,7 +127,7 @@ public InputSource resolveEntity(String publicId, String systemId) throws SAXExc args[0] = NodeInfoUtils.getFirstChildElement(builder.getCurrentRoot()); /* Execute request call: */ - ZeroOrMore> result = call.call(context, args); + ZeroOrMore result = call.call(context, args); /* Check HTTP status code: */ NodeInfo responseNode = (NodeInfo) result.itemAt(0); @@ -123,14 +137,12 @@ public InputSource resolveEntity(String publicId, String systemId) throws SAXExc inputSource.setSystemId(systemId); return inputSource; } - throw new IOException("Error executing HTTP request \"" + systemId + "\" (status: " + status + ", message: " + responseNode.getAttributeValue("", "message") + ")"); + throw new SAXException("Error executing HTTP request \"" + systemId + "\" (status: " + status + ", message: " + responseNode.getAttributeValue("", "message") + ")"); } catch (XPathException e) { - throw new IOException("Error executing HTTP request \"" + systemId + "\"", e); + throw new SAXException("Error executing HTTP request \"" + systemId + "\"", e); } } return null; } - - } diff --git a/src/main/java/nl/armatiek/xslweb/saxon/functions/httpclient/RequestUtils.java b/src/main/java/nl/armatiek/xslweb/saxon/functions/httpclient/RequestUtils.java index d515f6d7..c409776b 100644 --- a/src/main/java/nl/armatiek/xslweb/saxon/functions/httpclient/RequestUtils.java +++ b/src/main/java/nl/armatiek/xslweb/saxon/functions/httpclient/RequestUtils.java @@ -53,7 +53,7 @@ public class RequestUtils { OutputKeys.DOCTYPE_SYSTEM, OutputKeys.ENCODING, SaxonOutputKeys.ESCAPE_URI_ATTRIBUTES, OutputKeys.INDENT, SaxonOutputKeys.NORMALIZATION_FORM, OutputKeys.OMIT_XML_DECLARATION, OutputKeys.STANDALONE, SaxonOutputKeys.SUPPRESS_INDENTATION, SaxonOutputKeys.UNDECLARE_PREFIXES }; - public static RequestBody getRequestBody(final NodeInfo bodyElem, final Sequence bodies, + public static RequestBody getRequestBody(final NodeInfo bodyElem, final Sequence bodies, final int bodyCount, final XPathContext context) throws XPathException { String mediaTypeAttr = bodyElem.getAttributeValue("", "media-type"); if (StringUtils.isBlank(mediaTypeAttr)) { diff --git a/src/main/java/nl/armatiek/xslweb/saxon/functions/httpclient/ResponseUtils.java b/src/main/java/nl/armatiek/xslweb/saxon/functions/httpclient/ResponseUtils.java index a7a8c876..84293751 100644 --- a/src/main/java/nl/armatiek/xslweb/saxon/functions/httpclient/ResponseUtils.java +++ b/src/main/java/nl/armatiek/xslweb/saxon/functions/httpclient/ResponseUtils.java @@ -17,6 +17,7 @@ package nl.armatiek.xslweb.saxon.functions.httpclient; import java.io.IOException; +import java.util.ArrayList; import javax.xml.transform.sax.SAXSource; @@ -26,14 +27,19 @@ import net.sf.saxon.event.Sender; import net.sf.saxon.expr.XPathContext; -import net.sf.saxon.expr.parser.ExplicitLocation; +import net.sf.saxon.expr.parser.Loc; import net.sf.saxon.lib.ParseOptions; import net.sf.saxon.lib.Validation; +import net.sf.saxon.om.AttributeInfo; +import net.sf.saxon.om.AttributeMap; import net.sf.saxon.om.CodedName; import net.sf.saxon.om.Item; +import net.sf.saxon.om.LargeAttributeMap; import net.sf.saxon.om.NamePool; +import net.sf.saxon.om.NamespaceMap; import net.sf.saxon.om.NoElementsSpaceStrippingRule; import net.sf.saxon.om.NodeInfo; +import net.sf.saxon.om.SmallAttributeMap; import net.sf.saxon.trans.XPathException; import net.sf.saxon.tree.tiny.TinyBuilder; import net.sf.saxon.type.BuiltInAtomicType; @@ -51,19 +57,6 @@ public class ResponseUtils { - /* - private static MimeType unknownMimeType = new MimeType(Definitions.MIMETYPE_BINARY); - - private static final ThreadLocal DATE_HEADER_FORMAT = - new ThreadLocal() { - @Override protected DateFormat initialValue() { - DateFormat format = new SimpleDateFormat("EEE, dd MMM yyyy HH:mm:ss 'GMT'", Locale.US); - format.setTimeZone(TimeZone.getTimeZone("GMT")); - return format; - } - }; - */ - public static NodeInfo buildResponseElement(final Response response, final XPathContext context, final WebApp webApp) throws XPathException { TinyBuilder builder = new TinyBuilder(context.getConfiguration().makePipelineConfiguration()); builder.setStatistics(context.getConfiguration().getTreeStatistics().SOURCE_DOCUMENT_STATISTICS); @@ -74,33 +67,40 @@ public static NodeInfo buildResponseElement(final Response response, final XPath Fingerprints fingerprints = webApp.getFingerprints(); NamePool namePool = context.getConfiguration().getNamePool(); + NamespaceMap nsMap = NamespaceMap.of("http", Types.EXT_NAMESPACEURI); + // Root element: - builder.startElement(new CodedName(fingerprints.HTTPCLIENT_RESPONSE, "http", namePool), Untyped.getInstance(), ExplicitLocation.UNKNOWN_LOCATION, 0); - builder.attribute(new CodedName(fingerprints.STATUS, "", namePool), BuiltInAtomicType.UNTYPED_ATOMIC, Integer.toString(response.code()), null, 0); - builder.attribute(new CodedName(fingerprints.MESSAGE, "", namePool), BuiltInAtomicType.UNTYPED_ATOMIC, response.message(), null, 0); + ArrayList attrList = new ArrayList(); + attrList.add(new AttributeInfo(new CodedName(fingerprints.STATUS, "", namePool), BuiltInAtomicType.UNTYPED_ATOMIC, Integer.toString(response.code()), Loc.NONE, 0)); + attrList.add(new AttributeInfo(new CodedName(fingerprints.MESSAGE, "", namePool), BuiltInAtomicType.UNTYPED_ATOMIC, response.message(), Loc.NONE, 0)); + AttributeMap attrMap = new SmallAttributeMap(attrList); + builder.startElement(new CodedName(fingerprints.HTTPCLIENT_RESPONSE, "http", namePool), Untyped.getInstance(), attrMap, nsMap, Loc.NONE, 0); // Response headers: Headers responseHeaders = response.headers(); for (int i=0; i hAttrList = new ArrayList(); + hAttrList.add(new AttributeInfo(new CodedName(fingerprints.NAME, "", namePool), BuiltInAtomicType.UNTYPED_ATOMIC, responseHeaders.name(i), Loc.NONE, 0)); + hAttrList.add(new AttributeInfo(new CodedName(fingerprints.VALUE, "", namePool), BuiltInAtomicType.UNTYPED_ATOMIC, responseHeaders.value(i), Loc.NONE, 0)); + AttributeMap hAttrMap = new LargeAttributeMap(hAttrList); + builder.startElement(new CodedName(fingerprints.HTTPCLIENT_HEADER, "http", namePool), Untyped.getInstance(), hAttrMap, nsMap, Loc.NONE, 0); builder.endElement(); } // Response body: - ResponseBody body = response.body(); - builder.startElement(new CodedName(fingerprints.HTTPCLIENT_BODY, "http", namePool), Untyped.getInstance(), ExplicitLocation.UNKNOWN_LOCATION, 0); + ResponseBody body = response.body(); MediaType mediaType = body.contentType(); + ArrayList bAttrList = new ArrayList(); if (mediaType != null) { - builder.attribute(new CodedName(fingerprints.MEDIATYPE, "", namePool), BuiltInAtomicType.UNTYPED_ATOMIC, mediaType.toString(), null, 0); - builder.attribute(new CodedName(fingerprints.METHOD, "", namePool), BuiltInAtomicType.UNTYPED_ATOMIC, Types.getMethodForMediaType(mediaType), null, 0); + bAttrList.add(new AttributeInfo(new CodedName(fingerprints.MEDIATYPE, "", namePool), BuiltInAtomicType.UNTYPED_ATOMIC, mediaType.toString(), Loc.NONE, 0)); + bAttrList.add(new AttributeInfo(new CodedName(fingerprints.METHOD, "", namePool), BuiltInAtomicType.UNTYPED_ATOMIC, Types.getMethodForMediaType(mediaType), Loc.NONE, 0)); } else { - builder.attribute(new CodedName(fingerprints.METHOD, "", namePool), BuiltInAtomicType.UNTYPED_ATOMIC, "binary", null, 0); + bAttrList.add(new AttributeInfo(new CodedName(fingerprints.METHOD, "", namePool), BuiltInAtomicType.UNTYPED_ATOMIC, "binary", Loc.NONE, 0)); } - + AttributeMap bAttrMap = new SmallAttributeMap(bAttrList); + builder.startElement(new CodedName(fingerprints.HTTPCLIENT_BODY, "http", namePool), Untyped.getInstance(), bAttrMap, nsMap, Loc.NONE, 0); builder.endElement(); - + builder.endElement(); builder.endDocument(); @@ -166,53 +166,4 @@ public static Item buildResponseContent(final Response response, final XPathCont } - /* - private static void addHeader(TinyBuilder builder, NamePool namePool, Fingerprints fingerprints, String name, String value) throws XPathException { - builder.startElement(new CodedName(fingerprints.HTTPCLIENT_HEADER, "http", namePool), Untyped.getInstance(), ExplicitLocation.UNKNOWN_LOCATION, 0); - builder.attribute(new CodedName(fingerprints.NAME, "", namePool), BuiltInAtomicType.UNTYPED_ATOMIC, name, null, 0); - builder.attribute(new CodedName(fingerprints.VALUE, "", namePool), BuiltInAtomicType.UNTYPED_ATOMIC, value, null, 0); - builder.endElement(); - } - - public static NodeInfo buildResponseElement(final File file, final XPathContext context, final WebApp webApp) throws XPathException { - String mimeType = MimeUtil.getMostSpecificMimeType(MimeUtil.getMimeTypes(file, unknownMimeType)).toString(); - - TinyBuilder builder = new TinyBuilder(context.getConfiguration().makePipelineConfiguration()); - builder.setStatistics(context.getConfiguration().getTreeStatistics().SOURCE_DOCUMENT_STATISTICS); - builder.setLineNumbering(false); - builder.open(); - builder.startDocument(0); - - Fingerprints fingerprints = webApp.getFingerprints(); - NamePool namePool = context.getConfiguration().getNamePool(); - - // Root element: - builder.startElement(new CodedName(fingerprints.HTTPCLIENT_RESPONSE, "http", namePool), Untyped.getInstance(), ExplicitLocation.UNKNOWN_LOCATION, 0); - builder.attribute(new CodedName(fingerprints.STATUS, "", namePool), BuiltInAtomicType.UNTYPED_ATOMIC, Integer.toString((file.isFile()) ? HttpServletResponse.SC_OK : HttpServletResponse.SC_NOT_FOUND), null, 0); - builder.attribute(new CodedName(fingerprints.MESSAGE, "", namePool), BuiltInAtomicType.UNTYPED_ATOMIC, (file.isFile()) ? "" : "Not found", null, 0); - - // Response headers: - addHeader(builder, namePool, fingerprints, "Content-Type", mimeType); - addHeader(builder, namePool, fingerprints, "Content-Length", Long.toString(file.length())); - addHeader(builder, namePool, fingerprints, "Last-Modified", DATE_HEADER_FORMAT.get().format(new Date(file.lastModified()))); - - // Response body: - builder.startElement(new CodedName(fingerprints.HTTPCLIENT_BODY, "http", namePool), Untyped.getInstance(), ExplicitLocation.UNKNOWN_LOCATION, 0); - if (mimeType != null) { - builder.attribute(new CodedName(fingerprints.MEDIATYPE, "", namePool), BuiltInAtomicType.UNTYPED_ATOMIC, mimeType, null, 0); - builder.attribute(new CodedName(fingerprints.METHOD, "", namePool), BuiltInAtomicType.UNTYPED_ATOMIC, Types.parseType(mimeType).toString().toLowerCase(), null, 0); - } else { - builder.attribute(new CodedName(fingerprints.METHOD, "", namePool), BuiltInAtomicType.UNTYPED_ATOMIC, "binary", null, 0); - } - - builder.endElement(); - - builder.endElement(); - - builder.endDocument(); - builder.close(); - return NodeInfoUtils.getFirstChildElement(builder.getCurrentRoot()); - } - */ - } \ No newline at end of file diff --git a/src/main/java/nl/armatiek/xslweb/saxon/functions/httpclient/SendRequest.java b/src/main/java/nl/armatiek/xslweb/saxon/functions/httpclient/SendRequest.java index 2c3025f2..5fdba23e 100644 --- a/src/main/java/nl/armatiek/xslweb/saxon/functions/httpclient/SendRequest.java +++ b/src/main/java/nl/armatiek/xslweb/saxon/functions/httpclient/SendRequest.java @@ -130,7 +130,7 @@ private int getInteger(String value, int defaultValue) throws XPathException { } @Override - public ZeroOrMore> call(XPathContext context, Sequence[] arguments) throws XPathException { + public ZeroOrMore call(XPathContext context, Sequence[] arguments) throws XPathException { NodeInfo requestElem = unwrapNodeInfo((NodeInfo) arguments[0].head()); String method = requestElem.getAttributeValue("", "method"); if (StringUtils.isBlank(method)) { @@ -297,7 +297,7 @@ public Request authenticate(Route route, Response response) throws IOException { throw new XPathException("An HTTP error occurred: " + e.getMessage(), "HC001"); } - return new ZeroOrMore>(resultList.toArray(new Item[resultList.size()])); + return new ZeroOrMore(resultList.toArray(new Item[resultList.size()])); } diff --git a/src/main/java/nl/armatiek/xslweb/saxon/functions/image/Scale.java b/src/main/java/nl/armatiek/xslweb/saxon/functions/image/Scale.java index 3f3e86b0..56114042 100644 --- a/src/main/java/nl/armatiek/xslweb/saxon/functions/image/Scale.java +++ b/src/main/java/nl/armatiek/xslweb/saxon/functions/image/Scale.java @@ -72,7 +72,7 @@ public ExtensionFunctionCall makeCallExpression() { private static class ScaleCall extends ExtensionFunctionCall { @Override - public Sequence call(XPathContext context, Sequence[] arguments) throws XPathException { + public Sequence call(XPathContext context, Sequence[] arguments) throws XPathException { String source = ((StringValue) arguments[0].head()).getStringValue(); String target = ((StringValue) arguments[1].head()).getStringValue(); String formatName = ((StringValue) arguments[2].head()).getStringValue(); diff --git a/src/main/java/nl/armatiek/xslweb/saxon/functions/json/ParseJSON.java b/src/main/java/nl/armatiek/xslweb/saxon/functions/json/ParseJSON.java index 5ae4341a..3d5046ac 100644 --- a/src/main/java/nl/armatiek/xslweb/saxon/functions/json/ParseJSON.java +++ b/src/main/java/nl/armatiek/xslweb/saxon/functions/json/ParseJSON.java @@ -88,7 +88,7 @@ public ExtensionFunctionCall makeCallExpression() { private static class ParseJSONCall extends ExtensionFunctionCall { @Override - public Sequence call(XPathContext context, Sequence[] arguments) throws XPathException { + public Sequence call(XPathContext context, Sequence[] arguments) throws XPathException { try { String json = ((StringValue) arguments[0].head()).getStringValue(); if (StringUtils.isBlank(json)) { diff --git a/src/main/java/nl/armatiek/xslweb/saxon/functions/log/Log.java b/src/main/java/nl/armatiek/xslweb/saxon/functions/log/Log.java index a0bb470e..aaa5d731 100644 --- a/src/main/java/nl/armatiek/xslweb/saxon/functions/log/Log.java +++ b/src/main/java/nl/armatiek/xslweb/saxon/functions/log/Log.java @@ -90,7 +90,7 @@ public ExtensionFunctionCall makeCallExpression() { private static class LogCall extends ExtensionFunctionCall { @Override - public Sequence call(XPathContext context, Sequence[] arguments) throws XPathException { + public Sequence call(XPathContext context, Sequence[] arguments) throws XPathException { try { String level = ((StringValue) arguments[0].head()).getStringValue(); Properties props = null; diff --git a/src/main/java/nl/armatiek/xslweb/saxon/functions/response/AddCookie.java b/src/main/java/nl/armatiek/xslweb/saxon/functions/response/AddCookie.java index 0d56ca0c..a75e944f 100644 --- a/src/main/java/nl/armatiek/xslweb/saxon/functions/response/AddCookie.java +++ b/src/main/java/nl/armatiek/xslweb/saxon/functions/response/AddCookie.java @@ -73,7 +73,7 @@ public ExtensionFunctionCall makeCallExpression() { private static class ResponseAddCookieCall extends ExtensionFunctionCall { @Override - public Sequence call(XPathContext context, Sequence[] arguments) throws XPathException { + public Sequence call(XPathContext context, Sequence[] arguments) throws XPathException { NodeInfo cookieElem = unwrapNodeInfo((NodeInfo) arguments[0].head()); String comment = NodeInfoUtils.getValueOfChildElementByLocalName(cookieElem, "comment", context); String domain = NodeInfoUtils.getValueOfChildElementByLocalName(cookieElem, "domain", context); diff --git a/src/main/java/nl/armatiek/xslweb/saxon/functions/response/AddDateHeader.java b/src/main/java/nl/armatiek/xslweb/saxon/functions/response/AddDateHeader.java index 52505902..a7222979 100644 --- a/src/main/java/nl/armatiek/xslweb/saxon/functions/response/AddDateHeader.java +++ b/src/main/java/nl/armatiek/xslweb/saxon/functions/response/AddDateHeader.java @@ -74,7 +74,7 @@ public ExtensionFunctionCall makeCallExpression() { private static class AddDateHeaderCall extends ExtensionFunctionCall { @Override - public Sequence call(XPathContext context, Sequence[] arguments) throws XPathException { + public Sequence call(XPathContext context, Sequence[] arguments) throws XPathException { String name = ((StringValue) arguments[0].head()).getStringValue(); long date = ((DateTimeValue) arguments[1].head()).getCalendar().getTime().getTime(); getResponse(context).setDateHeader(name, date); diff --git a/src/main/java/nl/armatiek/xslweb/saxon/functions/response/AddHeader.java b/src/main/java/nl/armatiek/xslweb/saxon/functions/response/AddHeader.java index 7f2fb887..bbed40b3 100644 --- a/src/main/java/nl/armatiek/xslweb/saxon/functions/response/AddHeader.java +++ b/src/main/java/nl/armatiek/xslweb/saxon/functions/response/AddHeader.java @@ -70,7 +70,7 @@ public ExtensionFunctionCall makeCallExpression() { private static class AddHeaderCall extends ExtensionFunctionCall { @Override - public Sequence call(XPathContext context, Sequence[] arguments) throws XPathException { + public Sequence call(XPathContext context, Sequence[] arguments) throws XPathException { String name = ((StringValue) arguments[0].head()).getStringValue(); String value = ((StringValue) arguments[1].head()).getStringValue(); getResponse(context).setHeader(name, value); diff --git a/src/main/java/nl/armatiek/xslweb/saxon/functions/response/AddIntHeader.java b/src/main/java/nl/armatiek/xslweb/saxon/functions/response/AddIntHeader.java index d847be3e..d4c9c42e 100644 --- a/src/main/java/nl/armatiek/xslweb/saxon/functions/response/AddIntHeader.java +++ b/src/main/java/nl/armatiek/xslweb/saxon/functions/response/AddIntHeader.java @@ -71,7 +71,7 @@ public ExtensionFunctionCall makeCallExpression() { private static class AddIntHeaderCall extends ExtensionFunctionCall { @Override - public Sequence call(XPathContext context, Sequence[] arguments) throws XPathException { + public Sequence call(XPathContext context, Sequence[] arguments) throws XPathException { String name = ((StringValue) arguments[0].head()).getStringValue(); int value = (int) ((Int64Value) arguments[1].head()).longValue(); getResponse(context).setIntHeader(name, value); diff --git a/src/main/java/nl/armatiek/xslweb/saxon/functions/response/SetBufferSize.java b/src/main/java/nl/armatiek/xslweb/saxon/functions/response/SetBufferSize.java index 0667f840..11e6d6d1 100644 --- a/src/main/java/nl/armatiek/xslweb/saxon/functions/response/SetBufferSize.java +++ b/src/main/java/nl/armatiek/xslweb/saxon/functions/response/SetBufferSize.java @@ -70,7 +70,7 @@ public ExtensionFunctionCall makeCallExpression() { private static class SetBufferSizeCall extends ExtensionFunctionCall { @Override - public Sequence call(XPathContext context, Sequence[] arguments) throws XPathException { + public Sequence call(XPathContext context, Sequence[] arguments) throws XPathException { int size = (int) ((Int64Value) arguments[0].head()).longValue(); getResponse(context).setBufferSize(size); return EmptySequence.getInstance(); diff --git a/src/main/java/nl/armatiek/xslweb/saxon/functions/response/SetStatus.java b/src/main/java/nl/armatiek/xslweb/saxon/functions/response/SetStatus.java index e577a7a2..06924462 100644 --- a/src/main/java/nl/armatiek/xslweb/saxon/functions/response/SetStatus.java +++ b/src/main/java/nl/armatiek/xslweb/saxon/functions/response/SetStatus.java @@ -70,7 +70,7 @@ public ExtensionFunctionCall makeCallExpression() { private static class ResponseStatusCall extends ExtensionFunctionCall { @Override - public Sequence call(XPathContext context, Sequence[] arguments) throws XPathException { + public Sequence call(XPathContext context, Sequence[] arguments) throws XPathException { long status = ((IntegerValue) arguments[0].head()).longValue(); getResponse(context).setStatus((int) status); return EmptySequence.getInstance(); diff --git a/src/main/java/nl/armatiek/xslweb/saxon/functions/session/Invalidate.java b/src/main/java/nl/armatiek/xslweb/saxon/functions/session/Invalidate.java index dff81f0d..dfc3a42a 100644 --- a/src/main/java/nl/armatiek/xslweb/saxon/functions/session/Invalidate.java +++ b/src/main/java/nl/armatiek/xslweb/saxon/functions/session/Invalidate.java @@ -74,7 +74,7 @@ public ExtensionFunctionCall makeCallExpression() { private static class InvalidateCall extends ExtensionFunctionCall { @Override - public Sequence call(XPathContext context, Sequence[] arguments) throws XPathException { + public Sequence call(XPathContext context, Sequence[] arguments) throws XPathException { getSession(context).invalidate(); return EmptySequence.getInstance(); } diff --git a/src/main/java/nl/armatiek/xslweb/saxon/functions/session/SetMaxInactiveInterval.java b/src/main/java/nl/armatiek/xslweb/saxon/functions/session/SetMaxInactiveInterval.java index 093ebca0..b5cb0f4d 100644 --- a/src/main/java/nl/armatiek/xslweb/saxon/functions/session/SetMaxInactiveInterval.java +++ b/src/main/java/nl/armatiek/xslweb/saxon/functions/session/SetMaxInactiveInterval.java @@ -75,7 +75,7 @@ public ExtensionFunctionCall makeCallExpression() { private static class SetMaxInactiveIntervalCall extends ExtensionFunctionCall { @Override - public Sequence call(XPathContext context, Sequence[] arguments) throws XPathException { + public Sequence call(XPathContext context, Sequence[] arguments) throws XPathException { int interval = (int) ((Int64Value) arguments[0].head()).longValue(); getSession(context).setMaxInactiveInterval(interval); return EmptySequence.getInstance(); diff --git a/src/main/java/nl/armatiek/xslweb/saxon/functions/sql/Close.java b/src/main/java/nl/armatiek/xslweb/saxon/functions/sql/Close.java index 80f2ecb5..23818505 100644 --- a/src/main/java/nl/armatiek/xslweb/saxon/functions/sql/Close.java +++ b/src/main/java/nl/armatiek/xslweb/saxon/functions/sql/Close.java @@ -82,7 +82,7 @@ private static class CloseCall extends ExtensionFunctionCall { @SuppressWarnings("rawtypes") @Override - public Sequence call(XPathContext context, Sequence[] arguments) throws XPathException { + public Sequence call(XPathContext context, Sequence[] arguments) throws XPathException { try { AutoCloseable closeable = (AutoCloseable) ((ObjectValue) arguments[0].head()).getObject(); closeable.close(); diff --git a/src/main/java/nl/armatiek/xslweb/saxon/functions/sql/ResultSetToNode.java b/src/main/java/nl/armatiek/xslweb/saxon/functions/sql/ResultSetToNode.java index bd0063a1..ee34342d 100644 --- a/src/main/java/nl/armatiek/xslweb/saxon/functions/sql/ResultSetToNode.java +++ b/src/main/java/nl/armatiek/xslweb/saxon/functions/sql/ResultSetToNode.java @@ -1,5 +1,3 @@ -package nl.armatiek.xslweb.saxon.functions.sql; - /* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with @@ -16,18 +14,23 @@ * See the License for the specific language governing permissions and * limitations under the License. */ +package nl.armatiek.xslweb.saxon.functions.sql; import java.sql.ResultSet; import java.sql.ResultSetMetaData; import net.sf.saxon.Configuration; -import net.sf.saxon.event.SequenceOutputter; +import net.sf.saxon.event.SequenceCollector; import net.sf.saxon.expr.StaticProperty; import net.sf.saxon.expr.XPathContext; -import net.sf.saxon.expr.parser.ExplicitLocation; +import net.sf.saxon.expr.parser.Loc; +import net.sf.saxon.om.AttributeInfo; +import net.sf.saxon.om.EmptyAttributeMap; +import net.sf.saxon.om.NamespaceMap; import net.sf.saxon.om.NoNamespaceName; import net.sf.saxon.om.NodeName; import net.sf.saxon.om.Sequence; +import net.sf.saxon.om.SingletonAttributeMap; import net.sf.saxon.om.StructuredQName; import net.sf.saxon.trans.XPathException; import net.sf.saxon.type.BuiltInAtomicType; @@ -46,8 +49,7 @@ */ public class ResultSetToNode extends ExtensionFunctionDefinition { - private static final StructuredQName qName = - new StructuredQName("", Definitions.NAMESPACEURI_XSLWEB_FX_SQL, "resultset-to-node"); + private static final StructuredQName qName = new StructuredQName("", Definitions.NAMESPACEURI_XSLWEB_FX_SQL, "resultset-to-node"); public ResultSetToNode(Configuration configuration) { super(configuration); @@ -101,13 +103,14 @@ public Sequence call(XPathContext context, Sequence[] arguments) throws XPathExc NodeName colName = new NoNamespaceName("col"); NodeName nameName = new NoNamespaceName("name"); - SequenceOutputter out = context.getController().allocateSequenceOutputter(50); - out.startElement(resultSetName, Untyped.getInstance(), ExplicitLocation.UNKNOWN_LOCATION, 0); // 9.7: null for third argument? + SequenceCollector out = context.getController().allocateSequenceOutputter(50); + + out.startElement(resultSetName, Untyped.getInstance(), EmptyAttributeMap.getInstance(), NamespaceMap.emptyMap(), Loc.NONE, 0); // 9.7: null for third argument? while (rset.next()) { - out.startElement(rowName, Untyped.getInstance(), ExplicitLocation.UNKNOWN_LOCATION, 0); + out.startElement(rowName, Untyped.getInstance(), EmptyAttributeMap.getInstance(), NamespaceMap.emptyMap(), Loc.NONE, 0); for (int col = 1; col <= columnCount; col++) { - out.startElement(colName, Untyped.getInstance(), ExplicitLocation.UNKNOWN_LOCATION, 0); - out.attribute(nameName, BuiltInAtomicType.UNTYPED_ATOMIC, metaData.getColumnName(col), null, 0); + AttributeInfo colAttr = new AttributeInfo(nameName, BuiltInAtomicType.UNTYPED_ATOMIC, metaData.getColumnName(col), Loc.NONE, 0); + out.startElement(colName, Untyped.getInstance(), SingletonAttributeMap.of(colAttr), NamespaceMap.emptyMap(), Loc.NONE, 0); String value = rset.getString(col); if (value != null) { out.characters(value, null, 0); diff --git a/src/main/java/nl/armatiek/xslweb/saxon/functions/util/DiscardDocument.java b/src/main/java/nl/armatiek/xslweb/saxon/functions/util/DiscardDocument.java index b069c0f3..49f7240d 100644 --- a/src/main/java/nl/armatiek/xslweb/saxon/functions/util/DiscardDocument.java +++ b/src/main/java/nl/armatiek/xslweb/saxon/functions/util/DiscardDocument.java @@ -1,5 +1,3 @@ -package nl.armatiek.xslweb.saxon.functions.util; - /* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with @@ -16,12 +14,13 @@ * See the License for the specific language governing permissions and * limitations under the License. */ +package nl.armatiek.xslweb.saxon.functions.util; import net.sf.saxon.Controller; import net.sf.saxon.expr.XPathContext; import net.sf.saxon.lib.ExtensionFunctionCall; import net.sf.saxon.lib.ExtensionFunctionDefinition; -import net.sf.saxon.om.DocumentURI; +import net.sf.saxon.om.DocumentKey; import net.sf.saxon.om.NodeInfo; import net.sf.saxon.om.Sequence; import net.sf.saxon.om.StructuredQName; @@ -85,10 +84,12 @@ public ZeroOrOne call(XPathContext context, Sequence[] arguments) thro Controller c = context.getController(); String uri = c.getDocumentPool().getDocumentURI(doc); if (uri != null && c instanceof XsltController) { - ((XsltController)c).removeUnavailableOutputDestination(new DocumentURI(uri)); + ((XsltController)c).removeUnavailableOutputDestination(new DocumentKey(uri)); } c.getDocumentPool().discard(doc.getTreeInfo()); return new ZeroOrOne(doc); } + } + } \ No newline at end of file diff --git a/src/main/java/nl/armatiek/xslweb/saxon/functions/zip/Unzip.java b/src/main/java/nl/armatiek/xslweb/saxon/functions/zip/Unzip.java index 0b4237f3..f1706c74 100644 --- a/src/main/java/nl/armatiek/xslweb/saxon/functions/zip/Unzip.java +++ b/src/main/java/nl/armatiek/xslweb/saxon/functions/zip/Unzip.java @@ -80,7 +80,7 @@ public ExtensionFunctionCall makeCallExpression() { private static class UnzipCall extends ExtensionFunctionCall { @Override - public Sequence call(XPathContext context, Sequence[] arguments) throws XPathException { + public Sequence call(XPathContext context, Sequence[] arguments) throws XPathException { String source = ((StringValue) arguments[0].head()).getStringValue(); String target = ((StringValue) arguments[1].head()).getStringValue(); try { diff --git a/src/main/java/nl/armatiek/xslweb/saxon/functions/zip/Zip.java b/src/main/java/nl/armatiek/xslweb/saxon/functions/zip/Zip.java index c2edd3a9..61ed4b1e 100644 --- a/src/main/java/nl/armatiek/xslweb/saxon/functions/zip/Zip.java +++ b/src/main/java/nl/armatiek/xslweb/saxon/functions/zip/Zip.java @@ -77,7 +77,7 @@ public ExtensionFunctionCall makeCallExpression() { private static class ZipCall extends ExtensionFunctionCall { @Override - public Sequence call(XPathContext context, Sequence[] arguments) throws XPathException { + public Sequence call(XPathContext context, Sequence[] arguments) throws XPathException { String source = ((StringValue) arguments[0].head()).getStringValue(); String target = ((StringValue) arguments[1].head()).getStringValue(); try { diff --git a/src/main/java/nl/armatiek/xslweb/saxon/trace/XSLWebTimingTraceListener.java b/src/main/java/nl/armatiek/xslweb/saxon/trace/XSLWebTimingTraceListener.java deleted file mode 100644 index 5220b314..00000000 --- a/src/main/java/nl/armatiek/xslweb/saxon/trace/XSLWebTimingTraceListener.java +++ /dev/null @@ -1,35 +0,0 @@ -package nl.armatiek.xslweb.saxon.trace; - -import java.io.File; - -import net.sf.saxon.PreparedStylesheet; -import net.sf.saxon.s9api.XsltExecutable; -import net.sf.saxon.trace.TimingTraceListener; -import net.sf.saxon.trans.XPathException; -import nl.armatiek.xslweb.configuration.Context; -import nl.armatiek.xslweb.configuration.WebApp; - -public class XSLWebTimingTraceListener extends TimingTraceListener { - - private WebApp webApp; - private PreparedStylesheet stylesheet; - - public XSLWebTimingTraceListener(WebApp webApp) { - this.webApp = webApp; - } - - @Override - public PreparedStylesheet getStyleSheet() throws XPathException { - try { - if (this.stylesheet == null) { - XsltExecutable executable = webApp.tryXsltExecutableCache( - new File(Context.getInstance().getHomeDir(), "common/xsl/system/trace/timing.xsl").getAbsolutePath(), null, false); - this.stylesheet = executable.getUnderlyingCompiledStylesheet(); - } - return this.stylesheet; - } catch (Exception e) { - throw new XPathException(e); - } - } - -} \ No newline at end of file diff --git a/src/main/java/nl/armatiek/xslweb/saxon/utils/NodeInfoUtils.java b/src/main/java/nl/armatiek/xslweb/saxon/utils/NodeInfoUtils.java index 82e3f1bb..e46fe82f 100644 --- a/src/main/java/nl/armatiek/xslweb/saxon/utils/NodeInfoUtils.java +++ b/src/main/java/nl/armatiek/xslweb/saxon/utils/NodeInfoUtils.java @@ -1,3 +1,19 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package nl.armatiek.xslweb.saxon.utils; import net.sf.saxon.event.PipelineConfiguration; @@ -20,7 +36,7 @@ */ import net.sf.saxon.expr.XPathContext; -import net.sf.saxon.expr.parser.ExplicitLocation; +import net.sf.saxon.expr.parser.Loc; import net.sf.saxon.om.AxisInfo; import net.sf.saxon.om.CopyOptions; import net.sf.saxon.om.NodeInfo; @@ -65,7 +81,7 @@ public static NodeInfo cloneNodeInfo(NodeInfo node) throws XPathException { builder.setLineNumbering(false); builder.open(); builder.startDocument(0); - Navigator.copy(node, builder, CopyOptions.ALL_NAMESPACES | CopyOptions.TYPE_ANNOTATIONS, ExplicitLocation.UNKNOWN_LOCATION); + Navigator.copy(node, builder, CopyOptions.ALL_NAMESPACES | CopyOptions.TYPE_ANNOTATIONS, Loc.NONE); builder.endDocument(); builder.close(); return builder.getCurrentRoot(); diff --git a/src/main/java/nl/armatiek/xslweb/saxon/utils/SaxonUtils.java b/src/main/java/nl/armatiek/xslweb/saxon/utils/SaxonUtils.java index 423528b5..d1e0e519 100644 --- a/src/main/java/nl/armatiek/xslweb/saxon/utils/SaxonUtils.java +++ b/src/main/java/nl/armatiek/xslweb/saxon/utils/SaxonUtils.java @@ -1,3 +1,19 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package nl.armatiek.xslweb.saxon.utils; import javax.xml.transform.ErrorListener; diff --git a/src/main/java/nl/armatiek/xslweb/saxon/utils/SerializableNodeInfo.java b/src/main/java/nl/armatiek/xslweb/saxon/utils/SerializableNodeInfo.java index ba0f79ed..754733b4 100644 --- a/src/main/java/nl/armatiek/xslweb/saxon/utils/SerializableNodeInfo.java +++ b/src/main/java/nl/armatiek/xslweb/saxon/utils/SerializableNodeInfo.java @@ -1,3 +1,19 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package nl.armatiek.xslweb.saxon.utils; import java.io.IOException; @@ -5,19 +21,21 @@ import java.io.ObjectOutputStream; import java.io.Serializable; import java.io.StringReader; +import java.util.function.Predicate; import javax.xml.transform.stream.StreamSource; import net.sf.saxon.Configuration; import net.sf.saxon.event.Receiver; -import net.sf.saxon.expr.parser.Location; import net.sf.saxon.om.AtomicSequence; import net.sf.saxon.om.Genre; +import net.sf.saxon.om.Item; import net.sf.saxon.om.NamespaceBinding; +import net.sf.saxon.om.NamespaceMap; import net.sf.saxon.om.NodeInfo; import net.sf.saxon.om.TreeInfo; -import net.sf.saxon.pattern.NodeTest; import net.sf.saxon.s9api.DocumentBuilder; +import net.sf.saxon.s9api.Location; import net.sf.saxon.s9api.Processor; import net.sf.saxon.s9api.SaxonApiException; import net.sf.saxon.s9api.Serializer; @@ -37,7 +55,6 @@ public class SerializableNodeInfo implements NodeInfo, Serializable { private transient NodeInfo nodeInfo; public SerializableNodeInfo(NodeInfo nodeInfo) { - // this.webApp = webApp; this.nodeInfo = nodeInfo; } @@ -72,16 +89,10 @@ public void setSystemId(String systemId) { } @Override - public NodeInfo head() { + public Item head() { return nodeInfo.head(); } - /* - public SequenceIterator iterate() throws XPathException { - return nodeInfo.iterate(); - } - */ - @Override public Location saveLocation() { return nodeInfo.saveLocation(); @@ -203,12 +214,7 @@ public NodeInfo getParent() { } @Override - public AxisIterator iterateAxis(byte axisNumber) { - return nodeInfo.iterateAxis(axisNumber); - } - - @Override - public AxisIterator iterateAxis(byte axisNumber, NodeTest nodeTest) { + public AxisIterator iterateAxis(int axisNumber, Predicate nodeTest) { return nodeInfo.iterateAxis(axisNumber, nodeTest); } @@ -272,4 +278,9 @@ public Genre getGenre() { return nodeInfo.getGenre(); } + @Override + public NamespaceMap getAllNamespaces() { + return nodeInfo.getAllNamespaces(); + } + } \ No newline at end of file diff --git a/src/main/java/nl/armatiek/xslweb/serializer/AbstractSerializer.java b/src/main/java/nl/armatiek/xslweb/serializer/AbstractSerializer.java index 1b475a96..6022c406 100644 --- a/src/main/java/nl/armatiek/xslweb/serializer/AbstractSerializer.java +++ b/src/main/java/nl/armatiek/xslweb/serializer/AbstractSerializer.java @@ -1,5 +1,3 @@ -package nl.armatiek.xslweb.serializer; - /* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with @@ -16,6 +14,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ +package nl.armatiek.xslweb.serializer; import java.io.OutputStream; diff --git a/src/main/java/nl/armatiek/xslweb/serializer/RequestSerializer.java b/src/main/java/nl/armatiek/xslweb/serializer/RequestSerializer.java index a1fd8799..3a5e3881 100644 --- a/src/main/java/nl/armatiek/xslweb/serializer/RequestSerializer.java +++ b/src/main/java/nl/armatiek/xslweb/serializer/RequestSerializer.java @@ -62,7 +62,7 @@ import net.sf.saxon.event.PipelineConfiguration; import net.sf.saxon.event.Receiver; import net.sf.saxon.event.StreamWriterToReceiver; -import net.sf.saxon.expr.parser.ExplicitLocation; +import net.sf.saxon.expr.parser.Loc; import net.sf.saxon.om.AxisInfo; import net.sf.saxon.om.CopyOptions; import net.sf.saxon.om.NodeInfo; @@ -416,7 +416,7 @@ private void serializeSession() throws Exception { Receiver receiver = new ReceiverToXMLStreamWriter(xsw); PipelineConfiguration config = node.getConfiguration().makePipelineConfiguration(); receiver.setPipelineConfiguration(config); - node.copy(receiver, CopyOptions.ALL_NAMESPACES | CopyOptions.TYPE_ANNOTATIONS, ExplicitLocation.UNKNOWN_LOCATION); + node.copy(receiver, CopyOptions.ALL_NAMESPACES | CopyOptions.TYPE_ANNOTATIONS, Loc.NONE); } else { xsw.writeAttribute("type", a.getType()); xsw.writeCharacters(a.getValue().toString()); diff --git a/src/main/java/nl/armatiek/xslweb/serializer/ZipSerializer.java b/src/main/java/nl/armatiek/xslweb/serializer/ZipSerializer.java index 4f9d537b..5b94c9d0 100644 --- a/src/main/java/nl/armatiek/xslweb/serializer/ZipSerializer.java +++ b/src/main/java/nl/armatiek/xslweb/serializer/ZipSerializer.java @@ -142,26 +142,6 @@ private void processFileEntry(String uri, String localName, String qName, Attrib } } - /* - private void processInlineEntry(String uri, String localName, String qName, Attributes attributes) throws Exception { - String name = attributes.getValue("", "name"); - if (name == null) { - throw new SAXException("No attribute \"name\" specified on inline-entry element"); - } - Properties props = new Properties(); - for (int i=0; i steps) { - SystemTransformerStep step = new SystemTransformerStep(webApp, "system/response/response.xsl", "client-response", false); + SystemTransformerStep step = new SystemTransformerStep("system/response/response.xsl", "client-response", false); if (steps.get(steps.size()-1) instanceof SerializerStep) { steps.add(steps.size()-1, step); } else { @@ -218,7 +229,8 @@ private void addResponseTransformationStep(WebApp webApp, List ste } private Destination getDestination(WebApp webApp, HttpServletRequest req, HttpServletResponse resp, - OutputStream os, Properties outputProperties, PipelineStep currentStep, PipelineStep nextStep) throws Exception { + OutputStream os, Properties outputProperties, PipelineStep currentStep, PipelineStep nextStep, + ErrorListener errorListener) throws Exception { Destination dest; if (nextStep == null) { Serializer serializer = webApp.getProcessor().newSerializer(os); @@ -240,13 +252,15 @@ private Destination getDestination(WebApp webApp, HttpServletRequest req, HttpSe } else if (nextStep instanceof TransformerStep || nextStep instanceof SchemaValidatorStep || nextStep instanceof SchematronValidatorStep) { dest = new XdmSourceDestination(); } else if (nextStep instanceof JSONSerializerStep) { - dest = ((JSONSerializerStep) nextStep).getDestination(webApp, req, resp, os, outputProperties); + dest = ((JSONSerializerStep) nextStep).getDestination(webApp, req, resp, os, outputProperties, errorListener); } else if (nextStep instanceof ZipSerializerStep) { - dest = ((ZipSerializerStep) nextStep).getDestination(webApp, req, resp, os, outputProperties); + dest = ((ZipSerializerStep) nextStep).getDestination(webApp, req, resp, os, outputProperties, errorListener); } else if (nextStep instanceof ResourceSerializerStep) { - dest = ((ResourceSerializerStep) nextStep).getDestination(webApp, req, resp, os, outputProperties); + dest = ((ResourceSerializerStep) nextStep).getDestination(webApp, req, resp, os, outputProperties, errorListener); } else if (nextStep instanceof FopSerializerStep) { - dest = ((FopSerializerStep) nextStep).getDestination(webApp, req, resp, os, outputProperties); + dest = ((FopSerializerStep) nextStep).getDestination(webApp, req, resp, os, outputProperties, errorListener); + } else if (nextStep instanceof StylesheetExportFileStep) { + dest = ((StylesheetExportFileStep) nextStep).getDestination(webApp, req, resp, os, outputProperties, errorListener); } else { throw new XSLWebException("Could not determine destination"); } @@ -315,57 +329,11 @@ private void preprocessPipelines(WebApp webApp, List steps) { if (step instanceof TransformerSTXStep && i steps, HttpServletResponse resp) throws IOException { - resp.resetBuffer(); - resp.setStatus(HttpServletResponse.SC_OK); - - ByteArrayOutputStream baos = new ByteArrayOutputStream(); - OutputStreamWriter osw = new OutputStreamWriter(baos, StandardCharsets.UTF_8); - - if (traceType.equals(TraceType.BASIC)) { - osw.write(""); - for (PipelineStep step : steps) { - if (step instanceof SystemTransformerStep) - continue; - if (step instanceof TraceablePipelineStep) { - String tracing = ((TraceablePipelineStep) step).getTracing(); - if (tracing != null) { - osw.write("" ); - osw.write(tracing); - osw.write("" ); - } - } - } - osw.write(""); - resp.setContentType(Definitions.MIMETYPE_XML + "; charset=UTF-8"); - } else if (traceType.equals(TraceType.TIMING)) { - osw.write(""); - for (PipelineStep step : steps) { - if (step instanceof TraceablePipelineStep) { - if (step instanceof SystemTransformerStep) - continue; - String tracing = ((TraceablePipelineStep) step).getTracing(); - if (tracing != null) { - osw.write("

Step: " + step.getName() + "

"); - osw.write(tracing); - } - } - } - osw.write(""); - resp.setContentType(Definitions.MIMETYPE_HTML + "; charset=UTF-8"); - } - - osw.flush(); - osw.close(); - - return baos; - } - private void executeRequest(WebApp webApp, HttpServletRequest req, HttpServletResponse resp, OutputStream respOs) throws Exception { boolean developmentMode = webApp.getDevelopmentMode(); @@ -385,14 +353,6 @@ private void executeRequest(WebApp webApp, HttpServletRequest req, HttpServletRe OutputStream os = (developmentMode) ? new ByteArrayOutputStream() : respOs; - TraceType traceType = TraceType.NONE; - if (developmentMode) { - if (StringUtils.equals(req.getParameter(Definitions.PARAMNAME_TRACE_BASIC), "true")) - traceType = TraceType.BASIC; - else if (StringUtils.equals(req.getParameter(Definitions.PARAMNAME_TRACE_TIME), "true")) - traceType = TraceType.TIMING; - } - Properties outputProperties = getOutputProperties(webApp, errorListener, steps); Map baseStylesheetParameters = XSLWebUtils.getStylesheetParameters(webApp, req, resp, homeDir); @@ -415,39 +375,33 @@ else if (StringUtils.equals(req.getParameter(Definitions.PARAMNAME_TRACE_TIME), } else { xslPath = ((TransformerStep) step).getXslPath(); } - XsltExecutable templates = webApp.getXsltExecutable(xslPath, errorListener, !traceType.equals(TraceType.NONE)); + XsltExecutable templates = webApp.getXsltExecutable(xslPath, errorListener); Xslt30Transformer transformer = templates.load30(); SaxonUtils.setMessageEmitter(transformer.getUnderlyingController(), webApp.getConfiguration(), errorListener); transformer.setErrorListener(errorListener); - if (!traceType.equals(TraceType.NONE) && !(step instanceof SystemTransformerStep)) - transformer.setTraceListener(((TransformerStep) step).getTraceListener(traceType)); Map stylesheetParameters = getStylesheetParameters((ParameterizablePipelineStep) step, baseStylesheetParameters, extraStylesheetParameters); transformer.setStylesheetParameters(stylesheetParameters); - destination = getDestination(webApp, req, resp, os, outputProperties, step, nextStep); + destination = getDestination(webApp, req, resp, os, outputProperties, step, nextStep, errorListener); NodeInfo nodeInfo = (NodeInfo) makeNodeInfoSource(source, webApp, errorListener); transformer.setGlobalContextItem(new XdmNode(nodeInfo)); transformer.applyTemplates(nodeInfo, destination); } else if (step instanceof QueryStep) { String xqueryPath = ((QueryStep) step).getXQueryPath(); - XQueryExecutable xquery = webApp.getQuery(xqueryPath, errorListener, !traceType.equals(TraceType.NONE)); + XQueryExecutable xquery = webApp.getQuery(xqueryPath, errorListener); XQueryEvaluator eval = xquery.load(); eval.setErrorListener(errorListener); - if (!traceType.equals(TraceType.NONE)) - eval.setTraceListener(((QueryStep) step).getTraceListener(traceType)); Map stylesheetParameters = getStylesheetParameters((ParameterizablePipelineStep) step, baseStylesheetParameters, extraStylesheetParameters); for (Map.Entry entry : stylesheetParameters.entrySet()) { eval.setExternalVariable(entry.getKey(), entry.getValue()); } - destination = getDestination(webApp, req, resp, os, outputProperties, step, nextStep); + destination = getDestination(webApp, req, resp, os, outputProperties, step, nextStep, errorListener); NodeInfo nodeInfo = (NodeInfo) makeNodeInfoSource(source, webApp, errorListener); eval.setContextItem(new XdmNode(nodeInfo)); eval.run(destination); } else if (step instanceof TransformerSTXStep) { String stxPath = ((TransformerSTXStep) step).getStxPath(); - int recoverPolicy = errorListener.getRecoveryPolicy(); - errorListener.setRecoveryPolicy(Configuration.DO_NOT_RECOVER); Templates templates = webApp.getTemplates(stxPath, errorListener); Transformer transformer = templates.newTransformer(); transformer.setErrorListener(errorListener); @@ -465,12 +419,13 @@ else if (StringUtils.equals(req.getParameter(Definitions.PARAMNAME_TRACE_TIME), ByteArrayOutputStream baos = (ByteArrayOutputStream) ((StreamResult) result).getOutputStream(); source = new StreamSource(new ByteArrayInputStream(baos.toByteArray())); } - errorListener.setRecoveryPolicy(recoverPolicy); } else if (step instanceof StylesheetExportFileStep) { String xslPath = ((StylesheetExportFileStep) step).getXslPath(); - XdmNode sef = webApp.getStylesheetExportFile(xslPath, errorListener, !traceType.equals(TraceType.NONE)); - destination = getDestination(webApp, req, resp, os, outputProperties, step, nextStep); - webApp.getProcessor().writeXdmValue(sef, destination); + byte[] sef = webApp.getStylesheetExportFile(xslPath, errorListener); + + + + os.write(sef); } else if (step instanceof SchemaValidatorStep) { SchemaValidatorStep svStep = (SchemaValidatorStep) step; List schemaPaths = svStep.getSchemaPaths(); @@ -560,13 +515,7 @@ else if (StringUtils.equals(req.getParameter(Definitions.PARAMNAME_TRACE_TIME), } if (developmentMode) { - OutputStream baos; - if (!traceType.equals(TraceType.NONE)) { - baos = getTraceOutput(traceType, steps, resp); - } else { - baos = os; - } - byte[] body = ((ByteArrayOutputStream) baos).toByteArray(); + byte[] body = ((ByteArrayOutputStream) os).toByteArray(); IOUtils.copy(new ByteArrayInputStream(body), respOs); }