Thread: [Xsltforms-support] Contacts xform: problem with xsltforms
Brought to you by:
alain-couthures
From: Lorenzo De T. <lor...@gm...> - 2009-09-11 17:08:28
Attachments:
xform-contacts.zip
|
The attached xform works with Firefox 3.0 xForms plugin, but has some problems in deleting the last 2 elements with xsltforms. Can someone verify why? These files are release under both a Gnu/Gpl v.3 and a Creative Commons Attribution-Share alike 3.0 licenses Thanks -- Salta la crisi! Investi in comunicazione <http://isotype.org/?lang=it> -- Lorenzo De Tomasi ISOTYPE.org | comunica la qualità ["Multimodale" rispetto a "multimediale" vuole affermare la necessità di indagare non più sul veicolo o la tecnologia di trasmissione della comunicazione, ma sul modo in cui si veicola la comunicazione, il modo in cui la si struttura rispetto all'utente e, cioè, sul progetto.] Il portfolio illustrato dei miei lavori: http://tinyurl.com/2fgl63 Il mio curriculum vitae: http://tinyurl.com/4l2u8v Il mio blog (in costruzione): http://www.isotype.org/?lang=it ^^^^^^^^^^ Rispetta il tuo ambiente, pensa prima di stampare questa e-mail. Grazie. Please consider the environment before printing this email. Thank you. |
From: COUTHURES A. <ala...@ag...> - 2009-09-14 20:12:02
|
Hello Lorenzo, > The attached xform works with Firefox 3.0 xForms plugin, but has some > problems in deleting the last 2 elements with xsltforms. > Can someone verify why? > If you want at least one contact element present, you should replace : nodeset="contact[position()!=last()]" by : nodeset="contact" if="count(../contact) > 1" Regards, -Alain |
From: Lorenzo De T. <lor...@gm...> - 2009-09-15 07:39:55
|
Thank you :-) Is > nodeset="contact[position()!=last()]" a correct xForms syntax or not? If yes, will it be implemented in xsltforms? -- Salta la crisi! Investi in comunicazione <http://isotype.org/?lang=it> -- Lorenzo De Tomasi ISOTYPE.org | comunica la qualità ["Multimodale" rispetto a "multimediale" vuole affermare la necessità di indagare non più sul veicolo o la tecnologia di trasmissione della comunicazione, ma sul modo in cui si veicola la comunicazione, il modo in cui la si struttura rispetto all'utente e, cioè, sul progetto.] Il portfolio illustrato dei miei lavori: http://tinyurl.com/2fgl63 Il mio curriculum vitae: http://tinyurl.com/4l2u8v Il mio blog (in costruzione): http://www.isotype.org/?lang=it ^^^^^^^^^^ Rispetta il tuo ambiente, pensa prima di stampare questa e-mail. Grazie. Please consider the environment before printing this email. Thank you. |
From: COUTHURES A. <ala...@ag...> - 2009-09-15 08:34:35
|
> I want that you can't never delete the last element remained in the list. > After your suggestion it works. Thank you very much. > > On Tue, Sep 15, 2009 at 9:45 AM, COUTHURES Alain > <ala...@ag...> wrote: > >> nodeset="contact[position()!=last()]" >> Yes, this is a correct XPath syntax and it is already supported in XSLTForms >> but it means that the last contact element in the current list according to >> its position cannot be deleted so it doesn't allow to delete the second >> element when there are two elements and so on. Is it really what you want ? >> > > Pressing the 'add section' button, I would like also to add a new > section after it, copying the contents of the section before the > button, but it seems that the code line > > <xforms:insert nodeset="." at="last()" position="after" > ev:event="DOMActivate"/> > > doesn't work... > Is it a problem of xforms code or of xsltforms? > From my point of view, it works with the latest SVN version. Is it the one you're using ? Best regards, -Alain |
From: Lorenzo De T. <lor...@gm...> - 2009-09-15 17:34:55
|
I have installed the latest version <http://xsltforms.svn.sourceforge.net/viewvc/xsltforms/trunk/build/>. Yes, it copies the contents of the section before the button, but it adds the section as last, not after the button 'add section'. Thank you. Best regards > Pressing the 'add section' button, I would like also to add a new > section after it, copying the contents of the section before the > button, but it seems that the code line > > <xforms:insert nodeset="." at="last()" position="after" > ev:event="DOMActivate"/> > > doesn't work… > Is it a problem of xforms code or of xsltforms? > > > From my point of view, it works with the latest SVN version. Is it the one > you're using ? -- Salta la crisi! Investi in comunicazione <http://isotype.org/?lang=it> -- Lorenzo De Tomasi ISOTYPE.org | comunica la qualità ["Multimodale" rispetto a "multimediale" vuole affermare la necessità di indagare non più sul veicolo o la tecnologia di trasmissione della comunicazione, ma sul modo in cui si veicola la comunicazione, il modo in cui la si struttura rispetto all'utente e, cioè, sul progetto.] Il portfolio illustrato dei miei lavori: http://tinyurl.com/2fgl63 Il mio curriculum vitae: http://tinyurl.com/4l2u8v Il mio blog (in costruzione): http://www.isotype.org/?lang=it ^^^^^^^^^^ Rispetta il tuo ambiente, pensa prima di stampare questa e-mail. Grazie. Please consider the environment before printing this email. Thank you. |
From: Lorenzo De T. <lor...@gm...> - 2009-09-16 08:38:59
|
I have solved all the problems. They were all my faults :-( If you are interested in the final code (under Gnu/Gpl), please e-mail me. Thank you again -- Salta la crisi! Investi in comunicazione <http://isotype.org/?lang=it> -- Lorenzo De Tomasi ISOTYPE.org | comunica la qualità ["Multimodale" rispetto a "multimediale" vuole affermare la necessità di indagare non più sul veicolo o la tecnologia di trasmissione della comunicazione, ma sul modo in cui si veicola la comunicazione, il modo in cui la si struttura rispetto all'utente e, cioè, sul progetto.] Il portfolio illustrato dei miei lavori: http://tinyurl.com/2fgl63 Il mio curriculum vitae: http://tinyurl.com/4l2u8v Il mio blog (in costruzione): http://www.isotype.org/?lang=it ^^^^^^^^^^ Rispetta il tuo ambiente, pensa prima di stampare questa e-mail. Grazie. Please consider the environment before printing this email. Thank you. |