Javadoc
Binds a value to the given external variable or the context item. The
value is converted into an instance of the specified type, which must
represent an xs:string
or a type derived by restriction
from xs:string
. If the specified type is null
,
it defaults to xs:string
.
Subsequently the value is converted into an instance of the specified
type according to the rule defined in 14.2 Mapping a Java Data Type to
an XQuery Data Type, XQuery API for Java (XQJ) 1.0,. If the
conversion fails, or if there is a mismatch between the static and
dynamic types, an XQException
is raised either by this
method, or during query evaluation.