Name

local-name( ) — returns the local part of the name of a node, without regard to any XML namespace

Synopsis

Defined in: XPath 1.0
Parameters: node-set ns (optional)
Return type: string

Only the first node (in document order) of the node-set is considered. When called with no parameters, the local name of the context node is returned.

This example returns the local name of the element xforms:model, which is “model”:

local-name(xforms:model)

Get XForms Essentials now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.