docs: function snippet() {
    var args = mlutil.asArray.apply(null, arguments);
    var argLen = args.length;
  
    var builtins = {
        empty:              'empty-snippet',
        'empty-snippet':    'empty-snippet',
        metadata:           'metadata-snippet',
        'metadata-snippet': 'metadata-snippet',
        snippet:            'snippet'
    };
  
    var snippeter = {
        apply: 'snippet'
    };
  
    var arg = null;
    var builtin = null;
    for (var i=0; i < argLen; i++) {
      arg = args[i];
      if (typeof arg === 'string' || arg instanceof String) {
        builtin = builtins[arg];
        if (builtin !== void 0) {
          snippeter.apply = builtin;
          continue;
        } else {
          var rootname = mlutil.rootname(arg);
          snippeter.ns    = 'http://marklogic.com/snippet/custom/'+rootname;
          snippeter.at    = '/ext/marklogic/snippet/custom/'+arg;
          snippeter.apply = 'snippet';
          continue;
        }
      } else {
        mlutil.copyProperties(arg, snippeter);
        continue;
      }
    }
  
    return {'transform-results': snippeter};
  }