Reputation: 473
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 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?
Upvotes: 1
Views: 1629
Reputation: 338228
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.
Upvotes: 2