How to set an XQuery parameter in a transformation scenario?

<oXygen/> general issues.
abcoates
Posts: 26
Joined: Fri Mar 24, 2006 7:45 am
Location: London, UK

How to set an XQuery parameter in a transformation scenario?

Post by abcoates » Wed Feb 28, 2007 8:50 pm

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.

abcoates
Posts: 26
Joined: Fri Mar 24, 2006 7:45 am
Location: London, UK

Post by abcoates » Wed Feb 28, 2007 8:52 pm

Oops, sorry, it was indeed just a case typo ("PathtoSchema" instead of "PathToSchema"). It's fine.

Cheers, Tony.

Post Reply