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.
精彩评论