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

Re: empty instance generates link exception?

From: John Boyer <boyerj@ca.ibm.com>
Date: Wed, 4 Jan 2006 20:54:19 -0800
To: Aaron Reed <aaronr@us.ibm.com>
Cc: www-forms@w3.org, www-forms-request@w3.org
Message-ID: <OF574005FF.9B7C4F2C-ON882570ED.001AA334-882570ED.001AF1D0@ca.ibm.com>
We also generate a link exception in Workplace Forms.  It's been agreed 
that 
this is the only available exception in 1.0 and that we would define a 
parse
exception in 1.1 (because an instance must contain a well-formed XML 
document,
and empty document doesn't satisfy that)

John M. Boyer, Ph.D.
Senior Product Architect/Research Scientist
Workplace, Portal and Collaboration Software
IBM Victoria Software Lab
E-Mail: boyerj@ca.ibm.com  http://www.ibm.com/software/





Aaron Reed <aaronr@us.ibm.com> 
Sent by: www-forms-request@w3.org
01/04/2006 04:49 PM

To
www-forms@w3.org
cc

Subject
empty instance generates link exception?







Hey,

I just want to verify that an empty instance element should generate a 
xforms-link-exception, right?

For example,

<xforms:model>
   <xforms:instance id="myInstance"/>
</xforms:model>

My reading of the spec leads me to think so since the instance document 
can't be well-formed without a root element which should generate a 
xforms-link-exception.  The different processors seem to behave 
inconsitently with my testcase.  Novell gives the warning.  X-Smiles has 
their own processor error and formsPlayer and Mozilla just let it 
proceed as normal.

Please let me know what the proper behavior should be.

Thanks,
--Aaron
Received on Thursday, 5 January 2006 04:54:44 GMT

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