Re: [Xsltforms-support] different behaviour for IE and Firefox - position() inside repeat.
Brought to you by:
alain-couthures
From: COUTHURES A. <ala...@ag...> - 2011-01-05 13:40:45
|
Le 05/01/2011 12:22, Stephen Cameron a écrit : > You should used xf:output/@value instead of xf:output/@ref for > rendering XPath expressions which are not also node sets. There is no > error message about that but there should be one. > > Oh, is this saying render the node value, as opposed to render the > value of the first node in the nodeset? > <xf:output value="instance('get_airport')/@startPosition + instance('grid1')/pos + position() - 2" /> is correct because this is not a node but a calculation. > > Unfortunate but if that's the only way forward for you then so be it. > Possibly worth going along that path for a while to see what happens, > maybe if some people thing no more will come for you for free they > will put their hands in their pocket to help continue it as fully > open-source. Personally I think the current XSLTForms version is > capable of making money for people. > If people are able to make money with XSLTForms, they can certainly consider to sell it with their solutions. > > > XPath 2.0 partial support can help: in this test case, the "to" > operator could be used. > > I can't see how or find an example, surely not "node[x to y ]"? > > Maybe something like "node[member-of-set(position(),x to y)]"? > Have a look at http://www.w3.org/TR/2010/REC-xpath-functions-20101214/#func-to > > > There are also possibilities in adding useful extensions. You can > already try this experimental extension: add > xf:instance/@readonly="true" to each instance with a static content > and it will not be validated at loading time. For your test case, the > loading time is divided by 2! > > WOW! This test really rocks now in FF and shows the client-side XForms > engine advantage in full glory. > > Not only loading time but moving between pages is faster as well, in > fact as fast as what I'd hoped for, marvelous J > I expect an even more significant improvement with the commercial version! Thanks! -Alain |