Brian Miller wrote:
> Uche Ogbuji <email@example.com> wrote:
> > Strongly typed can be dangerous when we're dealing
> > with semi-structured data.
> Perhaps. But there is something to be said for a
> filter which is guaranteed to emit XML. XSLT offers
> no such guarantee, which strikes me as unsafe.
You are both right, of course.
XQuery functions may specify the type of their parameters and their return type, but they are not required to do so. A query may be as strongly typed as you want, but need not be strongly typed at all.