Hi all,
I'm not able to provide myself an answer to the fact that the first
query returns an exception (cannot cast string to node) whereas the
second works perfectly.
client:connect("localhost", 1984, "admin", "admin") !
client:query(., "declare context item as node() external; .", {"" :=
<a/>})
client:connect("localhost", 1984, "admin", "admin") !
client:query(., "declare variable $x as node() external; $x", {"x" :=
<a/>})
I understand that the context is serialized as a string but isn't it the
possibility to pass the type information along with the query and avoid
explicit serialization on the client and deserialization on the remote
server as it happens with variables?
Thanks,
Marco.