W3C home > Mailing lists > Public > www-forms@w3.org > April 2005

using xsi:type="xsd:string"

From: Kerry Raymond <kerry@dstc.edu.au>
Date: Wed, 20 Apr 2005 09:47:53 +1000
Message-ID: <03c001c5453a$379860c0$bb696682@dstc.edu.au>
To: <www-forms@w3.org>

In the head of my XFORM document, I have an instance whose type is set 
to "xsd:string". In the body, there is a corresponding <input> element.

At run-time (using FormsPlayer), the text box appears with the alert 
message displayed as if the input is not well-formed and unless the user 
enters a non-null string into the text box, the form will not submit. I 
found at run-time that entering a single space was sufficient to make it 
happy (the alert disappears and the form can be submitted). However, if 
I try to provide a single space as the default value in the instance, it 
behaves as if no default value was provided (displays the alert and will 
not submit).

Is there anything that mandates (in XSD or XFORMS) that xsd:string must 
be non-null? Or is this just an interpretation that FormsPlayer is 
making?

Kerry
Received on Tuesday, 19 April 2005 23:50:03 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 10 March 2012 06:22:00 GMT