开发者

Could not find function: resolve-uri

When I am trying to transform an XML it gives me an error

Could not find function: resolve-uri

where resolve-uri is an XPath function.

Below is my XSLT line开发者_Python百科 which uses the resolve-uri function:

<xsl:variable name="filename" select="resolve-uri(concat($dir,'/',$xmlFileName,'_',position(),'.xml'))"  /> 

Can anybody please help me.

Is it because of XSLT version difference?


Yes, resolve-uri() is an XPath 2.0 (XSLT 2.0) function and won't work with an XPath 1.0 (XSLT 1.0) implementation.

It depends on your environment if you are able to use an equivalent extension function.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜