fn:last()
+
+
+
+
+
-
-
-
-
-
- [1.0]
- Returns the position of the last node in the context list
-
-
- -
-
W3C Documentation reference: Node-Set-Functions
- fn:position()
-
-
-
-
-
- [1.0]
- Returns the position of the current context node
-
-
- -
-
W3C Documentation reference: Node-Set-Functions
- fn:count(node-set)
-
-
-
-
-
- [1.0]
- Returns the number of nodes in the node-set
- Arguments and return type: -
-
Examples:
-
-
-
- - Arguments and return type: -
| Type | -Description | -
|---|---|
| node-set | -Node-set to count nodes in | -
-
| Expression | -Result | -
|---|---|
| count(//b:book) | -5 | -
| count(//person[@id>5]) | -17 | -
-
W3C Documentation reference: Node-Set-Functions
- fn:id(object)
-
-
-
-
-
- [1.0]
- Returns the element specified by it's unique id, requires DTD
-
-
- -
-
W3C Documentation reference: Node-Set-Functions
- fn:local-name(node-set)
-
-
-
-
-
- [1.0]
- Returns the local-name for the first node in the node-set
- Arguments and return type: -
-
Examples:
-
-
-
- - Arguments and return type: -
| Type | -Description | -
|---|---|
| node-set | -Extract first node and return its local name | -
-
| Expression | -Result | -
|---|---|
| local-name(//b:books) | -b:book | -
| local-name(//b:book) | -b:title | -
-
W3C Documentation reference: Node-Set-Functions
- fn:local-name()
-
-
-
-
-
-
- [1.0] fn:namespace-uri(node-set)
-
-
-
-
-
- [1.0]
- Returns the namespace-uri for the first node in the node-set
- Arguments and return type: -
-
Examples:
-
-
-
- - Arguments and return type: -
| Type | -Description | -
|---|---|
| node-set | -Extract first node and return the namespace URI | -
-
| Expression | -Result | -
|---|---|
| namespace-uri(//b:book) | -http://www.book.com | -
-
W3C Documentation reference: Node-Set-Functions
- fn:namespace-uri()
-
-
-
-
-
- [1.0]
- Returns the namespace-uri for the context node
-
-
- -
-
W3C Documentation reference: Node-Set-Functions
- fn:name(node-set)
-
-
-
-
-
- [1.0]
- Returns the name for the first node in the node-set
- Arguments and return type: -
-
Examples:
-
-
-
- - Arguments and return type: -
| Type | -Description | -
|---|---|
| node-set | -Extract first node and return QName | -
-
| Expression | -Result | -
|---|---|
| name(//b:books/*) | -b:book | -
| name(//b:book/*) | -b:title | -
-
W3C Documentation reference: Node-Set-Functions
- fn:name()
-
-
-
-
-
-
- Returns the name for the context node
- Examples:
-
-
-
- - Examples:
-
| Expression | -Result | -
|---|---|
| current context node | -Extract first node and return QName | -
-
W3C Documentation reference: Node-Set-Functions
-