开发者

Could not find function: resolve-uri

开发者 https://www.devze.com 2022-12-22 03:34 出处:网络
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.

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

精彩评论

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