Page 1 of 1

How to set an XQuery parameter in a transformation scenario?

Posted: Wed Feb 28, 2007 8:50 pm
by abcoates
I'm trying to set a parameter in an XQuery transformation scenario. My XQuery looks like

...
declare default function namespace "http://xml.mileywatts.com/ns/2007/iso20 ... orm/xquery";
...
declare variable $PathToSchema external;
...

and in the transformation scenario I create a parameter called "PathtoSchema". When I try to run the scenario, I get the error

----
Description: No value supplied for required parameter $PathToSchema
----

Is there any obvious reason why this wouldn't work? Could it be some kind of namespace issue (I'm new to XQuery). I'm using oXygen 8.1 Enterprise. Thanks,

Cheers, Tony.

Posted: Wed Feb 28, 2007 8:52 pm
by abcoates
Oops, sorry, it was indeed just a case typo ("PathtoSchema" instead of "PathToSchema"). It's fine.

Cheers, Tony.