> I tried with this . But it is not working.
>
> Any clues on this .
>
>
> On Wed, Mar 3, 2010 at 12:16 AM, Hank Ratzesberger <
[hidden email]>
> wrote:
>>
>> Hi Laxmi,
>> In this case, I believe you want to use the value attribute, because this
>> is a
>> value, not an XPath reference
>> <xforms:value value="$temp1"/>
>>
http://www.w3.org/TR/xforms11/#ui-selection-commonelems-value>> Cheers,
>> Hank
>>
>> On Mar 1, 2010, at 11:37 PM, Laxmi Narayana wrote:
>>
>> Yes. II tried It is working fine.
>>
>> I have one more problem here:
>>
>> I am not able to set temp1 variable to <xforms:value ref="$temp1"/> in
>> chech box component .
>>
>> Please help me how to set temp1 variable value to ref attribute of
>> xforms:value tag.
>>
>>
>>
>> <xforms:repeat nodeset="instance('template-instance')//record">
>> <xxforms:variable name="temp" select="title"/>
>> <xxforms:variable name="temp1"
>> select='substring-after(substring-after(substring-after(title,"/"),"/"),"/")'/>
>> <xforms:group
>> ref=".[substring-after(substring-after(substring-after(title,'/'),'/'),'/')!='']">
>> <a href="javascript:jsFunctionForDownload('{$temp}')"
>> id="parah"><xhtml:img src="/images/inbox/attach.gif"
>> border="0"/><xforms:output
>> value='substring-after(substring-after(substring-after(title,"/"),"/"),"/")'/></a>
>> </xforms:group>
>>
>> <xforms:select ref="instance('main-instance')/checkbox" appearance="full"
>> multiple="true" style="font-size: 10pt">
>> <xforms:choices>
>> <xforms:item>
>> <xforms:label></xforms:label>
>> <xforms:value ref="$temp1"/>
>> </xforms:item>
>> </xforms:choices>
>> </xforms:select>
>> </xforms:repeat>
>> Regards,
>> Laxmi.
>> On Fri, Feb 19, 2010 at 9:57 AM, Erik Bruchez <
[hidden email]> wrote:
>>>
>>> Laxmi,
>>>
>>> Are you running XSLT first? If so, try doubling the brackets to escape
>>> them from XSLT:
>>>
>>> href="javascript:jsFunctionForDownload('{{$temp}}')"
>>>
>>> If that doesn't work, it might be a bug/missing feature of the version
>>> you are using.
>>>
>>> With recent builds, it works. I tried:
>>>
>>> <xxforms:variable name="temp" select="'Title'"/>
>>> <xhtml:a href="javascript:alert('{$temp}')">Show</xhtml:a>
>>>
>>> -Erik
>>>
>>> On Tue, Feb 16, 2010 at 5:06 AM, Laxmi Narayana <
[hidden email]>
>>> wrote:
>>> > Hi All,
>>> > In my xhtml I have provided code as below.While using temp variable in
>>> > javascript:jsFunctionForDownload('{$temp}')
>>> > It shows error like Undeclared variable $temp .I am using ops3.7.0
>>> > version.
>>> > Please help me How to avoid this problem?
>>> >
>>> > <xforms:repeat nodeset="instance('template-instance')//record">
>>> > <xxforms:variable name="temp" select="title"/>
>>> > <xxforms:variable name="temp1"
>>> >
>>> > select='substring-after(substring-after(substring-after(title,"/"),"/"),"/")'/>
>>> > <xforms:group
>>> >
>>> > ref=".[substring-after(substring-after(substring-after(title,'/'),'/'),'/')!='']">
>>> > <a href="javascript:jsFunctionForDownload('{$temp}')"
>>> > id="parah"><xhtml:img src="/images/inbox/attach.gif"
>>> > border="0"/><xforms:output
>>> >
>>> > value='substring-after(substring-after(substring-after(title,"/"),"/"),"/")'/></a>
>>> > </xforms:group>
>>> >
>>> > <xforms:select ref="instance('main-instance')/checkbox"
>>> > appearance="full"
>>> > multiple="true" style="font-size: 10pt">
>>> > <xforms:choices>
>>> > <xforms:item>
>>> > <xforms:label></xforms:label>
>>> > <xforms:value ref="$temp1"/></a>
>>> > </xforms:item>
>>> > </xforms:choices>
>>> > </xforms:select>
>>> > </xforms:repeat>
>>> >
>>> >
>>> > --
>>> > 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>>>
>>
>>
>>
>> --
>> Please help me, I am new in XForms, It is urgent in my project!
>> Thanks in advance,
>> Laxmi Narayana.
>>
>>
>> --
>> 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>>
>> Hank Ratzesberger
>> NEES@UCSB
>> Institute for Crustal Studies,
>> University of California, Santa Barbara
>> 805-893-8042
>>
>>
>>
>>
>>
>>
>> --
>> 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>>
>
>
>
> --
> Please help me, I am new in XForms, It is urgent in my project!
> Thanks in advance,
> Laxmi Narayana.
>
>
>
> --
> 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>
>