cannot cast string value to node info

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

cannot cast string value to node info

srikanth.prodigy

Hello All,

When try to click on a trigger which sets the value to an instance and that instance is used in repeat. The trigger works fine for certain clicks

When I click on trigger its giving following exception.

 

org.orbeon.saxon.value.StringValue cannot be cast to org.orbeon.saxon.om.NodeInfo

trigger

<xforms:trigger appearance="minimal" style="text-decoration: none;font-family:Arial;" >

                          <xforms:label><p style="color:#4E4098;font-size:11px;"><xforms:output value="instance('positions')/more" /></p></xforms:label> 

                          <xforms:action ev:event="DOMActivate" >

                                                         <xforms:variable name="pages" select="ceiling(count(instance('events-instance')/Event[CreatedAt&lt;=now()]) div 10)"/>

                                  <xforms:setvalue ref="instance('page')" value="if(instance('page') &lt; $pages - 1) then . + 1 else '0' "/>

                             

                         

                          </xforms:action>               

                          </xforms:trigger>

 

Repeat

 

<xforms:repeat id="event-repeat1"  nodeset="(instance('events-instance')/Event[CreatedAt&lt;=now()],'CreatedAt','text','descending','lower-first')[(position() gt number(instance('page'))* 10 and position() le number(instance('page')+1)* 10)]" >

 

Thanks,

Srikanth

 

 

 

 

 



--
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
Reply | Threaded
Open this post in threaded view
|

RE: cannot cast string value to node info

srikanth.prodigy

I have fixed this issue

the repeat condition is to be changed.

 

Thanks,

Srikanth

 


From: Srikanth A [mailto:[hidden email]]
Sent: Friday, March 13, 2009 1:33 PM
To: [hidden email]
Subject: [ops-users] cannot cast string value to node info

 

Hello All,

When try to click on a trigger which sets the value to an instance and that instance is used in repeat. The trigger works fine for certain clicks

When I click on trigger its giving following exception.

 

org.orbeon.saxon.value.StringValue cannot be cast to org.orbeon.saxon.om.NodeInfo

trigger

<xforms:trigger appearance="minimal" style="text-decoration: none;font-family:Arial;" >

                          <xforms:label><p style="color:#4E4098;font-size:11px;"><xforms:output value="instance('positions')/more" /></p></xforms:label> 

                          <xforms:action ev:event="DOMActivate" >

                                                         <xforms:variable name="pages" select="ceiling(count(instance('events-instance')/Event[CreatedAt&lt;=now()]) div 10)"/>

                                  <xforms:setvalue ref="instance('page')" value="if(instance('page') &lt; $pages - 1) then . + 1 else '0' "/>

                             

                         

                          </xforms:action>               

                          </xforms:trigger>

 

Repeat

 

<xforms:repeat id="event-repeat1"  nodeset="(instance('events-instance')/Event[CreatedAt&lt;=now()],'CreatedAt','text','descending','lower-first')[(position() gt number(instance('page'))* 10 and position() le number(instance('page')+1)* 10)]" >

 

Thanks,

Srikanth

 

 

 

 

 



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