Re: empty instance generates link exception?

> 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?

--Aaron

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