14. remove-attribute

remove-attribute(name, element?)

Remove attribute having specified name from specified element. Parameter name is a string representing an XML qualified name. Parameter element defaults to the context node.

Example:

remove-attribute("xml:id");

remove-attribute("lang", parent::*);