RE: empty instance generates link exception?

Aaron,

> FYI Mark,
> 
> I tried your testcase and it did indeed work in fP 
> 1.3.5.1018.

I know ... :)


>  But this testcase didn't.
>
> [snip]
>
>      <xforms:group>
>        <xforms:input ref="value">
>          <xforms:label>label for input: </xforms:label>
>        </xforms:input>
>      </xforms:group>
>      <xforms:group>
>        <xforms:output ref="value">
>          <xforms:label>value in the input field:</xforms:label>
>        </xforms:output>
>      </xforms:group>

Thanks--we'll get this fixed. It's something to do with context being set
incorrectly in the second group, because the following works:

  <xf:group>
    <xf:input ref="fn">
      <xf:label>First Name:</xf:label>
    </xf:input>
    <xf:input ref="sn">
      <xf:label>Surname:</xf:label>
    </xf:input>
  </xf:group>
  <xf:output value="concat(fn, ' ', sn)">
    <xf:label>Your full name is:</xf:label>
  </xf:output>

As you've mentioned groups, you might be interested to know that you can use
them to create hierarchy in the instance data that is being 'lazily
authored', like this:

  <xf:group ref="name">
    <xf:input ref="fn">
      <xf:label>First Name:</xf:label>
    </xf:input>
    <xf:input ref="sn">
      <xf:label>Surname:</xf:label>
    </xf:input>
  </xf:group>
  <xf:output value="concat(name/fn, ' ', name/sn)">
    <xf:label>Your full name is:</xf:label>
  </xf:output>

(But as with the bug you spotted, putting a group around the second output
doesn't do any good, even if it has @ref="name".)

Regards,

Mark


Mark Birbeck
CEO
x-port.net Ltd.

e: Mark.Birbeck@x-port.net
t: +44 (0) 20 7689 9232
w: http://www.formsPlayer.com/

Download our XForms processor from
http://www.formsPlayer.com/

Received on Saturday, 7 January 2006 15:12:05 UTC