xsltforms-support Mailing List for XSLTForms (Page 61)
Brought to you by:
alain-couthures
You can subscribe to this list here.
2009 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
(6) |
Jun
(9) |
Jul
(16) |
Aug
(5) |
Sep
(43) |
Oct
(36) |
Nov
(58) |
Dec
(43) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2010 |
Jan
(79) |
Feb
(81) |
Mar
(107) |
Apr
(93) |
May
(85) |
Jun
(54) |
Jul
(64) |
Aug
(54) |
Sep
(45) |
Oct
(53) |
Nov
(34) |
Dec
(77) |
2011 |
Jan
(56) |
Feb
(53) |
Mar
(52) |
Apr
(66) |
May
(44) |
Jun
(16) |
Jul
(28) |
Aug
(5) |
Sep
(15) |
Oct
(21) |
Nov
(51) |
Dec
(46) |
2012 |
Jan
(16) |
Feb
(38) |
Mar
(47) |
Apr
(45) |
May
(41) |
Jun
(41) |
Jul
(72) |
Aug
(17) |
Sep
(10) |
Oct
(16) |
Nov
(29) |
Dec
(30) |
2013 |
Jan
(25) |
Feb
(13) |
Mar
(20) |
Apr
(25) |
May
(34) |
Jun
(8) |
Jul
(12) |
Aug
(9) |
Sep
(21) |
Oct
(19) |
Nov
(6) |
Dec
(2) |
2014 |
Jan
(14) |
Feb
(8) |
Mar
(7) |
Apr
(13) |
May
(33) |
Jun
(13) |
Jul
(6) |
Aug
(5) |
Sep
(5) |
Oct
(34) |
Nov
(7) |
Dec
|
2015 |
Jan
(1) |
Feb
(6) |
Mar
(17) |
Apr
(12) |
May
(10) |
Jun
(18) |
Jul
(31) |
Aug
(9) |
Sep
(3) |
Oct
(6) |
Nov
(19) |
Dec
(1) |
2016 |
Jan
(18) |
Feb
(4) |
Mar
(13) |
Apr
(19) |
May
|
Jun
(17) |
Jul
(7) |
Aug
|
Sep
(3) |
Oct
(6) |
Nov
(3) |
Dec
|
2017 |
Jan
(5) |
Feb
(17) |
Mar
(4) |
Apr
(8) |
May
(3) |
Jun
|
Jul
(8) |
Aug
(2) |
Sep
|
Oct
(5) |
Nov
(6) |
Dec
(4) |
2018 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(6) |
Nov
|
Dec
(1) |
2019 |
Jan
|
Feb
|
Mar
(4) |
Apr
(2) |
May
(4) |
Jun
|
Jul
|
Aug
(2) |
Sep
(7) |
Oct
|
Nov
|
Dec
|
2020 |
Jan
(13) |
Feb
(17) |
Mar
(8) |
Apr
(11) |
May
(15) |
Jun
(11) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(6) |
2021 |
Jan
(9) |
Feb
(26) |
Mar
(17) |
Apr
|
May
(7) |
Jun
(18) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(10) |
2022 |
Jan
|
Feb
(1) |
Mar
|
Apr
|
May
(3) |
Jun
|
Jul
|
Aug
(2) |
Sep
(3) |
Oct
(2) |
Nov
(10) |
Dec
(1) |
2023 |
Jan
(10) |
Feb
|
Mar
(7) |
Apr
(8) |
May
(3) |
Jun
|
Jul
|
Aug
|
Sep
(8) |
Oct
(11) |
Nov
(8) |
Dec
(5) |
2024 |
Jan
(7) |
Feb
(3) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2025 |
Jan
(4) |
Feb
(2) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Alain C. <ala...@ag...> - 2011-04-21 19:30:13
|
Philip, The exception seems funny because it is saying that the DebugConsole object doesn't exist but it was surely used before... With XSLTForms Beta 3, 200 OK is not the only response code to be considered as successful. But 204 No Content is a special one, don't you think? Did you try with @replace="none" instead? Thank you for your feedbacks! -Alain Le 20/04/2011 12:17, Philip Fennell a écrit : > Two of my XForms rely upon the file upload work around detailed in > XRX/XSLTForms and eXist Wikibook: > _http://en.wikibooks.org/wiki/XRX/XSLTForms_and_eXist#Upload_file_with_XSLTForms_ > Since moving to XSLTForms Beta 3 I have noticed that submitting the > form, without selecting a document to upload, causes the two following > error messages (see end of e-mail) to appear. I'm using Firefox 3.6.10 > on Windows 7. > The sending of the instance data works OK but something, elsewhere, is > causing a problem. Please also note that I am sending a 204 (No > Content) response from the server because I don't want the page to > reload as a result of the upload. If I send 200 (Success) then I get > no error messages I guess because the form is no longer there to > complain about something. > Currently I do two sequential submits, if the first succeeds the then > upload is sent. Ideally I'd like to be able to set a flag in an > instance in the data model so that the upload will be sent if I have > selected a resource to upload and not otherwise. I've tried a quick > test using: > document.getInstanceDocument('instance').hasChildChildNodes() > to see if I can get some JavaScript working , but I got nothing back. > I guess I'm not calling that method correctly. > Anyone have any hints as to either the error message and/or using the > getInstanceDocument method. > Regards > Philip Fennell > Consultant > MarkLogic Corporation > > One Kingdom Street > Paddington Central > London W2 6BD > United Kingdom > Mobile: +44 (0) 7824 830 866 > Tel: +44 (0) 203 402 3619 > > ema...@ma... > <mailto:Fir...@ma...> > webwww.marklogic.com <http://www.marklogic.com/> > XSLTForms Exception > -------------------------- > > Error initializing : > > ()@http://ec2-46-137-10-196.eu-west-1.compute.amazonaws.com:9004/resource/xsltforms/xsltforms.js:2894 > ([object > Event])@http://ec2-46-137-10-196.eu-west-1.compute.amazonaws.com:9004/resource/xsltforms/xsltforms.js:7387 > ([object > HTMLSpanElement],"xforms-submit")@http://ec2-46-137-10-196.eu-west-1.compute.amazonaws.com:9004/resource/xsltforms/xsltforms.js:7285 > ([object HTMLSpanElement],[object Element],[object > Event])@http://ec2-46-137-10-196.eu-west-1.compute.amazonaws.com:9004/resource/xsltforms/xsltforms.js:3280 > ([object HTMLSpanElement],[object Element],[object > Event])@http://ec2-46-137-10-196.eu-west-1.compute.amazonaws.com:9004/resource/xsltforms/xsltforms.js:3141 > ([object HTMLSpanElement],[object Element],[object > Event])@http://ec2-46-137-10-196.eu-west-1.compute.amazonaws.com:9004/resource/xsltforms/xsltforms.js:3126 > forEach([object Array],"execute",[object HTMLSpanElement],[object > Element],[object > Event])@http://ec2-46-137-10-196.eu-west-1.compute.amazonaws.com:9004/resource/xsltforms/xsltforms.js:1183 > ([object HTMLSpanElement],[object Element],[object > Event])@http://ec2-46-137-10-196.eu-west-1.compute.amazonaws.com:9004/resource/xsltforms/xsltforms.js:3174 > ([object HTMLSpanElement],[object Element],[object > Event])@http://ec2-46-137-10-196.eu-west-1.compute.amazonaws.com:9004/resource/xsltforms/xsltforms.js:3141 > ([object HTMLSpanElement],[object Element],[object > Event])@http://ec2-46-137-10-196.eu-west-1.compute.amazonaws.com:9004/resource/xsltforms/xsltforms.js:3126 > run([object Object],"update-instance",[object > Event],false,true)@http://ec2-46-137-10-196.eu-west-1.compute.amazonaws.com:9004/resource/xsltforms/xsltforms.js:1328 > ([object > Event])@http://ec2-46-137-10-196.eu-west-1.compute.amazonaws.com:9004/admin/peer_reviews:161 > ([object > Event])@http://ec2-46-137-10-196.eu-west-1.compute.amazonaws.com:9004/resource/xsltforms/xsltforms.js:7172 > ([object > HTMLSpanElement],"xforms-submit-done",null,true,false,(function () > {}),[object > Object])@http://ec2-46-137-10-196.eu-west-1.compute.amazonaws.com:9004/resource/xsltforms/xsltforms.js:7282 > ()@http://ec2-46-137-10-196.eu-west-1.compute.amazonaws.com:9004/resource/xsltforms/xsltforms.js:2755 > ()@http://ec2-46-137-10-196.eu-west-1.compute.amazonaws.com:9004/resource/xsltforms/xsltforms.js:2891 > ([object > Event])@http://ec2-46-137-10-196.eu-west-1.compute.amazonaws.com:9004/resource/xsltforms/xsltforms.js:7387 > ([object > HTMLSpanElement],"xforms-submit")@http://ec2-46-137-10-196.eu-west-1.compute.amazonaws.com:9004/resource/xsltforms/xsltforms.js:7285 > ([object HTMLSpanElement],[object Element],[object > Event])@http://ec2-46-137-10-196.eu-west-1.compute.amazonaws.com:9004/resource/xsltforms/xsltforms.js:3280 > ([object HTMLSpanElement],[object Element],[object > Event])@http://ec2-46-137-10-196.eu-west-1.compute.amazonaws.com:9004/resource/xsltforms/xsltforms.js:3141 > ([object HTMLSpanElement],[object Element],[object > Event])@http://ec2-46-137-10-196.eu-west-1.compute.amazonaws.com:9004/resource/xsltforms/xsltforms.js:3126 > forEach([object Array],"execute",[object HTMLSpanElement],[object > Element],[object > Event])@http://ec2-46-137-10-196.eu-west-1.compute.amazonaws.com:9004/resource/xsltforms/xsltforms.js:1183 > ([object HTMLSpanElement],[object Element],[object > Event])@http://ec2-46-137-10-196.eu-west-1.compute.amazonaws.com:9004/resource/xsltforms/xsltforms.js:3174 > ([object HTMLSpanElement],[object Element],[object > Event])@http://ec2-46-137-10-196.eu-west-1.compute.amazonaws.com:9004/resource/xsltforms/xsltforms.js:3136 > ([object HTMLSpanElement],[object Element],[object > Event])@http://ec2-46-137-10-196.eu-west-1.compute.amazonaws.com:9004/resource/xsltforms/xsltforms.js:3126 > run([object Object],"xf-trigger-4",[object > Event],false,true)@http://ec2-46-137-10-196.eu-west-1.compute.amazonaws.com:9004/resource/xsltforms/xsltforms.js:1328 > ([object > Event])@http://ec2-46-137-10-196.eu-west-1.compute.amazonaws.com:9004/admin/peer_reviews:258 > ([object > Event])@http://ec2-46-137-10-196.eu-west-1.compute.amazonaws.com:9004/resource/xsltforms/xsltforms.js:7172 > ([object > HTMLSpanElement],"DOMActivate")@http://ec2-46-137-10-196.eu-west-1.compute.amazonaws.com:9004/resource/xsltforms/xsltforms.js:7282 > ([object > HTMLButtonElement])@http://ec2-46-137-10-196.eu-west-1.compute.amazonaws.com:9004/resource/xsltforms/xsltforms.js:5495 > ([object > MouseEvent])@http://ec2-46-137-10-196.eu-west-1.compute.amazonaws.com:9004/resource/xsltforms/xsltforms.js:1583 > > > ReferenceError > > DebugConsole is not defined > > > > > > > > > XSLTForms Exception > -------------------------- > > Error initializing : > > ()@http://ec2-46-137-10-196.eu-west-1.compute.amazonaws.com:9004/resource/xsltforms/xsltforms.js:2894 > ([object > Event])@http://ec2-46-137-10-196.eu-west-1.compute.amazonaws.com:9004/resource/xsltforms/xsltforms.js:7387 > ([object > HTMLSpanElement],"xforms-submit")@http://ec2-46-137-10-196.eu-west-1.compute.amazonaws.com:9004/resource/xsltforms/xsltforms.js:7285 > ([object HTMLSpanElement],[object Element],[object > Event])@http://ec2-46-137-10-196.eu-west-1.compute.amazonaws.com:9004/resource/xsltforms/xsltforms.js:3280 > ([object HTMLSpanElement],[object Element],[object > Event])@http://ec2-46-137-10-196.eu-west-1.compute.amazonaws.com:9004/resource/xsltforms/xsltforms.js:3141 > ([object HTMLSpanElement],[object Element],[object > Event])@http://ec2-46-137-10-196.eu-west-1.compute.amazonaws.com:9004/resource/xsltforms/xsltforms.js:3126 > forEach([object Array],"execute",[object HTMLSpanElement],[object > Element],[object > Event])@http://ec2-46-137-10-196.eu-west-1.compute.amazonaws.com:9004/resource/xsltforms/xsltforms.js:1183 > ([object HTMLSpanElement],[object Element],[object > Event])@http://ec2-46-137-10-196.eu-west-1.compute.amazonaws.com:9004/resource/xsltforms/xsltforms.js:3174 > ([object HTMLSpanElement],[object Element],[object > Event])@http://ec2-46-137-10-196.eu-west-1.compute.amazonaws.com:9004/resource/xsltforms/xsltforms.js:3136 > ([object HTMLSpanElement],[object Element],[object > Event])@http://ec2-46-137-10-196.eu-west-1.compute.amazonaws.com:9004/resource/xsltforms/xsltforms.js:3126 > run([object Object],"xf-trigger-4",[object > Event],false,true)@http://ec2-46-137-10-196.eu-west-1.compute.amazonaws.com:9004/resource/xsltforms/xsltforms.js:1328 > ([object > Event])@http://ec2-46-137-10-196.eu-west-1.compute.amazonaws.com:9004/admin/peer_reviews:258 > ([object > Event])@http://ec2-46-137-10-196.eu-west-1.compute.amazonaws.com:9004/resource/xsltforms/xsltforms.js:7172 > ([object > HTMLSpanElement],"DOMActivate")@http://ec2-46-137-10-196.eu-west-1.compute.amazonaws.com:9004/resource/xsltforms/xsltforms.js:7282 > ([object > HTMLButtonElement])@http://ec2-46-137-10-196.eu-west-1.compute.amazonaws.com:9004/resource/xsltforms/xsltforms.js:5495 > ([object > MouseEvent])@http://ec2-46-137-10-196.eu-west-1.compute.amazonaws.com:9004/resource/xsltforms/xsltforms.js:1583 > > > ReferenceError > > DebugConsole is not defined > > > ------------------------------------------------------------------------------ > 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 |
From: <ala...@ag...> - 2011-04-21 08:43:12
|
Hi André, You should use xf:output/@value instead. -Alain 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: 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: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: 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 |
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: Efraim F. <efr...@gm...> - 2011-04-21 05:32:42
|
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: Alain C. <ala...@ag...> - 2011-04-20 19:59:15
|
Hi Grégoire, I understand that you would like the HTML part of the form to be initialized at server side so output controls, select controls and prefilled input controls could be indexed by search engines. By default, all controls are disabled so no funny value is displayed when loading. The XSLT stylesheet could probably do a lot of stuff enabling some controls with the correct initial value but initializing actions might be difficult, or even impossible, to apply. Doing this manually is, of course, possible but can be very time consuming, don't you think? If so, it remains that the Javascript objects have to be initialized and that the first build is to perform without modifying the rendered values. I don't know yet server side Javascript engines but I would be surprised if they were capable to interpret JS instructions which actually interact with the HTML DOM. Thanks! -Alain Le 20/04/2011 11:16, Grégoire COLBERT a écrit : > Hi Alain! > > As you know, Google and other search engines don't execute JavaScript. > So if someone wants his XSLTForms with a specific state indexed by > Google, he has to do everything (XSLT + JS) on the server, so that > Google sees the correct HTML. > > This could be ideal : given that you have written some JS to initialize > your form based on the URL, you could: > 1) serve Google what he wants (correctly filled HTML); > 2) keep XSLTForms code alive in the<head>, so that humans can still use > the form. > > If you use Firefox Web Developer extension, you can use "View generated > source" to retrieve the equivalent of a full server-side initialization. > Save this view to a file, disable JavaScript, and open this file : this > is what Google will see, and "so far so good". > > But if you don't disable JavaScript before opening this file (case #2, > what normal users will do), XSLTForms doesn't keep the generated state. > > Test-case is attached: the source "test-wrong-order.xml" and the already > initialized form "test-wrong-order-statique.html". > > An idea to avoid this problem could be that XSLTForms set a variable > somewhere in the page that would tell him if the form is already > initialized or not. It could then be possible to initialize everything > on the server to satisfy search engines, and still serve a dynamic > application to users. > > How does it sound? > > Thanks! > Grégoire > > > > ------------------------------------------------------------------------------ > 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 |
From: Grégoire C. <gco...@gm...> - 2011-04-20 14:43:48
|
Hi Alain! As you know, Google and other search engines don't execute JavaScript. So if someone wants his XSLTForms with a specific state indexed by Google, he has to do everything (XSLT + JS) on the server, so that Google sees the correct HTML. This could be ideal : given that you have written some JS to initialize your form based on the URL, you could: 1) serve Google what he wants (correctly filled HTML); 2) keep XSLTForms code alive in the <head>, so that humans can still use the form. If you use Firefox Web Developer extension, you can use "View generated source" to retrieve the equivalent of a full server-side initialization. Save this view to a file, disable JavaScript, and open this file : this is what Google will see, and "so far so good". But if you don't disable JavaScript before opening this file (case #2, what normal users will do), XSLTForms doesn't keep the generated state. Test-case is attached: the source "test-wrong-order.xml" and the already initialized form "test-wrong-order-statique.html". An idea to avoid this problem could be that XSLTForms set a variable somewhere in the page that would tell him if the form is already initialized or not. It could then be possible to initialize everything on the server to satisfy search engines, and still serve a dynamic application to users. How does it sound? Thanks! Grégoire |
From: Raja <m.r...@ni...> - 2011-04-20 11:36:03
|
Hi Philip !!!! The same situation and problem we too faced but, with the help of alain's XSLTForms_with_eXistdb document we solved there is no issue . working fine .. By Rajamani marimuthu XRX Team OTC On 04/20/11, Philip Fennell <Phi...@ma...> wrote: > > > > > > > > > > > > > > > Two of my XForms rely upon the file upload work around detailed in XRX/XSLTForms and eXist Wikibook: > > > > http://en.wikibooks.org/wiki/XRX/XSLTForms_and_eXist#Upload_file_with_XSLTForms > > > > Since moving to XSLTForms Beta 3 I have noticed that submitting the form, without selecting a document to upload, causes the two following error messages (see end of e-mail) to appear. I’m using Firefox 3.6.10 on Windows 7. > > > > The sending of the instance data works OK but something, elsewhere, is causing a problem. Please also note that I am sending a 204 (No Content) response from the server because I don’t want the page to reload as a result of the upload. If I send 200 (Success) > then I get no error messages I guess because the form is no longer there to complain about something. > > > > Currently I do two sequential submits, if the first succeeds the then upload is sent. Ideally I’d like to be able to set a flag in an instance in the data model so that the upload will be sent if I have selected a resource to upload and not otherwise. > I’ve tried a quick test using: > > > > document.getInstanceDocument('instance').hasChildChildNodes() > > > > to see if I can get some java_script working , but I got nothing back. I guess I’m not calling that method correctly. > > > > Anyone have any hints as to either the error message and/or using the getInstanceDocument method. > > > > > > Regards > > > > Philip Fennell > > > Consultant > > > MarkLogic Corporation > > > > > > One Kingdom Street > > Paddington Central > > London W2 6BD > > United Kingdom > > > > Mobile: +44 (0) 7824 830 866 > > Tel: +44 (0) 203 402 3619 > > > > > email Phi...@ma... > > > web www.marklogic.com > > > > > > > > > > > > > > XSLTForms Exception > > > -------------------------- > > > > > > Error initializing : > > > > > > ()@http://ec2-46-137-10-196.eu-west-1.compute.amazonaws.com:9004/resource/xsltforms/xsltforms.js:2894 > > > ([object Event])@http://ec2-46-137-10-196.eu-west-1.compute.amazonaws.com:9004/resource/xsltforms/xsltforms.js:7387 > > > ([object HTMLSpanElement],"xforms-submit")@http://ec2-46-137-10-196.eu-west-1.compute.amazonaws.com:9004/resource/xsltforms/xsltforms.js:7285 > > > ([object HTMLSpanElement],[object Element],[object Event])@http://ec2-46-137-10-196.eu-west-1.compute.amazonaws.com:9004/resource/xsltforms/xsltforms.js:3280 > > > ([object HTMLSpanElement],[object Element],[object Event])@http://ec2-46-137-10-196.eu-west-1.compute.amazonaws.com:9004/resource/xsltforms/xsltforms.js:3141 > > > ([object HTMLSpanElement],[object Element],[object Event])@http://ec2-46-137-10-196.eu-west-1.compute.amazonaws.com:9004/resource/xsltforms/xsltforms.js:3126 > > > forEach([object Array],"execute",[object HTMLSpanElement],[object Element],[object Event])@http://ec2-46-137-10-196.eu-west-1.compute.amazonaws.com:9004/resource/xsltforms/xsltforms.js:1183 > > > ([object HTMLSpanElement],[object Element],[object Event])@http://ec2-46-137-10-196.eu-west-1.compute.amazonaws.com:9004/resource/xsltforms/xsltforms.js:3174 > > > ([object HTMLSpanElement],[object Element],[object Event])@http://ec2-46-137-10-196.eu-west-1.compute.amazonaws.com:9004/resource/xsltforms/xsltforms.js:3141 > > > ([object HTMLSpanElement],[object Element],[object Event])@http://ec2-46-137-10-196.eu-west-1.compute.amazonaws.com:9004/resource/xsltforms/xsltforms.js:3126 > > > run([object Object],"update-instance",[object Event],false,true)@http://ec2-46-137-10-196.eu-west-1.compute.amazonaws.com:9004/resource/xsltforms/xsltforms.js:1328 > > > ([object Event])@http://ec2-46-137-10-196.eu-west-1.compute.amazonaws.com:9004/admin/peer_reviews:161 > > > ([object Event])@http://ec2-46-137-10-196.eu-west-1.compute.amazonaws.com:9004/resource/xsltforms/xsltforms.js:7172 > > > ([object HTMLSpanElement],"xforms-submit-done",null,true,false,(function () {}),[object Object])@http://ec2-46-137-10-196.eu-west-1.compute.amazonaws.com:9004/resource/xsltforms/xsltforms.js:7282 > > > ()@http://ec2-46-137-10-196.eu-west-1.compute.amazonaws.com:9004/resource/xsltforms/xsltforms.js:2755 > > > ()@http://ec2-46-137-10-196.eu-west-1.compute.amazonaws.com:9004/resource/xsltforms/xsltforms.js:2891 > > > ([object Event])@http://ec2-46-137-10-196.eu-west-1.compute.amazonaws.com:9004/resource/xsltforms/xsltforms.js:7387 > > > ([object HTMLSpanElement],"xforms-submit")@http://ec2-46-137-10-196.eu-west-1.compute.amazonaws.com:9004/resource/xsltforms/xsltforms.js:7285 > > > ([object HTMLSpanElement],[object Element],[object Event])@http://ec2-46-137-10-196.eu-west-1.compute.amazonaws.com:9004/resource/xsltforms/xsltforms.js:3280 > > > ([object HTMLSpanElement],[object Element],[object Event])@http://ec2-46-137-10-196.eu-west-1.compute.amazonaws.com:9004/resource/xsltforms/xsltforms.js:3141 > > > ([object HTMLSpanElement],[object Element],[object Event])@http://ec2-46-137-10-196.eu-west-1.compute.amazonaws.com:9004/resource/xsltforms/xsltforms.js:3126 > > > forEach([object Array],"execute",[object HTMLSpanElement],[object Element],[object Event])@http://ec2-46-137-10-196.eu-west-1.compute.amazonaws.com:9004/resource/xsltforms/xsltforms.js:1183 > > > ([object HTMLSpanElement],[object Element],[object Event])@http://ec2-46-137-10-196.eu-west-1.compute.amazonaws.com:9004/resource/xsltforms/xsltforms.js:3174 > > > ([object HTMLSpanElement],[object Element],[object Event])@http://ec2-46-137-10-196.eu-west-1.compute.amazonaws.com:9004/resource/xsltforms/xsltforms.js:3136 > > > ([object HTMLSpanElement],[object Element],[object Event])@http://ec2-46-137-10-196.eu-west-1.compute.amazonaws.com:9004/resource/xsltforms/xsltforms.js:3126 > > > run([object Object],"xf-trigger-4",[object Event],false,true)@http://ec2-46-137-10-196.eu-west-1.compute.amazonaws.com:9004/resource/xsltforms/xsltforms.js:1328 > > > ([object Event])@http://ec2-46-137-10-196.eu-west-1.compute.amazonaws.com:9004/admin/peer_reviews:258 > > > ([object Event])@http://ec2-46-137-10-196.eu-west-1.compute.amazonaws.com:9004/resource/xsltforms/xsltforms.js:7172 > > > ([object HTMLSpanElement],"DOMActivate")@http://ec2-46-137-10-196.eu-west-1.compute.amazonaws.com:9004/resource/xsltforms/xsltforms.js:7282 > > > ([object HTMLButtonElement])@http://ec2-46-137-10-196.eu-west-1.compute.amazonaws.com:9004/resource/xsltforms/xsltforms.js:5495 > > > ([object MouseEvent])@http://ec2-46-137-10-196.eu-west-1.compute.amazonaws.com:9004/resource/xsltforms/xsltforms.js:1583 > > > > > > > > > ReferenceError > > > > > > DebugConsole is not defined > > > > > > > > > > > > > > > > > > > > > > > > > > > XSLTForms Exception > > > -------------------------- > > > > > > Error initializing : > > > > > > ()@http://ec2-46-137-10-196.eu-west-1.compute.amazonaws.com:9004/resource/xsltforms/xsltforms.js:2894 > > > ([object Event])@http://ec2-46-137-10-196.eu-west-1.compute.amazonaws.com:9004/resource/xsltforms/xsltforms.js:7387 > > > ([object HTMLSpanElement],"xforms-submit")@http://ec2-46-137-10-196.eu-west-1.compute.amazonaws.com:9004/resource/xsltforms/xsltforms.js:7285 > > > ([object HTMLSpanElement],[object Element],[object Event])@http://ec2-46-137-10-196.eu-west-1.compute.amazonaws.com:9004/resource/xsltforms/xsltforms.js:3280 > > > ([object HTMLSpanElement],[object Element],[object Event])@http://ec2-46-137-10-196.eu-west-1.compute.amazonaws.com:9004/resource/xsltforms/xsltforms.js:3141 > > > ([object HTMLSpanElement],[object Element],[object Event])@http://ec2-46-137-10-196.eu-west-1.compute.amazonaws.com:9004/resource/xsltforms/xsltforms.js:3126 > > > forEach([object Array],"execute",[object HTMLSpanElement],[object Element],[object Event])@http://ec2-46-137-10-196.eu-west-1.compute.amazonaws.com:9004/resource/xsltforms/xsltforms.js:1183 > > > ([object HTMLSpanElement],[object Element],[object Event])@http://ec2-46-137-10-196.eu-west-1.compute.amazonaws.com:9004/resource/xsltforms/xsltforms.js:3174 > > > ([object HTMLSpanElement],[object Element],[object Event])@http://ec2-46-137-10-196.eu-west-1.compute.amazonaws.com:9004/resource/xsltforms/xsltforms.js:3136 > > > ([object HTMLSpanElement],[object Element],[object Event])@http://ec2-46-137-10-196.eu-west-1.compute.amazonaws.com:9004/resource/xsltforms/xsltforms.js:3126 > > > run([object Object],"xf-trigger-4",[object Event],false,true)@http://ec2-46-137-10-196.eu-west-1.compute.amazonaws.com:9004/resource/xsltforms/xsltforms.js:1328 > > > ([object Event])@http://ec2-46-137-10-196.eu-west-1.compute.amazonaws.com:9004/admin/peer_reviews:258 > > > ([object Event])@http://ec2-46-137-10-196.eu-west-1.compute.amazonaws.com:9004/resource/xsltforms/xsltforms.js:7172 > > > ([object HTMLSpanElement],"DOMActivate")@http://ec2-46-137-10-196.eu-west-1.compute.amazonaws.com:9004/resource/xsltforms/xsltforms.js:7282 > > > ([object HTMLButtonElement])@http://ec2-46-137-10-196.eu-west-1.compute.amazonaws.com:9004/resource/xsltforms/xsltforms.js:5495 > > > ([object MouseEvent])@http://ec2-46-137-10-196.eu-west-1.compute.amazonaws.com:9004/resource/xsltforms/xsltforms.js:1583 > > > > > > > > > ReferenceError > > > > > > DebugConsole is not defined > > > > > > > > > > > > > > > -- Rajamani Marimuthu Junior Research Fellow-JRF NIC -Open Technology Centre Rajaji Bhavan Besant Nagar, Chennai - 90 Cell : 9677192096 |
From: Alain C. <ala...@ag...> - 2011-04-19 10:58:09
|
Hello Ivan, I know already that other companies are using XSLTForms with AJAX but they didn't encounter the same issues... There are more and more interesting implementations of XML technologies based on GWT and integrating them with XSLTForms might be very important in fact. Is it possible for you to post a link to a demo page? Thanks! -Alain Le 19/04/2011 10:37, Ivan Ponomarev a écrit : > Hello, Alain, > > thank you very much for this and thanks a lot for a perfect product! > > It seems that our company is the only one that uses XSLTForms in > AJAX/GWT environment. Anyway, after these small tweaks XSLTForms work > perfectly well with series of completely different forms being > dynamically generated / cleaned up on page without page reload. > > Regards, > > Ivan Ponomarev. |
From: Ivan P. <ipo...@ma...> - 2011-04-19 08:37:44
|
Hello, Alain, thank you very much for this and thanks a lot for a perfect product! It seems that our company is the only one that uses XSLTForms in AJAX/GWT environment. Anyway, after these small tweaks XSLTForms work perfectly well with series of completely different forms being dynamically generated / cleaned up on page without page reload. Regards, Ivan Ponomarev. On 18.04.2011 23:46, Alain Couthures wrote: > Ivan, > > I have added the Calendar.INSTANCE cleaning and I have integrated your > suggestion about the hasXFElement directly into xforms.dispose() into > Rev 500. > > Thank you for your feedbacks! |
From: Alain C. <ala...@ag...> - 2011-04-18 20:24:00
|
Philip, I almost forgot that there is no way in Javascript to read browser language preferences... Have a look at http://blog.dansingerman.com/post/909213798/detecting-a-browsers-language-in-javascript, for more explanations. The JSONP workaround which is proposed might be implemented in XSLTForms if necessary! Thanks! -Alain Le 18/04/2011 15:28, Philip Fennell a écrit : > > Alain, > > > Can you have a look at the HTTP requests, with a browser debugger, to > check the name of the config file it wants to obtain? > > Regardless of how I configure my PC (Windows 7) and re-launch Firefox, > Firebug shows that XSLTForms is requesting: > > GET http://localhost:8031/resource/xsltforms/config_en_us.xsl > > If I change the preferred language in Firefox options to en or en-GB > XSLTForms still request config_en_us.xsl. > > |
From: Alain C. <ala...@ag...> - 2011-04-18 19:44:54
|
Ivan, I have added the Calendar.INSTANCE cleaning and I have integrated your suggestion about the hasXFElement directly into xforms.dispose() into Rev 500. Thank you for your feedbacks! -Alain Le 18/04/2011 12:15, Ivan Ponomarev a écrit : > Dear Alain, > > as soon as our date picker bugfix proved to be useful, maybe you will > find some time to include another piece of our code in /trunk, so we > will not have to continue merging our patches into your code? Thanks a > lot in advance! > > As I wrote once, we are dependent on xforms.close() method, because we > are showing and hiding XForms dynamically using AJAX without page > reload, and the problem is that standard version of xforms.close() > actually doesn't clean up everything! > > This causes two problems I reported earlier, this one: > > http://sourceforge.net/mailarchive/forum.php?thread_name=4D332B30.8070300%40mail.ru&forum_name=xsltforms-support > > and the first of the two given here (thanks God, we're completely > finished with the second one): > http://sourceforge.net/mailarchive/forum.php?thread_name=4D3A0CE5.4020709%40mail.ru&forum_name=xsltforms-support > > We solved both of them, here is a solution: > > in xforms.close method, after xforms.dispose(... (1627) the following > code should be inserted: > > Calendar.INSTANCE = null; /*so the next time this object will be > recreated and all event handlers will be bound properly*/ > dropHasXFElement(document.documentElement); > > where > > /*Just full recursion over the whole DOM to remove hasXFElement > attributes that will spoil everything the next time!!*/ > function dropHasXFElement(element){ > element.hasXFElement = null; > var subelement = element.firstChild; > while(subelement){ > if (subelement.nodeType == NodeType.ELEMENT) > dropHasXFElement(subelement); > subelement = subelement.nextSibling; > } > } > > > Regards, > > Ivan Ponomarev. > > ------------------------------------------------------------------------------ > 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 > |
From: Philip F. <Phi...@ma...> - 2011-04-18 13:28:54
|
Alain, > Can you have a look at the HTTP requests, with a browser debugger, to check the name of the config file it wants to obtain? Regardless of how I configure my PC (Windows 7) and re-launch Firefox, Firebug shows that XSLTForms is requesting: GET http://localhost:8031/resource/xsltforms/config_en_us.xsl If I change the preferred language in Firefox options to en or en-GB XSLTForms still request config_en_us.xsl. > Usually the options PI can be written just after the stylesheet PI (if you want all your forms to have the same language, you should better consider copying the corresponding config_###.xsl file into config.xsl). I think I might just do that for now. Many thanks. Philip Fennell Consultant MarkLogic Corporation One Kingdom Street Paddington Central London W2 6BD United Kingdom Mobile: +44 (0) 7824 830 866 Tel: +44 (0) 203 402 3619 email Phi...@ma...<mailto:Fir...@ma...> web www.marklogic.com<http://www.marklogic.com/> From: Alain Couthures [mailto:ala...@ag...] Sent: 18 April 2011 12:24 To: Philip Fennell Cc: xsl...@li... Subject: Re: [Xsltforms-support] Where to place <?xsltforms-options?> Hi Philip, Usually the options PI can be written just after the stylesheet PI (if you want all your forms to have the same language, you should better consider copying the corresponding config_###.xsl file into config.xsl). By default, "navigator" value will allow the browser to ask for its default language config file. For English, there are two possibilities: "en" and "en_us". Can you have a look at the HTTP requests, with a browser debugger, to check the name of the config file it wants to obtain? Thanks! -Alain Le 18/04/2011 07:50, Philip Fennell a écrit : I have been trying to change the default language, used by XSLTForms Beta 3 in Firefox 3.6.10, to 'en' so that the date picker will display dd/mm/yyyy but I cannot get it to change using the xsltforms-options PI: <?xsltforms-options debug="no" lang="en"?> I have tried placing the PI before and after the xml-stylesheet PI and also inside the xhtml:head and xf:model elements but without any luck. Where should the PI go? Regards Philip Fennell Consultant MarkLogic Corporation One Kingdom Street Paddington Central London W2 6BD United Kingdom Mobile: +44 (0) 7824 830 866 Tel: +44 (0) 203 402 3619 email Phi...@ma...<mailto:Fir...@ma...> web www.marklogic.com<http://www.marklogic.com/> |
From: Alain C. <ala...@ag...> - 2011-04-18 11:22:29
|
Hi Philip, Usually the options PI can be written just after the stylesheet PI (if you want all your forms to have the same language, you should better consider copying the corresponding config_###.xsl file into config.xsl). By default, "navigator" value will allow the browser to ask for its default language config file. For English, there are two possibilities: "en" and "en_us". Can you have a look at the HTTP requests, with a browser debugger, to check the name of the config file it wants to obtain? Thanks! -Alain Le 18/04/2011 07:50, Philip Fennell a écrit : > I have been trying to change the default language, used by XSLTForms > Beta 3 in Firefox 3.6.10, to 'en' so that the date picker will > display dd/mm/yyyy but I cannot get it to change using the > xsltforms-options PI: > <?xsltforms-options debug="no" lang="en"?> > I have tried placing the PI before and after the xml-stylesheet PI and > also inside the xhtml:head and xf:model elements but without any luck. > Where should the PI go? > Regards > Philip Fennell > Consultant > MarkLogic Corporation > > One Kingdom Street > Paddington Central > London W2 6BD > United Kingdom > Mobile: +44 (0) 7824 830 866 > Tel: +44 (0) 203 402 3619 > > ema...@ma... > <mailto:Fir...@ma...> > webwww.marklogic.com <http://www.marklogic.com/> > |
From: Ivan P. <ipo...@ma...> - 2011-04-18 10:16:01
|
Dear Alain, as soon as our date picker bugfix proved to be useful, maybe you will find some time to include another piece of our code in /trunk, so we will not have to continue merging our patches into your code? Thanks a lot in advance! As I wrote once, we are dependent on xforms.close() method, because we are showing and hiding XForms dynamically using AJAX without page reload, and the problem is that standard version of xforms.close() actually doesn't clean up everything! This causes two problems I reported earlier, this one: http://sourceforge.net/mailarchive/forum.php?thread_name=4D332B30.8070300%40mail.ru&forum_name=xsltforms-support and the first of the two given here (thanks God, we're completely finished with the second one): http://sourceforge.net/mailarchive/forum.php?thread_name=4D3A0CE5.4020709%40mail.ru&forum_name=xsltforms-support We solved both of them, here is a solution: in xforms.close method, after xforms.dispose(... (1627) the following code should be inserted: Calendar.INSTANCE = null; /*so the next time this object will be recreated and all event handlers will be bound properly*/ dropHasXFElement(document.documentElement); where /*Just full recursion over the whole DOM to remove hasXFElement attributes that will spoil everything the next time!!*/ function dropHasXFElement(element){ element.hasXFElement = null; var subelement = element.firstChild; while(subelement){ if (subelement.nodeType == NodeType.ELEMENT) dropHasXFElement(subelement); subelement = subelement.nextSibling; } } Regards, Ivan Ponomarev. |
From: Philip F. <Phi...@ma...> - 2011-04-18 06:03:26
|
I have been trying to change the default language, used by XSLTForms Beta 3 in Firefox 3.6.10, to 'en' so that the date picker will display dd/mm/yyyy but I cannot get it to change using the xsltforms-options PI: <?xsltforms-options debug="no" lang="en"?> I have tried placing the PI before and after the xml-stylesheet PI and also inside the xhtml:head and xf:model elements but without any luck. Where should the PI go? Regards Philip Fennell Consultant MarkLogic Corporation One Kingdom Street Paddington Central London W2 6BD United Kingdom Mobile: +44 (0) 7824 830 866 Tel: +44 (0) 203 402 3619 email Phi...@ma...<mailto:Fir...@ma...> web www.marklogic.com<http://www.marklogic.com/> |
From: Grégoire C. <gco...@gm...> - 2011-04-13 14:06:36
|
Hi! I have two binds. The first resets an instance value (using the "calculate" attribute) when the value gets out of range. The second bind is "relevant" only when the value controlled by the first bind is in the valid range. My problem is that it seems the second <xf:bind> gets the "xforms-recalculate" event before the first has resetted the value. Is it possible that an event is not transmitted in document's order with XSLTForms? If yes, is there a way to control the order of the recalculations? (Subsidiary question : is "relevant" supported on "<bind>"?) Thanks! Grégoire |
From: Alain C. <ala...@ag...> - 2011-04-12 08:32:34
|
Hi André, Rev. 499 is fixing this. Thank you for your feedbacks! -Alain Le 11/04/2011 20:48, ac a écrit : > Hi Alain, > > The error was only with 498. I went back to 490 and reapplied Ivan's > patch. > > The form is at > http://www.hyperbase.com/xml/cosmos/resource/apps/stratedit.xml > > It does not currently produce the error and trace (as it is using 490) > unless you save it and operate it with 498. > Then, just loading it produces the error. > > I believe that Owen may be testing the form for StratML Part2, so I > left it in an operational state. > > Thank you for your support. > > Regards, > Andre > |
From: Grégoire C. <gco...@gm...> - 2011-04-11 20:34:01
|
Le 11/04/2011 22:26, Alain Couthures a écrit : > Hello Grégoire, >> Is there a way to use XSLTForms XPath engine instead? > XPath expressions are compiled into Javascript objects by the XSLT > transformation but I would like to add an XPath evaluator in the debug > mode. I have to rewrite the XPath parser in Javascript instructions... > > This is not yet possible. > > Sorry, > > -Alain > It's not a real problem, I will just use getElementsByTagName instead. Thanks for your answers! Grégoire |
From: Alain C. <ala...@ag...> - 2011-04-11 20:24:35
|
Hello Grégoire, > Is there a way to use XSLTForms XPath engine instead? XPath expressions are compiled into Javascript objects by the XSLT transformation but I would like to add an XPath evaluator in the debug mode. I have to rewrite the XPath parser in Javascript instructions... This is not yet possible. Sorry, -Alain |
From: Grégoire C. <gco...@gm...> - 2011-04-11 19:40:53
|
Hello Alain While lightening my form to make a test case, I found out that this was a conflict with "js-xpath.js" from: http://js-xpath.sourceforge.net/ I don't know why this conflict only surfaces with Opera and not other browsers. Is there a way to use XSLTForms XPath engine instead? Thanks! Grégoire Le 11/04/2011 20:26, Alain Couthures a écrit : > Hello Grégoire, > > "//properties" is used to get config properties from a config.xsl file. > > I often test with the latest version of Opera and I don't see this > exception with my own forms. > > Can you please send me a test case? > > Thanks! > > -Alain > > Le 11/04/2011 20:02, Grégoire COLBERT a écrit : >> Hi! >> >> I tried my form with Opera 11.01 and it crashes on loading with the >> following report : >> >> ======== >> >> <localhost> >> >> XSLTForms Exception >> -------------------------- >> >> Error initializing : >> >> <anonymous function: Core.selectSingleNode>([arguments not >> available])@https://localhost:8443/xsltforms/trunk/build/xsltforms.js:430 >> >> <anonymous function: loadProperties>([arguments not >> available])@https://localhost:8443/xsltforms/trunk/build/xsltforms.js:130 >> >> <anonymous function: get>([arguments not >> available])@https://localhost:8443/xsltforms/trunk/build/xsltforms.js:952 >> >> <anonymous function: init>([arguments not >> available])@https://localhost:8443/xsltforms/trunk/build/xsltforms.js:1546 >> >> initImpl([arguments not available])@https://localhost:8443/:977 >> init([arguments not available])@https://localhost:8443/:3 >> <anonymous function>([arguments not available])@ >> >> Error initially occured at<anonymous function: >> Core.loadNode>([arguments not >> available])@https://localhost:8443/xsltforms/trunk/build/xsltforms.js:466 >> >> <anonymous function: loadProperties>([arguments not >> available])@https://localhost:8443/xsltforms/trunk/build/xsltforms.js:130 >> >> <anonymous function: get>([arguments not >> available])@https://localhost:8443/xsltforms/trunk/build/xsltforms.js:952 >> >> <anonymous function: init>([arguments not >> available])@https://localhost:8443/xsltforms/trunk/build/xsltforms.js:1546 >> >> initImpl([arguments not available])@https://localhost:8443/:977 >> init([arguments not available])@https://localhost:8443/:3 >> <anonymous function>([arguments not available])@ >> >> TypeError >> >> Cannot convert 'src' to object >> >> ======== >> >> A look in "Opera Dragonfly" shows that the problem is the line : >> >> Core.loadNode(Core.config, Core.selectSingleNode('//properties', >> req.responseXML)); >> >> because Core.selectSingleNode returns "null". >> >> What can be wrong with this form? >> >> Thanks for your help! >> >> Grégoire >> >> >> ------------------------------------------------------------------------------ >> >> Xperia(TM) PLAY >> It's a major breakthrough. An authentic gaming >> smartphone on the nation's most reliable network. >> And it wants your games. >> http://p.sf.net/sfu/verizon-sfdev >> _______________________________________________ >> Xsltforms-support mailing list >> Xsl...@li... >> https://lists.sourceforge.net/lists/listinfo/xsltforms-support >> > |
From: ac <ac...@hy...> - 2011-04-11 18:48:42
|
Hi Alain, The error was only with 498. I went back to 490 and reapplied Ivan's patch. The form is at http://www.hyperbase.com/xml/cosmos/resource/apps/stratedit.xml It does not currently produce the error and trace (as it is using 490) unless you save it and operate it with 498. Then, just loading it produces the error. I believe that Owen may be testing the form for StratML Part2, so I left it in an operational state. Thank you for your support. Regards, Andre > Hi André, > > I have now located an issue with FF4: the name() function now returns > a string always in capital letters for an attribute within an html > element! An HTML5 feature... I have improved the namespace:: > workaround for FF4 too. > > Before committing again, there is a chance I can also fix something > for StartML but the exception trace you sent is not enough to locate > what went wrong: can you please send me a form or a link to it > (hopefully producing this exception)? > > Thanks! > > -Alain > > Le 11/04/2011 09:16, ac a écrit : >> Hi Alain, >> >> >> Opps, something seems wrong with 498 ... >> >> The previously working form (e.g. FF4) now gives this error: >> >> XSLTForms Exception >> -------------------------- >> >> Error evaluating the following XPath expression : >> >> count(//stratml:Value) >> >> TypeError >> >> n is undefined >> >> >> >> And when I click OK, then I get this error: >> >> XSLTForms Exception >> -------------------------- >> >> Error initializing : >> >> stringValue(null)@http://www.hyperbase.com/library/hyperform/stratml/asset/xml/xsltforms/xsltforms.js:8244 >> >> ([object Element],[object Array],105,[object >> Array])@http://www.hyperbase.com/library/hyperform/stratml/asset/xml/xsltforms/xsltforms.js:1900 >> >> ([object Object],[object >> Element])@http://www.hyperbase.com/library/hyperform/stratml/asset/xml/xsltforms/xsltforms.js:3982 >> >> ([object >> Element])@http://www.hyperbase.com/library/hyperform/stratml/asset/xml/xsltforms/xsltforms.js:4091 >> >> ([object >> Element])@http://www.hyperbase.com/library/hyperform/stratml/asset/xml/xsltforms/xsltforms.js:3968 >> >> ([object HTMLSpanElement],[object >> Element],true)@http://www.hyperbase.com/library/hyperform/stratml/asset/xml/xsltforms/xsltforms.js:1765 >> >> ([object HTMLHeadingElement],[object >> Element],true)@http://www.hyperbase.com/library/hyperform/stratml/asset/xml/xsltforms/xsltforms.js:1782 >> >> ([object HTMLDivElement],[object >> Element],true)@http://www.hyperbase.com/library/hyperform/stratml/asset/xml/xsltforms/xsltforms.js:1782 >> >> ([object HTMLTableCellElement],[object >> Element],true)@http://www.hyperbase.com/library/hyperform/stratml/asset/xml/xsltforms/xsltforms.js:1782 >> >> ([object HTMLTableRowElement],[object >> Element],true)@http://www.hyperbase.com/library/hyperform/stratml/asset/xml/xsltforms/xsltforms.js:1782 >> >> ([object HTMLTableSectionElement],[object >> Element],true)@http://www.hyperbase.com/library/hyperform/stratml/asset/xml/xsltforms/xsltforms.js:1782 >> >> ([object HTMLTableElement],[object >> Element],true)@http://www.hyperbase.com/library/hyperform/stratml/asset/xml/xsltforms/xsltforms.js:1782 >> >> ([object HTMLTableCellElement],[object >> Element],true)@http://www.hyperbase.com/library/hyperform/stratml/asset/xml/xsltforms/xsltforms.js:1782 >> >> ([object HTMLTableRowElement],[object >> Element],true)@http://www.hyperbase.com/library/hyperform/stratml/asset/xml/xsltforms/xsltforms.js:1782 >> >> ([object HTMLTableSectionElement],[object >> Element],true)@http://www.hyperbase.com/library/hyperform/stratml/asset/xml/xsltforms/xsltforms.js:1782 >> >> ([object HTMLTableElement],[object >> Element],true)@http://www.hyperbase.com/library/hyperform/stratml/asset/xml/xsltforms/xsltforms.js:1782 >> >> ([object HTMLBodyElement],[object >> Element],true)@http://www.hyperbase.com/library/hyperform/stratml/asset/xml/xsltforms/xsltforms.js:1782 >> >> ()@http://www.hyperbase.com/library/hyperform/stratml/asset/xml/xsltforms/xsltforms.js:1712 >> >> ()@http://www.hyperbase.com/library/hyperform/stratml/asset/xml/xsltforms/xsltforms.js:1602 >> >> initImpl()@http://www.hyperbase.com/library/hyperform/stratml/asset/xml/iai2.xml:511 >> >> init()@http://www.hyperbase.com/library/hyperform/stratml/asset/xml/iai2.xml:2 >> >> onload([object >> Event])@http://www.hyperbase.com/library/hyperform/stratml/asset/xml/iai2.xml:1 >> >> >> >> TypeError >> >> value is null >> >> >> >> So I have to roll back, if I can as the previous version had been >> patched ... >> >> Regards, >> Andre >> >> >> >> >> Hi Alain, Ivan, >> >> Great! >> >> Ivan, for the record, your patch had apparently fixed the issue. >> >> I have now upgraded to 498. >> >> Thank you both. >> >> Regards, >> Andre >> >> >> >>> Hello André and Ivan, >>> >>> I just discovered that the fix suggested was actually to apply at 3 >>> more lines! >>> >>> You can now test with the latest commit. >>> >>> Thank you for your feedbacks! >>> >>> -Alain >>> >>> Le 08/04/2011 21:09, Иван Пономарёв a écrit : >>>> Hello, Andre! >>>> >>>> It seems to me that you are experiencing exactly the same problem >>>> with date picker that has been terrifying us until we found out the >>>> problem in Xsltforms JavaScript and solved it. Apparently Alain did >>>> not have time to assess our bugfix and include it in his code... >>>> >>>> Please see >>>> >>>> http://sourceforge.net/mailarchive/forum.php?thread_name=4D3A0CE5.4020709%40mail.ru&forum_name=xsltforms-support >>>> >>>> >>>> >>>> and try out the solution given in the last message of that thread. It >>>> is only about adding ", true" in one method call. Please let us know >>>> if this helps you. >>>> >>>> Regards, >>>> >>>> Ivan Ponomarev >>>> >>>> Fri, 08 Apr 2011 10:53:20 -0400 письмо от ac<ac...@hy...>: >>>> >>>>> Hi Alain, >>>>> >>>>> Sorry about the previous message and forgetting to set the subject >>>>> and >>>>> set the persona to go through the listserv. >>>>> >>>>> >>>>> Hi Alain, >>>>> >>>>> I hope that you are fine. >>>>> >>>>> Here it is ok, after we have had to work around some issues in >>>>> trying to >>>>> return an xml document in a new browser window, after an XSLTForms >>>>> submission, but managed to get around it with an http submit that >>>>> serializes a large instance model. Anyway, it is working for us now. >>>>> >>>>> There is still another different issue, as sometimes, the date picker >>>>> increments the selected date by one day. I tried to get the latest >>>>> XSLTForms from SVN and it did not seem to fix the problem. I may >>>>> have >>>>> done something wrong and I am wandering if the issue rings any bell >>>>> for you? >>>>> >>>>> Thank you. >>>>> >>>>> Regards, >>>>> Andre >>>>> >>>>> >>> >> >> >> ------------------------------------------------------------------------------ >> >> Xperia(TM) PLAY >> It's a major breakthrough. An authentic gaming >> smartphone on the nation's most reliable network. >> And it wants your games. >> http://p.sf.net/sfu/verizon-sfdev >> _______________________________________________ >> Xsltforms-support mailing list >> Xsl...@li... >> https://lists.sourceforge.net/lists/listinfo/xsltforms-support >> >> >> ------------------------------------------------------------------------------ >> >> Xperia(TM) PLAY >> It's a major breakthrough. An authentic gaming >> smartphone on the nation's most reliable network. >> And it wants your games. >> http://p.sf.net/sfu/verizon-sfdev >> _______________________________________________ >> Xsltforms-support mailing list >> Xsl...@li... >> https://lists.sourceforge.net/lists/listinfo/xsltforms-support > > |