W3C home > Mailing lists > Public > www-forms@w3.org > July 2006

controls restricted to certain bound types

From: Aaron Reed <aaronr@us.ibm.com>
Date: Mon, 24 Jul 2006 17:46:25 -0500
To: www-forms@w3.org
Message-ID: <ea3ik6$bau$1@sea.gmane.org>

Hi,

I have a question about the 1.0 spec.  It says that inputs, ranges and 
uploads all have limitations as to the types of data that they can bind 
to.  xf:input is spelled out pretty clearly...it can only bind to 
simpleContent that is NOT xsd:base64Binary or xsd:hexBinary or derived 
from them.

However upload and range do NOT have the simpleContent rule.    For 
example, upload says, "This form control can only be bound to datatypes 
xsd:anyURI, xsd:base64Binary or xsd:hexBinary, or types derived by 
restriction from these."  Is this just simpleContent restriction or does 
this include complexContent restriction?  Also why can't I bind to a 
node with a complex type that uses simpleContent extension?  Like:

<xs:complexType name="myType">
   <xs:simpleContent>
     <xs:extension base="xs:anyURI">
       <xs:attribute name="filename" type="xs:string"/>
       <xs:attribute name="mediatype" type="xs:string"/>
     </xs:extension>
   </xs:simpleContent>
</xs:complexType>

Any clarification appreciated.

Thanks,
--Aaron
Received on Monday, 24 July 2006 22:49:47 GMT

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