local-name
Returns the local part of the name of node as an xs:string.

Languages
XQuery, XSLT 2.0, XSLT 3.0.
Parameters
Name | Type | Description |
---|---|---|
node | node() | The input node. |
Example
In the following XML file, the name of the p:product element is a prefixed qualified name (QName). The prefix "p" is mapped to the namespace "http://mycompany.com".
<?xml version="1.0" encoding="UTF-8"?> |
The following mapping extracts the local name, the name, and the namespace URI of the node and writes these values to a target file:

XSLT 2.0 mapping
The mapping output is displayed below. Each col item lists the result of the local-name, name, and namespace-uri functions, respectively.
<rows> |