|
next
|
Subject: [DataDirect][XQuery]No value has been set for external variable Author: Juan Alfonso Date: 26 Oct 2006 11:22 AM Originally Posted: 26 Oct 2006 09:01 AM
|
Yes, it is in the scenario.
It is a very extensive Xquery, the prolog is like this:
declare namespace EDS = "http://www-nass.nhtsa.dot.gov/NASS/Schema";
import module namespace edsData="http://www.nass-nhtsa.dot.gov/moduleFunctions" at "edsData.xquery";
import module namespace ddtek-sql = "http://www.datadirect.com/xquery/sql-function" at "sqlfunctions_ora.xq";
declare variable $caseid as xs:decimal external;
declare variable $ctUsed as xs:string := "Used";
declare variable $ctUnk as xs:string := "Unk";
declare variable $ctUndef as xs:string := "Undefd";
declare variable $theText as xs:string := "";
declare function EDS:GetPersonInjurySeverity($vehid,$occid)
{
for $in in collection("NASS.INJURY")/INJURY
let $value := substring($in/AISCODES/text() ,7,1)
where $in/CASEID = $caseid and $in/VEHICLEID = $vehid and $in/OCCUPANTID = $occid and $in/RANK = 1 ......................
Yesterday I disabled the modules , I made the functions local, then it recognized the caseid variable, then I put back the code with the modules, then still working , nut when I close stylusStudio the error persists.
Thanks,
PD:
Sorry can you add a Topic to the thread .
|
|
|