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: Mark Birbeck <mark.birbeck@x-port.net>
Date: Fri, 22 Sep 2006 11:46:23 +0100
Message-ID: <640dd5060609220346y153ac0efsd9aa0d4604eb35d2@mail.gmail.com>
To: www-forms@w3.org

Hi Victor,

Normal schema rules will still apply, so you'll probably need to
ensure that all of your namespaces are correct. This means that if you
load two schemas in the way that Leigh described, by using schema
namespaces in the schema definition you could have each schema
'attach' to completely separate instances.

Regards,

Mark


On 22/09/06, Victor Bolshov <crocodile2u@yandex.ru> wrote:
>
> Klotz, Leigh wrote:
> > 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.
> >
>
> Well, it is possible that I just don't get something right.
> But, could you give me just a little example?
> Suppose, we have a schema like this:
>
> <xsd:element name="date" type="xsd:date" />
>
> then, we have an instance:
>
> <xforms:instance id="i1" xmlns="">
>         <date />
> </xforms:instance>
>
> How can I bind a XForms-control-element to "instance('i1')" - so that
> the rendering engine should understand that it must be rendered as a
> "date-picker" ? For me it seems, that I should do it as follows:
>
> <xforms:bind nodeset="instance('i1')" type="xsd:date" />
>
> Notice the "type" attribute in the <bind> - it duplicates the "type"
> from XMLSchema.
>
> Again, if there is a way to avoid "type" attribute in the <bind> - then
> I'm just a bad reader...
>
> Best regards, Victor.
>
>
>
>


-- 
Mark Birbeck
CEO
x-port.net Ltd.

e: Mark.Birbeck@x-port.net
t: +44 (0) 20 7689 9232
w: http://www.formsPlayer.com/
b: http://internet-apps.blogspot.com/

Download our XForms processor from
http://www.formsPlayer.com/
Received on Friday, 22 September 2006 10:46:33 GMT

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