Thread: [Xsltforms-support] XSLTForms on smartphone
Brought to you by:
alain-couthures
From: Santosh C. <san...@gm...> - 2011-09-11 06:12:46
|
Alain and Friends, Just tried Our application on Android phone browser and the results are amazing. I am really excited to share that it works great. Only things which I did not found working are - 1. Applets for loading and saving data and images which I am sure will find something with the native Android stuff 2. TinyMCE editor I will try it on i-phone also, has anyone tried it on iphone other devices already? Regards, Santosh |
From: Santosh C. <san...@gm...> - 2011-09-11 06:33:42
|
Yes, it works on iphone too. I did not try the xsltforms.xsl transform since we transform it beforehand. Regards, Santosh On Sun, Sep 11, 2011 at 11:42 AM, Santosh Chandak <san...@gm...>wrote: > Alain and Friends, > Just tried Our application on Android phone browser and the results are > amazing. I am really excited to share that it works great. Only things which > I did not found working are - > 1. Applets for loading and saving data and images which I am sure will find > something with the native Android stuff > 2. TinyMCE editor > > I will try it on i-phone also, has anyone tried it on iphone other devices > already? > > Regards, > Santosh > > > > > |
From: Raja <m.r...@ni...> - 2011-09-12 13:18:03
|
Hi Santosh !!!! We are also testing the same but, i didnt find any relevant output or how to run the XSLTForms in android mobile . If possible pls share me that technical details about the XSLTForms configuration in android mobile . By Rajamani M XRX Team OTC On 09/11/11, Santosh Chandak <san...@gm...> wrote: > Alain and Friends, > Just tried Our application on Android phone browser and the results are amazing. I am really excited to share that it works great. Only things which I did not found working are - > 1. Applets for loading and saving data and images which I am sure will find something with the native Android stuff > > 2. TinyMCE editor > > I will try it on i-phone also, has anyone tried it on iphone other devices already? > > Regards, > Santosh > > > > > > > -- Rajamani Marimuthu Junior Research Fellow-JRF NIC -Open Technology Centre Rajaji Bhavan Besant Nagar, Chennai - 90 Cell : 9677192096 |
From: Santosh C. <san...@gm...> - 2011-09-12 13:51:04
|
Hi Raja, There is no additional configuration needed. We transform the form to HTML beforehand so what we are running on android is simply HTML and javascript. So you don't need browser's XSLT processor, this will help in performance as well. I am running a previous version of XSLTForms (before introduction of native XML documents) since in my testing I found that the latest XSLTForms is slower than previous version. But the latest version might work too. Regards, Santosh On Mon, Sep 12, 2011 at 6:48 PM, Raja <m.r...@ni...> wrote: > Hi Santosh !!!! > > We are also testing the same but, i didnt find any relevant output or > how to run the XSLTForms in android mobile . If possible pls share me that > technical details about the XSLTForms configuration in android mobile . > > > By > Rajamani M > XRX Team > OTC > > On 09/11/11, *Santosh Chandak * <san...@gm...> wrote: > > Alain and Friends, > Just tried Our application on Android phone browser and the results are > amazing. I am really excited to share that it works great. Only things which > I did not found working are - > 1. Applets for loading and saving data and images which I am sure will find > something with the native Android stuff > 2. TinyMCE editor > > I will try it on i-phone also, has anyone tried it on iphone other devices > already? > > Regards, > Santosh > > > > > -- > Rajamani Marimuthu > Junior Research Fellow-JRF > NIC -Open Technology Centre > Rajaji Bhavan > Besant Nagar, > Chennai - 90 > Cell : 9677192096 > |
From: Bala K. <ba...@ec...> - 2011-11-26 12:57:08
|
Santosh - Just a long shot, wondering if you can help - I see that you have been doing the XSL transform server side. We use PHP. With BetaRC3 - I am trying the XSLT Transform in PHP. The Transform seems to occur ok but then there is an error when I echo to the browser as below: XSLTForms Exception -------------------------- Incorrect Javascript code generation: initImpl()@http://localhost/eCubeH/portfolio/php/load.php:6 init()@http://localhost/eCubeH/portfolio/php/load.php:315 onload([object Event])@http://localhost/eCubeH/portfolio/php/load.php:1 ReferenceError Core is not defined I am really just an XForms user, not wishing to dig too deep into JS etc which I am not familiar with. Our apps run with fedora / httpd / PHP all set up locally on *netbooks*. - With Mozilla XForms the response time on Firefox 3.5 was pretty good, about 1-2 seconds for loading a data heavy xform, filled with repeats.There is a 2+ year old screenshot of this at http://old.nabble.com/nested-repeat-formatting-as-table-td21048857.html - The same with XSLTForms takes 44 seconds on FF3.5 and 27 seconds on FF8.0. I can post the minimal code (XForms, XML) if that would help. The PHP is below. $xp = new XsltProcessor(); // create a DOM document and load the XSL stylesheet $xsl = new DomDocument; $xsl->load('../../xsltforms/xsltforms.xsl'); // import the XSL styelsheet into the XSLT process $xp->importStylesheet($xsl); // create a DOM document and load the XML datat $xml_doc = new DomDocument; $xml_doc->load('../txnRepayV1.xhtml'); $html = $xp->transformToXML($xml_doc); // echo '"'.$html.'"'; var_dump($html); *--* Best Regards,* * * Bala Krishnamurthy* Samhita Development Network http://sDevNet.org On Sun, Sep 11, 2011 at 12:03 PM, Santosh Chandak <san...@gm...>wrote: > Yes, it works on iphone too. I did not try the xsltforms.xsl transform > since we transform it beforehand. > > Regards, > Santosh > > On Sun, Sep 11, 2011 at 11:42 AM, Santosh Chandak < > san...@gm...> wrote: > >> Alain and Friends, >> Just tried Our application on Android phone browser and the results are >> amazing. I am really excited to share that it works great. Only things >> which I did not found working are - >> 1. Applets for loading and saving data and images which I am sure will >> find something with the native Android stuff >> 2. TinyMCE editor >> >> I will try it on i-phone also, has anyone tried it on iphone other >> devices already? >> >> Regards, >> Santosh >> >> >> >> >> > > > ------------------------------------------------------------------------------ > Using storage to extend the benefits of virtualization and iSCSI > Virtualization increases hardware utilization and delivers a new level of > agility. Learn what those decisions are and how to modernize your storage > and backup environments for virtualization. > http://www.accelacomm.com/jaw/sfnl/114/51434361/ > _______________________________________________ > Xsltforms-support mailing list > Xsl...@li... > https://lists.sourceforge.net/lists/listinfo/xsltforms-support > > |
From: Bala K. <ba...@ec...> - 2011-11-26 13:17:06
|
If it helps - I get the same error message with the PHP server transform on the samples in the regular beta3 package (eg, input.xml) *--* Best Regards,* * * Bala Krishnamurthy* On Sat, Nov 26, 2011 at 6:26 PM, Bala Krishnamurthy <ba...@ec...> wrote: > Santosh - > > Just a long shot, wondering if you can help - I see that you have been > doing the XSL transform server side. We use PHP. > > With BetaRC3 - I am trying the XSLT Transform in PHP. The Transform seems > to occur ok but then there is an error when I echo to the browser as below: > > XSLTForms Exception > -------------------------- > > Incorrect Javascript code generation: > > initImpl()@http://localhost/eCubeH/portfolio/php/load.php:6 > init()@http://localhost/eCubeH/portfolio/php/load.php:315 > onload([object Event])@http://localhost/eCubeH/portfolio/php/load.php:1 > > > ReferenceError > > Core is not defined > > I am really just an XForms user, not wishing to dig too deep into JS etc > which I am not familiar with. Our apps run with fedora / httpd / PHP all > set up locally on *netbooks*. > > - With Mozilla XForms the response time on Firefox 3.5 was pretty > good, about 1-2 seconds for loading a data heavy xform, filled with > repeats.There is a 2+ year old screenshot of this at > http://old.nabble.com/nested-repeat-formatting-as-table-td21048857.html > - The same with XSLTForms takes 44 seconds on FF3.5 and 27 seconds on > FF8.0. > > I can post the minimal code (XForms, XML) if that would help. The PHP is > below. > > $xp = new XsltProcessor(); > > // create a DOM document and load the XSL stylesheet > $xsl = new DomDocument; > $xsl->load('../../xsltforms/xsltforms.xsl'); > > // import the XSL styelsheet into the XSLT process > $xp->importStylesheet($xsl); > > // create a DOM document and load the XML datat > $xml_doc = new DomDocument; > $xml_doc->load('../txnRepayV1.xhtml'); > > $html = $xp->transformToXML($xml_doc); > // echo '"'.$html.'"'; > var_dump($html); > > *--* > Best Regards,* > * > * Bala Krishnamurthy* > Samhita Development Network > http://sDevNet.org > > > > On Sun, Sep 11, 2011 at 12:03 PM, Santosh Chandak < > san...@gm...> wrote: > >> Yes, it works on iphone too. I did not try the xsltforms.xsl transform >> since we transform it beforehand. >> >> Regards, >> Santosh >> >> On Sun, Sep 11, 2011 at 11:42 AM, Santosh Chandak < >> san...@gm...> wrote: >> >>> Alain and Friends, >>> Just tried Our application on Android phone browser and the results are >>> amazing. I am really excited to share that it works great. Only things >>> which I did not found working are - >>> 1. Applets for loading and saving data and images which I am sure will >>> find something with the native Android stuff >>> 2. TinyMCE editor >>> >>> I will try it on i-phone also, has anyone tried it on iphone other >>> devices already? >>> >>> Regards, >>> Santosh >>> >>> >>> >>> >>> >> >> >> ------------------------------------------------------------------------------ >> Using storage to extend the benefits of virtualization and iSCSI >> Virtualization increases hardware utilization and delivers a new level of >> agility. Learn what those decisions are and how to modernize your storage >> and backup environments for virtualization. >> http://www.accelacomm.com/jaw/sfnl/114/51434361/ >> _______________________________________________ >> Xsltforms-support mailing list >> Xsl...@li... >> https://lists.sourceforge.net/lists/listinfo/xsltforms-support >> >> > |
From: Bala K. <ba...@ec...> - 2011-11-26 14:01:16
|
I got it to work. I played around with path settings for the js and css includes in the xsltforms.xsl as well as my own xforms But the performance seems the same though, with PHP doing the xsl transform on the server. *--* Best Regards,* * * Bala Krishnamurthy* |
From: Alain C. <ala...@ag...> - 2011-11-26 21:36:26
|
Hi Bala, I would be happy to know the performance with the latest trunk revision in the SF SVN repository. The profiler would also be useful to locate XPath expressions with excessive evaluation time. Thanks! -Alain Le 26/11/2011 15:01, Bala Krishnamurthy a écrit : > I got it to work. I played around with path settings for the js and > css includes in the xsltforms.xsl as well as my own xforms > > But the performance seems the same though, with PHP doing the xsl > transform on the server. > > *--* > Best Regards,* > * > *Bala Krishnamurthy* > |
From: Bala K. <ba...@ec...> - 2011-11-29 04:52:15
|
Hi Alain - The performance quoted was with beta3RC rev 449 which i svn co'd in the last 3-4 days (the activity chart on sourceforge indicates that it was last updated some 10 days back). I basically have 2 instance XML files - one with repeats, the immediate size is 24K though it could get much larger, and the other also about 24K, used for some reference / validation. Each repeat has some ~12 fields, is presented as a row in a table, most of the fields being simple outputs, and a couple inputs. I believe the 2 inputs per row use a complex expression for some P/I allocations - something along the lines of <xforms:bind nodeset="/eCH:TxnRepayV1/eCH:Group/eCH:TxnRepayV1Loan/eCH:PrincipalPaid" readonly="true()" calculate="if(../eCH:TotalPaid > 0, if((../eCH:TotalPaid >= ../eCH:Balance + ../eCH:TotalInterestDue) and (../eCH:Balance + ../eCH:TotalInterestDue >= ../eCH:TotalDue), ../eCH:Balance, if(../eCH:TotalPaid < ../eCH:TotalInterestDue, 0, if(../eCH:TotalPaid < ../eCH:TotalDue, ../eCH:TotalPaid - ../eCH:TotalInterestDue, ../eCH:TotalPrincipalDue + (floor((../eCH:TotalPaid - ../eCH:TotalDue) div ../eCH:NextInstallmentTotalDue) * ../eCH:NextInstallmentPrincipalDue) + if(((../eCH:TotalPaid - ../eCH:TotalDue) mod ../eCH:NextInstallmentTotalDue) > ../eCH:NextInstallmentInterestDue, ((../eCH:TotalPaid - ../eCH:TotalDue) mod ../eCH:NextInstallmentTotalDue) - ../eCH:NextInstallmentInterestDue, 0) ) ) ), 0)" type="xs:decimal" /> I will get back with the profiler results soon. *--* Best Regards,* * * Bala Krishnamurthy* For a Greener Planet --- Switch to Linux & Free Open Source sDevNet Protocol: eCubeH XtsE stream _________________________________________________________________ eCubeH Research Labs* *| Appropriate Technologies for Life Essentials* *G2/258, Gulmohar Colony, Bawadian Kala, Shahapura, Bhopal, MP 462039, India Visit us: sDevNet.org > <http://sdevnet.org/> On Sun, Nov 27, 2011 at 3:06 AM, Alain Couthures < ala...@ag...> wrote: > Hi Bala, > > I would be happy to know the performance with the latest trunk revision in > the SF SVN repository. > > The profiler would also be useful to locate XPath expressions with > excessive evaluation time. > > Thanks! > > -Alain > > Le 26/11/2011 15:01, Bala Krishnamurthy a écrit : > > I got it to work. I played around with path settings for the js and css > includes in the xsltforms.xsl as well as my own xforms > > But the performance seems the same though, with PHP doing the xsl > transform on the server. > > *--* > Best Regards,* > * > * Bala Krishnamurthy* > > > |
From: Santosh C. <san...@gm...> - 2011-11-27 03:39:11
|
Hello Bala, You don't really need to apply the xsltforms transform at runtime. You can transform the form beforehand to HTML result and directly use it, that way your application will not spend any time in transformation and will be much faster. Regards, Santosh On Sat, Nov 26, 2011 at 7:31 PM, Bala Krishnamurthy <ba...@ec...> wrote: > I got it to work. I played around with path settings for the js and css > includes in the xsltforms.xsl as well as my own xforms > > But the performance seems the same though, with PHP doing the xsl > transform on the server. > > *--* > Best Regards,* > * > * Bala Krishnamurthy* > > > |
From: Bala K. <ba...@ec...> - 2011-11-27 04:12:27
|
Thanks for replying, Santosh. The issue is - The 'precompiled' version seems ok with 'static' forms, however long. But we have forms with varying numbers of (nested) repeats in the data set, and the compiled version did not seem to adjust for it, as might be expected. Perhaps I am missing something. *--* Best Regards,* * * Bala Krishnamurthy* On Sun, Nov 27, 2011 at 9:09 AM, Santosh Chandak <san...@gm...>wrote: > Hello Bala, > > You don't really need to apply the xsltforms transform at runtime. You can > transform the form beforehand to HTML result and directly use it, that way > your application will not spend any time in transformation and will be much > faster. > > Regards, > Santosh > > > On Sat, Nov 26, 2011 at 7:31 PM, Bala Krishnamurthy <ba...@ec...>wrote: > >> I got it to work. I played around with path settings for the js and css >> includes in the xsltforms.xsl as well as my own xforms >> >> But the performance seems the same though, with PHP doing the xsl >> transform on the server. >> >> *--* >> Best Regards,* >> * >> * Bala Krishnamurthy* >> >> >> > |