Hi all,
I have a custom date type defined in my schema that is more conformant to the ISO8601 standard (it accepts YYYY-MM and YYYY in addition to YYYY-MM-DD). Is there a way I can attach the date picker widget to my new type, like it binds to xs:date? There is a text box in the widget that allows user input for alternative ISO8601 dates, but I'd like to provide the widget so that users can more conveniently pick YYYY-MM-DD formatted dates. Thanks, Ethan -- 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 |
On 30 Aug 2010, at 12:05 , Ethan Gruber wrote: > Hi all, > > I have a custom date type defined in my schema that is more > conformant to the ISO8601 standard (it accepts YYYY-MM and YYYY in > addition to YYYY-MM-DD). Is there a way I can attach the date > picker widget to my new type, like it binds to xs:date? There is a > text box in the widget that allows user input for alternative > ISO8601 dates, but I'd like to provide the widget so that users can > more conveniently pick YYYY-MM-DD formatted dates. You don't want to bind something to xs:date that accepts YYYY and YYYY-MM as well as full dates. YYYY and YYYY-MM are (patterns for) values of type xs:gYear and xs:gYearMonth, respectively. The picker would be great for a union of gYear, gYearMonth, and date. Maybe XSD should have provided that as a built-in type. But it didn't. -- **************************************************************** * C. M. Sperberg-McQueen, Black Mesa Technologies LLC * http://www.blackmesatech.com * http://cmsmcq.com/mib * http://balisage.net **************************************************************** -- 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 |
Hi, xs:date isn't bound to my date element. A custom type iso8601date is, which contains a regular expression that allows YYYY or YYYY-MM or YYYY-MM-DD. What I'd like to do is display the date picker widget for the iso8601date data type, like it does with xs:date. I assume this might be in the XSLT somewhere, but I'm not sure. I'd say 75% of the time, a user wants to use the YYYY-MM-DD format and the other 25%, they can type in a custom value into the date picker's text input. If the appearance="minimal" attribute is not set in the xforms:input, the text input for custom values won't display.
Ethan On Wed, Sep 1, 2010 at 10:38 PM, C. M. Sperberg-McQueen <[hidden email]> wrote:
-- 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 |
Free forum by Nabble | Edit this page |