Re: [xml-dev] Defining non-WXS datatypes
by Rick Jelliffe other posts by this author
Jul 18 2003 5:57AM messages near this date
Re: [xml-dev] Defining non-WXS datatypes
|
Re: [xml-dev] Defining non-WXS datatypes
From: "Jeni Tennison" <jeni@[...].com>
> I thought I'd spend a little time on this, so I've put together a
> "datatype library language".
I think this is really great: a light at the end of the tunnel, Jeni!
For completeness, I think you might also need to specify a storage mapping:
this might be like the normalization mapping, but instead of mapping to a string
it maps to an (IDL?) data structure.
It would make no difference to a validator, but it might be good for data binding
and for markup minimization opportunities.
On the issue of namespaces, I think it is a mistake not to require explicit prefixes
in the XPaths. I also think it is a mistake to use the namespace context for the
queries: better to make a Chinese wall separating namespaces used by element
and attribute names, and namespaces used by content: this is what Schematron
does and I think it has worked really well. No prefix should mean no namespace.
It isn't a favour to users for schema languages to provide too much flexibility in this
area (compare with elementFormDefault of WXS ), because the user cannot
tell immediately whether an unprefixed name is in any namespace--one more thing
to worry about when they need to have one fewer thing. (Forcing no-prefix=no-namespace
and using separate declarations for namespaces does not reduce expresive power.)
Cheers
Rick Jelliffe
-----------------------------------------------------------------
The xml-dev list is sponsored by XML.org <http://www.xml.org> , an
initiative of OASIS <http://www.oasis-open.org>
The list archives are at http://lists.xml.org/archives/xml-dev/
To subscribe or unsubscribe from this list use the subscription
manager: <http://lists.xml.org/ob/adm.pl>
Thread:
Jimmy Cerra
Bob Foster
Jeni Tennison
Rick Jelliffe
Jeni Tennison
Rick Jelliffe
Jeni Tennison
James Clark
Robin Berjon
Jeni Tennison
Robin Berjon
Amelia A. Lewis
Berend de Boer
=?ISO-8859-1?Q?Bill_de_h=D3ra?=
|