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

Re: empty instance generates link exception?

From: Aaron Reed <aaronr@us.ibm.com>
Date: Fri, 06 Jan 2006 11:58:53 -0600
To: www-forms@w3.org
Message-ID: <dpmb7t$bsv$1@sea.gmane.org>

> In passing, it's worth saying that contrary to the generally held view that
> XForms is more difficult than HTML forms, the following is a perfectly
> valid, and fully working, XForms form:
>   <html
>    xmlns="http://www.w3.org/1999/xhtml"
>    xmlns:xf="http://www.w3.org/2002/xforms"
>   >
>     <head>
>       <title>Lazy Authoring</title>
>     </head>
>     <body>
>       <xf:input ref="fn">
>         <xf:label>First Name:</xf:label>
>       </xf:input>
>       <xf:input ref="sn">
>         <xf:label>Surname:</xf:label>
>       </xf:input>
>       <xf:output value="concat(fn, ' ', sn)">
>         <xf:label>Your full name is:</xf:label>
>       </xf:output>
>     </body>
>   </html>
> As with any other XForm, as you edit the values in 'fn' and 'sn', so the
> calculated value on the output changes automatically, but obviously with no
> need for scripting.
> For lazy authoring to work, it's the lack of an instance that's key, not the
> model. 

Hey Mark,

I thought that this shouldn't work because you have no model.  I know 
that you can lazy author instance, but I didn't think that you could 
lazy author the model along with it.  Can you lazy author a model or did 
you just miss the model element when you authored the example?

Received on Friday, 6 January 2006 18:02:57 GMT

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