Modules | Version: 3 Element Syntax<func:function name = QName> <-- Content: (xsl:param* | template) --> </func:function>
The
An Note: the rules on resolving qualified names entail that if no prefix is defined, the namespace URI resolves to the null namespace. Thus, it is an error if the qualified name specified does not have a prefix.
It is an error if a stylesheet contains more than one
When an extension function defined with Defining Function Arguments
Arguments for functions are defined with the
When an extension function is called, the values passed as arguments are assigned to parameters according to the position of the An XSLT processor must not signal an error if an extension function is called with fewer arguments than there are parameters defined for the extension function. It is an error to call a function with more arguments than there are parameters defined for the extension function. An XSLT processor may signal the error; if it does not signal the error, then it must recover by ignoring the extra arguments. As an example, take the following function definition: <func:function name="my:func"> <xsl:param name="foo" /> <xsl:param name="bar" select="false()" /> ... </func:function> All the following function calls are legal: my:func() my:func('Fred') my:func('Fred', true()) my:func('Fred', 'Barney') The following function call is illegal: my:func('Fred', true(), 'Barney')
The value specified by an The type of the value passed into the function may be tested with the exsl:object-type function if it is supported. Function Results
The content of the
It is an error if the instantiation of the template results in the generation of result nodes. For example a call to <func:function name="my:func"> <foo /> </func:function>
The instantiation of the content of the
If no An implementation of this extension element in the EXSLT func namespace must conform to the behaviour described in this document. Change HistorySubmitted: 2001-03-31
CopyrightThis material is in the public domain. |
http://www.exslt.org/func.function.html last modified 2001-03-31