Thursday, March 25, 2010

What is NEW in XSLT 2.0??? User-defined functions...

XSLT 2.0 works with XPath 2.0. for the purposes of XSLT users, the two are linked together.we can't use XPath 2.0 with XSLT 1.0 or XPath 1.0 with XSLT 2.0.

certain areas of missing functionality such as, Multiple output documents, Built-in support for grouping, Conversion of result tree fragments to node-sets, User-defined functions.

User-defined functions

XSLT 2.0 introduces the ability for users to define their own functions which can then be used in XPath expressions.

Functions are defined using the xsl:function element.


format

<xsl:function  name="local:fun" as?=sequence-type override? = "yes" | "no">
content of the function
</ xsl:function>

No comments:

Post a Comment