-------- Oorspronkelijk bericht --------
Onderwerp: [basex-talk] binding-types?
Van: Ben Engbers
Aan: Basex Mail-lijst
Cc:
Hi,
While creating a R-package, based on my R client-implementation, I found
that the binding function was malfunctioning.
After rewriting that function, the following is accepted:
query_txt <- "declare variable $name external; for $i in 1 to 5 return
element { $name } { $i }"
query_obj_1 <- Query(Sess, query_txt)
success <- query_obj_1$queryObject$Bind("name", "number")
print(query_obj_1$queryObject$ExecuteQuery())
results in:
"1" "2" "3"
"4" "5"
When I change the line
'success <- query_obj_1$queryObject$Bind("name", "number")' in
success <- query_obj_1$queryObject$Bind("name", "number", "xs:integer")
the following error is produced:
"[XPST0081] No namespace declared for '\002xs:integer'."
What types are accepted?
Ben