add: docFrag.appendChild(elem); 
context:     match: function(context, str, regex, flags) {        var nodeset = Components.classes[NODESET_CONTRACTID]                                .createInstance(Ci.txINodeSet);        var re = new RegExp(regex, flags);        var matches = str.match(re);        if (matches != null && matches.length > 0) {            var doc = context.contextNode.ownerDocument;            for (var i = 0; i < matches.length; ++i) {                var match = matches[i];                var elem = doc.createElementNS(null, "match");                var text = doc.createTextNode(match ? match : '');                elem.appendChild(text);                nodeset.add(elem);            }        }        return nodeset;    },
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/63095ef407ee307baa082538a0a474e063d4a45e/txEXSLTRegExFunctions.js/clean/content/xslt/src/xslt/txEXSLTRegExFunctions.js