I would propose an additional "type" attribute to the "Parameter" element, to support strong(er) typing by compliant clients.
The attribute would be optional, and its values could be the simple types built in to XML Schema (e.g. string, decimal; see XML Schema Part 0: Primer, §2.3, Table 2).
Compliant clients may exploit the type information to adapt the input control to the expected input type, to populate the template.
For example, in case of a template containing a parameter of type date, a browser may present the user with a calendar widget.
--
You received this message because you are subscribed to the Google Groups "OpenSearch" group.
To post to this group, send email to opens...@googlegroups.com.
To unsubscribe from this group, send email to opensearch+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/opensearch?hl=en.
one thing that might be useful for future work is a way to formalize the parameters (something like ngRELAX ? ) in the different namespaces
regarding the optionally I think you raise a good concern, like you I don't see any case when that could happen
ciao
pedro
Hi Lorenzo,
In the question that you reference above by "constrain the input", I
didn't mean by 'typing' - rather, I meant by the potential values. I
can see that both are useful though. Specifically, I need to be able
to have an enumeration that can change at runtime, for example, a list
of searchable "countries" or a list of searchable "categories". This
list is very quiet and I'm not sure what the process is for pushing
through change requests like this - perhaps we should start by
figuring that out?
Thanks,
--tim