>
>
>
> Hello,
> I want to set for the position attribute of the xforms:insert expression a
> value which is variable. What I'm trying to do is as here:
>
> <xf:repeat nodeset="InvoiceItems/item" id="item-repeat">
> <xxforms:variable name="position" select="position()"/>
> <xxforms:variable name="insertWhere"
> select="if($position=count(instance('content')/InvoiceItems/item))then
> 'after' else 'before'"/>
> <xf:insert ev:event="DOMActivate"
> context="instance('content')/InvoiceItems" nodeset="item"
> at="index('item-repeat')"
> position="$insertWhere" origin="instance('invoice-item-template')" />
> </xf:repeat>
>
> the problem is that my variable is not recognized in this statement and
> Orbeon is asking only for the static values "after" or "before".
> If I'm displaying the value of that variable everything works great.
> <xf:output value="$insertWhere"/>
>
> Thanks.
> Alexandru
>
> --
> You receive this message as a subscriber of the
[hidden email] mailing
> list.
> To unsubscribe: mailto:
[hidden email]
> For general help: mailto:
[hidden email]?subject=help
> OW2 mailing lists service home page:
http://www.ow2.org/wws>
>