tags:

views:

61

answers:

1

When i am trying to transform xml it gives me erro that Could not find function: resolve-uri where resolve-uri is a xpath function .

below is my xslt line which will use 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 ? Thanks in Advance.

A: 

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.

Tomalak
I am using RAD 7 transformation which support XSLT 1.0 .What i should use instead of that as i am passing value of dir from application.What should replace resolve-uri ?Tom,Thanks for reply.
Nisarg Mehta
I'm sorry but I can't say what to do for RAD 7. I'm afraid you have to look up how to extend XSLT there yourself, I'm sure you can find something in the docs or on the web.
Tomalak