0

I just stumpled upon this xpath function(?) and I assume it is functioning like node(), etc. Hoever, I simply cannot seem to find any documentation.

Example

<xsl:apply-templates select="./element()"/>

Im using latest version of saxon processor.

darune
  • 10,480
  • 2
  • 24
  • 62

1 Answers1

1

As others have said, it is documented in the XPath specification. It was introduced in XPath 2.0. In an axis step, and in a pattern, it is (nearly always) equivalent to *, but it can also be used as an item type, for example

<xsl:if test="$param instance of element()">

<xsl:function name="f:parent" as="element()?">
Michael Kay
  • 156,231
  • 11
  • 92
  • 164