W3C home > Mailing lists > Public > www-forms@w3.org > September 2006

RE: A possibility to bind XMLSchema to <instance> element, not only to <model>. What do you think?

From: Klotz, Leigh <Leigh.Klotz@xerox.com>
Date: Thu, 21 Sep 2006 09:17:06 -0700
Message-ID: <E254B0A7E0268949ABFE5EA97B7D0CF40238CE08@usa7061ms01.na.xerox.net>
To: "Victor Bolshov" <crocodile2u@yandex.ru>, <www-forms@w3.org>

Victor,
It already works pretty much like tht.
You can do this with <model schema="schema1.xsd schema2.xsd"> and all
instances under that model will share the same set of schemas.
The bind attribute is necessary only if you don't use a Schema.
Leigh.

-----Original Message-----
From: www-forms-request@w3.org [mailto:www-forms-request@w3.org] On
Behalf Of Victor Bolshov
Sent: Thursday, September 21, 2006 4:18 AM
To: www-forms@w3.org
Subject: A possibility to bind XMLSchema to <instance> element, not only
to <model>. What do you think?


I've got an idea that seems to me quite interesting.

I think it would be useful if the form authors could bind XMLSchema to 
<instance> elements. (something like <instance schema="schema.xsd">). 
With such a feature, the <bind> elements could "know" the datatype for a

given nodeset directly from the schema, without the need to specify a 
"type" attribute. Currently, the authors need that attribute - but this 
leads to code duplication - we need to bind nodes to their types both in

XMLSchema and in the XForms model.

Regards, Victor.
Received on Thursday, 21 September 2006 16:17:35 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 10 March 2012 06:22:06 GMT