<xsl:function name="" as="" >
- Top-level element
-
as attribute defines the datatype of the result
- Must be defined in a namespace
- Result of function defined by xsl:sequence element
- They can be used in XPath expressions
- Rewriting existing templates just needs the declaration changed and the result output via xsl:sequence