xsltforms-support Mailing List for XSLTForms (Page 107)
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: COUTHURES A. <ala...@ag...> - 2009-09-23 10:16:30
|
Hi Mark, With which browser did you test ? Didn't you forget to add the processiong instruction I didn't mention in the test form ? Cheers, -Alain > Hi Alain, > > That is great, except that I grabbed the latest version (from > trunk/build, revision 223) and tried you modified version of the form > without success. I am still getting an error raised by var inst1 = > model.getInstanceDocument('my_data1'); > > What have I missed? > > All the best > > Mark > |
From: Mark S. <m_s...@ma...> - 2009-09-23 08:56:45
|
Hi Alain, That is great, except that I grabbed the latest version (from trunk/ build, revision 223) and tried you modified version of the form without success. I am still getting an error raised by var inst1 = model.getInstanceDocument('my_data1'); What have I missed? All the best Mark On 22 Sep 2009, at 21:26, COUTHURES Alain wrote: > Hi Mark, >> I have just been experimenting with XSLTForms as distributed as >> part of the latest eXist build. Can you tell me if there is any >> support, or plan to support getInstanceDocument, or any >> alternative mechanism for providing access to XForms instance >> documents and Javascript? >> > Because of your question about getInstanceDocument support, I > decided to have a closer look at W3C XForms Test #4.8.1.a which is > non-normative : > > <?xml version="1.0" encoding="ISO-8859-1"?> > <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" > xmlns:ev="http://www.w3.org/2001/xml-events" > xmlns:xforms="http://www.w3.org/2002/xforms"> > <xhtml:head> > <xhtml:title>4.8.1.a getInstanceDocument() method (non- > normative)</xhtml:title> > <xhtml:link rel="stylesheet" href="../../../driverPages/forms/ > TestSuite11.css" type="text/css"/> > <xforms:model id="my_model1"> > <xforms:instance id="my_data1"> > <car> > <color>blue</color> > </car> > </xforms:instance> > </xforms:model> > </xhtml:head> > <xhtml:body> > <xforms:group> > <xforms:label class="title">4.8.1.a getInstanceDocument() > method (non-normative)</xforms:label> > </xforms:group> > <xforms:group> > <xforms:label> > This test case uses Javascript to execute the > getInstanceDocument() method. > You may have seen a message box with the value > "blue". > </xforms:label> > </xforms:group> > <xhtml:script type="text/javascript"> > var model = document.getElementById('my_model1'); > var inst1 = model.getInstanceDocument('my_data1'); > var my_color = inst1.getElementsByTagName('color')[0]; > alert(my_color.textContent); > </xhtml:script> > </xhtml:body> > </xhtml:html> > > Yes, it was already possible to manipulate instances managed by > XSLTForms directly with Javascript instructions but there were no > well-known function for that. So, I added, in the very latest SVN > version, the ones mentioned in this test (textContent attribute > having to be replaced by getTextContent()). I had to postpone the > specific Javascript calls so they are executed after the generated > init() function which is called from body onload. This is the > modified working test : > > <?xml version="1.0" encoding="ISO-8859-1"?> > <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" > xmlns:ev="http://www.w3.org/2001/xml-events" > xmlns:xforms="http://www.w3.org/2002/xforms"> > <xhtml:head> > <xhtml:title>4.8.1.a getInstanceDocument() method (non- > normative)</xhtml:title> > <xhtml:link rel="stylesheet" href="../../../driverPages/forms/ > TestSuite11.css" type="text/css"/> > <xforms:model id="my_model1"> > <xforms:instance id="my_data1"> > <car> > <color>blue</color> > </car> > </xforms:instance> > </xforms:model> > </xhtml:head> > <xhtml:body onload="f();"> > <xforms:group> > <xforms:label class="title">4.8.1.a getInstanceDocument() > method (non-normative)</xforms:label> > </xforms:group> > <xforms:group> > <xforms:label> > This test case uses Javascript to execute the > getInstanceDocument() method. > You may have seen a message box with the value > "blue". > </xforms:label> > </xforms:group> > <xhtml:script type="text/javascript"> > function f() { > var model = document.getElementById('my_model1'); > var inst1 = model.getInstanceDocument('my_data1'); > var my_color = inst1.getElementsByTagName('color')[0]; > alert(my_color.getTextContent()); > } > </xhtml:script> > </xhtml:body> > </xhtml:html> > > This is, for sure, just the minimal set of methods required for this > test but I needed less than two hours to add them... ;-) > > XSLTForms is easy to extend ! :-) > > Best regards, > > -Alain > > |
From: COUTHURES A. <ala...@ag...> - 2009-09-22 20:26:34
|
Hi Mark, > I have just been experimenting with XSLTForms as distributed as part > of the latest eXist build. Can you tell me if there is any support, or > plan to support getInstanceDocument, or any alternative mechanism for > providing access to XForms instance documents and Javascript? > Because of your question about getInstanceDocument support, I decided to have a closer look at W3C XForms Test #4.8.1.a which is non-normative : <?xml version="1.0" encoding="ISO-8859-1"?> <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:xforms="http://www.w3.org/2002/xforms"> <xhtml:head> <xhtml:title>4.8.1.a getInstanceDocument() method (non-normative)</xhtml:title> <xhtml:link rel="stylesheet" href="../../../driverPages/forms/TestSuite11.css" type="text/css"/> <xforms:model id="my_model1"> <xforms:instance id="my_data1"> <car> <color>blue</color> </car> </xforms:instance> </xforms:model> </xhtml:head> <xhtml:body> <xforms:group> <xforms:label class="title">4.8.1.a getInstanceDocument() method (non-normative)</xforms:label> </xforms:group> <xforms:group> <xforms:label> This test case uses Javascript to execute the getInstanceDocument() method. You may have seen a message box with the value "blue". </xforms:label> </xforms:group> <xhtml:script type="text/javascript"> var model = document.getElementById('my_model1'); var inst1 = model.getInstanceDocument('my_data1'); var my_color = inst1.getElementsByTagName('color')[0]; alert(my_color.textContent); </xhtml:script> </xhtml:body> </xhtml:html> Yes, it was already possible to manipulate instances managed by XSLTForms directly with Javascript instructions but there were no well-known function for that. So, I added, in the very latest SVN version, the ones mentioned in this test (textContent attribute having to be replaced by getTextContent()). I had to postpone the specific Javascript calls so they are executed after the generated init() function which is called from body onload. This is the modified working test : <?xml version="1.0" encoding="ISO-8859-1"?> <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:xforms="http://www.w3.org/2002/xforms"> <xhtml:head> <xhtml:title>4.8.1.a getInstanceDocument() method (non-normative)</xhtml:title> <xhtml:link rel="stylesheet" href="../../../driverPages/forms/TestSuite11.css" type="text/css"/> <xforms:model id="my_model1"> <xforms:instance id="my_data1"> <car> <color>blue</color> </car> </xforms:instance> </xforms:model> </xhtml:head> <xhtml:body onload="f();"> <xforms:group> <xforms:label class="title">4.8.1.a getInstanceDocument() method (non-normative)</xforms:label> </xforms:group> <xforms:group> <xforms:label> This test case uses Javascript to execute the getInstanceDocument() method. You may have seen a message box with the value "blue". </xforms:label> </xforms:group> <xhtml:script type="text/javascript"> function f() { var model = document.getElementById('my_model1'); var inst1 = model.getInstanceDocument('my_data1'); var my_color = inst1.getElementsByTagName('color')[0]; alert(my_color.getTextContent()); } </xhtml:script> </xhtml:body> </xhtml:html> This is, for sure, just the minimal set of methods required for this test but I needed less than two hours to add them... ;-) XSLTForms is easy to extend ! :-) Best regards, -Alain |
From: Mark S. <m_s...@ma...> - 2009-09-21 10:20:09
|
Hi, I have just been experimenting with XSLTForms as distributed as part of the latest eXist build. Can you tell me if there is any support, or plan to support getInstanceDocument, or any alternative mechanism for providing access to XForms instance documents and Javascript? All the best Mark |
From: Lorenzo De T. <lor...@gm...> - 2009-09-17 09:39:25
|
Ciao, > Also if javascript asks the browser to open the default "save as…" window? > This is possible for just Internet Explorer and can be added to XSLTForms > for it only. I think it's better not to implement it. > For other browsers, there is a known trick consisting in sending all the > data to the server then back to the client with a specific header forcing > the client to display the save as dialog. Because of the cross-domain > constraint, this cannot be done by a local HTTP server if the initial form > comes from another HTTP server. It can be solved using a local proxy instead > ! Is something ready for this? Can I test it? > Yes, local applications are not dead and I developed a tiny HTTP server > (named tXs) just for that because browsers don't treat local files with less > security constraints. I, now, think that it would be even better to > transform this program as a proxy... Is something ready for this? Can I test it? > What about the upload button? is it implemented? > No, it is not yet implemented because it's not very easy with HTML forms and > Javascript and because XForms recommendation says that the content can be > embedded in an instance, not just the selected filename. Another server page > could do the trick... or a local proxy (did I say that already ? ;-) ) ... And what about sending data by e-mail? <xf:submission id="send_email" method="put" action="mailto:lor...@gm...?subject=Data"/> -- 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-17 07:10:44
|
Hello Lorenzo, >> Because XSLTForms is based on Javascript, it is not allowed by any browser >> to read or save local files. Only plug-ins and extensions can do that. >> > > Also if javascript asks the browser to open the default "save as..." window? > This is possible for just Internet Explorer and can be added to XSLTForms for it only. For other browsers, there is a known trick consisting in sending all the data to the server then back to the client with a specific header forcing the client to display the save as dialog. Because of the cross-domain constraint, this cannot be done by a local HTTP server if the initial form comes from another HTTP server. It can be solved using a local proxy instead ! > >> Coupled with a specific proxy (to be developed...), this could be done. Do >> you know a user case for which it is required ? >> > > Off-line xforms can be used for to-do-lists, file conversions, file editing... > Yes, local applications are not dead and I developed a tiny HTTP server (named tXs) just for that because browsers don't treat local files with less security constraints. I, now, think that it would be even better to transform this program as a proxy... > What about the upload button? is it implemented? > No, it is not yet implemented because it's not very easy with HTML forms and Javascript and because XForms recommendation says that the content can be embedded in an instance, not just the selected filename. Another server page could do the trick... or a local proxy (did I say that already ? ;-) ) ... Best regards, -Alain |
From: Lorenzo De T. <lor...@gm...> - 2009-09-17 06:07:53
|
> Because XSLTForms is based on Javascript, it is not allowed by any browser > to read or save local files. Only plug-ins and extensions can do that. Also if javascript asks the browser to open the default "save as…" window? > Coupled with a specific proxy (to be developed...), this could be done. Do > you know a user case for which it is required ? Off-line xforms can be used for to-do-lists, file conversions, file editing… What about the upload button? is it implemented? 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-16 19:42:52
|
Hello Lorenzo, > Are Load & Save (as in the example > <http://en.wikibooks.org/wiki/XForms/Insert_and_Delete_into_Table>) > implemented in XSLTForms? Local and/or online? Where are the files > saved to? > Because XSLTForms is based on Javascript, it is not allowed by any browser to read or save local files. Only plug-ins and extensions can do that. Coupled with a specific proxy (to be developed...), this could be done. Do you know a user case for which it is required ? Thanks! -Alain |
From: Lorenzo De T. <lor...@gm...> - 2009-09-16 15:48:42
|
Are Load & Save (as in the example <http://en.wikibooks.org/wiki/XForms/Insert_and_Delete_into_Table>) implemented in XSLTForms? Local and/or online? Where are the files saved to? 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: Lorenzo De T. <lor...@gm...> - 2009-09-16 13:12:34
|
>From <http://www.w3.org/TR/2007/REC-xforms-20071029/#action-insert> An ephemeral message is the foundation for displaying a hint message, which a graphical browser might render as follows: <input ref="po/address/street1"> <label>Street</label> <hint>Please enter the number and street name</hint> </input> [image: An average-looking text entry form control, with a mouse pointer visible and a tooltip below, reading 'Please enter the number and street name'] -- 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 09:15:03
|
I think that the actual solution in XSLTForms of using an image (i) to display the xforms:hint at rollover is worst than displaying the hint with a simple rollover on the input element, exactly as the attribute title displays at rollover. What do you think? What are the reasons of this choice? 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: 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. |
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: 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 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-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: COUTHURES A. <ala...@ag...> - 2009-09-13 20:23:35
|
Hello David, > is there any documentation that says how much of the xforms 1.0 > standard is implemented in xsltforms ? > The W3C Test Suite Report (http://www.agencexml.com/xforms-tests/testsuite/XForms1.1/Edition1/driverPages/html/) is a good document for knowing what is already implemented in XSLTForms but it is about the beta release and has not been updated since... > I have just tried a <xf:select1 selection="open">. It's obviously not > recognized, although the selection="open" > option is already mentioned in tho old xForms essentials book ... > Yes, selection="open" wasn't in AJAXForms either... It's because it is not easy to implement it with HTML forms only. This can be said also for upload. These are not priorities yet, especially without budget... > Translations to Czech and Dutch are attached. > Thank you very much ! I have just integrated them in the SVN repository. Regards, -Alain |
From: David V. <dav...@gm...> - 2009-09-13 15:48:14
|
Hello, is there any documentation that says how much of the xforms 1.0 standard is implemented in xsltforms ? I have just tried a <xf:select1 selection="open">. It's obviously not recognized, although the selection="open" option is already mentioned in tho old xForms essentials book ... Translations to Czech and Dutch are attached. Regards, David Vonka |
From: Lorenzo De T. <lor...@gm...> - 2009-09-11 17:08:28
|
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: Lorenzo De T. <lor...@gm...> - 2009-09-11 16:43:29
|
> When the "Loading" (don't hesitate to translate XSLTForms messages to > Italian in a messages_it.properties file so I can add it ;-) ) Attached :-) > box is > remaining, it is usually because of a javascript error. Look at the error > console of your browser and don't hesitate to use another one (Opera, > Safari,...) to have more explicit error messages. The errors are: - - - - - Errore: syntax error File sorgente: http://192.168.1.100/~lorenzodetomasi/sinapsi_base/?resource=contabilita/netto_da_lordo Riga: 3 Codice sorgente: <![CDATA[Core.fileName='xsltforms.js'; - - - - - Errore: init is not defined File sorgente: http://192.168.1.100/~lorenzodetomasi/sinapsi_base/?resource=contabilita/netto_da_lordo Riga: 1 - - - - - (more than one) Avviso: Proprietà sconosciuta 'box-sizing'. Dichiarazione tralasciata. File sorgente: http://192.168.1.100/~lorenzodetomasi/sinapsi_base/includes/xsltforms/xsltforms.css Riga: 513 - - - - - (more than one) Avviso: Errore durante l'interpretazione di 'filter'. Dichiarazione tralasciata. File sorgente: http://192.168.1.100/~lorenzodetomasi/sinapsi_base/includes/xsltforms/xsltforms.css Riga: 508 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-11 09:27:43
|
> Ok, now it loads the xslt. > In xsltforms.xsl I have changed > <xsl:variable name="resourcesdir"><xsl:value-of > select="substring-before($href, > 'xsltforms.xsl')"/>includes/xsltforms/</xsl:variable> > to > <xsl:variable name="resourcesdir">includes/xsltforms/</xsl:variable> > and now also the files xsltforms.css and xsltforms.js are loaded > but it still shows the "Loading" box, and the form doesn't work. > What can be the problem? > When the "Loading" (don't hesitate to translate XSLTForms messages to Italian in a messages_it.properties file so I can add it ;-) ) box is remaining, it is usually because of a javascript error. Look at the error console of your browser and don't hesitate to use another one (Opera, Safari,...) to have more explicit error messages. -Alain |
From: Lorenzo De T. <lor...@gm...> - 2009-09-11 09:20:47
|
Ok, now it loads the xslt. In xsltforms.xsl I have changed <xsl:variable name="resourcesdir"><xsl:value-of select="substring-before($href, 'xsltforms.xsl')"/>includes/xsltforms/</xsl:variable> to <xsl:variable name="resourcesdir">includes/xsltforms/</xsl:variable> and now also the files xsltforms.css and xsltforms.js are loaded but it still shows the "Loading" box, and the form doesn't work. What can be the problem? Thank you very much. On Thu, Sep 10, 2009 at 10:06 PM, COUTHURES Alain <ala...@ag...> wrote: > Usually, a processing-instruction is used only for client-side > transformation but at server-side, the source document beeing loaded with > the DOM API, it's also possible to have php instructions to manually read > this processing-instruction to, first, locate the stylesheet. -- 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-11 08:07:55
|
Hello Lorenzo, > And is it possible, with php dom, to load the xform file and re-save > it with the <?xml-stylesheet href="../xforms/xsltforms/xsltforms.xsl" > type="text/xsl"?> line added? How? > Yes, of course. Have a look at http://www.php.net/manual/en/domdocument.createprocessinginstruction.php Best regards, -Alain |
From: Lorenzo De T. <lor...@gm...> - 2009-09-11 06:31:13
|
Thank you for the tips :-) I'll try! > Usually, a processing-instruction is used only for client-side transformation but at > server-side, the source document beeing loaded with the DOM API, it's also possible to have > php instructions to manually read this processing-instruction to, first, locate the stylesheet. And is it possible, with php dom, to load the xform file and re-save it with the <?xml-stylesheet href="../xforms/xsltforms/xsltforms.xsl" type="text/xsl"?> line added? How? Thank you very much. -- 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-10 20:19:23
|
Hello Lorenzo, > Is it possible to generate an xhtml document with an xform with php, > based on xsltforms? > $xsl->importStyleSheet($doc); > $doc->load($xml_filename); > echo $xsl->transformToXML($doc); Yes, php might be used at server-side to perform an xslt transformation, with instructions such as : |$xsl = new XSLTProcessor(); $xsl->importStyleSheet(DOMDocument::load($xsl_filename)); echo $xsl->transformToXML(DOMDocument::load($xml_filename)); | Unfortunately, php xslt engine doesn't support namespaces very well and workarounds have to be found (add dummy attributes such as xsd:dummy="dummy" so the XSLTForms stylesheet can find the corresponding URI,...). > > I have tried, but it seems it needs the <?xml-stylesheet > href="../xforms/xsltforms/xsltforms.xsl" type="text/xsl"?> line to > understand where are the xsltforms subfolders. Usually, a processing-instruction is used only for client-side transformation but at server-side, the source document beeing loaded with the DOM API, it's also possible to have php instructions to manually read this processing-instruction to, first, locate the stylesheet. Best regards, -Alain |