When I define an xquery function like this in the ide:
declare function ucl:filter-relation(
$type as xs:string,
$object-nodes as object-node()*
) as object-node()*
{
for $node in $object-nodes
return object-node { $type : $node }
};
The ide flags the return object-node { $type : $node } as erroneous. It does not like the $type. I get below message for the $node parameter
'!','(','+','-','/','//',<equality comp>,<multiplicative operator>,<node comp>,<relational comp>,<value comp>,'=>','?','NCName','[',and,cast,castable,except,instance,intersect,or,to,treat, union,'|' or '||' expected, but got $
When I define an xquery function like this in the ide:
The ide flags the return
object-node { $type : $node }
as erroneous. It does not like the $type. I get below message for the $node parameter