The local-name() function returns the local part of the name of a node, that is, the part of the name after the colon if there is one, or the full name otherwise .
For example, if the context node is an element named <title> , the expression «local-name() » returns «title » ; for an element named <ms:schema> it returns «schema » .
Argument | Data Type | Meaning |
---|---|---|
node (optional) | node()? | Identifies the node whose local name is required. If the argument is an empty sequence, the function returns a zero-length string If the argument is omitted, the target node is the context node. It is then an error if there is no context item, or if the context item is not a node |
Result | xs:string | A string value: the local part of the name of the target node |