XML namespaces has lagged behind the times somewhat, because
it is quite common for qualified names ( xxx:yyy ) to appear in
attribute values.
Systems with embedded Xpaths, such as XSLT and Schematron
are of course involved.
One kind of datatyping that might be useful could be
a datatype that says
"anything that looks like a prefix in this string must be a
namespace in scope (from xmlns) or defined
(from something like Schematron's ns elements)"
I don't know whether this is feasible, or how to do it.
And whether to go all the way an cope with, for
example, embedded literals, so that for
<a x="//xxx:yyy[@string='aaa:bbb']" />
the xxx: would be validated as a prefix
and the aaa: would escape validation.
Another wrinkle on that might be to
nominate a schema that the namespace xxx
resolves to, and then allow verification that yyy
is an element name in it.
Cheers
Rick Jelliffe
-- DSDL members discussion list To unsubscribe, please send a message with the command "unsubscribe" to dsdl-discuss-request@dsdl.org (mailto:dsdl-discuss-request@dsdl.org?Subject=unsubscribe)Received on Wed Jun 12 13:07:45 2002
This archive was generated by hypermail 2.1.8 : Fri Dec 03 2004 - 14:00:27 UTC