Write an XSLT stylesheet function that returns true if two elements “match”:
f:element-matches($srcElem, $targetElem)
Two elements match if:
They have the same name (use the node-name function).
Every attribute on $srcElem that is not in a namespace is also on $targetElem and has the same value.
Namespace qualified attributes on $srcElem are ignored.
Extra attributes are allowed on $targetElem.