xsltforms-support Mailing List for XSLTForms (Page 35)
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: Dan M. <dan...@gm...> - 2013-03-18 20:49:14
|
> I have a nested repeat and from the inner repeat I want to access a value from the outer repeat as I am displaying them, not when I click on a cell. I am not sure what your question is, but here are some hints. Within any repeat you should be able to access all the parent nodes using relative XPath expressions such as ".." and "../..". As you click on a cell within a repeat, start with the current node and go up like this: <output ref="./../../parent-node/element"/> or you can use the index() function and a predicate [] to isolate the item want to view within the repeat. - Dan On Mon, Mar 18, 2013 at 2:20 PM, Elias Mazur <eli...@gm...> wrote: > Hi. > > Is there any way to save a node value inside a repeat, but not in an > action (like using setvalue)? I have a nested repeat and from the inner > repeat I want to access a value from the outer repeat as I am displaying > them, not when I click on a cell. > > For example, let's say I have 2 instances: one holds car information, the > other truck information, a third hold companies, and some companies makes > trucks and cars. In the companies instance there is a node that refers to > the ids of the car/trucks they make. I want to list a matrix with cars as > columns and trucks as rows and highlight the cells in which the same > company makes both. It's like a cross-reference between instances. > > The code I have is very complex and runs within an XQuery script. If you > can help me figure this out from the description above, cool. Otherwise > I'll try to put an example together. > > Thanks. > Elias > > > > > ------------------------------------------------------------------------------ > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://p.sf.net/sfu/appdyn_d2d_mar > _______________________________________________ > Xsltforms-support mailing list > Xsl...@li... > https://lists.sourceforge.net/lists/listinfo/xsltforms-support > > -- Dan McCreary NoSQL Evangelist office: (952) 931-9198 cell: (612) 986-1552 |
From: Elias M. <eli...@gm...> - 2013-03-18 19:42:42
|
Alain and all. Related to my earlier posting for saving a value within a repeat...if you look at the code below, let's say that row and cols data are number and I want to display in red the cells in which the sum of the row and col is larger than 10 for example. For that I need to store the row value as I display the columns so I can add and check if it's greater than 10. How to do it? Thanks. Elias On Sun, Feb 24, 2013 at 4:35 PM, Alain Couthures < ala...@ag...> wrote: > Hello Elias, > > I'm trying to create a spreadsheet where the rows and columns are in >> separate instances, something like: >> >> <xf:instance id="rows"> >> <data xmlns=""> >> <row> >> <rowdata>stuff</rowdata> >> </row> >> <row> >> <rowdata>more stuff</rowdata> >> </row> >> ... >> ... >> </data> >> </xf:instance> >> >> <xf:instance id="cols"> >> <data xmlns=""> >> <col> >> <coldata>stuff</coldata> >> </col> >> <col> >> <coldata>more stuff</coldata> >> </col> >> ... >> ... >> </data> >> </xf:instance> >> >> <xf:repeat id="rows" nodeset="instance('rows')/row"> >> <div><xf:output value="./rowdata"/></div> >> <xf:repeat id="cols" nodeset="instance('cols')/col"> >> <div><xf:output value="./coldata"/> >> <xf:output value="index('rows')"/><br/> >> <xf:output value="index('cols')"/> >> </div> >> </xf:repeat> >> </xf:repeat> >> >> >> There are duplicate ids for instances and repeats and I have rewritten > this test case like this: > > <html xmlns:xforms="http://www.w3.org/2002/xforms" xmlns=" > http://www.w3.org/1999/xhtml" xmlns:xhtml="http://www.w3.org/1999/xhtml" > xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:xsd=" > http://www.w3.org/2001/XMLSchema"> > <head> > <title>Indexes</title> > <xforms:model> > <xforms:instance id="irows"> > <data xmlns=""> > <row> > <rowdata>datar1</rowdata> > </row> > <row> > <rowdata>datar2</rowdata> > </row> > </data> > </xforms:instance> > <xforms:instance id="icols"> > <data xmlns=""> > <col> > <coldata>datac1</coldata> > </col> > <col> > <coldata>datac2</coldata> > </col> > </data> > </xforms:instance> > </xforms:model> > </head> > <body> > <xforms:repeat id="rows" nodeset="instance('irows')/row"> > <div><xforms:output value="./rowdata"/></div> > <xforms:repeat id="cols" nodeset="instance('icols')/col"> > <div><xforms:output value="./coldata"/> > <br/> > Current row:<xforms:output value="index('rows')"/><br/> > Current col:<xforms:output value="index('cols')"/> > </div> > </xforms:repeat> > </xforms:repeat> > </body> > </html> > > I can see an issue with the index() function for the cols repeat because > clicking on the last column item in the second row does not have any effect > on this index. > > I think that it is because it is a cloned node and I can surely fix this. > > Are you in a hurry? > > -Alain > > |
From: Elias M. <eli...@gm...> - 2013-03-18 19:21:01
|
Hi. Is there any way to save a node value inside a repeat, but not in an action (like using setvalue)? I have a nested repeat and from the inner repeat I want to access a value from the outer repeat as I am displaying them, not when I click on a cell. For example, let's say I have 2 instances: one holds car information, the other truck information, a third hold companies, and some companies makes trucks and cars. In the companies instance there is a node that refers to the ids of the car/trucks they make. I want to list a matrix with cars as columns and trucks as rows and highlight the cells in which the same company makes both. It's like a cross-reference between instances. The code I have is very complex and runs within an XQuery script. If you can help me figure this out from the description above, cool. Otherwise I'll try to put an example together. Thanks. Elias |
From: Claudius T. <cla...@gm...> - 2013-03-17 17:44:40
|
Hi, I do have the pleasure to announce the version 1.1.1 of exsltforms. *Changes:* Feature #369: Change global namespace of the project to exsltforms (check installation.txt, as installations steps changed) Feature #370: Version 1.1.1 works with r. 571 of XSLTForms Feature #371: Remove support for TinyMCE, as it is natively supported by XSLTForms Feature #372: Remove support for data instance viewer, as it is natively supported by XSLTForms Feature #373: Replace support for YUI2 Datatable with support for YUI3 Datatable Feature #375: exsltforms works with YUI 3.9.0 Datatable (except pagination and inline cell editor) One can find unit-tests here<http://extxsltforms.sourceforge.net/latest/tests/> . Claudius |
From: peter w. <p....@in...> - 2013-03-14 14:06:20
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML> <HEAD><META http-equiv=Content-Type content="text/html; charset=utf-8"><META content="INBOX.COM" name=GENERATOR></HEAD> <BODY> <DIV>Answering my own question ...</DIV> <DIV> </DIV> <DIV><FONT color=#640064> <P>distinct-values(instance('report-transformed')/body/table/tr/td[3]) takes 69ms whereas the original below is over 9 seconds!</P> <P>Peter</P></FONT> </DIV><BR><BR> <BLOCKQUOTE style="BORDER-LEFT: #0000ff 2px solid; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px"> <DIV class=msgHeaders>-----Original Message-----<BR><B>From:</B> p....@in...<BR><B>Sent:</B> Thu, 14 Mar 2013 05:20:33 -0800<BR><B>To:</B> ala...@ag...<BR><B>Subject:</B> Re: [Xsltforms-support] Select1 box: What is the reason for the delay?<BR><BR></DIV> <DIV class=oldBody> <DIV> <DIV>Alain and other list members</DIV> <DIV> </DIV> <DIV>After examining the profiler I see that the main time is taken with the following:</DIV> <DIV> </DIV> <DIV><FONT face="Courier New">instance('report-transformed')/body/table/tr[not(td[3] = preceding-sibling::tr/td[3]) and not(td[3]='')]</FONT></DIV> <DIV><FONT face="Courier New"></FONT> </DIV> <DIV><FONT face="Courier New">This is my way of populating a second select box with unique values from an xhtml file that is loaded into my form, and I suspect (but don't know) that changing the selected value in my first select box is triggering a refresh of the whole form. Is this the case? Can it be prevented so that it only happens when I make a submission on the changed select box value?</FONT></DIV> <DIV><FONT face="Courier New"></FONT> </DIV> <DIV><FONT face="Courier New">Cheers</FONT></DIV> <DIV><FONT face="Courier New"></FONT> </DIV> <DIV><FONT face="Courier New">Peter</FONT></DIV><BR><BR> <BLOCKQUOTE _style="BORDER-LEFT: #0000ff 2px solid; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px"> <DIV _class="msgHeaders">-----Original Message-----<BR><B>From:</B> ala...@ag...<BR><B>Sent:</B> Wed, 13 Mar 2013 22:08:11 +0100<BR><B>To:</B> p....@in...<BR><B>Subject:</B> Re: [Xsltforms-support] Select1 box: What is the reason for the delay?<BR><BR></DIV> <DIV _class="oldBody"> <DIV> <DIV _class="moz-cite-prefix">Yes, currently, there is no optimization for // in XSLTForms.<BR><BR>It means that each and every nodes in the subtree are tested.<BR><BR>Using the id() function, when possible, can be very useful too.<BR><BR>-Alain<BR><BR>Le 13/03/2013 22:02, peter winstanley a écrit :<BR></DIV> <BLOCKQUOTE cite=mid:E02...@in... type="cite"> <META name=GENERATOR content=INBOX.COM>Hello Alain<BR><BR>Thanks you for our kind suggestions.... so is // much more computationally intensive than using the full path in an XPath expression?<BR><BR>Regards<BR><BR>Peter<BR> <DIV> </DIV><BR></BLOCKQUOTE><BR></DIV></DIV></BLOCKQUOTE> <HR SIZE=1 noShade _style="clear:both;margin-top:10px;height:1px;"> <DIV _style="font:12px Verdana,sans-serif;color:Black;background:white;padding:3px;line-height:1.3em"><A href="http://www.inbox.com/marineaquarium"><IMG border=0 alt="3D Marine Aquarium Screensaver Preview" align=left src="http://my.inbox.com/img/ftrs/marine.jpg" width=104 hight="90" _style="margin-right:15px"></A> <BR><STRONG><FONT color=#2086c3>Free 3D Marine Aquarium Screensaver</FONT></STRONG><BR><NOBR>Watch dolphins, sharks & orcas on your desktop!</NOBR> <NOBR>Check it out at <A href="http://www.inbox.com/marineaquarium">www.inbox.com/marineaquarium</A></NOBR></DIV></DIV></DIV></BLOCKQUOTE><hr size="1px" noshade style="clear:both;margin-top:10px;height:1px;"> <div style="font:12px Verdana,sans-serif;color:Black;background:white;padding:3px;line-height:1.3em"> <a href="http://www.inbox.com/marineaquarium"><img src="http://my.inbox.com/img/ftrs/marine.jpg" width="104" hight="90" alt="3D Marine Aquarium Screensaver Preview" align="left" border="0" style="margin-right:15px" /></a> <br><strong><font color="2086c3">Free 3D Marine Aquarium Screensaver</font></strong><br> <nobr>Watch dolphins, sharks & orcas on your desktop!</nobr> <nobr>Check it out at <a href="http://www.inbox.com/marineaquarium">www.inbox.com/marineaquarium</a></nobr></div> </BODY> </HTML> |
From: peter w. <p....@in...> - 2013-03-14 13:20:47
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML> <HEAD><META http-equiv=Content-Type content="text/html; charset=utf-8"><META content="INBOX.COM" name=GENERATOR></HEAD> <BODY> <DIV>Alain and other list members</DIV> <DIV> </DIV> <DIV>After examining the profiler I see that the main time is taken with the following:</DIV> <DIV> </DIV> <DIV><FONT face="Courier New">instance('report-transformed')/body/table/tr[not(td[3] = preceding-sibling::tr/td[3]) and not(td[3]='')]</FONT></DIV> <DIV><FONT face="Courier New"></FONT> </DIV> <DIV><FONT face="Courier New">This is my way of populating a second select box with unique values from an xhtml file that is loaded into my form, and I suspect (but don't know) that changing the selected value in my first select box is triggering a refresh of the whole form. Is this the case? Can it be prevented so that it only happens when I make a submission on the changed select box value?</FONT></DIV> <DIV><FONT face="Courier New"></FONT> </DIV> <DIV><FONT face="Courier New">Cheers</FONT></DIV> <DIV><FONT face="Courier New"></FONT> </DIV> <DIV><FONT face="Courier New">Peter</FONT></DIV><BR><BR> <BLOCKQUOTE style="BORDER-LEFT: #0000ff 2px solid; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px"> <DIV class=msgHeaders>-----Original Message-----<BR><B>From:</B> ala...@ag...<BR><B>Sent:</B> Wed, 13 Mar 2013 22:08:11 +0100<BR><B>To:</B> p....@in...<BR><B>Subject:</B> Re: [Xsltforms-support] Select1 box: What is the reason for the delay?<BR><BR></DIV> <DIV class=oldBody> <DIV> <DIV _class="moz-cite-prefix">Yes, currently, there is no optimization for // in XSLTForms.<BR><BR>It means that each and every nodes in the subtree are tested.<BR><BR>Using the id() function, when possible, can be very useful too.<BR><BR>-Alain<BR><BR>Le 13/03/2013 22:02, peter winstanley a écrit :<BR></DIV> <BLOCKQUOTE cite=mid:E02...@in... type="cite"> <META name=GENERATOR content=INBOX.COM>Hello Alain<BR><BR>Thanks you for our kind suggestions.... so is // much more computationally intensive than using the full path in an XPath expression?<BR><BR>Regards<BR><BR>Peter<BR> <DIV> </DIV><BR></BLOCKQUOTE><BR></DIV></DIV></BLOCKQUOTE><hr size="1px" noshade style="clear:both;margin-top:10px;height:1px;"> <div style="font:12px Verdana,sans-serif;color:Black;background:white;padding:3px;line-height:1.3em"> <a href="http://www.inbox.com/marineaquarium"><img src="http://my.inbox.com/img/ftrs/marine.jpg" width="104" hight="90" alt="3D Marine Aquarium Screensaver Preview" align="left" border="0" style="margin-right:15px" /></a> <br><strong><font color="2086c3">Free 3D Marine Aquarium Screensaver</font></strong><br> <nobr>Watch dolphins, sharks & orcas on your desktop!</nobr> <nobr>Check it out at <a href="http://www.inbox.com/marineaquarium">www.inbox.com/marineaquarium</a></nobr></div> </BODY> </HTML> |
From: Alain C. <ala...@ag...> - 2013-03-13 21:13:32
|
Yes, currently, there is no optimization for // in XSLTForms. It means that each and every nodes in the subtree are tested. Using the id() function, when possible, can be very useful too. -Alain Le 13/03/2013 22:02, peter winstanley a écrit : > Hello Alain > > Thanks you for our kind suggestions.... so is // much more > computationally intensive than using the full path in an XPath expression? > > Regards > > Peter > |
From: Alain C. <ala...@ag...> - 2013-03-13 21:08:20
|
Hello Peter, There is no specific reason for a select1 control to be slow. Probably, there is a refresh just after selecting one item and the size/structure of the corresponding instance might be the cause of this. The involved XPath expressions might also require a lot of time, for example if the // operator is used. You can use the XSLTForms Profiler (pressing F1 to be in the Debug Mode) and the native IE Script Profiler to locate functions/methods with heavy execution times. There are many ways for optimizing and I would need a testcase or a remote access to diagnose. Thank you for your feedbacks! -Alain Le 13/03/2013 16:43, peter winstanley a écrit : > > Dear List > > I have a simple XForm using XMLSTForms rev 565 within eXist-db > version2.0. The form has a simple select1 control in it. The control > setting is selection="closed". > > I am viewing the form on an IE9/Windows 7 machine. The IE9 is in IE9 > mode, not one of the other mode options. > > When the control value is changed the dropdown with the various > options stays open for some seconds and during this time there is > significant processor activity as seen in the Task Manager. I would > have expected the new selection of an option in the select1 box to > have been instantaneous. > > Any ideas on what is happening, and how I can improve this to provide > an instantaneous change to the selection of a new value? > > Many thanks > > Peter > |
From: peter w. <p....@in...> - 2013-03-13 21:02:49
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML> <HEAD><META http-equiv=Content-Type content="text/html; charset=utf-8"><META content="INBOX.COM" name=GENERATOR></HEAD> <BODY> Hello Alain<br><br>Thanks you for our kind suggestions.... so is // much more computationally intensive than using the full path in an XPath expression?<br><br>Regards<br><br>Peter<br> <div> </div><br><br><blockquote style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px"><div class="msgHeaders">-----Original Message-----<br><b>From:</b> ala...@ag...<br><b>Sent:</b> Wed, 13 Mar 2013 21:54:30 +0100<br><b>To:</b> p....@in...<br><b>Subject:</b> Re: [Xsltforms-support] Select1 box: What is the reason for the delay?<br><br></div><div class="oldBody"><div> <div _class="moz-cite-prefix">Hello Peter,<br> <br> There is no specific reason for a select1 control to be slow. Probably, there is a refresh just after selecting one item and the size/structure of the corresponding instance might be the cause of this. The involved XPath expressions might also require a lot of time, for example if the // operator is used.<br> <br> You can use the XSLTForms Profiler (pressing F1 to be in the Debug Mode) and the native IE Script Profiler to locate functions/methods with heavy execution times.<br> <br> There are many ways for optimizing and I would need a testcase or a remote access to diagnose.<br> <br> Thank you for your feedbacks!<br> <br> -Alain<br> <br> Le 13/03/2013 16:43, peter winstanley a écrit :<br> </div> <blockquote cite="mid:DD5...@in..." type="cite"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta content="INBOX.COM" name="GENERATOR"> <p>Dear List</p> <p>I have a simple XForm using XMLSTForms rev 565 within eXist-db version2.0. The form has a simple select1 control in it. The control setting is selection="closed". </p> <p>I am viewing the form on an IE9/Windows 7 machine. The IE9 is in IE9 mode, not one of the other mode options.</p> <p>When the control value is changed the dropdown with the various options stays open for some seconds and during this time there is significant processor activity as seen in the Task Manager. I would have expected the new selection of an option in the select1 box to have been instantaneous.</p> <p>Any ideas on what is happening, and how I can improve this to provide an instantaneous change to the selection of a new value?</p> <p>Many thanks</p> <p>Peter</p> </blockquote> <br> </div></div></blockquote> <hr size="1px" noshade style="clear:both;margin-top:10px;height:1px;"> <div style="font:12px Verdana,sans-serif;color:Black;background:white;padding:3px;line-height:1.3em"> <a href="http://www.inbox.com/smileys"><img src="http://my.inbox.com/img/ftrs/smileys.jpg" width="438" hight="73" alt="Smileys Preview" border="0" style="margin-bottom:10px" /></a><br> <nobr><strong><font color="2086c3">Get Free Smileys for Your IM & Email</font></strong> - Learn more at <a href="http://www.crawler.com/smileys">www.crawler.com/smileys</a></nobr><br> <nobr>Works with AIM<font size="-1"><sup>®</sup></font>, MSN<font size="-1"><sup>®</sup></font> Messenger, Yahoo!<font size="-1"><sup>®</sup></font> Messenger, ICQ<font size="-1"><sup>®</sup></font>, Google Talk<font size="-1"><sup>™</sup></font> and most webmails</nobr></div> </BODY> </HTML> |
From: peter w. <p....@in...> - 2013-03-13 15:44:09
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML> <HEAD><META http-equiv=Content-Type content="text/html; charset=utf-8"><META content="INBOX.COM" name=GENERATOR></HEAD> <BODY> <P>Dear List</P> <P>I have a simple XForm using XMLSTForms rev 565 within eXist-db version2.0. The form has a simple select1 control in it. The control setting is selection="closed". </P> <P>I am viewing the form on an IE9/Windows 7 machine. The IE9 is in IE9 mode, not one of the other mode options.</P> <P>When the control value is changed the dropdown with the various options stays open for some seconds and during this time there is significant processor activity as seen in the Task Manager. I would have expected the new selection of an option in the select1 box to have been instantaneous.</P> <P>Any ideas on what is happening, and how I can improve this to provide an instantaneous change to the selection of a new value?</P> <P>Many thanks</P> <P>Peter</P><hr size="1px" noshade style="clear:both;margin-top:10px;height:1px;"> <div style="font:12px Verdana,sans-serif;color:Black;background:white;padding:3px;line-height:1.3em"> <a href="http://www.inbox.com/earth"><img src="http://my.inbox.com/img/ftrs/earth.jpg" width="100" hight="90" alt="3D Earth Screensaver Preview" align="left" border="0" style="margin-right:15px" /></a> <br><strong><font color="2086c3">Free 3D Earth Screensaver</font></strong><br> <nobr>Watch the Earth right on your desktop!</nobr> <nobr>Check it out at <a href="http://www.inbox.com/earth">www.inbox.com/earth</a></nobr></div> </BODY> </HTML> |
From: Elias M. <eli...@gm...> - 2013-02-25 01:17:56
|
Hi Alain. Thanks for the feedback. Actually, I found a small quirk with this code. In the code you have below, instead of 2 xf:output, if you use just one with a concat, it works fine. Looks like after the first xf:output it looses the cols index. Anyway, with this problem kind of solved I have another one that maybe you can help me: As I display the matrix I need to highlight a cell that matches a condition for both the row and col. For example, let's say I want to highlight in green the cell that has both the row and col with the word "test". That means that I need to rely on the position() function to check the contents of the row and cell, not the index which is updated every time a node becomes current. But, position() only applies to the current context. So in the inside repeat for the cols I need to check the content of the row in the outside repeat, but position() does not work. So the question is: how can I reference the position of the outside repeat while it's happening so I can manipulate the display of the cell? I tried instance('irows')/row/position() but it fails. Hope this makes sense :-) Thanks Elias On Sun, Feb 24, 2013 at 4:35 PM, Alain Couthures < ala...@ag...> wrote: > Hello Elias, > > I'm trying to create a spreadsheet where the rows and columns are in >> separate instances, something like: >> >> <xf:instance id="rows"> >> <data xmlns=""> >> <row> >> <rowdata>stuff</rowdata> >> </row> >> <row> >> <rowdata>more stuff</rowdata> >> </row> >> ... >> ... >> </data> >> </xf:instance> >> >> <xf:instance id="cols"> >> <data xmlns=""> >> <col> >> <coldata>stuff</coldata> >> </col> >> <col> >> <coldata>more stuff</coldata> >> </col> >> ... >> ... >> </data> >> </xf:instance> >> >> <xf:repeat id="rows" nodeset="instance('rows')/row"> >> <div><xf:output value="./rowdata"/></div> >> <xf:repeat id="cols" nodeset="instance('cols')/col"> >> <div><xf:output value="./coldata"/> >> <xf:output value="index('rows')"/><br/> >> <xf:output value="index('cols')"/> >> </div> >> </xf:repeat> >> </xf:repeat> >> >> >> There are duplicate ids for instances and repeats and I have rewritten > this test case like this: > > <html xmlns:xforms="http://www.w3.org/2002/xforms" xmlns=" > http://www.w3.org/1999/xhtml" xmlns:xhtml="http://www.w3.org/1999/xhtml" > xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:xsd=" > http://www.w3.org/2001/XMLSchema"> > <head> > <title>Indexes</title> > <xforms:model> > <xforms:instance id="irows"> > <data xmlns=""> > <row> > <rowdata>datar1</rowdata> > </row> > <row> > <rowdata>datar2</rowdata> > </row> > </data> > </xforms:instance> > <xforms:instance id="icols"> > <data xmlns=""> > <col> > <coldata>datac1</coldata> > </col> > <col> > <coldata>datac2</coldata> > </col> > </data> > </xforms:instance> > </xforms:model> > </head> > <body> > <xforms:repeat id="rows" nodeset="instance('irows')/row"> > <div><xforms:output value="./rowdata"/></div> > <xforms:repeat id="cols" nodeset="instance('icols')/col"> > <div><xforms:output value="./coldata"/> > <br/> > Current row:<xforms:output value="index('rows')"/><br/> > Current col:<xforms:output value="index('cols')"/> > </div> > </xforms:repeat> > </xforms:repeat> > </body> > </html> > > I can see an issue with the index() function for the cols repeat because > clicking on the last column item in the second row does not have any effect > on this index. > > I think that it is because it is a cloned node and I can surely fix this. > > Are you in a hurry? > > -Alain > > |
From: Alain C. <ala...@ag...> - 2013-02-24 21:42:12
|
Hello Elias, > I'm trying to create a spreadsheet where the rows and columns are in > separate instances, something like: > > <xf:instance id="rows"> > <data xmlns=""> > <row> > <rowdata>stuff</rowdata> > </row> > <row> > <rowdata>more stuff</rowdata> > </row> > ... > ... > </data> > </xf:instance> > > <xf:instance id="cols"> > <data xmlns=""> > <col> > <coldata>stuff</coldata> > </col> > <col> > <coldata>more stuff</coldata> > </col> > ... > ... > </data> > </xf:instance> > > <xf:repeat id="rows" nodeset="instance('rows')/row"> > <div><xf:output value="./rowdata"/></div> > <xf:repeat id="cols" nodeset="instance('cols')/col"> > <div><xf:output value="./coldata"/> > <xf:output value="index('rows')"/><br/> > <xf:output value="index('cols')"/> > </div> > </xf:repeat> > </xf:repeat> > > There are duplicate ids for instances and repeats and I have rewritten this test case like this: <html xmlns:xforms="http://www.w3.org/2002/xforms" xmlns="http://www.w3.org/1999/xhtml" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <head> <title>Indexes</title> <xforms:model> <xforms:instance id="irows"> <data xmlns=""> <row> <rowdata>datar1</rowdata> </row> <row> <rowdata>datar2</rowdata> </row> </data> </xforms:instance> <xforms:instance id="icols"> <data xmlns=""> <col> <coldata>datac1</coldata> </col> <col> <coldata>datac2</coldata> </col> </data> </xforms:instance> </xforms:model> </head> <body> <xforms:repeat id="rows" nodeset="instance('irows')/row"> <div><xforms:output value="./rowdata"/></div> <xforms:repeat id="cols" nodeset="instance('icols')/col"> <div><xforms:output value="./coldata"/> <br/> Current row:<xforms:output value="index('rows')"/><br/> Current col:<xforms:output value="index('cols')"/> </div> </xforms:repeat> </xforms:repeat> </body> </html> I can see an issue with the index() function for the cols repeat because clicking on the last column item in the second row does not have any effect on this index. I think that it is because it is a cloned node and I can surely fix this. Are you in a hurry? -Alain |
From: C. M. Sperberg-M. <cm...@bl...> - 2013-02-22 19:22:53
|
On Feb 22, 2013, at 11:07 AM, C. M. Sperberg-McQueen wrote: > > On Feb 22, 2013, at 11:01 AM, Alain Couthures wrote: > >> ... > >>> My question about evading an over-enthusiastic cache remains an open question. >> This is a well-known XMLHttpRequest issue and many developers just add a dummy parameter, such as the current date and time, to the HTTP request filename so the browser always consider it different. > > > Brilliant. Thank you, that should work. I'll do that right now. > For the record, I also found another way that works in my situation. The server for this project is running Apache, and I was able to persuade Apache to set the Expires header by putting the following into an .htaccess file in a directory located above all the documents where stale copies were causing us harm: ExpiresActive on ExpiresDefault "access plus 60 seconds" -- **************************************************************** * C. M. Sperberg-McQueen, Black Mesa Technologies LLC * http://www.blackmesatech.com * http://cmsmcq.com/mib * http://balisage.net **************************************************************** |
From: Alain C. <ala...@ag...> - 2013-02-22 18:14:47
|
Hello Michael, > I expect my users will get sick of the dialog box popping up on > success, and I may look for a way to make the success indicator less > obtrusive, but the error box will be helpful. I guess a success message displayed only 5 seconds or cleared just after the next user interaction would be nice. There is no delay in standard XForms action except for incremental mode. A bubbling event might do the trick for clearing the success message... > My question about evading an over-enthusiastic cache remains an open > question. This is a well-known XMLHttpRequest issue and many developers just add a dummy parameter, such as the current date and time, to the HTTP request filename so the browser always consider it different. Thank you for your feedbacks! -Alain |
From: C. M. Sperberg-M. <cm...@bl...> - 2013-02-22 18:07:48
|
On Feb 22, 2013, at 11:01 AM, Alain Couthures wrote: > Hello Michael, >> I expect my users will get sick of the dialog box popping up on success, and I may look for a way to make the success indicator less obtrusive, but the error box will be helpful. > I guess a success message displayed only 5 seconds or cleared just after the next user interaction would be nice. There is no delay in standard XForms action except for incremental mode. A bubbling event might do the trick for clearing the success message... Good idea. >> My question about evading an over-enthusiastic cache remains an open question. > This is a well-known XMLHttpRequest issue and many developers just add a dummy parameter, such as the current date and time, to the HTTP request filename so the browser always consider it different. Brilliant. Thank you, that should work. I'll do that right now. Michael -- **************************************************************** * C. M. Sperberg-McQueen, Black Mesa Technologies LLC * http://www.blackmesatech.com * http://cmsmcq.com/mib * http://balisage.net **************************************************************** |
From: C. M. Sperberg-M. <cm...@bl...> - 2013-02-22 03:22:59
|
On Feb 21, 2013, at 6:58 PM, C. M. Sperberg-McQueen wrote: > My apologies if this is a question that's already been asked and > clarified; I have not yet found any discussion of it, but I am still looking. > > I have a form which users employ to make systematic changes to > XML documents they are working on. From time to time, I would > like them to save their work. So I have a Save button that performs > a PUT to the server, and updates nothing (so they can continue to > work). > > Question 1: can I tell somehow whether the PUT was successful > or not? I'd like to be able to indicate (maybe with an alert, or just > some conditional text int he form) "the document has been saved" > or "there was an error, the document was not saved". You know, it's amazing how easy it is to find the information you want in the spec, if first you admit publicly that you don't know the answer and ask for help. Having sent my query, I looked at the spec and found the discussion of the xforms-submit-done and xforms-submit-error. I replaced the following submission: <xf:submission id="save" method="put" replace="none"> <xf:resource value="concat('/security-through-obscurity/', instance('ui')/document-id )"/> </xf:submission> with the following elaboration: <xf:submission id="save" method="put" replace="none"> <xf:resource value="concat('/security-through-obscurity/', instance('ui')/document-id )"/> <xf:message ev:event="xforms-submit-done">Save was successful!</xf:message> <xf:message ev:event="xforms-submit-error">Oops! Document was not successfully saved! Write down the following information and report the problem: A submission error (<xf:output value="event('error-type')"/>) occurred. Response: <xf:output value="event('response-status-code')"/>. Reason given: <xf:output value="event('response-reason-phrase')"/>. </xf:message> </xf:submission> And the form now tells the user explicitly whether the save was successful or not. I expect my users will get sick of the dialog box popping up on success, and I may look for a way to make the success indicator less obtrusive, but the error box will be helpful. My question about evading an over-enthusiastic cache remains an open question. -- **************************************************************** * C. M. Sperberg-McQueen, Black Mesa Technologies LLC * http://www.blackmesatech.com * http://cmsmcq.com/mib * http://balisage.net **************************************************************** |
From: C. M. Sperberg-M. <cm...@bl...> - 2013-02-22 01:59:06
|
My apologies if this is a question that's already been asked and clarified; I have not yet found any discussion of it, but I am still looking. I have a form which users employ to make systematic changes to XML documents they are working on. From time to time, I would like them to save their work. So I have a Save button that performs a PUT to the server, and updates nothing (so they can continue to work). Question 1: can I tell somehow whether the PUT was successful or not? I'd like to be able to indicate (maybe with an alert, or just some conditional text int he form) "the document has been saved" or "there was an error, the document was not saved". Question 2: Sometimes my users are feeling paranoid about whether they have successfully saved their work to the server, so they refresh the form, which once again confronts them with a list of documents they can load. They select the document they just saved, and ask to load it. At this point, I would very much like to see a new GET request in the server logs, and the users would like to see the changes they just made, when the document is reloaded. But currently we are both disappointed: the server logs show no trace of a GET request, and the document loaded by the user is the one they just loaded a few minutes earlier -- the changes they just saved are not visible. If I wait long enough -- a day suffices, five minutes does not typically suffice -- I eventually see the new version of the document. I infer from this behavior that either the browser or XSLTForms has a copy of the old form of the document in its cache and is using that form, instead of issuing a fresh GET request. Do any readers of this forum have suggestions on how to tell the browser, or XSLTForms, to ignore any cached copies of the document and do a fresh GET? (Shift-reload works for the form itself, but the document in question here is not a form, but a document instance in the form, which is loaded using a Load Document button which fires the following submission: <xf:submission id="get-document" ref="instance('ui')/document-id" method="get" replace="instance" instance="doc"> <xf:resource value="concat('../sessions/', instance('ui')/document-id)"/> </xf:submission> -- **************************************************************** * C. M. Sperberg-McQueen, Black Mesa Technologies LLC * http://www.blackmesatech.com * http://cmsmcq.com/mib * http://balisage.net **************************************************************** |
From: Elias M. <eli...@gm...> - 2013-02-20 20:41:32
|
Hi. I'm trying to create a spreadsheet where the rows and columns are in separate instances, something like: <xf:instance id="rows"> <data xmlns=""> <row> <rowdata>stuff</rowdata> </row> <row> <rowdata>more stuff</rowdata> </row> ... ... </data> </xf:instance> <xf:instance id="cols"> <data xmlns=""> <col> <coldata>stuff</coldata> </col> <col> <coldata>more stuff</coldata> </col> ... ... </data> </xf:instance> <xf:repeat id="rows" nodeset="instance('rows')/row"> <div><xf:output value="./rowdata"/></div> <xf:repeat id="cols" nodeset="instance('cols')/col"> <div><xf:output value="./coldata"/> <xf:output value="index('rows')"/><br/> <xf:output value="index('cols')"/> </div> </xf:repeat> </xf:repeat> As you can see I'm using a nested repeat. Start with the repeat for the rows and inside the repeat for the cols. Works fine and displays fine, BUT the index gets lost when moving from one cell to another. It should show 1,1 if I click on the first cell, 1,2 in the second, 2,1 in the second row, 2,2 etc.. It does show correctly for the first few clicks, but then is gets lost if I click on cells in the same row it does not update. I do need the index to perform some actions on the cell. Any help is appreciated. Thanks Elias |
From: C. M. Sperberg-M. <cm...@bl...> - 2013-02-19 22:50:34
|
The symposium mentioned below will, I hope, be of interest to readers of this list. If you have done interesting work with XForms, submit a paper! CALL FOR PARTICIPATION International Symposium on Native XML user interfaces a one-day symposium preceding Balisage: The Markup Conference C.M. Sperberg-McQueen, chair XML is everywhere. It is created, gathered, manipulated, queried, browsed, read, and modified. XML systems need user interfaces to do all of these things. How can we make user interfaces for XML that are powerful, simple to use, quick to develop, and easy to maintain? How are we building user interfaces today? How can we build them tomorrow? Are we using XML to drive our user interfaces? How? This one-day symposium is devoted to the theory and practice of user interfaces for XML: the current state of implementations, practical case studies, challenges for users, and the outlook for the future development of the technology. Topics include: Editors customized for specific purposes or users User interfaces for creation, management, and use of XML documents Uses of XForms Making tools for creation of XML textual documents Using general-purpose user-interface libraries to build XML interfaces Looking at XML, especially looking at masses of XML documents XML, XSLT, and XQuery in the browser Case studies of development and use of specialized user interfaces Details: http://www.balisage.net/XML-Interfaces/ information about Balisage: The Markup Conference: http://www.balisage.net/ Schedule: 19 April 2013 - Submissions due 21 May 2013 - Speakers notified 12 July 2013 - Final papers due 5 August 2013 - Pre-conference Symposium on XForms 6-9 August 2013 - Balisage: The Markup Conference Questions: symposium chair: C.M. Sperberg-McQueen <cm...@bl...> conference and symposium organizers: <in...@ba...> if you don't get a response within 3 business days please re-send your message or call +1 301 315 9631 ====================================================================== Balisage: The Markup Conference 2013 mailto:in...@ba... August 6-9, 2013 http://www.balisage.net Preconference Symposium August 5, 2012 ====================================================================== -- **************************************************************** * C. M. Sperberg-McQueen, Black Mesa Technologies LLC * http://www.blackmesatech.com * http://cmsmcq.com/mib * http://balisage.net **************************************************************** |
From: <mcu...@co...> - 2013-02-17 02:22:11
|
Could someone show how to modify the XForms example at: http://www.agencexml.com/xsltforms/wikipediasearch.xml so that it would use a resource in XML instead of JSON? Thanks, Morgan ----- Original Message ----- |
From: Alain C. <ala...@ag...> - 2013-02-03 20:31:27
|
Hi Elias, This is a TinyMCE configuration but this is generated by the browser itself, I think. This could be interesting for XForms, and XSLTForms, to allow/disallow this capability. -Alain Le 03/02/2013 21:26, Elias Mazur a écrit : > Hi. > > I'm using TinyMCE and it's working great. Only question for now: > everytime I leave the page (to save or go back) I get the "Are you > sure you want to leave this page?" message. Is it a TinyMCE > configuration or xsltforms? > > Thanks > Elias > > > ------------------------------------------------------------------------------ > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://p.sf.net/sfu/appdyn_d2d_jan > > > _______________________________________________ > Xsltforms-support mailing list > Xsl...@li... > https://lists.sourceforge.net/lists/listinfo/xsltforms-support |
From: Elias M. <eli...@gm...> - 2013-02-03 20:26:58
|
Hi. I'm using TinyMCE and it's working great. Only question for now: everytime I leave the page (to save or go back) I get the "Are you sure you want to leave this page?" message. Is it a TinyMCE configuration or xsltforms? Thanks Elias |
From: John M. <bic...@gm...> - 2013-01-25 22:48:32
|
As a follow up to my previous question, when the upload is present within a repeat I can add only 1 more to the repeat. Further additions do not show up in the browser, *but they show up if I look at the instance via the xlstforms instance viewer in the profiler*. If I remove the upload control from the repeat, everything works as it should. Any ideas? Thanks. |
From: John M. <bic...@gm...> - 2013-01-24 04:40:57
|
Hi, I'm very new to xforms. Please excuse my lack of knowledge. I'm getting 'xforms-binding-exception' when I try to use the 'upload' control with a repeat. I'm using build 566 (though it's possible I didn't build correctly). <?xml version="1.0" encoding="UTF-8"?> <xf:group ref="/proposal/budget"> <xf:repeat nodeset="row" id="budget-row"> <xf:input ref="description"> <xf:label>Description</xf:label> </xf:input> <xf:input ref="items"> <xf:label># Items</xf:label> </xf:input> <xf:upload ref="supDoc" > <xf:filename ref="@filename" /> <xf:label>Upload a File</xf:label> </xf:upload> </xf:repeat> </xf:group> ------------------------- <proposal> <id>2</id> <budget> <row> <description>test</description> <items>21</items> <supDoc xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xs:anyURI" filename=""/> </row> </budget> </proposal> ------------------------- Thanks, John |
From: Ihe O. <ihe...@gm...> - 2013-01-19 19:58:34
|
Solved. I avoided CSS. First let me state the problem more accurately. Instance looks likes <lineItem description="Asset"> <figure year="2005">100</figure> <figure year="2006">200</figure> ...... </lineItem> If we do this below the input box will not be inlined with the and output labels <repeat nodeset="lineItem"> <input ref="@description"><label etc ..../> <repeat nodeset="figure"> <output ref="figure"/> </repeat> </repeat> Do this instead. We make the nodeset of the inner repeat to be the union of lineItem's attributes and elements. Then shift the input box into the inner repeat. If the context does not have a year attribute then it's the description attribute -> display the input control. If it does have a year attribute display the output control. Probably better to have done a node-kind test to distinguish the cases but can't remember off the top of my head what you have to do for XPath 1.0. Code below. <repeat nodeset="lineItem"> <repeat nodeset="@*|*"> <input ref=".[not(@*)] ........ <output ref=".[@year]"/> </repeat> </repeat> On Tue, Jan 15, 2013 at 11:58 PM, Ihe Onwuka <ihe...@gm...> wrote: > I have something like > > <repeat> > <input ref="description"><label etc ..../> > <repeat> > <output ref="yearlyfigure"/> > </repeat> > </repeat> > > Where there are several yearly figures for each description. > > I have inlined the yearly figures but they still print on a different > line to the description. > > Can anyone help with the CSS incantations to achieve my goal. > > thanks > > ihe |