ZVON > References > XSLT Reference
Go to standard

XPath function: string name (node-set?)

Standard excerpt:

The name function returns a string containing a QName representing the expanded-name of the node in the argument node-set that is first in document order. The QName must represent the expanded-name with respect to the namespace declarations in effect on the node whose expanded-name is being represented. Typically, this will be the QName that occurred in the XML source. This need not be the case if there are namespace declarations in effect on the node that associate multiple prefixes with the same namespace. However, an implementation may include information about the original prefix in its representation of nodes; in this case, an implementation can ensure that the returned string is always the same as the QName used in the XML source. If the argument node-set is empty or the first node has no expanded-name, an empty string is returned. If the argument it omitted, it defaults to a node-set with the context node as its only member. Examples (xslt:xml): Overview
4:2 19:5 40:8 50:10 51:10 61:3 64:3 74:2 74:14 82:19 83:18 87:8 88:8 89:8 90:8 91:8 92:8

Interactive xlab: [xpath] [xsl:value-of] [xsl:template]