Page 1 of 1

XSL parameter type problem

Posted: Fri Jun 19, 2009 11:08 am
by MikeTheSpike
Hi all,
I experience different behaviour when running an XSL transform per
transformation scenario and in the debugger.
I've defined a stylesheet parameter with type attribute as="xs:anyURI".
No problem when I use the transformation scenario. Running it in the
debugger, I get
"Required type is xs:anyURI; supplied value has type xs:string"

I use oXygen 10.2, problem occurs with both Saxon B & SA 9.1.0.6.

Thanks in advance,

Michael

Re: XSL parameter type problem

Posted: Fri Jun 19, 2009 5:23 pm
by sorin_ristache
Hello,

There is a problem with xs:anyURI parameters in the debugger. For avoiding the problem until we fix it please declare the parameter as xs:string and convert it to xs:anyURI when using the value of the parameter with the expression:

Code: Select all

xs:anyURI($param)
where $param is the xs:string param which you want to use as an xs:anyURI.


Thank you for your report,
Sorin

Re: XSL parameter type problem

Posted: Tue Jun 23, 2009 11:06 am
by Radu
Hi Mike,

A fix will be available in Oxygen 10.3 (couple of weeks).

Regards,
Radu