Displaying a date picker using xs:date from a schema rather than bind.

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

Displaying a date picker using xs:date from a schema rather than bind.

Mark Gibson-8
Hi,
I'm trying to create an XForms model using an XMLSchema
as much as possible rather than <xforms:bind>'s.

But, I'm finding that elements declared with a type of 'xs:date'
do not appear as a date picker on the form, I have to add
an <xforms:bind type="xs:date" nodeset=.../> for this to happen.

Is this to be expected, or just a limitation of the present
implementation? Are there any future plans to display elements
recognised as xs:date from the schema with a date picker?

Also, is there a way to specify a similar effect as
<xforms:bind required="true()"/> using just an XML Schema?

Cheers
- Mark Gibson



--
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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Displaying a date picker using xs:date from a schema rather than bind.

Erik Bruchez-3
Mark,

 > But, I'm finding that elements declared with a type of 'xs:date'
 > do not appear as a date picker on the form, I have to add
 > an <xforms:bind type="xs:date" nodeset=.../> for this to happen.

 > Is this to be expected, or just a limitation of the present
 > implementation? Are there any future plans to display elements
 > recognised as xs:date from the schema with a date picker?

This should definitely work. I entered a bug:

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

 > Also, is there a way to specify a similar effect as
 > <xforms:bind required="true()"/> using just an XML Schema?

No, as far as I know XForms does not specify this. But if a reasonable
mechanism can be imagined, then it would be worth pursuing. Do you have
any idea how this could work?

-Erik

--
Orbeon - XForms Everywhere:
http://www.orbeon.com/blog/



--
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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Displaying a date picker using xs:date from a schema rather than bind.

Erik Bruchez
Administrator
In reply to this post by Mark Gibson-8
Mark,

> But, I'm finding that elements declared with a type of 'xs:date'
> do not appear as a date picker on the form, I have to add
> an <xforms:bind type="xs:date" nodeset=.../> for this to happen.

> Is this to be expected, or just a limitation of the present
> implementation? Are there any future plans to display elements
> recognised as xs:date from the schema with a date picker?

This should definitely work. I entered a bug:

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

> Also, is there a way to specify a similar effect as
> <xforms:bind required="true()"/> using just an XML Schema?

No, as far as I know XForms does not specify this. But if a reasonable
mechanism can be imagined, then it would be worth pursuing. Do you have
any idea how this could work?

-Erik

--
Orbeon - XForms Everywhere:
http://www.orbeon.com/blog/



--
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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Displaying a date picker using xs:date from a schema rather than bind.

Mark Gibson-8
Erik Bruchez wrote:
>
>> Also, is there a way to specify a similar effect as
>> <xforms:bind required="true()"/> using just an XML Schema?
>
> No, as far as I know XForms does not specify this. But if a reasonable
> mechanism can be imagined, then it would be worth pursuing. Do you have
> any idea how this could work?

Well I've not worked my way through the whole of the XML Schema spec yet
('tis a bit heavy going, I'm waiting for a more friendly book to arrive)

But, to start with:

I think the visual rendering effect of <xforms:bind required="true()"/>
should be applied to an XForms control if:

    (for xs:attribute)
        @use="required" and xs:minLength > 0

    (for xs:element based on a xs:simpleType)
         @nillable != true and @minOccurs > 0 and xs:minLength > 0



--
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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws