This function creates a new named paste buffer
name and returns a document identifier that may be used on subsequent calls to functions that operate on document trees. The
pubid and
subtype arguments are used to specify the document type for the paste buffer. See the
doc_open function for details. If omitted, the document type of the current document is used.