W3C home > Mailing lists > Public > www-forms-editor@w3.org > August 2002

RE: XForms WD 20020821 3.3.1 Referencing Schemas - Catch 33?

From: David Cleary <davec@progress.com>
Date: Thu, 29 Aug 2002 12:54:08 -0400
To: AndrewWatt2001@aol.com, www-forms@w3.org, www-forms-editor@w3.org, xforms@yahoogroups.com
Message-id: <MGEMKOGBJBFEIAOEBCNIIEHECBAA.davec@progress.com>

> Suppose I want to define a schema inside a document and to use
> some of the
> XForms datatypes which extend those provided by W3C XML Schema.
>
> So (assuming we solve the referencing problem mentioned in the previous
> "Catch 22" post) how do we do that?
>
> At first sight it seems that we can't.
>
> The Schema for XForms indicates that the <xsd:schema> element is
> allowed as
> content for the xforms:model element. At least that was how I read the
> schema. So far so good.
>
> However, the XForms datatypes are not as far as I understand
> things part of
> W3C XML Schema.
>
> So is it possible to use XForms datatypes in a referenced schema?
> which is
> stated to be of type xsd:schema? If so, how?

You use the XML Schema import element to import the XForms schema into your
schema. You can now access anything defined in that schema from your schema.

David Cleary
Received on Thursday, 29 August 2002 12:54:11 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 10 June 2009 18:12:11 GMT