using fn: functions in xsl [closed]
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this questionHow is this us开发者_开发百科ed?
usiing the example of fn:replace(string,pattern,replace)
is ist used as
<xsl:value-of select="raplce(Bella Italia', 'l', '*')"/>
or
<xsl:value-of select="fn:raplce(Bella Italia', 'l', '*')"/>
Any help would be much appreciated.
Regards
From the XSLT 2.0 spec:
The default function namespace is the standard function namespace, defined in [Functions and Operators]. This means that it is not necessary to declare this namespace in the stylesheet, nor is it necessary to use the prefix
fn
(or any other prefix) in calls to the core functions.
However if you do use the fn
prefix, then you must declare it as mapped to the standard function namespace, e.g.
xmlns:fn="http://www.w3.org/2005/xpath-functions"
精彩评论