Thread: [Xsltforms-support] events and ev:observer
Brought to you by:
alain-couthures
From: Efraim F. <efr...@gm...> - 2011-04-21 05:32:42
Attachments:
select.xql
|
Hi, Using the latest XSLTForms from trunk, the attached test case fails. The expected result is that when the selection item changes, a message pops up. The xforms-value-changed event is fired, but never dispatched to the action with observer. The message does appear if the select1 and action are enclosed in the same group (and the ev:observer is not needed). Is ev:observer expected to be supported in XSLTForms? Thanks, -- --- Efraim Feinstein Lead Developer Open Siddur Project http://opensiddur.net http://wiki.jewishliturgy.org |
From: ac <ac...@hy...> - 2011-04-21 06:45:42
|
Hi Alain, All, There seems to still be a few things I am missing about XForms. In an XSLTForm, where everything else displays properly, I have a xf:repeat section has below, where the <xf:output value="count(//stratml:Goal)"/> works fine, but the <xf:output ref="position()"/> does not, just all the references to position(). Could you help me see why? Thank you. Regards, Andre ... <h2><hr class="form" align="left"/>Goals (<xf:output value="count(//stratml:Goal)"/>)</h2> <ul> <xf:group> <xf:repeat id="goalrepeat" nodeset="stratml:StrategicPlanCore/stratml:Goal" appearance="compact"> <table> <tr> <td><h3>Goal <xf:output ref="position()"/>:</h3></td> ... |
From: Raja <m.r...@ni...> - 2011-04-21 07:04:26
|
Hi AC !!! use current() instead of the position() function inside the repeat option. By Rajamani marimuthu XRX Team OTC On 04/21/11, ac <ac...@hy...> wrote: > > Hi Alain, All, > > There seems to still be a few things I am missing about XForms. > > In an XSLTForm, where everything else displays properly, I have a > xf:repeat section has below, where the > <xf:output value="count(//stratml:Goal)"/> works fine, but the > <xf:output ref="position()"/> does not, just all the references to > position(). > Could you help me see why? > > Thank you. > > Regards, > Andre > > > ... > <h2><hr class="form" align="left"/>Goals (<xf:output > value="count(//stratml:Goal)"/>)</h2> > <ul> > <xf:group> > <xf:repeat id="goalrepeat" > nodeset="stratml:StrategicPlanCore/stratml:Goal" appearance="compact"> > <table> > <tr> > <td><h3>Goal <xf:output ref="position()"/>:</h3></td> > ... > > ------------------------------------------------------------------------------ > Benefiting from Server Virtualization: Beyond Initial Workload > Consolidation -- Increasing the use of server virtualization is a top > priority.Virtualization can reduce costs, simplify management, and improve > application availability and disaster protection. Learn more about boosting > the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev > _______________________________________________ > Xsltforms-support mailing list > Xsl...@li... > https://lists.sourceforge.net/lists/listinfo/xsltforms-support > -- Rajamani Marimuthu Junior Research Fellow-JRF NIC -Open Technology Centre Rajaji Bhavan Besant Nagar, Chennai - 90 Cell : 9677192096 |
From: ac <ac...@hy...> - 2011-04-21 08:41:36
|
Hi Rajamani, Unfortunately, that does not work. I need the position() number. Do you mean position(current()) or current()/position() or something else? Thank you. Regards, Andre > Hi AC !!! > > use current() instead of the position() function inside the repeat option. > > By > Rajamani marimuthu > XRX Team > OTC > > On 04/21/11, *ac * <ac...@hy...> wrote: >> Hi Alain, All, >> >> There seems to still be a few things I am missing about XForms. >> >> In an XSLTForm, where everything else displays properly, I have a >> xf:repeat section has below, where the >> <xf:output value="count(//stratml:Goal)"/> works fine, but the >> <xf:output ref="position()"/> does not, just all the references to >> position(). >> Could you help me see why? >> >> Thank you. >> >> Regards, >> Andre >> >> >> ... >> <h2><hr class="form" align="left"/>Goals (<xf:output >> value="count(//stratml:Goal)"/>)</h2> >> <ul> >> <xf:group> >> <xf:repeat id="goalrepeat" >> nodeset="stratml:StrategicPlanCore/stratml:Goal" appearance="compact"> >> <table> >> <tr> >> <td><h3>Goal <xf:output ref="position()"/>:</h3></td> >> ... >> >> ------------------------------------------------------------------------------ >> Benefiting from Server Virtualization: Beyond Initial Workload >> Consolidation -- Increasing the use of server virtualization is a top >> priority.Virtualization can reduce costs, simplify management, and >> improve >> application availability and disaster protection. Learn more about >> boosting >> the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev >> _______________________________________________ >> Xsltforms-support mailing list >> Xsl...@li... >> https://lists.sourceforge.net/lists/listinfo/xsltforms-support > > -- > Rajamani Marimuthu > Junior Research Fellow-JRF > NIC -Open Technology Centre > Rajaji Bhavan > Besant Nagar, > Chennai - 90 > Cell : 9677192096 > |
From: Raja <m.r...@ni...> - 2011-04-21 07:02:50
|
Hi Efrainm Feinstein !!! You r correct within the same it;s working but not in the outside . I think there is nothing special to specify that ev:observer outside the actual Select1 control. but through firefox xforms plug-in your code is working fine and the xforms-value-changed event with observer occurred in an expected manner .. May be alian will tell the exact info about this strange behavior. By Rajamani marimuthu XRX Team. OTC On 04/21/11, Efraim Feinstein <efr...@gm...> wrote: > > Hi, > > Using the latest XSLTForms from trunk, the attached test case fails. The expected result is that when the selection item changes, a message pops up. The xforms-value-changed event is fired, but never dispatched to the action with observer. The message does appear if the select1 and action are enclosed in the same group (and the ev:observer is not needed). > > Is ev:observer expected to be supported in XSLTForms? > > Thanks, > > -- > --- > Efraim Feinstein > Lead Developer > Open Siddur Project > http://opensiddur.net > http://wiki.jewishliturgy.org > > > > > ------------------------------------------------------------------------------ > Benefiting from Server Virtualization: Beyond Initial Workload > Consolidation -- Increasing the use of server virtualization is a top > priority.Virtualization can reduce costs, simplify management, and improve > application availability and disaster protection. Learn more about boosting > the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev > > _______________________________________________ > Xsltforms-support mailing list > Xsl...@li... > https://lists.sourceforge.net/lists/listinfo/xsltforms-support > > -- Rajamani Marimuthu Junior Research Fellow-JRF NIC -Open Technology Centre Rajaji Bhavan Besant Nagar, Chennai - 90 Cell : 9677192096 |