Undeclared variable in a standalone expression

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Undeclared variable in a standalone expression

quinquin2209
Hi,

I would like to use <xforms:variable> and try an example as follow:

<xforms:model> 
  <xforms:instance>
    <data xmlns="">
      <level1>
        <level2>
            <c>value</c>
        </level2>
       </level1>
    </data>
  </xforms:instance>
</xforms:model>


<xforms:group>
  <xforms:variable name="bvalue" select="level1/level2"/>
 
  The c value: <xforms:output ref="$bvalue/c"/>
</xforms:group>

However, error message Undeclared variable in a standalone expression is prompted.

Any suggestion on what's going on?

Thanks in advance

Queenie
Reply | Threaded
Open this post in threaded view
|

Re: Undeclared variable in a standalone expression

Erik Bruchez
Administrator
xforms:variable is not a valid XForms construct.

We are pushing for this to be part of XForms 1.2 or 2.0, and in the  
meanwhile we may implement it as an extension, but for now this is not  
part of Orbeon Forms either.

-Erik

On Feb 5, 2008, at 6:46 PM, quinquin2209 wrote:

>
> Hi,
>
> I would like to use <xforms:variable> and try an example as follow:
>
> <xforms:model>
>  <xforms:instance>
>    <data xmlns="">
>       <c>value</c>
>    </data>
>  </xforms:instance>
> </xforms:model>
>
>
> <xforms:group>
>  <xforms:variable name="bvalue" select="a/b"/>
>
>  The c value: <xforms:output ref="$bvalue/c"/>
> </xforms:group>
>
> However, error message Undeclared variable in a standalone  
> expression is
> prompted.
>
> Any suggestion on what's going on?
>
> Thanks in advance
>
> Queenie
> --
> View this message in context: http://www.nabble.com/Undeclared-variable-in-a-standalone-expression-tp15304373p15304373.html
> Sent from the ObjectWeb OPS - Users mailing list archive at  
> Nabble.com.
>
--
Orbeon Forms - Web Forms for the Enterprise Done the Right Way
http://www.orbeon.com/



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