Login  Register

.xsd schema and forms

Posted by Steven Kerr on Nov 26, 2009; 3:37am
URL: https://discuss.orbeon.com/Date-formatting-in-Orbeon-3-7-1-tp278175p788012.html

People

I am attempting to bind an .xsd schema to form controls.  It appears I
have done this correctly as I have not put any type= information into
the form bindings, but the input boxes will go red if the correct format
is not used.  I achieved this by putting the instance, .xsd, and bind
commands in the same namespace.  Also, I know the instance conforms to
the schema as it was genereted from it using oXygen.

My question
-----------
Some of the fields are of type datetime.  I have found that if I put
type="xs:dateTime" in the form binding then it all works fine.  But if I
leave it out the form will display a single input box with no
datepicker. I would have thought the form would use the type from the
schema.  Also, what is odd is that if I paste in something like:
2009-11-03T03:00:00
It will then change into the two separate boxes and display the
datepicker.

Could anyone shed some light on this?

Cheers

Steven



--
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