Name

name( ) — for element and attribute nodes, returns the node name as a QName

Synopsis

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

For other node types, returns the same value as local-name( ). When called with no parameters, the name of the context node is returned.

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

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.