W3C home > Mailing lists > Public > www-forms@w3.org > January 2007

replace an instance uploading an xml file

From: Iņaki Salinas Bueno <inksalinas@gmail.com>
Date: Wed, 10 Jan 2007 21:06:53 +0100
Message-ID: <cd3c31800701101206k2e1c6b71s92f4583438f06042@mail.gmail.com>
To: www-forms <www-forms@w3.org>

I'm trying to use the upload control to select an xml file that must replace
an instance.

The initial instance data is loaded from "inital.xml". I want to give the
user the option to load his own personal data instead of filling the form. I
suppose that xforms is prepared for this, but how?

If I try this:

<xforms:upload ref="instance('the_instance')">
     <xforms:label>File to upload</xforms:label>

Mozilla says:
Error: XForms Error (40): upload element not bound to valid datatype.  Must
be bound to one of these datatypes or a type derived from one of these
datatypes: xsd:anyURI xsd:base64Binary xsd:hexBinary.

If I try this:
<xforms:upload bind="the_intance">
     <xforms:label>File to upload</xforms:label>

Mozilla says:
Error: XForms Error (8): id (the_instance) does not refer to a bind element
Received on Wednesday, 10 January 2007 20:35:27 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:36:19 UTC