On Fri, 2004-07-23 at 10:47, Hussein Shafie wrote:
> Eric van der Vlist wrote:
> > There is another workaround which is 100% W3C XML Schema which is to use
> > a "xsi:type" attribute instead of your unqualified "type" attribute:
> > "xsi:type" is a WXS feature that lets you specify the type (either
> > complex or simple) of an XML element in the instance document.
> >
> > I don't know to which extend it is supported by XXE, though.
>
> It should be well supported by XXE (I haven't retested this
> interactively since a long time) because XXE uses a very dynamic validator.
>
> But IMHO this feature is unusable interactively in any XML editor
> because it requires you to manually add the proper "xsi:type", which is
> error prone and easy to forget.
That is, unless your editor has a feature to define in which elements
users can add xsi:type attributes and is able to find out which
datatypes are acceptable derivations of the element's type and propose a
list of values for this xsi:type.
I don't know if any editor does that nor if there is a business need to
justify this development but it can certainly be done :) ...
Eric
--
Tired of typing XML tags?
http://wikiml.org
Upcoming XML schema languages tutorial:
- Portland -half day- (27/07/2004) http://masl.to/?E6ED13728
------------------------------------------------------------------------
Eric van der Vlist http://xmlfr.org http://dyomedea.com
(ISO) RELAX NG ISBN:0-596-00421-4 http://oreilly.com/catalog/relax
(W3C) XML Schema ISBN:0-596-00252-1 http://oreilly.com/catalog/xmlschema
------------------------------------------------------------------------