diff --git a/bower.json b/bower.json index 0dfae70..dc08785 100644 --- a/bower.json +++ b/bower.json @@ -31,5 +31,5 @@ "extras": "extras/*" } }, - "version": "0.6.0+master.0.dad59f283066" + "version": "0.7.0+master.0.d540d1829bf5" } \ No newline at end of file diff --git a/dist/xslt.js b/dist/xslt.js index aac1fb2..bdbdcc4 100644 --- a/dist/xslt.js +++ b/dist/xslt.js @@ -1,4 +1,4 @@ -/*! xslt v0.6.0+master.0.dad59f283066 | (c) 2015 Justin Murray | built on 2015-11-19 */ +/*! xslt v0.7.0+master.0.d540d1829bf5 | (c) 2015 Justin Murray | built on 2015-11-20 */ (function() { var slice = [].slice, @@ -162,16 +162,20 @@ return xml; }; getAttributes = function(node, excludeFn) { - var all, attrRegex, collection, name, parts, val; - attrRegex = /\s([a-z0-9:\-]+)\s*=\s*"([^"]*)"/gi; - collection = {}; + var all, attrRegex, attrs, innerA, innerB, name, outer, parts, val; + attrRegex = /\s([a-z0-9:\-]+)\s*=\s*("([^"]*)"|'([^']*)')/gi; + attrs = {}; while (parts = attrRegex.exec(node)) { - all = parts[0], name = parts[1], val = parts[2]; + all = parts[0], name = parts[1], outer = parts[2], innerA = parts[3], innerB = parts[4]; + val = { + outer: outer, + inner: innerA || innerB + }; if (!(typeof excludeFn === "function" ? excludeFn(name, val) : void 0)) { - collection[name] = val; + attrs[name] = val; } } - return collection; + return attrs; }; buildElementString = function(nodeName, attrs, closeTag) { var elStr, name, val; @@ -184,7 +188,7 @@ elStr = "<" + nodeName; for (name in attrs) { val = attrs[name]; - elStr += " " + name + "=\"" + val + "\""; + elStr += " " + name + "=" + val.outer; } elStr += closeTag + ">"; return elStr; @@ -192,7 +196,8 @@ cleanRootNamespaces = function(node, nodeName, closeTag, opt) { var attName, attrs, name, ns, ref, uri, val; attrs = getAttributes(node, function(name, val) { - return /^xmlns/.test(name) && indexOf.call(opt.excludedNamespaceUris, val) >= 0; + var ref; + return /^xmlns/.test(name) && (ref = val.inner, indexOf.call(opt.excludedNamespaceUris, ref) >= 0); }); ref = opt.includeNamespaces; for (ns in ref) { @@ -202,7 +207,7 @@ results = []; for (name in attrs) { val = attrs[name]; - results.push(val); + results.push(val.inner); } return results; })(), uri) < 0) { @@ -210,7 +215,10 @@ if (ns.length) { attName += ":" + ns; } - attrs[attName] = uri; + attrs[attName] = { + outer: "\"" + uri + "\"", + inner: uri + }; } } return buildElementString(nodeName, attrs, closeTag); @@ -218,10 +226,11 @@ stripDuplicateAttributes = function(node, nodeName, closeTag, blacklist) { var attrs; if (blacklist == null) { - blacklist = {}; + blacklist = []; } attrs = getAttributes(node, function(name, val) { - return blacklist[name] === val; + var ref; + return ref = val.inner, indexOf.call(blacklist, ref) >= 0; }); return buildElementString(nodeName, attrs, closeTag); }; @@ -245,10 +254,11 @@ return node; }; cleanupXmlNodes = function(xml, opt) { - var isRootNode, rootNamespaces; - rootNamespaces = {}; + var isRootNode, namespaceBlacklist; + namespaceBlacklist = []; isRootNode = true; return xml != null ? xml.replace(new RegExp(regex.xmlNode().source, 'gi'), function(node, nodeName, closeTag) { + var i, len, name, ref, rootNamespaces, uri, val; if (opt.removeNamespacedNamespace) { node = stripNamespacedNamespace(node); } @@ -264,9 +274,23 @@ rootNamespaces = getAttributes(node, function(name) { return !/^xmlns/.test(name); }); + namespaceBlacklist = (function() { + var results; + results = []; + for (name in rootNamespaces) { + val = rootNamespaces[name]; + results.push(val.inner); + } + return results; + })(); + ref = opt.excludedNamespaceUris; + for (i = 0, len = ref.length; i < len; i++) { + uri = ref[i]; + namespaceBlacklist.push(uri); + } } else { if (opt.removeDupAttrs || opt.removeDupNamespace) { - node = stripDuplicateAttributes(node, nodeName, closeTag, rootNamespaces); + node = stripDuplicateAttributes(node, nodeName, closeTag, namespaceBlacklist); } } return node; diff --git a/dist/xslt.js.map b/dist/xslt.js.map index 9184702..c1e6079 100644 --- a/dist/xslt.js.map +++ b/dist/xslt.js.map @@ -6,5 +6,5 @@ "xslt.coffee" ], "names": [], - "mappings": "AAAA;AAAA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A3C;QAAA,MAAA,GAAS,KAAK,CAAC,OAAN,CAAc,MAAd,EAAsB,GAAtB,EAAT;;AACA,aAAO;IA7BD;IA+BR,KAAK,CAAC,OAAN,GAAgB,SAAC,MAAD,EAAS,OAAT;AACd,UAAA;MAAA,GAAA,GAAM,WAAA,CAAY,OAAZ;MACN,IAAA,CAAc,GAAG,CAAC,OAAlB;AAAA,eAAA;;MAEA,IAAG,GAAG,CAAC,gBAAP;QACE,GAAG,CAAC,QAAJ,GAAe,iBAAA,CAAkB,MAAlB,CAAA,IAA6B,GAAG,CAAC,SADlD;;MAEA,UAAA,GAAa,mBAAA,CAAoB,MAApB;MACb,IAAgC,GAAG,CAAC,eAAJ,IAAuB,CAAC,GAAG,CAAC,iBAA5D;QAAA,MAAA,GAAS,WAAA,CAAY,MAAZ,EAAT;;MACA,IAA4D,GAAG,CAAC,iBAAJ,IAA0B,WAAA,CAAY,MAAZ,CAAtF;QAAA,MAAA,GAAS,aAAA,CAAc,MAAd,EAAsB,GAAG,CAAC,QAA1B,EAAoC,UAApC,EAAT;;MACA,MAAA,GAAS,eAAA,CAAgB,MAAhB,EAAwB,GAAxB;MACT,IAA0C,GAAG,CAAC,qBAA9C;QAAA,MAAA,GAAS,qBAAA,CAAsB,MAAtB,EAAT;;AACA,aAAO;IAXO;AAahB,WAAO;EAhPD,CAVR;AAAA" } \ No newline at end of file diff --git a/dist/xslt.min.js b/dist/xslt.min.js index b0889be..0214472 100644 --- a/dist/xslt.min.js +++ b/dist/xslt.min.js @@ -1,4 +1,4 @@ -/*! xslt v0.6.0+master.0.dad59f283066 | (c) 2015 Justin Murray | built on 2015-11-19 */ +/*! xslt v0.7.0+master.0.d540d1829bf5 | (c) 2015 Justin Murray | built on 2015-11-20 */ -(function(){var a=[].slice,b=[].indexOf||function(a){for(var b=0,c=this.length;c>b;b++)if(b in this&&this[b]===a)return b;return-1};!function(a,b){return"function"==typeof define&&null!=define.amd?define([],b):"object"==typeof("undefined"!=typeof module&&null!==module?module.exports:void 0)?module.exports=b():null!=a?a.xslt=b():void 0}(this,function(){var c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C,D,E,F,G;return y={xmlNode:function(){return/<([a-z_][a-z_0-9:\.\-]*\b)\s*(?:\/(?!>)|[^>\/])*(\/?)>/i},xmlLike:function(){return/^\s*"},x=function(a,b,c){return G(b,c)+a},C=function(a){return null!=a?a.replace(y.xmlHeader(),""):void 0},o=function(a){var b,c;return b=null!=a?a.match(y.xmlHeader()):void 0,(null!=b?b.length:void 0)&&(null!=(c=b[0])&&"function"==typeof c.trim?c.trim():void 0)||null},m=function(a,b){var c;return c=new RegExp("\\b"+b+'\\s*=\\s*"([^"]*)"',"g").exec(a),(null!=c?c.length:void 0)>1&&c[1]||null},p=function(a){return m(o(a),"encoding")},q=function(a){return m(o(a),"standalone")},d="undefined"!=typeof ActiveXObject&&null!==ActiveXObject||"ActiveXObject"in window,F=function(){var b,c,e,f;if(f=1<=arguments.length?a.call(arguments,0):[],!d)return null;for(b=0,e=f.length;e>b;b++){c=f[b];try{return new ActiveXObject(c)}catch(g){}}return null},i=function(){var a;if(a=F.apply(null,["Msxml2.FreeThreadedDOMDocument.6.0","Msxml2.FreeThreadedDOMDocument.3.0","Msxml2.FreeThreadedDOMDocument","Microsoft.XMLDOM","Msxml2.DOMDocument.6.0","Msxml2.DOMDocument.5.0","Msxml2.DOMDocument.4.0","Msxml2.DOMDocument.3.0","MSXML2.DOMDocument","MSXML.DOMDocument"]),null!=a)for(a.async=!1;4!==a.readyState;);return a},j=function(){return F.apply(null,["Msxml2.XSLTemplate.6.0","Msxml2.XSLTemplate"])},u=function(){var a,b;return b=document.createElement("xml"),b.src=G(),document.body.appendChild(b),a=b.XMLDocument,document.body.removeChild(b),a},w=function(){var a,b;return a=null,null==a&&(a=i()),"undefined"!=typeof DOMParser&&null!==DOMParser?a:(null==a&&(a=u()),null==a&&(a=null!=(b=document.implementation)&&"function"==typeof b.createDocument?b.createDocument("","test",null):void 0),a)},z=function(a){var b,c,d,e,f;if("string"!=typeof a||!s(a))return null;if(v(a)&&(a=x(a)),b=w(),null!=b&&"loadXML"in b){if(b.loadXML(a),null==b.documentElement||0!==(null!=(c=b.parseError)?c.errorCode:void 0))throw new Error("loadXML error: "+b.parseError)}else if(null!=b&&"load"in b)b.load(a);else if("undefined"!=typeof DOMParser&&null!==DOMParser&&(b=null!=(d=new DOMParser)&&"function"==typeof d.parseFromString?d.parseFromString(a,"text/xml"):void 0,(null!=b&&"function"==typeof b.getElementsByTagName&&null!=(e=b.getElementsByTagName("parsererror"))?e.length:void 0)>0||"parsererror"===(null!=b&&null!=(f=b.documentElement)?f.nodeName:void 0)))throw new Error("Failed to load document from string:\r\n"+b.documentElement.textContent);return b},l=function(a){var b,c;return null==a?null:(c="string"==typeof a?a:null!=(null!=a?a.xml:void 0)?a.xml:"undefined"!=typeof XMLSerializer&&null!==XMLSerializer?null!=(b=new XMLSerializer)&&"function"==typeof b.serializeToString?b.serializeToString(a):void 0:null,(null!=c&&"function"==typeof c.indexOf?c.indexOf("=0&&(c=c.substring(c.indexOf(">")+1,c.lastIndexOf("<"))),c)},n=function(a,b){var c,d,e,f,g,h;for(d=/\s([a-z0-9:\-]+)\s*=\s*"([^"]*)"/gi,e={};g=d.exec(a);)c=g[0],f=g[1],h=g[2],("function"==typeof b?b(f,h):void 0)||(e[f]=h);return e},e=function(a,b,c){var d,e,f;null==b&&(b={}),null==c&&(c=""),d="<"+a;for(e in b)f=b[e],d+=" "+e+'="'+f+'"';return d+=c+">"},f=function(a,c,d,f){var g,h,i,j,k,l,m;h=n(a,function(a,c){return/^xmlns/.test(a)&&b.call(f.excludedNamespaceUris,c)>=0}),k=f.includeNamespaces;for(j in k)l=k[j],b.call(function(){var a;a=[];for(i in h)m=h[i],a.push(m);return a}(),l)<0&&(g="xmlns",j.length&&(g+=":"+j),h[g]=l);return e(c,h,d)},B=function(a,b,c,d){var f;return null==d&&(d={}),f=n(a,function(a,b){return d[a]===b}),e(b,f,c)},E=function(a){return a.replace(/xmlns\s*=\s*""/gi,"")},A=function(a){return a.replace(y.namespaces(),"")},D=function(a){var b,c,d,e;for(e=[],a=a.replace(/xmlns:NS([0-9]+)=""/gi,function(a,b){return e.push(b),""}),b=0,c=e.length;c>b;b++)d=e[b],a=a.replace(new RegExp("NS"+d+":xmlns:","g"),"xmlns:");return a},g=function(a,b){var c,d;return d={},c=!0,null!=a?a.replace(new RegExp(y.xmlNode().source,"gi"),function(a,e,g){return b.removeNamespacedNamespace&&(a=D(a)),b.removeNullNamespace&&(a=E(a)),b.removeAllNamespaces&&(a=A(a)),c?(c=!1,a=f(a,e,g,b),d=n(a,function(a){return!/^xmlns/.test(a)})):(b.removeDupAttrs||b.removeDupNamespace)&&(a=B(a,e,g,d)),a}):void 0},h=function(a){return null!=a?a.replace(/(<([a-z_][a-z_0-9:\.\-]*\b)\s*(?:\/(?!>)|[^>\/])*)><\/\2>/gi,function(a,b){return b+"/>"}):void 0},k={fullDocument:!1,cleanup:!0,xmlHeaderInOutput:!0,normalizeHeader:!0,encoding:"UTF-8",preserveEncoding:!1,collapseEmptyElements:!0,removeDupNamespace:!0,removeDupAttrs:!0,removeNullNamespace:!0,removeAllNamespaces:!1,removeNamespacedNamespace:!0,includeNamespaces:{},excludedNamespaceUris:[]},t=function(a){var b,c;b={};for(c in k)b[c]=k[c];if(null!=a)for(c in a)b[c]=a[c];return b},c=function(a,b,e){var f,g,h,i,k,m,n,o,q;if(f=t(e),m=z(a),null==m)throw new Error("Failed to load the XML document");if(q=z(b),null==q)throw new Error("Failed to load the XSLT document");return"undefined"!=typeof XSLTProcessor&&null!==XSLTProcessor&&null!=("undefined"!=typeof document&&null!==document&&null!=(i=document.implementation)?i.createDocument:void 0)?(h=new XSLTProcessor,h.importStylesheet(q),k=f.fullDocument?h.transformToDocument(m):h.transformToFragment(m,document)):"transformNode"in m?k=m.transformNode(q):d&&(o=j(),o.stylesheet=q,n=o.createProcessor(),n.input=m,n.transform(),k=n.output),g=l(k),f.preserveEncoding&&(f.encoding=p(g)||p(a)||f.encoding),f.cleanup&&(g=c.cleanup(g,f)),g},c.cleanup=function(a,b){var c,d;return c=t(b),c.cleanup?(c.preserveEncoding&&(c.encoding=p(a)||c.encoding),d=q(a),(c.normalizeHeader||!c.xmlHeaderInOutput)&&(a=C(a)),c.xmlHeaderInOutput&&v(a)&&(a=x(a,c.encoding,d)),a=g(a,c),c.collapseEmptyElements&&(a=h(a)),a):void 0},c})}).call(this); +(function(){var a=[].slice,b=[].indexOf||function(a){for(var b=0,c=this.length;c>b;b++)if(b in this&&this[b]===a)return b;return-1};!function(a,b){return"function"==typeof define&&null!=define.amd?define([],b):"object"==typeof("undefined"!=typeof module&&null!==module?module.exports:void 0)?module.exports=b():null!=a?a.xslt=b():void 0}(this,function(){var c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C,D,E,F,G;return y={xmlNode:function(){return/<([a-z_][a-z_0-9:\.\-]*\b)\s*(?:\/(?!>)|[^>\/])*(\/?)>/i},xmlLike:function(){return/^\s*"},x=function(a,b,c){return G(b,c)+a},C=function(a){return null!=a?a.replace(y.xmlHeader(),""):void 0},o=function(a){var b,c;return b=null!=a?a.match(y.xmlHeader()):void 0,(null!=b?b.length:void 0)&&(null!=(c=b[0])&&"function"==typeof c.trim?c.trim():void 0)||null},m=function(a,b){var c;return c=new RegExp("\\b"+b+'\\s*=\\s*"([^"]*)"',"g").exec(a),(null!=c?c.length:void 0)>1&&c[1]||null},p=function(a){return m(o(a),"encoding")},q=function(a){return m(o(a),"standalone")},d="undefined"!=typeof ActiveXObject&&null!==ActiveXObject||"ActiveXObject"in window,F=function(){var b,c,e,f;if(f=1<=arguments.length?a.call(arguments,0):[],!d)return null;for(b=0,e=f.length;e>b;b++){c=f[b];try{return new ActiveXObject(c)}catch(g){}}return null},i=function(){var a;if(a=F.apply(null,["Msxml2.FreeThreadedDOMDocument.6.0","Msxml2.FreeThreadedDOMDocument.3.0","Msxml2.FreeThreadedDOMDocument","Microsoft.XMLDOM","Msxml2.DOMDocument.6.0","Msxml2.DOMDocument.5.0","Msxml2.DOMDocument.4.0","Msxml2.DOMDocument.3.0","MSXML2.DOMDocument","MSXML.DOMDocument"]),null!=a)for(a.async=!1;4!==a.readyState;);return a},j=function(){return F.apply(null,["Msxml2.XSLTemplate.6.0","Msxml2.XSLTemplate"])},u=function(){var a,b;return b=document.createElement("xml"),b.src=G(),document.body.appendChild(b),a=b.XMLDocument,document.body.removeChild(b),a},w=function(){var a,b;return a=null,null==a&&(a=i()),"undefined"!=typeof DOMParser&&null!==DOMParser?a:(null==a&&(a=u()),null==a&&(a=null!=(b=document.implementation)&&"function"==typeof b.createDocument?b.createDocument("","test",null):void 0),a)},z=function(a){var b,c,d,e,f;if("string"!=typeof a||!s(a))return null;if(v(a)&&(a=x(a)),b=w(),null!=b&&"loadXML"in b){if(b.loadXML(a),null==b.documentElement||0!==(null!=(c=b.parseError)?c.errorCode:void 0))throw new Error("loadXML error: "+b.parseError)}else if(null!=b&&"load"in b)b.load(a);else if("undefined"!=typeof DOMParser&&null!==DOMParser&&(b=null!=(d=new DOMParser)&&"function"==typeof d.parseFromString?d.parseFromString(a,"text/xml"):void 0,(null!=b&&"function"==typeof b.getElementsByTagName&&null!=(e=b.getElementsByTagName("parsererror"))?e.length:void 0)>0||"parsererror"===(null!=b&&null!=(f=b.documentElement)?f.nodeName:void 0)))throw new Error("Failed to load document from string:\r\n"+b.documentElement.textContent);return b},l=function(a){var b,c;return null==a?null:(c="string"==typeof a?a:null!=(null!=a?a.xml:void 0)?a.xml:"undefined"!=typeof XMLSerializer&&null!==XMLSerializer?null!=(b=new XMLSerializer)&&"function"==typeof b.serializeToString?b.serializeToString(a):void 0:null,(null!=c&&"function"==typeof c.indexOf?c.indexOf("=0&&(c=c.substring(c.indexOf(">")+1,c.lastIndexOf("<"))),c)},n=function(a,b){var c,d,e,f,g,h,i,j,k;for(d=/\s([a-z0-9:\-]+)\s*=\s*("([^"]*)"|'([^']*)')/gi,e={};j=d.exec(a);)c=j[0],h=j[1],i=j[2],f=j[3],g=j[4],k={outer:i,inner:f||g},("function"==typeof b?b(h,k):void 0)||(e[h]=k);return e},e=function(a,b,c){var d,e,f;null==b&&(b={}),null==c&&(c=""),d="<"+a;for(e in b)f=b[e],d+=" "+e+"="+f.outer;return d+=c+">"},f=function(a,c,d,f){var g,h,i,j,k,l,m;h=n(a,function(a,c){var d;return/^xmlns/.test(a)&&(d=c.inner,b.call(f.excludedNamespaceUris,d)>=0)}),k=f.includeNamespaces;for(j in k)l=k[j],b.call(function(){var a;a=[];for(i in h)m=h[i],a.push(m.inner);return a}(),l)<0&&(g="xmlns",j.length&&(g+=":"+j),h[g]={outer:'"'+l+'"',inner:l});return e(c,h,d)},B=function(a,c,d,f){var g;return null==f&&(f=[]),g=n(a,function(a,c){var d;return d=c.inner,b.call(f,d)>=0}),e(c,g,d)},E=function(a){return a.replace(/xmlns\s*=\s*""/gi,"")},A=function(a){return a.replace(y.namespaces(),"")},D=function(a){var b,c,d,e;for(e=[],a=a.replace(/xmlns:NS([0-9]+)=""/gi,function(a,b){return e.push(b),""}),b=0,c=e.length;c>b;b++)d=e[b],a=a.replace(new RegExp("NS"+d+":xmlns:","g"),"xmlns:");return a},g=function(a,b){var c,d;return d=[],c=!0,null!=a?a.replace(new RegExp(y.xmlNode().source,"gi"),function(a,e,g){var h,i,j,k,l,m,o;if(b.removeNamespacedNamespace&&(a=D(a)),b.removeNullNamespace&&(a=E(a)),b.removeAllNamespaces&&(a=A(a)),c)for(c=!1,a=f(a,e,g,b),l=n(a,function(a){return!/^xmlns/.test(a)}),d=function(){var a;a=[];for(j in l)o=l[j],a.push(o.inner);return a}(),k=b.excludedNamespaceUris,h=0,i=k.length;i>h;h++)m=k[h],d.push(m);else(b.removeDupAttrs||b.removeDupNamespace)&&(a=B(a,e,g,d));return a}):void 0},h=function(a){return null!=a?a.replace(/(<([a-z_][a-z_0-9:\.\-]*\b)\s*(?:\/(?!>)|[^>\/])*)><\/\2>/gi,function(a,b){return b+"/>"}):void 0},k={fullDocument:!1,cleanup:!0,xmlHeaderInOutput:!0,normalizeHeader:!0,encoding:"UTF-8",preserveEncoding:!1,collapseEmptyElements:!0,removeDupNamespace:!0,removeDupAttrs:!0,removeNullNamespace:!0,removeAllNamespaces:!1,removeNamespacedNamespace:!0,includeNamespaces:{},excludedNamespaceUris:[]},t=function(a){var b,c;b={};for(c in k)b[c]=k[c];if(null!=a)for(c in a)b[c]=a[c];return b},c=function(a,b,e){var f,g,h,i,k,m,n,o,q;if(f=t(e),m=z(a),null==m)throw new Error("Failed to load the XML document");if(q=z(b),null==q)throw new Error("Failed to load the XSLT document");return"undefined"!=typeof XSLTProcessor&&null!==XSLTProcessor&&null!=("undefined"!=typeof document&&null!==document&&null!=(i=document.implementation)?i.createDocument:void 0)?(h=new XSLTProcessor,h.importStylesheet(q),k=f.fullDocument?h.transformToDocument(m):h.transformToFragment(m,document)):"transformNode"in m?k=m.transformNode(q):d&&(o=j(),o.stylesheet=q,n=o.createProcessor(),n.input=m,n.transform(),k=n.output),g=l(k),f.preserveEncoding&&(f.encoding=p(g)||p(a)||f.encoding),f.cleanup&&(g=c.cleanup(g,f)),g},c.cleanup=function(a,b){var c,d;return c=t(b),c.cleanup?(c.preserveEncoding&&(c.encoding=p(a)||c.encoding),d=q(a),(c.normalizeHeader||!c.xmlHeaderInOutput)&&(a=C(a)),c.xmlHeaderInOutput&&v(a)&&(a=x(a,c.encoding,d)),a=g(a,c),c.collapseEmptyElements&&(a=h(a)),a):void 0},c})}).call(this); //# sourceMappingURL=xslt.min.js.map \ No newline at end of file diff --git a/dist/xslt.min.js.map b/dist/xslt.min.js.map index adc9104..ce22175 100644 --- a/dist/xslt.min.js.map +++ b/dist/xslt.min.js.map @@ -1 +1 @@ -{"version":3,"file":"xslt.min.js","sources":["xslt.js"],"names":["slice","indexOf","item","i","l","this","length","root","factory","define","amd","module","exports","xslt","$xslt","activeXSupported","buildElementString","cleanRootNamespaces","cleanupXmlNodes","collapseEmptyElements","createDomDoc","createXSLTemplate","defaults","docToStr","getAttrVal","getAttributes","getHeader","getHeaderEncoding","getHeaderStandalone","hasXmlHeader","isXml","loadOptions","manualCreateElement","needsHeader","newDocument","prependHeader","regex","strToDoc","stripAllNamespaces","stripDuplicateAttributes","stripHeader","stripNamespacedNamespace","stripNullNamespaces","tryCreateActiveX","xmlHeader","xmlNode","xmlLike","namespaces","str","test","encoding","standalone","replace","match","ref","trim","node","attrName","RegExp","exec","ActiveXObject","window","id","len","objIds","arguments","call","_error","d","apply","async","readyState","res","xml","document","createElement","src","body","appendChild","XMLDocument","removeChild","DOMParser","implementation","createDocument","ref1","ref2","ref3","loadXML","documentElement","parseError","errorCode","Error","load","parseFromString","getElementsByTagName","nodeName","textContent","doc","XMLSerializer","serializeToString","substring","lastIndexOf","excludeFn","all","attrRegex","collection","name","parts","val","attrs","closeTag","elStr","opt","attName","ns","uri","excludedNamespaceUris","includeNamespaces","results","push","blacklist","num","nums","isRootNode","rootNamespaces","source","removeNamespacedNamespace","removeNullNamespace","removeAllNamespaces","removeDupAttrs","removeDupNamespace","element","fullDocument","cleanup","xmlHeaderInOutput","normalizeHeader","preserveEncoding","options","p","xmlStr","xsltStr","outStr","processor","trans","xmlDoc","xslProc","xsltDoc","XSLTProcessor","importStylesheet","transformToDocument","transformToFragment","transformNode","stylesheet","createProcessor","input","transform","output"],"mappings":";;CAEA,WACE,GAAIA,MAAWA,MACbC,KAAaA,SAAW,SAASC,GAAQ,IAAK,GAAIC,GAAI,EAAGC,EAAIC,KAAKC,OAAYF,EAAJD,EAAOA,IAAO,GAAIA,IAAKE,OAAQA,KAAKF,KAAOD,EAAM,MAAOC,EAAK,OAAO,KAEhJ,SAAUI,EAAMC,GACd,MAAsB,kBAAXC,SAAwC,MAAdA,OAAOC,IACnCD,UAAWD,GAC+E,iBAA9D,mBAAXG,SAAqC,OAAXA,OAAkBA,OAAOC,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,EAAkBgH,IAAW3B,EAAI9D,UAE3E8D,EAAIqB,UACNQ,EAAS/H,EAAMuH,QAAQQ,EAAQ7B,IAE1B6B,GAET/H,EAAMuH,QAAU,SAASQ,EAAQJ,GAC/B,GAAIzB,GAAK7D,CAET,OADA6D,GAAMjF,EAAY0G,GACbzB,EAAIqB,SAGLrB,EAAIwB,mBACNxB,EAAI9D,SAAWvB,EAAkBkH,IAAW7B,EAAI9D,UAElDC,EAAavB,EAAoBiH,IAC7B7B,EAAIuB,kBAAoBvB,EAAIsB,qBAC9BO,EAASrG,EAAYqG,IAEnB7B,EAAIsB,mBAAqBrG,EAAY4G,KACvCA,EAAS1G,EAAc0G,EAAQ7B,EAAI9D,SAAUC,IAE/C0F,EAAS3H,EAAgB2H,EAAQ7B,GAC7BA,EAAI7F,wBACN0H,EAAS1H,EAAsB0H,IAE1BA,GAjBP,QAmBK/H,MAGRoD,KAAK7D"} \ No newline at end of file +{"version":3,"file":"xslt.min.js","sources":["xslt.js"],"names":["slice","indexOf","item","i","l","this","length","root","factory","define","amd","module","exports","xslt","$xslt","activeXSupported","buildElementString","cleanRootNamespaces","cleanupXmlNodes","collapseEmptyElements","createDomDoc","createXSLTemplate","defaults","docToStr","getAttrVal","getAttributes","getHeader","getHeaderEncoding","getHeaderStandalone","hasXmlHeader","isXml","loadOptions","manualCreateElement","needsHeader","newDocument","prependHeader","regex","strToDoc","stripAllNamespaces","stripDuplicateAttributes","stripHeader","stripNamespacedNamespace","stripNullNamespaces","tryCreateActiveX","xmlHeader","xmlNode","xmlLike","namespaces","str","test","encoding","standalone","replace","match","ref","trim","node","attrName","RegExp","exec","ActiveXObject","window","id","len","objIds","arguments","call","_error","d","apply","async","readyState","res","xml","document","createElement","src","body","appendChild","XMLDocument","removeChild","DOMParser","implementation","createDocument","ref1","ref2","ref3","loadXML","documentElement","parseError","errorCode","Error","load","parseFromString","getElementsByTagName","nodeName","textContent","doc","XMLSerializer","serializeToString","substring","lastIndexOf","excludeFn","all","attrRegex","attrs","innerA","innerB","name","outer","parts","val","inner","closeTag","elStr","opt","attName","ns","uri","excludedNamespaceUris","includeNamespaces","results","push","blacklist","num","nums","isRootNode","namespaceBlacklist","source","rootNamespaces","removeNamespacedNamespace","removeNullNamespace","removeAllNamespaces","removeDupAttrs","removeDupNamespace","element","fullDocument","cleanup","xmlHeaderInOutput","normalizeHeader","preserveEncoding","options","p","xmlStr","xsltStr","outStr","processor","trans","xmlDoc","xslProc","xsltDoc","XSLTProcessor","importStylesheet","transformToDocument","transformToFragment","transformNode","stylesheet","createProcessor","input","transform","output"],"mappings":";;CAEA,WACE,GAAIA,MAAWA,MACbC,KAAaA,SAAW,SAASC,GAAQ,IAAK,GAAIC,GAAI,EAAGC,EAAIC,KAAKC,OAAYF,EAAJD,EAAOA,IAAO,GAAIA,IAAKE,OAAQA,KAAKF,KAAOD,EAAM,MAAOC,EAAK,OAAO,KAEhJ,SAAUI,EAAMC,GACd,MAAsB,kBAAXC,SAAwC,MAAdA,OAAOC,IACnCD,UAAWD,GAC+E,iBAA9D,mBAAXG,SAAqC,OAAXA,OAAkBA,OAAOC,QAAU,QAC9ED,OAAOC,QAAUJ,IAET,MAARD,EAAeA,EAAKM,KAAOL,IAAY,QAE/CH,KAAM,WACP,GAAIS,GAAOC,EAAkBC,EAAoBC,EAAqBC,EAAiBC,EAAuBC,EAAcC,EAAmBC,EAAUC,EAAUC,EAAYC,EAAeC,EAAWC,EAAmBC,EAAqBC,EAAcC,EAAOC,EAAaC,EAAqBC,EAAaC,EAAaC,EAAeC,EAAOC,EAAUC,EAAoBC,EAA0BC,EAAaC,EAA0BC,EAAqBC,EAAkBC,CAqX9d,OApXAR,IACES,QAAS,WACP,MAAO,2DAETC,QAAS,WACP,MAAO,SAETF,UAAW,WACT,MAAO,sBAETG,WAAY,WACV,MAAO,kDAGXjB,EAAQ,SAASkB,GACf,MAAOZ,GAAMU,UAAUG,KAAKD,IAE9BnB,EAAe,SAASmB,GACtB,MAAOZ,GAAMQ,YA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ACNzB,EAAIjE,SAAWvB,EAAkBsH,IAAWtH,EAAkBoH,IAAW5B,EAAIjE,UAE3EiE,EAAIsB,UACNQ,EAASnI,EAAM2H,QAAQQ,EAAQ9B,IAE1B8B,GAETnI,EAAM2H,QAAU,SAASQ,EAAQJ,GAC/B,GAAI1B,GAAKhE,CAET,OADAgE,GAAMpF,EAAY8G,GACb1B,EAAIsB,SAGLtB,EAAIyB,mBACNzB,EAAIjE,SAAWvB,EAAkBsH,IAAW9B,EAAIjE,UAElDC,EAAavB,EAAoBqH,IAC7B9B,EAAIwB,kBAAoBxB,EAAIuB,qBAC9BO,EAASzG,EAAYyG,IAEnB9B,EAAIuB,mBAAqBzG,EAAYgH,KACvCA,EAAS9G,EAAc8G,EAAQ9B,EAAIjE,SAAUC,IAE/C8F,EAAS/H,EAAgB+H,EAAQ9B,GAC7BA,EAAIhG,wBACN8H,EAAS9H,EAAsB8H,IAE1BA,GAjBP,QAmBKnI,MAGRoD,KAAK7D"} \ No newline at end of file diff --git a/package.json b/package.json index 963821c..159eb79 100644 --- a/package.json +++ b/package.json @@ -53,5 +53,5 @@ "engines": { "node": ">=0.10.33" }, - "version": "0.6.0+master.0.dad59f283066" + "version": "0.7.0+master.0.d540d1829bf5" } \ No newline at end of file