EXSLT

From Seo Wiki - Search Engine Optimization and Programming Languages

Jump to: navigation, search

EXSLT is a community initiative to provide extensions to XSLT, which are broken down into a number of modules, listed below.

The creators (Jeni Tennison, Uche Ogbuji, Jim Fuller, Dave Pawson, et al.) of EXSLT aim to encourage the implementers of XSLT processors to use these extensions, in order to increase the portability of stylesheets.

Downloadable packages that implement the extension functions and templates are provided at the official web site for XSLT processors which don't support a particular extension.

Complete list of EXSLT-defined Functions

Common EXSLT</dt>
Common covers common, basic extension elements and functions.</dd>

Function Name Return Type Parameter Types
exsl:node-set node-set object
exsl:object-type string object

</dd>

Math EXSLT</dt>
Math covers extension elements and functions that provide facilities to do with mathematics.</dd>

Function Name Return Type Parameter Types
math:min number node-set
math:max number node-set
math:highest nodeset node-set
math:lowest node-set node-set
math:abs number number
math:acos number number
math:asin number number
math:atan number number
math:atan2 number number, number
math:constant number string, number
math:cos number number
math:exp number number
math:log number number
math:power number number, number
math:random number (none)
math:sin number number
math:sqrt number number
math:tan number number

</dd>

Sets EXSLT</dt>
Sets covers those extension elements and functions that provide facilities to do with set manipulation.</dd>

Function Name Return Type Parameter Types
set:difference node-set node-set, node-set
set:intersection node-set node-set, node-set
set:distinct node-set node-set
set:has-same-node boolean node-set, node-set
set:leading node-set node-set, node-set
set:trailing node-set node-set, node-set

</dd>

Dates and Times EXSLT</dt>
Dates and Times covers date and time-related extension elements and functions.</dd>

Function Name Return Type Parameter Types
date:date-time string (none)
date:date string string?
date:time string string?
date:year number string?
date:leap-year boolean string?
date:month-in-year number string?
date:month-name string string?
date:month-abbreviation string string?
date:week-in-year number string?
date:day-in-year number string?
date:day-in-month number string?
date:day-of-week-in-month number string?
date:day-in-week number string?
date:day-name string string?
date:day-abbreviation string string?
date:hour-in-day number string?
date:minute-in-hour number string?
date:second-in-minute number string?
date:format-date string string, string
date:parse-date string string, string
date:week-in-month number string?
date:difference string string, string
date:add string string, string
date:add-duration string string, string
date:sum string node-set
date:seconds number string?
date:duration string number?

</dd>

Strings EXSLT</dt>
Strings covers extension elements and functions that provide facilities to do with string manipulation.</dd>

Function Name Return Type Parameter Types
str:tokenize node-set string, string?
str:replace node-set string, object, object
str:padding string number, string?
str:align string string, string, string?
str:encode-uri string string, string, string?
str:decode-uri string string, string
str:concat string node-set
str:split node-set string, string?

</dd>

Regular Expressions EXSLT</dt>
Regular Expressions covers extension elements and functions that provide facilities to do with regular expressions.</dd>

Function Name Return Type Parameter Types
regexp:test boolean string, string, string?
regexp:match object string, string, string?
regexp:replace string string, string, string, string

</dd>

Dynamic EXSLT</dt>
Dynamic covers extension elements and functions that deal with the dynamic evaluation of strings containing XPath expressions.</dd>

Function Name Return Type Parameter Types
dyn:evaluate object string
dyn:min number node-set, string
dyn:max number node-set, string
dyn:sum number node-set, string
dyn:map node-set node-set, string
dyn:closure node-set node-set, string

</dd>

Random EXSLT</dt>
Random covers extension elements and functions that provide facilities to do with randomness.</dd>

Function Name Return Type Parameter Types
random:random-sequence number number?, number?

</dd>

Complete list of EXSLT-defined Elements

Common EXSLT</dt>
Common covers common, basic extension elements and functions.</dd>

  • exsl:document

</dd>

Dates and Times EXSLT</dt>
Dates and Times covers date and time-related extension elements and functions.</dd>

  • date:date-format

</dd>

Functions EXSLT</dt>
Functions are those extension elements and functions that allow users to define their own functions for use in expressions and patterns in XSLT.</dd>

  • func:function
  • func:result
  • func:script

</dd>

External links

Personal tools

Served in 0.394 secs.