inline schema type reference

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

inline schema type reference

Don Smith-9
Does Orbeon support inline schema in the xforms model?

I'm following the example of an inline schema from the
XForms specification (6.1.1).

I've got my own inline schema (namespace declared on
the root element of the view.html):

   <xsd:schema
targetNamespace="http://locke-smith.com/xforms.schema.types"
>
    <xsd:simpleType name="month">
     <xsd:restriction base="xsd:string">
      <xsd:enumeration value="January"/>
      <xsd:enumeration value="February"/>
     </xsd:restriction>
    </xsd:simpleType>
   </xsd:schema>

and my bind refers to the "month" type:

   <xforms:bind nodeset="section1/dob/month"
type="ls:month" />

The error message I get is "invalid schema type".

Thanks,

Don


      ____________________________________________________________________________________
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile.  Try it now.  http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: inline schema type reference

Erik Bruchez
Administrator
> Does Orbeon support inline schema in the xforms model?

Yes, since March 5:

http://forge.objectweb.org//tracker/index.php?func=detail&aid=308768&group_id=168&atid=350207
>

> I'm following the example of an inline schema from the
> XForms specification (6.1.1).
>
> I've got my own inline schema (namespace declared on
> the root element of the view.html):
>
>   <xsd:schema
> targetNamespace="http://locke-smith.com/xforms.schema.types"
>>
>    <xsd:simpleType name="month">
>     <xsd:restriction base="xsd:string">
>      <xsd:enumeration value="January"/>
>      <xsd:enumeration value="February"/>
>     </xsd:restriction>
>    </xsd:simpleType>
>   </xsd:schema>
>
> and my bind refers to the "month" type:
>
>   <xforms:bind nodeset="section1/dob/month"
> type="ls:month" />
>
> The error message I get is "invalid schema type".

Make sure you are using a nightly build:

   http://forge.objectweb.org/nightlybuilds/ops/ops/

-Erik

--
Orbeon Forms - Web Forms for the Enterprise Done the Right Way
http://www.orbeon.com/



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws