code: function applyNumbering(node) {
      const repeater = findRepeater(node);
  
      if (repeater && repeater.value != null) {
          // NB replace numbering in nodes with explicit repeater only:
          // it solves issues with abbreviations like `xsl:if[test=$foo]` where
          // `$foo` is preferred output
          const value = repeater.value;
          const count = repeater.count;
  
          node.name = replaceNumbering(node.name, value, count);
          node.value = replaceNumbering(node.value, value, count);
          node.attributes.forEach(attr => {
              const copy = node.getAttribute(attr.name).clone();
              copy.name = replaceNumbering(attr.name, value, count);
              copy.value = replaceNumbering(attr.value, value, count);
              node.replaceAttribute(attr.name, copy);
          });
      }
  
      return node;
  }
docs: Applies numbering for given node: replaces occurances of numbering token
  in node’s name, content and attributes
  @param  {Node} node
  @return {Node}