Login  Register

Re: problem w/ trying to use xxforms variable in help w/ for attr

Posted by Erik Bruchez-3 on Jan 27, 2010; 4:34pm
URL: https://discuss.orbeon.com/problem-w-trying-to-use-xxforms-variable-in-help-w-for-attr-tp997111p1311785.html

Jeremiah,

Is this still an issue for you?

-Erik

On Fri, Jan 1, 2010 at 11:18 PM, Jeremiah Jahn <[hidden email]> wrote:

> I get the following error when I use a variable in an xforms:help element
> that has a for attribute:
> Undeclared variable in a standalone expression: $atrName
> <xforms:repeat
> nodeset="xxforms:sort(instance('data')/query/PCIAudit/@*[not(name() =
> 'nodeID') and not(name() = 'parents') and not(name() = 'contentdata') and
> not(matches(name(),'parent-.*ID')) and not(name() = 'ID')],name())">
>                 <xxforms:variable name="atrName" select="name()" />
>                 <xhtml:tr class="{if (position() mod 2 = 0) then 'even' else
> 'odd'}">
>
>                   <xhtml:td style="text-align: right;" width="30%">
>                     <xforms:input ref="." id="bob">
>                       <xforms:hint ref="instance('types')//type[@typeID =
> concat('PCIAudit.',$atrName)]/hint" />
>                       <xforms:alert ref="instance('types')//type[@typeID =
> concat('PCIAudit.',$atrName)]/alert" />
>                     </xforms:input>
>                   </xhtml:td>
>                   <xhtml:td>
> this line works fine
>                     <xforms:output value="instance('types')//type[@typeID =
> concat('PCIAudit.',$atrName)]/help" />
> this line throws the error
>                     <xforms:help for="bob">
>                       <xforms:output value="instance('types')//type[@typeID
> = concat('PCIAudit.',$atrName)]/help" />
>                     </xforms:help>
>                   </xhtml:td>
>                 </xhtml:tr>
>               </xforms:repeat>
> doing it this way will also throw the error
> <xforms:help for="bob" ref="instance('types')//type[@typeID =
> concat('{@nodeSet}.',$atrName)]/help"/>
>
> --
> 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
>
>


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