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 13:45:31 +0100
Message-ID: <640dd5060609220545q7f27fff5n4ede8f2bff49b9e1@mail.gmail.com>
To: "Victor Bolshov" <crocodile2u@yandex.ru>
Cc: www-forms@w3.org

Hi Victor,

You've described the problem fine. What I was getting at in my
previous mail is that this should *already* work, and if it isn't
working for you, one thing to check is your target namespace
declarations. Sorry if I was a bit obtuse.

Regards,

Mark


On 22/09/06, Victor Bolshov <crocodile2u@yandex.ru> wrote:
> Mark Birbeck wrote:
> >
> > 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
>
> Hi Mark!
> I know I can attach multiple schemas to the only model, and schema rules
> will apply... My concern is more about <bind>s - and the "type"
> attribute in <bind>. Currently, we need to duplicate type definitions in
> XMLSchema and in the <bind>s - if we want the form-control to be
> correctly rendered, and the schema restrictions be applied to the
> user-provided value.
> What I want is that <bind> could "read" the XMLSchema attached to the
> <instance> and apply the datatype based on its XMLSchema-definition and
> the "nodeset" XPath expression.
>
> I think I just have not described the problem so that everyone could get
> it - this is possibly due to me lacking experience and poor knowledge of
> specific terms. (this is why I prefer to speak with examples).
>
> 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 12:45:43 GMT

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