Namespaces for XForms 1.0 functions??

This is by way of an exploratory question, and arises after spending some 
time recently with XQuery 1.0.

Given that multi-namespace documents will become increasingly common does it 
make sense now, before XForms 1.0 proceeds to a further stage, to define a 
namespace URI for XPath 1.0 / XForms 1.0 functions (similar to the approach 
taken with regard to functions in the current XQuery WDs)?

The uses where I might, with my present perspective, combine XForms and 
XQuery don't seem to require a namespace to be defined at this stage. 
However, since in theory XForms 1.0 can be combined with any arbitrary XML 
host language, I wonder whether it makes sense ... as preventive medicine? 
... to define an XForms function namespace at this stage.

I assume that an XForms 1.0 processor would typically treat unprefixed 
functions as belonging to whatever the default XForms 1.0 functions namespace 
might be.

If a namespace URI is thought sensible, presumably we would also need a 
mechanism to associate a namespace prefix with the XForms functions URI.

And how, at future times, are XForms 1.0 functions to be distinguished from 
XForms x.x functions? Different namespace URIs? Same URI but some indication 
of version?

Or maybe it is logically impossible for any function name collisions to 
occur?? Isn't multi-namespace XML fun? :)

Andrew Watt

Received on Saturday, 8 March 2003 16:56:00 UTC