You can use Elements.Functions.qname(currentFocus) to get the name()
equivalent.
For use in require I'd check against the namespace as well (prefixes
can lie :<). Elements.Functions.qualifiedName or
elem(focus).name.qualifiedName will return the following syntax in
XPath function terms:
{namespace-uri()}local-name()
If you want to test on prefix as well then pqName will also add
prefix: to the front of the above string.
All of these functions are also available within the internal XPath
syntax e.g. root.\*(qualifiedName(_) == "{ns}local")
HTH,
Chris