Hello,
//good request
for $categ in input()/rdb:CategExa/rdb:CodeCategExa
let $mois := 50
let $ecount := count(input()/rdb:ExaRealise
[./rdb:Stats/rdb:Age/rdb:AgeMois<=$mois]
)
return
{$categ}
{$ecount}
//bad request
for $categ in input()/rdb:CategExa/rdb:CodeCategExa
let $mois := 50
let $ecount := count(input()/rdb:ExaRealise
[./rdb:Stats/rdb:Age/rdb:AgeMois<=$mois]
)
return
{$categ}
{$ecount}
I don’t understand why the bad request is so bad.
I have try : AgeMois<=$mois/text()
or let $mois := {xs:Integer(50)}
with no more success.
I precise that AgeMois has an Integer Type with an index.
My purpose is to make, at the end, a think like that :
for $m in(01,
35)
and to use the $m variable in my criteria.
Thanks for your help.
Eric
#webMethods#Tamino#API-Management