开发者

using fn: functions in xsl [closed]

Closed. This question is opinion-based. It is not currently accepting answers.

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 question

How 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"
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜