Name

count( ) — returns the number of nodes in a node-set

Synopsis

Defined in: XPath 1.0
Parameters: node-set ns (required)
Return type: number

This example returns the number of item elements that are children of the items element:

count( items/item )

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.