XPath Custom Fucntions
Identifier:
org.eclipse.jet.xpathFunctions
Since:
1.0
Description:
Declare custom XPath functions that will be available during JET XPath execution.
Configuration Markup:
<!ELEMENT extension (function*)>
<!ATTLIST extension
point CDATA #REQUIRED
id CDATA #IMPLIED
name CDATA #IMPLIED
>
<!ELEMENT function EMPTY>
<!ATTLIST function
name CDATA #REQUIRED
implementation CDATA #IMPLIED
minArgs CDATA #REQUIRED
maxArgs CDATA #REQUIRED
>
- name - The name of the XPath function, as it will be called in an XPath expression. The name must start with a letter or underscore (_), and the remaining characters may be letters, digits, underscores(_), hyphens(-) or periods(.).
- implementation - The Java class that implements the function.
- minArgs - The minimum number of arguments the function will accept. Must be a an integer greater than or equal to zero (0).
- maxArgs - The maximum number of arguments the function will accept, or -1, if the function will accept an unlimited number of arguments.
Examples:
See plugin.xml in plug-in org.eclipse.jet.
Supplied Implementation:
Not applicable.
Copyright (c) 2005, 2010 IBM Corporation and others.